keep track of a text file

2007-09-30 Thread Jeff Laine
Hi to all.
---
I'm using FreeBSD 6.1-RELEASE-p17

Just wonder about one catch: is it possible to keep track of any text file's
contents in a real time?
For example, I open ttyv1 and via some magic command :) I get my file's
contents updating in real time if any modifications occured.

Any advices will be very much appreciated.
-- 
Jeff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: keep track of a text file

2007-09-30 Thread Jeff Laine
On 30/09/2007, N.J. Mann <[EMAIL PROTECTED]> wrote:
>
> In message <[EMAIL PROTECTED]>,
> Jeff Laine wrote:
> >
> > Just wonder about one catch: is it possible to keep track of any text
> file's
> > contents in a real time?
> > For example, I open ttyv1 and via some magic command :) I get my file's
> > contents updating in real time if any modifications occured.
> >
> > Any advices will be very much appreciated.
>
> tail -f 
>
> man tail(1) for details
>
>
> Cheers,
>Nick.
> --
>
>
Thanks! Just forgot about "tail"

-- 
Jeff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Dealing with portscans

2008-09-22 Thread Jeff Laine
2008/9/22 David Allen <[EMAIL PROTECTED]>:
> Over the last few weeks I've been getting numerous ports scans, each from
> unique hosts.  The situation is more of an annoyance than anything else,
> but I would prefer not seeing or having to deal with an extra 20-30K
> entries in my logs as was the case recently.
>
> I use pf for firewalling, and while it does offer different methods
> (max-src-conn, max-src-conn-rate, etc.) for dealing with abusive hosts, it
> doesn't seem to offer much in the way of dealing with repeated blocked
> (non-stateful) connection attempts from a given host.
>
> Short of running something like snort, is there a suitable tool for
> dealing with this?  If not, I'll probably resort to running a cronjob to
> parse the logfile and add the offending hosts manually.

Give a try for portsentry from ports collection.


-- 
--Jeff--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Sound troubles with high res modes in console

2008-10-07 Thread Jeff Laine
Hello, everybody!


The system is ASUS "A3500L", old laptop on Intel Montara platform, running 
7.1-PRERELEASE


I have one trouble while listening music with console players. Sound became 
crippled when I have output to STDOUT
or whenever I use text-scrolling in editors or switching between consoles. 

This trouble appeared right after I changed vidcontrol setting to 1024x786 mode.

In order to get VESA modes I recompilled my kernel with these additional 
options:


>cat /sys/i386/conf/CUSTOM
# not sure if I should use these actually :)
...
device  drm  
device  i915drm
device  acpi_video

options SC_PIXEL_MODE
options VESA
...


Also I put 'allscreens_flags="-i mode MODE_279"' in /etc/rc.conf to have 
1024x768 mode in my consoles.

>vidcontrol -i mode
...
277 (0x115) 0x000f G 800x600x32 18x16  0xa 64k 64k 0xf000 32576k
279 (0x117) 0x000f G 1024x768x16 1   8x16  0xa 64k 64k 0xf000 32576k
280 (0x118) 0x000f G 1024x768x32 1   8x16  0xa 64k 64k 0xf000 32576k


I'm loading sound module for my Intel ICH4 chipset:

>cat /boot/loader.conf
acpi_video_load="YES"
snd_ich_load="YES" # Intel ICH


> kldstat
kernel
snd_ich.ko
sound.ko
acpi_video.ko
acpi.ko
atapicam.ko
pflog.ko
pf.ko
logo_saver.ko


When I'm switching vidcontrol mode back to default setting, playback becames 
smooth again.

So, is there any way to get smooth playback in console with high res settings?

Any advises will be much appreciated.

Thanks!




-- 
Best regards,
Jeff

 _
( )  ASCII ribbon campaign
 X   - against HTML, vCards and
/ \  - proprietary attachments in e-mail

cpu I686_CPU
ident   CUSTOM


makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols

options SCHED_ULE   # ULE scheduler
options PREEMPTION  # Enable kernel thread preemption
options INET# InterNETworking
options INET6   # IPv6 communications protocols
options SCTP# Stream Control Transmission Protocol
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options UFS_GJOURNAL# Enable gjournal-based UFS journaling
options MD_ROOT # MD is a potential root device
options NFSCLIENT   # Network Filesystem Client
options NFSSERVER   # Network Filesystem Server
options NFSLOCKD# Network Lock Manager
options NFS_ROOT# NFS usable as /, requires NFSCLIENT
options MSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options GEOM_PART_GPT   # GUID Partition Tables.
options COMPAT_43TTY# BSD 4.3 TTY compat [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options COMPAT_FREEBSD6 # Compatible with FreeBSD6
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options STACK   # stack(9) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options ADAPTIVE_GIANT  # Giant mutex is adaptive.
options STOP_NMI# Stop CPUS using NMI instead of IPI
options AUDIT   # Security event auditing


device  apic# I/O APIC

device  cpufreq

device  eisa
device  pci

device  fdc

device  ata
device  atadisk # ATA disk drives
device  ataraid # ATA RAID drives
device  atapicd # ATAPI CDROM drives
device  atapifd # ATAPI floppy drives
device  atapist # ATAPI tape drives
options ATA_STATIC_ID   # Static device numbering

device  scbus   # SCSI bus (required for SCSI)
device  ch  # SCSI media changers
device  da  # Direct Access (disks)
device  sa  # Sequential Access (tape etc)
device  cd  # CD
device  pass# Passthrough device (direct SCSI access)
device  

Re: freebsd7 & kde4 & performance

2008-10-15 Thread Jeff Laine
Agreed with t-u-t. I tried new pc-bsd7 on my old laptop (Celeron
1,6GHz/1.5G RAM/15GB dedicated on HDD/Intel GME video) and it runs
rather good (with almost all desctop effects disabled). Not so blazing
fast of course, but still enough for doing everyday stuff.

-- 
Best regards,
Jeff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Tcpwrappers, sendmail, and unknown hosts...

2009-10-10 Thread Jeff Laine
On Sat,10-10-2009 [12:31:01], Kevin Kinsey wrote:
> Seems like a lot of the spam we fight comes from
> hosts with no DNS entries.  What about using this?
> 
> --
> 
> $grep sendmail /etc/hosts.allow
> 
> sendmail : KNOWN : allow
> sendmail : UNKNOWN : deny
> 
> -
> 
> Comments?  anyone tried it?
> 

Hi Kevin!

What you need is 'require_rdns' feature.
Also from my own expirience, dnsbl feature of Sendmail works great for spammers 
scum.



-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How can I get >100 connections in FIN_WAIT_2 state from the same IP?

2009-10-13 Thread Jeff Laine
On Tue,13-10-2009 [17:50:00], Michael Powell wrote:
> Chuck Swiger wrote:
> 
> > On Oct 13, 2009, at 10:33 AM, Martin Turgeon wrote:
> >> I would like to know if anyone knows the reason why I get a lot of
> >> connections (more than 100) from the same IP in FIN_WAIT_2 state.
> > 
> > That IP is probably running a web proxy or possibly some kind of
> > spider.  It could also be malicious, trying to exploit webserver
> > vulnerabilities, etc-- search your logs for that IP and see what it is
> > doing.
> > 
> >> In this case the connections are on port 80. Is it a problem with the
> >> client's browser or OS? Is it possible that some mobile devices
> >> doesn't
> >> close their connections correctly to save bandwidth and battery?
> > 
> > Yes, it's not uncommon for various platforms to simply drop
> > connections rather than closing them properly.  You can run tcpdrop to
> > forcibly get rid of them, but they should time out within a few
> > minutes anyway.  If you believe the remote IP is being abusive,
> > consider firewalling it
> > 
> 
> This is also common from the differences in TCP/IP stacks across various 
> platforms. Windows, Linux, Solaris, etc are all slightly different in this 
> regard.
> 
> If you're running a web server you can set the following in /etc/sysctl.conf 
> in an attempt to mitigate. Don't know if the timeout period can be altered.
> 
> net.inet.tcp.fast_finwait2_recycle=1
> 
> This won't stop it from happening but it will trim the pool down some.


Hi,

maybe you'll find this info useful as well:


>From man pf.conf:


[...]
 Options
   tcp.finwait
 The state after both FINs have been exchanged and the connec-
 tion is closed.  Some hosts (notably web servers on Solaris)
 send TCP packets even after closing the connection.  Increas-
 ing tcp.finwait (and possibly tcp.closing) can prevent block-
 ing of such packets.
[...]


It looks like  this pf tunable has a 45s default value:

#pfctl -st
[...]

tcp.finwait  45s

[...]

Setting pf optimization to 'aggressive' changes it to 30s value.




-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Graphics card recommendation

2009-10-15 Thread Jeff Laine
On Wed,14-10-2009 [23:48:26], Polytropon wrote:
> On Wed, 14 Oct 2009 10:55:05 -0600 (MDT), Warren Block  
> wrote:
> > All of my cards are ATI and I don't know of the "mtrr" problem you're 
> > talking about.  This X1650 works fine on i386 with both 7-STABLE and 
> > 8-STABLE.
> 
> I had an old-fashioned ATI Radeon 9200 RV250 AGP with both a VGA
> and a VGA-on-DVI monitor. With also old-fashioned XFree86 this
> setting worked good performance-wise, which was in FreeBSD 5,
> but I haven't tested this in FreeBSD 7 with Xorg yet because
> I'm very upset about the speed-loss of "modern" software. :-(
> Furthermore, I don't have the second 21" CRT anymore, so no
> dual-head for me at the moment.
> 
> I am nearly sure that for today's requirements, Intel GPUs
> seem to be the most fitting ones, but as I don't own any of
> them, I can't give you clues from a user's point of view.
> In the past, ATI always was my first choice, but today, I
> would triple-check anything.
> 


Having had a _lot_ of troubles with Intel video recently I'd not recommend 
using it.
Poor performance (both 2D and 3D) and various glitches after several updates of 
intel-video driver.
And still having that bug with broken xv out driver of mplayer. :(


-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD vs Russian's laws

2009-10-31 Thread Jeff Laine
On Sat,31-10-2009 [17:56:22], Vagner wrote:
> Good day! I wanted to share with you the situation in Russia and hear
> advice. In Russia introduced a law "On personal data" and the
> corresponding standarts. In accordance with these standarts process
> personal data (ie 80% of all data in the enterprise) can only by
> certified operating systems and software.
> Certified happening in the Federal Security Service in Russia (FSB in USA). 
> But FreeBSD doesn't certify anyone.
> That  is, in Russia are trying to ban the use os Freebsd and similar.
> For the use of face criminal liability. What do i do not kwow, but
>   refuse to use FreeBSD, i don't intend to. How do you fight
>   against corruption & bureaucraty in the government itself? Thks
> 


It would be really interesting to hear the opinion of some Russian ISPs and 
major web services providers 
on this point. I.e. yandex.ru or rambler.ru which are known to run their 
services on freebsd in a rather
large scale.



-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Alternative windowmanagers

2011-08-16 Thread Jeff Laine
On Fri,05-08-2011 [21:12:14], Christian Barthel wrote:
> Hello, 
> 
> I read on slashdot that Linus Torvalds moved from Gnome 2.3x to Xfce. It
> seems that he isn't thrilled by xfce, but it's far better than Gnome3. 
> 
> As a Gnome 2.3x user too, I am also a bit nervouse. Gnome 3 is a big
> mistake. And there are also rumors that Gnome will be Linux only. Maybe,
> we will never see Gnome3 under FreeBSD, but this is not a tragedy :)
> 
> I am not very interested in eyecandy: I want a stable and fast wm (less
> memory and cpu, quick access to important places), different workspaces,
> and it should be configurable with ordinary files. Of course, It must
> run under FreeBSD. 
> 
> I sniffed into AfterStep, fvwm2 and fluxbox (I don't want to use KDE). I
> think, fluxbox is a nice wm and for my future, it will be the default wm
> for me. It's also very fast and easy to configure. 
> 
> Are there any other window manager worth looking? 
> 
> What is your window manager? 
> 
> 
> -- 
> Christian Barthel 

Whenever I need simple, fast, neat and bloat-free working environment, I 
usually go with openbox.

Cheers!

--
Jeff L.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


batch rename

2008-01-04 Thread Jeff Laine
Hi to all.

My goal is to rename several files in such a way as to decapitalize starting
letters in their names.
The solution seems to be simple but I'm stuck. What should I use? awk/sed or
write some shell-script?


TIA

-- 
--Jeff--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: batch rename

2008-01-04 Thread Jeff Laine
On 05/01/2008, Aryeh M. Friedman <[EMAIL PROTECTED]> wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Jeff Laine wrote:
> > Hi to all.
> >
> > My goal is to rename several files in such a way as to decapitalize
> > starting letters in their names. The solution seems to be simple
> > but I'm stuck. What should I use? awk/sed or write some
> > shell-script?
>
> This assumes tcsh:
>
> foreach i (`ls [A-Z][a-z]*`)
> mv $i `echo $i|tr 'A-Z' 'a-z'`
> end
>

Thanks! It was simple after all. Doh, I've never heard about "tr" before.

-- 
--Jeff--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


release or rc?

2008-01-17 Thread Jeff Laine
Hi to all.

Stupid question here )
I've cvsup'ed recently from 6.1 to RELENG_6_3. All seems to works pretty
well right now.  There are plenty of new drivers and fixes that I needed so
much! Many thanks to developers!
But now "uname -a" says it's 6.3-RELEASE.  I thought it would be 6.3-RC2 .
Is it still "release candidate" or not?

Thanks,
--Jeff--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


fstab syntax

2010-01-30 Thread Jeff Laine
Hello,

My question is regarding /etc/fstab synax. 
How can I use spaces and quote symbols in my device name? 
I tried to use double quotes and backslash, but no luck so far.
I.e. I'd like to put the following line:

/dev/msdosfs/MY FLASH /mnt/flash msdosfs rw,noauto 0 0

Any ideas?


-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: fstab syntax

2010-01-30 Thread Jeff Laine
On Sat,30-01-2010 [19:33:37], krad wrote:
> On 30 January 2010 19:05, Jeff Laine  wrote:
> 
> > Hello,
> >
> > My question is regarding /etc/fstab synax.
> > How can I use spaces and quote symbols in my device name?
> > I tried to use double quotes and backslash, but no luck so far.
> > I.e. I'd like to put the following line:
> >
> > /dev/msdosfs/MY FLASH /mnt/flash msdosfs rw,noauto 0 0
> >
> > Any ideas?
> >
> >
> > --
> > Best regards,
> > Jeff
> >
> > | "Nobody wants to say how this works.  |
> > |  Maybe nobody knows ..."  |
> > |   Xorg.conf(5)|
> >
> 
> /dev/msdosfs/MY\ FLASH /mnt/flash msdosfs rw,noauto 0 0
> 
> or
> 
> "/dev/msdosfs/MY FLASH" /mnt/flash msdosfs rw,noauto 0 0
> 
> should work, but i guess you tried these?
> 
> The alternative way would be to use the UUID of the drive, as that wont have
> spaces in, and is more versatile than /dev/das1a type syntax


Yep, neither is working. 

After all I used glabel to generate a new label and avoid reformatiing my 
volume.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Flash sometimes freezes firefox, also many npviewer.bin processes left running around

2010-03-23 Thread Jeff Laine
On Mon,22-03-2010 [17:41:16], Steve Franks wrote:
> /usr/ports/www/xpi-noscript is another option, not without caveats...
> 
> Steve
> 
> 
> On Thu, Mar 18, 2010 at 6:47 PM, Yuri  wrote:
> > Sometimes after some flash object is displayed firefox gets frozen for many
> > few seconds,maybe ~20sec.
> > Do you see the same? Is there anyfix for this?
> >
> > In additions I have 54 processes like this one
> > 50006  ??  I      0:00.00
> > /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plugin
> > /usr/local/lib/linux-mozilla/plugins/libflashplayer.so --connection
> > hanging around even after firefox process exits.
> >
> > linux-f10-flashplugin-10.0r45
> > nspluginwrapper-1.2.2_5
> > firefox-3.5.8,1
> >
> > Yuri

Hi!

There was a workaround for this issue published by DutchDaemon on 
forums.freebsd.org. 
I'm too lazy today to seek for that thread, sorry :) 
What he suggested is a simple cronjob script intended to constantly check 
process list and 
kill any single remaining proccess of npviewer.bin
It works, but you should check every minute or so.


-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


cyrus-imapd spawning multiple processes

2009-06-02 Thread Jeff Laine
Hello, list.

I'm trying to set up cyrus-imapd on my host running FreeBSD 7.2-RELEASE.

The troublemaker is the cyrus. It starts and opens it's sockets, but whenever
I try to establish a connection to pop3 or imap ports (i.e. via telnet or 
cyradm) 
cyrus goes nuts and spawns child processes in endless manner, trashing logs 
with this:

>tail /var/log/debug.log

Jun  2 23:27:35 free master[49269]: about to exec /usr/local/cyrus/bin/pop3d
Jun  2 23:27:35 free master[43639]: process 49269 exited, status 1
Jun  2 23:27:35 free master[49270]: about to exec /usr/local/cyrus/bin/pop3d
Jun  2 23:27:35 free master[43639]: process 49270 exited, status 1
Jun  2 23:27:35 free master[49271]: about to exec /usr/local/cyrus/bin/pop3d
Jun  2 23:27:35 free master[43639]: process 49271 exited, status 1
Jun  2 23:27:35 free master[49272]: about to exec /usr/local/cyrus/bin/pop3d
Jun  2 23:27:35 free master[43639]: process 49272 exited, status 1
Jun  2 23:27:35 free master[49281]: about to exec /usr/local/cyrus/bin/pop3d
Jun  2 23:27:35 free master[43639]: process 49281 exited, status 1
...

...until I stop the master process.


I tried both cyrus-imapd23 and 22 with default configurations but it
gives the same problem every time.

I have similar configuration on 6.4-RELEASE without such troubles.


Any advices would be much appreciated.


-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: cyrus-imapd spawning multiple processes

2009-06-03 Thread Jeff Laine
On Tue, Jun 02, 2009 at 10:19:01PM +0200, Erik Norgaard wrote:
> Jeff Laine wrote:
> >The troublemaker is the cyrus. It starts and opens it's sockets, but 
> >whenever
> >I try to establish a connection to pop3 or imap ports (i.e. via telnet or 
> >cyradm) cyrus goes nuts and spawns child processes in endless manner, 
> >trashing logs with this:
> >
> >>tail /var/log/debug.log
> >
> >Jun  2 23:27:35 free master[49269]: about to exec 
> >/usr/local/cyrus/bin/pop3d
> >Jun  2 23:27:35 free master[43639]: process 49269 exited, status 1
> >Jun  2 23:27:35 free master[49270]: about to exec 
> >/usr/local/cyrus/bin/pop3d
> >Jun  2 23:27:35 free master[43639]: process 49270 exited, status 1
> >Jun  2 23:27:35 free master[49271]: about to exec 
> >/usr/local/cyrus/bin/pop3d
> >Jun  2 23:27:35 free master[43639]: process 49271 exited, status 1
> >Jun  2 23:27:35 free master[49272]: about to exec 
> >/usr/local/cyrus/bin/pop3d
> >Jun  2 23:27:35 free master[43639]: process 49272 exited, status 1
> >Jun  2 23:27:35 free master[49281]: about to exec 
> >/usr/local/cyrus/bin/pop3d
> >Jun  2 23:27:35 free master[43639]: process 49281 exited, status 1
> >...
> >
> >...until I stop the master process.
> 
> It seems that when you try to connect with pop3 a child process is 
> spawned as it should, but it dies unexpectedly so a new is spawned. 
> Could it be something as simple as permissions to access the mailbox files?
> 
> Rather than relying on log files, try to launch the master manually with 
> the -D flag, it may give you a more verbose output.
> 
> >I tried both cyrus-imapd23 and 22 with default configurations but it
> >gives the same problem every time.
> >
> >I have similar configuration on 6.4-RELEASE without such troubles.
> 
> Similar but not the same? Sounds like you should review again your 
> config files, also, the versions of cyrus-imapd on your working 
> installation, is that the same as the new one? Consider posting your 
> configs in next post.
> 
> 
> BR, Erik

Thanks for your reply, Eric.
Running master in debugging mode helped to find out that I had 640 permissions 
on libdb* files. Doh.


Thanks!


-- 
Best regards,
Jeff


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to reset a connection stuck in CLOSE_WAIT state

2009-06-03 Thread Jeff Laine
On Wed, Jun 03, 2009 at 05:38:24PM +0700, Olivier Nicole wrote:
> Hi,
> 
> I am runnig FlexNet license manager on FreeBSD (6.4), this is alinux
> application, but it is running smoothly.
> 
> The problem occurs sometime at stop time, it will not stop cleanly and
> leave a connection in CLOSE_WAIT state. As a result, the ports are not
> freed and the license managerserver cannot restart.
> 
> Is there a simple way to force reset the hanging connection?
> 
> Best regards,
> 
> Olivier


I think tcpdrop(8) can handle that.

-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Named ignoring forward-only zones?

2009-06-05 Thread Jeff Laine
On Thu, Jun 04, 2009 at 11:53:38AM -0500, Kirk Strauser wrote:
> For some reason, BIND 9 (FreeBSD 7.2-RELEASE) isn't properly forwarding 
> queries.  A snippet of named.conf:
> 
> acl clients {
> localnets;
> localhost;
> ::1;  
> 10.45.12/19;
> }; 
> 
> view "internal" {
> match-clients { clients; };
> zone "5.0.10.in-addr.arpa" {
> type forward;
> forward only;
> forwarders { 10.0.5.16; };
> };
> };
> 
> 
> Now, I can query the forwarder directly to get the right answer:
> 
> $ dig +noall +answer -t ptr -x 10.0.5.16 @10.0.5.16
> 16.5.0.10.in-addr.arpa. 86400   IN  PTR kanga.honeypot.net.
> 
> But I can't get the same from named:
> 
> $ dig -t ptr -x 10.0.5.16
> 
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 56485
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
> 
> ;; QUESTION SECTION:
> ;16.5.0.10.in-addr.arpa.IN  PTR
> 
> ;; AUTHORITY SECTION:
> 10.in-addr.arpa.10800   IN  SOA 10.in-addr.arpa. 
> nobody.localhost. 42 86400 43200 604800 10800
> 
> So, why isn't named directing that query to the configured forwarder?  I'm 
> 99.9% certain this has been working recently.


Hi, Kirk.

I had the similar issue with forward type zones yesterday. 
Though I'm not quite sure, but it started to work after I put 127.0.0.1 
to /etc/resolv.conf on our bind server.


My named.conf entries look like this:

...
zone "need2.frwd.zone" {
type forward;
forward only;
forwarders { 10.xx.xx.xx; 10.xx.xx.yy; };
};

zone "10.in-addr.arpa" {
type forward;
forward only;
forwarders { 10.xx.xx.xx; 10.xx.xx.yy; };
};
...



-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: off topic: unmanageable switch?

2009-06-19 Thread Jeff Laine
On Fri,06/19/09 [17:31:49], Olivier Nicole wrote:
> Nikos,
> 
> > My list of priorities, with 1 being the most important.
> > 1. Price
> > 2. Stability
> 
> As the price is the most important for you, buy any cheap switch.
> 
> Now I have had satisfaction with Dlink and Compex, maybe not among the
> cheapest, but still cheap. I have had some working for 6 or 7 years
> non stop. I would not use them as core switch, but as satellite
> switches they do OK.
> 
> > 3. No "smart" features
> > 4. STP support
> 
> STP is definitely a smart feature, it comes with higher models only.
> 
> Bests,
> 
> Olivier
> 
I'd choose 3com. Their low-end unmanaged models are pretty cheap as well
as some smarter officeconnect models.

-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: off topic: unmanageable switch?

2009-06-20 Thread Jeff Laine
A vote for C-net devices. Pretty cheap and I can't recall any troubles caused 
by 'em.

-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Best practices for securing SSH server

2009-06-22 Thread Jeff Laine
On Mon,06/22/09 [21:16:35], Daniel Underwood wrote:
> On a BSD box at work (at an extremely fast connection and static IP),
> I run an SSH server.  I am the only person who uses the server, but I
> use it from some locations that are behind a dynamic IP (so I can't
> set pf rules to filter by IP).  I will always, however, use the same
> laptop to connect to the server.  Due to the speed and location of the
> connection, it's a relatively high-risk target.
> 
> What are some good practices for securing this SSH server.  Is using a
> stored key safer than a password in this instance? I have no
> experience with port-knocking, but I'd appreciate some tips or
> suggested beginning references... I welcome any and all advice.
> 
> Note: I do require X11 forwarding (not sure whether that's relevant 
> information)
> 
> TIA,
> Daniel

To block bruteforce probes on ssh I use pf with it's great function 
'max-src-conn-rate'.
man pf.conf provides some useful hints.



-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: how to do a live migration of a freebsd box to another box with rsync

2009-07-06 Thread Jeff Laine
> Hi,
> I'm used to migrate GNU/Linux system from one box to another by booting the
> second box with a liveCD (like systemrescueCD for example) and by copying
> the "/" filesystem (using the ssh transport)  with rsync.
> I would like to do the same for BSD system but i have two issues:
> - as the UFS write support is still experimental in the Linux kernel, it
> seems that i've to use a BSD liveCD but i can't find one :-/ I heard about
> frenzy ( http://frenzy.org.ua/en/ ) but the homepage says that the project
> is no longer maintained !
> - i'm wondering how to restore the bootloader after copying the files on the
> second box. On linux, i can use the grub-install script to do the job but
> i'm a bit lost on FreeBSD :-)

Hello. The Frenzy distro is still quite usable albeit it was abandoned. ;) 
Also you can find official FreeBSD liveCD iso here: 
ftp://ftp.freebsd.org/pub/FreeBSD/releases/i.386/ISO-IMAGES/7.2/7.2-RELEASE-i386-livefs.iso
(change arch type according to you platform).



-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Looking for fast graphical web browser

2009-08-10 Thread Jeff Laine
On Fri,08/07/09 [09:32:38], Daniel Underwood wrote:
> I'd really love to see chromium ported over.

ditto. But now I'm pretty happy with that new firefox-3.5 which seems pretty 
faster than previous version and still light enough for my old 1.6G 
celeron-powered laptop.


-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


linux_base installation - missing rpm binary

2009-08-28 Thread Jeff Laine
Hello,


I've just installed the emulators/linux_base-f10 port in order to run some 
rpm-based applications.
Various online manuals told me that one should not use the native freebsd rpm 
binary (archivers/rpm), but instead use the /compat/linux/bin/rpm. But there's 
no such rpm binary under /compat/linux tree. What am I doing wrong? XD

I'm running vanilla FreeBSD-7.2-RELEASE, fresh ports tree.


TIA.

-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: linux_base installation - missing rpm binary

2009-08-28 Thread Jeff Laine
On Fri,28-08-2009 [14:57:04], Boris Samorodov wrote:
> On Fri, 28 Aug 2009 13:06:28 +0400 Jeff Laine wrote:
> 
> > I've just installed the emulators/linux_base-f10 port in order to run some 
> > rpm-based applications.
> > Various online manuals told me that one should not use the native freebsd 
> > rpm 
> > binary (archivers/rpm), but instead use the /compat/linux/bin/rpm. But 
> > there's 
> > no such rpm binary under /compat/linux tree. What am I doing wrong? XD
> 
> FreeBSD has it's own package manager and it is used to track
> all ports (linux ports as well). So we don't use linux rpm
> database (it is not supported). Said that I might add that it
> doesn't mean that this won't work if you try. But you'll be at 
> your own here.
> 
> If you need to install a linux rpm archieve you should do
> as root:
> # cd /compat/linux
> # rpm2cpio -q < linux.rpm.archieve | cpio -id
> Then brandelf any binary executable (not libraries!).
> 
> Sure you won't be able to do a clean uninstall. But that
> may help you to do your tests.
> 
> The best way is to create an apropriate port and use it.
> Creating a linux port is not hard task. Please take a look
> at the ports tree (audio ports may be a good starting points
> as examples).
> 
> HTH
> 
> > I'm running vanilla FreeBSD-7.2-RELEASE, fresh ports tree.
> 
> BTW, I'm sure you have read /usr/ports/UPDATING and do have an
> apropriate variables at /etc/make.conf. ;-)
> 

Sure, I did. ;) Thanks for the answer, I've used cpio to unpack my rpms.


And another related question if you don't mind. 

I've unpacked my apps under /compat/linux tree but my binary requires 
shared X libraries:


>nsdexec: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot 
>  open shared object file: No such file or directory
>error while loading shared libraries: libXt.so.6: cannot open shared 
> object file: No such file or directory

I've tried to install x11/linux-f10-xorg-libs port but brandelf tells me 
they are BSD-binaries incompatible with my linux stuff. And thus my app
can't start complaining on incompatibilities if I tune lib paths.

Any hints?

TIA.






-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Opera 10.00 (native) & flash

2009-09-07 Thread Jeff Laine
On Mon,07-09-2009 [18:44:54], Tom Mende wrote:
> Running on 7.2-RELEASE, Opera 10.00 build 4585 (native) and would like to 
> view flash enabled websites. Anyone with a howto? Have googled extensively 
> and followed a variety of methods all unsuccessful to date. Like to here from 
> someone who has it running?
> 
> Cheers,
> -- 
> Tom Mende 
> ___

Hi,

I'm using graphics/gnash. It works good enough to watch youtube clips at least.
Ok for both ffox and opera.


-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: (no subject)

2008-12-12 Thread Jeff Laine
2008/12/12 abedini :
> Hi all dear
>
> I have laptop acer 4220 and I need to install FreeBSD.
>
> This laptop have sata HDD how can install FreeBSD in this system.
>
>

Hello.
If you need a desktop environment you can try PC-BSD
(http://www.pcbsd.org/), it's easy and fast to set-up. I believe it
will run good at your hardware. I had it on my old 1,6Ghz asus laptop
and it was ok. And if you need a console interface - just get latest
release of FreeBSD  (http://www.freebsd.org/where.html). You can
install from CD images, FTP or whatever suits you better.


-- 
Best regards,
Jeff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: USB Flash Drives

2008-12-13 Thread Jeff Laine
On Fri, Dec 12, 2008 at 09:39:50PM -0500, Lowell Gilbert wrote:
> fixer  writes:
> 
> > FreeBSD localhost 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12
> > 11:05:30 UTC 2007
> > r...@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386
> > localhost#
> >
> >
> > I just discovered flash drives.  They are very easy to use on Windows.
> > I don't know if FreeBSD supports these drives.  But if FreeBSD does,
> > I need instructions on "how-to-use".  Thanks in advance for anyone who
> > can help.
> 
> Rather than mounting the disks, I find it easier to use the "mtools"
> port (emulators/mtools).  The commands look like the old ms-dos
> commands, and include a copy command.
> 

Sorry if unrelated, but is there any way to avoid system crash after ejection 
of 
unmounted USB-storage device? I had a plenty of painful crashes today
after several power losses on my external usb-hdd (ntfs slice mounted, FreeBSD 
7.1-RC1).
It would be nice to have a "safety-net" here, considering these devices are so 
easilly deatachable by cats and ppl lurking around :)  Any advices?


-- 
Best regards,
Jeff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Canonical way for DHCP->IP->/etc/hosts

2008-12-14 Thread Jeff Laine
On Sun, Dec 14, 2008 at 02:00:12PM +0100, Roger Olofsson wrote:
> Dear mailing list,
> 
> I am sorry if this question has been asked over and over again - however 
> the htdig search interface for the lists is somewhat shaky and gives 
> referrer errors for me.
> 
> Pre-conditions.
> Dualhomed firewalled FreeBSD7.1. One nic is LAN and the other dynamical 
> IP from ISP.
> 
> Question: What is the canonical way for catching the IP address from a 
> DHCP assigned nic (from ISP that doesn't set hostname) and put the IP 
> into /etc/hosts with a hostname?
> 
> Reason for asking
> Firewall rules needs refreshing after new IP
> 
> Possible answers:
> Create dhcp-exit-hooks (undocumented?) in /etc like so:
> 
> #!/bin/sh
> 
> if [ ! -z "$new_ip_address" ]; then
> IP=`ifconfig WAN | grep 'inet' | grep -v 'inet6' | cut -f 2 -d ' '`
> if [ ! -z "$IP" ]; then
> echo "$IP wan.local.domain wan" >> /etc/hosts
> 
>   
> 
> fi
> fi
> 

Hello. I think pf can handle with dhcp updates on interfaces pretty well.
If only I get your question right.


-- 
Best regards,
Jeff

() X-mas ribbon campaign
/\

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Why FreeBSD not popular on hardware vendors

2008-12-15 Thread Jeff Laine
On Mon, Dec 15, 2008 at 11:34:20AM -0900, Beech Rintoul wrote:
> On Monday 15 December 2008 11:14:08 Chad Perrin wrote:
> > On Mon, Dec 15, 2008 at 12:53:39PM +0100, Wojciech Puchar wrote:
> > > >>and exactly is needed on that group. it would be enough that
> > > >> moderator's job will be just removing posts that classify to NTG.
> > > >> NOTHING else.
> > > >
> > > >As long as neither you, nor anyone that thinks like you, is in charge of
> > > >moderation, it might not be a *complete* disaster.
> > >
> > > of course it should be you to remove all my posts:)
> >
> > I wouldn't remove all your posts.  You've said five or six things that
> > were on-topic.
> 
> Guys, enough! This thread is starting to spam the list. Please take this to 
> freebsd-chat or off list.
> 
> Thanks,
> 
> Beech

Totally agree. :)

-- 
Best regards,
Jeff

() X-mas ribbon campaign
/\

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: bridge ipfw also protect set

2008-12-18 Thread Jeff Laine
On Fri, Dec 19, 2008 at 10:08:10AM +0800, KHOO Guan Chen wrote:
> Hi
> 
> I want to give internet connectivity to a pc behind my Freebsd, which is 
> connected to an aDSL. I know I can add another card to my set and use 
> bridge+IPFW so that the behind pc is firewalled. But will this setup
> also ensure that my Freebsd set is firewalled? Could now figure it out
> reading the book and article.
> 
> Thanks and sorry if this is a silly question.
> 
> Regards

Hi there!
You can set up natd+IPFW or use pf only. I think bridging is not necessary in 
your case.
Proper filter rules will give your freebsd system good protection.

Some information could be found in the Firewalls chapter of the Handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls.html

Great explanation of pf functionality here:
http://www.openbsd.org/faq/pf/

I find pf approach much easier to set up and maintain.

Google search will give you more ;)

Good luck!


-- 
Best regards,
Jeff

() X-mas ribbon campaign
/\

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Snow in my Server

2008-12-19 Thread Jeff Laine
On Fri, Dec 19, 2008 at 01:59:56PM -0500, Gary Hartl wrote:
> Help, I'm in southern Ontario and I have 20cm of snow on my freebsd
> 7-release server.
> 
> IT seems to be causeing some http outages.
> 
> My FBSD 6-.0 doesn't seem to be affected thou.
> 
> 
> Any suggestions,
> 
> 
> Cheers,
> 
> Gary 
> 
> 

Just mv teh snowflakes to /dev/null ^_-


-- 
Best regards,
Jeff

() X-mas ribbon campaign
/\

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: nessus report

2008-12-19 Thread Jeff Laine
On Fri, Dec 19, 2008 at 09:32:51PM -0800, Richard Yang wrote:
> hi,
> when i ran nessus against my bsd box, nessus can detect "the remote host is
> up".
> i don't understand how nessus can detect it...
> does anyone know how it is done?
> thanx
> 
> rich

I can't tell about nessus but nmap does so after discovering any open ports, 
TCP RST responses from closed ports or ICMP responses from your host. 
I believe it's similar with the nessuss.


-- 
Best regards,
Jeff

() X-mas ribbon campaign
/\

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: nessus report

2008-12-19 Thread Jeff Laine
On Fri, Dec 19, 2008 at 09:41:46PM -0800, Richard Yang wrote:
> yes,but i dpn't know how...
> it looks to me that all ports are closed
> 
> On Fri, Dec 19, 2008 at 9:38 PM, michael  wrote:
> 
> >
> >
> > Richard Yang wrote:
> >
> >> hi,
> >> when i ran nessus against my bsd box, nessus can detect "the remote host
> >> is
> >> up".
> >> i don't understand how nessus can detect it...
> >> does anyone know how it is done?
> >> thanx
> >>
> >> rich
> >>
> >>
> > uh, maybe because it responded?
> >

Check your firewall settings and run tcpdump  to be sure your host not sending 
any replies after scan attempt.

-- 
Best regards,
Jeff

() X-mas ribbon campaign
/\

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: recover data from damaged msdos fat32 partition

2008-12-20 Thread Jeff Laine
On Sat, Dec 20, 2008 at 04:16:38PM +0800, Fbsd1 wrote:
> I know i can mount fat32 partition using mount_msdos command. But my 
> msdos fat32 partition is a bad disk with corrupted fat table.
> 
> Question is can i use freebsd to recover data from this msdos fAT32 disk
> 
> What tools do you suggest to use?
> 

I believe it's a job for fsck_msdosfs(8) 

-- 
Best regards,
Jeff

() X-mas ribbon campaign
/\

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Cpu and memory clock tool

2008-12-22 Thread Jeff Laine
Hello everybody.

I've been fiddling with some memory modules on my laptop and realized that I 
had no idea what frequency memory was running.

So is there any tool to measure such things like FSB and memory clocks 
under FreeBSD?


TIA.


-- 
Best regards,
Jeff

() X-mas ribbon campaign
/\

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Cpu and memory clock tool

2008-12-22 Thread Jeff Laine
On Mon, Dec 22, 2008 at 12:20:59PM -0500, Glen Barber wrote:
> On Mon, Dec 22, 2008 at 12:15 PM, Jeff Laine  wrote:
> > Hello everybody.
> >
> > I've been fiddling with some memory modules on my laptop and realized that I
> > had no idea what frequency memory was running.
> >
> > So is there any tool to measure such things like FSB and memory clocks
> > under FreeBSD?
> >
> 
> Not sure of how detailed the output will be regarding FSB (check your
> BIOS for that), but you could always use `sysctl -a' to look at system
> information.
> 
> -- 
> Glen Barber

Yeah, I did grep for 'clock', 'hz', 'clock', 'mem' and such stuff but it seems 
that
all readings are for the cpu clock only.

-- 
Best regards,
Jeff

() X-mas ribbon campaign
/\

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Cpu and memory clock tool

2008-12-22 Thread Jeff Laine
On Mon, Dec 22, 2008 at 12:10:28PM -0600, Dan Nelson wrote:
> In the last episode (Dec 22), Jeff Laine said:
> > Hello everybody.
> > 
> > I've been fiddling with some memory modules on my laptop and realized that 
> > I 
> > had no idea what frequency memory was running.
> > 
> > So is there any tool to measure such things like FSB and memory
> > clocks under FreeBSD?
> 
> Try ports/sysutils/dmidecode ; "dmidecode -t 17" should print the
> installed memory modules and (if your bios exports the info) their
> speeds.
> 
> -- 
>   Dan Nelson
>   dnel...@allantgroup.com

It worked. Thanks!


-- 
Best regards,
Jeff

() X-mas ribbon campaign
/\

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Really strange resolution problems on xorg with a laptop

2008-12-25 Thread Jeff Laine
On Wed, Dec 24, 2008 at 04:22:40PM -0500, Aryeh M. Friedman wrote:
> Polytropon wrote:
> > On Wed, 24 Dec 2008 11:16:49 -0500, "Aryeh M. Friedman" 
> >  wrote:
> >   
> >> I have a HP Pavilion dv5000 and any "standard" xorg app like xterm or
> >> anything else that comes with xorg seems to work fine but every other X
> >> application has either HUGE (one character fills the whole screen) fonts
> >> and/or other weirdness (it could be fonts but who knows) I just did
> >> a complete reinstall from sources (portmaster) the FB version is
> >> 8-CURRENT (current as of last night) and the ports tree from the same time
> >> 
> >
> > Check the DPI settings from your monitor and if they match the
> > settings in xorg.conf. Some programs calculate font sizes
> > according to these values.
> >
> >
> >
> >   
> How do I check that... btw your name seems familar ever use a public
> access freebsd machine called m-net?

Maybe this would be useful?

 xdpyinfo | grep -E "res|dim" 

Helped me in a similar case.


-- 
Best regards,
Jeff

() X-mas ribbon campaign
/\

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Wine without X

2009-03-26 Thread Jeff Laine
On Thu, Mar 26, 2009 at 05:12:17PM +, Barnaby Scott wrote:
> Bill Moran wrote:
> >In response to Barnaby Scott :
> >
> >>I'm sorry if I'm asking in the wrong place, but I have tried elsewhere 
> >>and go no response.
> >>
> >>I want to install wine, but without X on the system.
> >
> >Why would you expect this to be possible?  The GUI is an integral part
> >of MS Windows ... I can't imagine how wine would work at all without X
> >installed -- which is probably why you're not getting any answers.
> >
> >Perhaps you should back up and consider what you're trying to accomplish.
> >If you don't need a GUI, then what programs do you expect to run under
> >wine, and is there some better way to get them?
> >
> 
> Thanks for your reply
> 
> I know this is possible because I have seen discussion of it in Linux 
> and wine forums. I'm just too inexperienced to know which bits of the 
> instructions are OS-specific, and what other nightmares I might face. I 
> might be able to figure it all out by weeks of trial and error, but that 
> seems crazy if someone has been there before me!
> 
> As for why I want it to run, that is because the application I want to 
> run is a bolt-on to a specific bit of rendering software that we use, 
> and there really is no viable non-Windows replacement in our situation - 
> believe me, if there was, I'd be using it. (In case you care, we are 
> talking about Vray for Rhino, which we use because we use Rhino, and 
> because we use Rhino we chose RhinoCAM, and because we chose RhinoCAM I 
> spent weeks writing software to make it talk to our CNC equipment, whose 
> controller is inextricably Windows-based... you get the picture!)
> 
> In answer to the other replies (thanks to you guys too):
> 
> Yes, wine is fine with just the command prompt. It is somewhat confusing 
> in that it offers a thing called wineconsole, but ironically that *does* 
> appear to require X. Just using wine without X is fine, so long as the 
> app does not attempt to open any sort of window, system tray etc.
> 
> As for the 'cluttering' - I'm not so worried about disk space, that's 
> cheap these days. It's more a question of updating ports. When I once 
> made the mistake of installing X and various other things I turned out 
> not to need, the process of updating everything became a nightmare - 
> stuff breaking because I hadn't read the updating info for a bunch of 
> fonts or something stupid like that. Multiply that by 3 servers, and, 
> well, no thanks!


wineconsole app seems working fine in terminal with no X at all. 
I ran it like this: 

./wineconsole --backend=curses cmd

-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: UTF-8 file + console

2009-03-30 Thread Jeff Laine
On Tue, Mar 31, 2009 at 07:47:56AM +0200, Arek Czereszewski wrote:
> Hi,
> 
> I have php application in UTF-8 on server
> (in files are 4 languages: PL, SK, CZ and EN).
> 
> Is there any chance to edit this files on console?
> Or should I edit files in Linux/Mac/Win editor with
> UTF support and upload then to server?
> 
> Regards
> Arek
> -- 
> Arek Czereszewski
> arek (at) wup-katowice (dot) pl
> "UNIX allows me to work smarter, not harder."


I use bluefish editor (www/bluefish) for such purposes of mine. It  can handle 
various 
encodings and highlight code.


-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: UTF-8 file + console

2009-03-30 Thread Jeff Laine
Sorry, I missed that you need a console editor. bluefish requires X

-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: firefox3 with high latencies when acting with mouse or keyboard and graphics refresh

2009-04-08 Thread Jeff Laine
On Wed, Apr 08, 2009 at 01:42:56PM +, O. Hartmann wrote:
> Hello,
> got a problem since yesterday after having done a lot of updates 
> (ports): on all of my FreeBSD 8.0-CURRENT/amd64 boxes firefox does have 
> enormous high latencies when typing in or moving the mouse or popping up 
> the window icon or down. Since this happens on all of 8.0-CUR/amd boxes, 
> I guess it has something to do with an upgrade of the ports.
> 
> I reinstalled firefox twice, but without success, so I want to ask for 
> some hints..
> 
> Regards,
> Oliver


It is unlikely your case, but I've had similar issues with firefox on my laptop 
with intel video under 7.2-PRERELEASE.
Setting video driver option "AccelMethod" to old XAA mode in xorg.conf helped a 
lot.




-- 
Best regards,
Jeff

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


6.0 to 6.4 upgrade - buildkernel fails

2009-05-08 Thread Jeff Laine
Hello, everybody.

I'm trying to source upgrade from 6.0-RELEASE to 6.4.
I really need to update this system, because 6.0 has too many holes now.
I cvsup'ed to RELENG_6_4 and buildworld went ok, but buildkernel fails
ait this stage:


[skipped]
--
>>> stage 2.3: build tools
--
cd /usr/obj/usr/src/sys/KERNEL;
MAKESRCPATH=/usr/src/sys/dev/aic7xxx/aicasm  make -DNO_CPU_CFLAGS -f
/usr/src/sys/dev/aic7xxx/aicasm/Makefile
Warning: Object directory not changed from original /usr/obj/usr/src/sys/KERNEL
yacc -b aicasm_gram  -d -o aicasm_gram.c
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y
yacc -b aicasm_macro_gram -p mm -d -o aicasm_macro_gram.c
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y
cc -O2 -fno-strict-aliasing -pipe -nostdinc -I/usr/include -I.
-I/usr/src/sys/dev/aic7xxx/aicasm  -c
/usr/src/sys/dev/aic7xxx/aicasm/aicasm.c
cc -O2 -fno-strict-aliasing -pipe -nostdinc -I/usr/include -I.
-I/usr/src/sys/dev/aic7xxx/aicasm  -c
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function `symbol_delete':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:91: warning: passing
arg 2 of pointer to function from incompatible pointer type
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:91: error: too few
arguments to function
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function `symtable_open':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:135: warning:
assignment makes pointer from integer without a cast
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function `symtable_close':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:151: error: structure
has no member named `seq'
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:151: error: `R_FIRST'
undeclared (first use in this function)
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:151: error: (Each
undeclared identifier is reported only once
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:151: error: for each
function it appears in.)
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:157: error: too few
arguments to function
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function `symtable_get':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:176: warning: passing
arg 2 of pointer to function from incompatible pointer type
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:176: error: too few
arguments to function
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:189: warning: passing
arg 2 of pointer to function from incompatible pointer type
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:189: error: too few
arguments to function
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function `symtable_dump':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:486: error: `R_FIRST'
undeclared (first use in this function)
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:487: error: structure
has no member named `seq'
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:524: error: `R_NEXT'
undeclared (first use in this function)
*** Error code 1

Stop in /usr/obj/usr/src/sys/KERNEL.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


My config is the same as GENERIC, but with pf and altq options included.
Is it possible to use freebsd-udate on this old system?


Any help will be much appreciated.


--
Best regards,

Jeff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: how to run task periodically

2010-08-18 Thread Jeff Laine

On 08/18/2010 10:58, Mark Stapper wrote:

  Hi,

I have a system that doesn't run 24/7/365.
I would like to make sure that some tasks (like updating the ports tree)
run weekly/monthly etc.
As the system isn't on 24/7 the cron job I usually run for these tasks
doesn't work as the machine isn't always running on the scheduled time.

So I need a utility that enable me to say: "if a week has passed since
the last run, run this command".
Is there such a utlility?
Cheers,
Mark



Maybe @reboot action of standard crontab will suit your needs.
Also it wouldn't be that hard to write a simple shell-script which will 
check dates and perform needed actions.




--
Best regards,
Jeff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


freebsd.org maillist mx discard policy

2010-08-18 Thread Jeff Laine

Hello list,

My question is regarding official maillist smtp servers. I'm trying to 
subscribe on "security-notifications", but (for some reasons) our 
outgoing MX has no PTR record and mx1.freebsd.org rejects my message:



>Reporting-MTA: dns; xxx
>Arrival-Date: Mon, 16 Aug 2010 17:18:39 +0400 (MSD)
>
>Final-Recipient: RFC822; 
freebsd-security-notifications->requ...@freebsd.org

>Action: delayed
>Status: 4.7.1
>Remote-MTA: DNS; mx1.freebsd.org
>Diagnostic-Code: SMTP; 450 4.7.1 Client host rejected: cannot find 
your hostname, [x.x.x.x]

>Last-Attempt-Date: Mon, 16 Aug 2010 21:24:36 +0400 (MSD)


I have the SPF record set up for our domain which designates our 
external IP as a valid sender address for the domain, but I still get 
rejected.


So, the question is: do the freebsd.org maillist servers follow SPF 
records or PTR record is mandatory?



TIA.

--
Best regards,
Jeff

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"