Re: Sendmail: sub-domain masquerade as top level

2008-01-04 Thread Jonathan McKeown
On Friday 04 January 2008 01:11, Jerahmy Pocott wrote:
 On 04/01/2008, at 12:59 AM, Barry Byrne wrote:
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
  Jerahmy Pocott
 
  I'm having an issue with getting sendmail to masquerade
  as the top level domain when the host is a sub domain.

  You don't say what you've tried already. I use postfix these days,
  but from
  memory, something like the following should work for you:
 
  MASQUERADE_AS(`domain.com')
  MASQUERADE_DOMAIN(`sub.domain.com')

 Sorry, I should have mentioned what I had tried:

 I have tried the above and the above in combination with
 FEATURE(`masquerade_entire_domain') and pretty much
 every combination of those statements all to no effect.

 For some reason when the masquerade domain is the top
 level of the actual domain, it won't change it even with those
 options set..

This is from my live .mc file, which definitely works:

MASQUERADE_AS(`hst.org.za')dnl
MASQUERADE_DOMAIN(`hst.org.za')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`masquerade_entire_domain')dnl
MASQUERADE_EXCEPTION(`lists.hst.org.za barley.hst.org.za akima.hst.org.za')dnl

My understanding is this. First of all, bear in mind that a domain name may 
refer to a group of hosts (I'll call this a zone by analogy with BIND), or a 
single host (a FQDN).

MASQUERADE_AS gives the FQDN to be used when masquerading. It is applied to 
the domain names of the local mail host only - so if the only change is on 
your mailserver to go from mailserver.example.com to example.com, this should 
be all you need.

MASQUERADE_DOMAIN adds additional FQDNs to the list of domain names to be 
masqueraded - if you need to masquerade other hosts within your zone.

FEATURE(`masquerade_entire_domain') switches MASQUERADE_DOMAIN to affect whole 
zones instead of FQDNs of single hosts. As I read cf/README, you need both 
these options to masquerade a whole zone, as well as the first option to 
specify what to masquerade as.

The last of the five lines exempts some hosts from masquerading because they 
handle their own mail. Not doing this can cause some... interesting breakage.

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


Re: how to suspend/wake-up a FreeBSD machine?

2008-01-04 Thread Ian Smith
On Fri, 4 Jan 2008, Norberto Meijome wrote:
  On Sun, 30 Dec 2007 11:51:41 +0100
  Henrik Brix Andersen [EMAIL PROTECTED] wrote:
  
   That depends largely on the hardware - on e.g. ThinkPads you need to
   press the 'Fn' button to wake up the laptop after sleep.
  
  hmm i think it's not so much the Fn key, u need to do anything that
  triggers an ACPI event in the BIOS - like opening the lid , or
  pressing Fn. I *think* 'thinkVantage' blue btn should work too. 

On my T23 I have suspend/wake on lid switch off (in BIOS), preferring to
have to use the Fn key to wake.  No other keys do that on mine including
the ThinkPad key, so then called.

While consulting 'sysctl hw.acpi' about that I see:
hw.acpi.lid_switch_state: NONE
which I assume reflects my don't-do-that BIOS setting.

And confirming:
# sysctl hw.acpi.lid_switch_state=1 # (or =0)
hw.acpi.lid_switch_state: NONE
sysctl: hw.acpi.lid_switch_state: Invalid argument

which makes sense and was expected .. except that since doing that,
closing the lid while awake still just blanks screen, but opening lid
now wakes the laptop from sleep!  No big deal, just slightly odd .. 

Cheers, Ian

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


snd_hda(freebsd 7.0 rc1) doesn't work on dell latitude D630

2008-01-04 Thread lveax
hey all:

i can get sound from my d630.


i added the snd_hda support to my kernel configure file.
i can find info about my onboard sound card,but it still didn't work.

pcm0: HDA Codec: Sigmatel (Unknown)
pcm0: HDA Driver Revision: 20071129_0050

the pciconf info about it:
[EMAIL PROTECTED]:0:27:0:   class=0x040300 card=0x01f91028 chip=0x284b8086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801H SUBSYS_81EC1043REV_02\3115836590D8'
class  = multimedia

the output from mixer command:
$ mixer

 [Fri 4:32:56pm]
Mixer vol  is currently set to  75:75
Mixer pcm  is currently set to  75:75
Mixer speaker  is currently set to  75:75c
Mixer line is currently set to  75:75
Mixer rec  is currently set to   0:0
Recording source: mic
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: snd_hda(freebsd 7.0 rc1) doesn't work on dell latitude D630

2008-01-04 Thread Frank Staals

lveax wrote:

hey all:

i can get sound from my d630.


i added the snd_hda support to my kernel configure file.
i can find info about my onboard sound card,but it still didn't work.

pcm0: HDA Codec: Sigmatel (Unknown)
pcm0: HDA Driver Revision: 20071129_0050

the pciconf info about it:
[EMAIL PROTECTED]:0:27:0:   class=0x040300 card=0x01f91028 chip=0x284b8086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801H SUBSYS_81EC1043REV_02\3115836590D8'
class  = multimedia

the output from mixer command:
$ mixer

 [Fri 4:32:56pm]
Mixer vol  is currently set to  75:75
Mixer pcm  is currently set to  75:75
Mixer speaker  is currently set to  75:75c
Mixer line is currently set to  75:75
Mixer rec  is currently set to   0:0
Recording source: mic
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

  
I have a similar problem (also with a D630 ) ; I only get sound when 
plugging in a headset or similar. Sound won't work over the internal 
speakers. I also tried the oss drivers, without
success though: at the time ( about a month ago ) it even locked up my 
system.


[EMAIL PROTECTED] uname -a
FreeBSD Rena.FStaals.net 7.0-BETA4 FreeBSD 7.0-BETA4 #0: Fri Dec 21 
11:48:15 CET 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/RENAKERNEL  i386





--
-Frank Staals


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


Re: how to suspend/wake-up a FreeBSD machine?

2008-01-04 Thread Norberto Meijome
On Fri, 4 Jan 2008 19:13:20 +1100 (EST)
Ian Smith [EMAIL PROTECTED] wrote:

 On Fri, 4 Jan 2008, Norberto Meijome wrote:
   On Sun, 30 Dec 2007 11:51:41 +0100
   Henrik Brix Andersen [EMAIL PROTECTED] wrote:
   
That depends largely on the hardware - on e.g. ThinkPads you need to
press the 'Fn' button to wake up the laptop after sleep.
   
   hmm i think it's not so much the Fn key, u need to do anything that
   triggers an ACPI event in the BIOS - like opening the lid , or
   pressing Fn. I *think* 'thinkVantage' blue btn should work too. 
 
 On my T23 I have suspend/wake on lid switch off (in BIOS), preferring to
 have to use the Fn key to wake.  No other keys do that on mine including
 the ThinkPad key, so then called.

ah yes :)

 
 While consulting 'sysctl hw.acpi' about that I see:
 hw.acpi.lid_switch_state: NONE
 which I assume reflects my don't-do-that BIOS setting.
 
 And confirming:
 # sysctl hw.acpi.lid_switch_state=1   # (or =0)
 hw.acpi.lid_switch_state: NONE
 sysctl: hw.acpi.lid_switch_state: Invalid argument
 
 which makes sense and was expected .. except that since doing that,
 closing the lid while awake still just blanks screen, but opening lid
 now wakes the laptop from sleep!  No big deal, just slightly odd .. 

hmm mine reads :

hw.acpi.lid_switch_state: NONE

dev.acpi_lid.0.wake: 1

FreeBSD ayiin.octantis.com.au 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #1: Fri Jan 
 4 09:44:17 EST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386


_
{Beto|Norberto|Numard} Meijome

Great spirits have often encountered violent opposition from mediocre minds.
  Albert Einstein

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mount vs mount_msdosfs - invalid file mode

2008-01-04 Thread Nikola Lečić
On Fri, 04 Jan 2008 17:52:14 +1030
Ben Williams [EMAIL PROTECTED] wrote:

[...] 
 The one I want to mount is drive. I can mount it properly with 
 mount_msdosfs:
 
 [EMAIL PROTECTED] /mnt]# mount_msdosfs -m 666 -M 777 /dev/ad3s1 /mnt/drive
 
 But I'm not sure how to get mount to call mount_msdosfs with the
 right params:
 
 [EMAIL PROTECTED] /mnt]# mount -t msdosfs -v -o '-m 666 -M 777' /dev/ad3s1 
 /mnt/drive
 mount_msdosfs: invalid file mode:  666 -M 777
[...]

Hello Ben,

The right command would be:

  # mount -t msdosfs -v -o -m=666,-M=777 /dev/ad3s1 /mnt/drive

According to mount(8) manpage:

   Any additional options specific to a file system type that is not one
   of the internally known types (see the -t option) may be passed as a
   comma separated list; these options are distinguished by a leading
   ``-'' (dash).  Options that take a value are speci- fied using the
   syntax -option=value. 

 This is on FreeBSD 6.2-RELEASE. I'm a bit of a newbie - this is my
 first FreeBSD install :)

Welcome! :-)

-- 
Nikola Lečić :: Никола Лечић
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail: sub-domain masquerade as top level

2008-01-04 Thread Jerahmy Pocott


On 04/01/2008, at 7:11 PM, Jonathan McKeown wrote:


On Friday 04 January 2008 01:11, Jerahmy Pocott wrote:

On 04/01/2008, at 12:59 AM, Barry Byrne wrote:

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jerahmy Pocott

I'm having an issue with getting sendmail to masquerade
as the top level domain when the host is a sub domain.



You don't say what you've tried already. I use postfix these days,
but from
memory, something like the following should work for you:

MASQUERADE_AS(`domain.com')
MASQUERADE_DOMAIN(`sub.domain.com')


Sorry, I should have mentioned what I had tried:

I have tried the above and the above in combination with
FEATURE(`masquerade_entire_domain') and pretty much
every combination of those statements all to no effect.

For some reason when the masquerade domain is the top
level of the actual domain, it won't change it even with those
options set..


This is from my live .mc file, which definitely works:

MASQUERADE_AS(`hst.org.za')dnl
MASQUERADE_DOMAIN(`hst.org.za')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`masquerade_entire_domain')dnl
MASQUERADE_EXCEPTION(`lists.hst.org.za barley.hst.org.za  
akima.hst.org.za')dnl


Adding FEATURE(`masquerade_envelope') fixed the issue I
was having, thanks!

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


GELI / rtorrent / 250GB USB storage / 7.0-BETA4 = Crypto WRITE request failed

2008-01-04 Thread Oliver Peter
Hi,

Time after time I have some ugly problems with rtorrent on a
GELI-encrypted device (da0).  Normally I would also say the whole disk
is crap but some checks with dd went fine (do the whole night
reading to /dev/null and writing to it from /dev/zero).

At least I have this kind of error, in some cases I also have
spontaneous reboots.

dmesg:

da0 at umass-sim0 bus 0 target 0 lun 0
da0: WDC WD25 00BB-00RDA0  Fixed Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C)
GEOM_ELI: Device da0.eli created.
GEOM_ELI: Encryption: AES-CBC 128
GEOM_ELI:  Integrity: HMAC/MD5
GEOM_ELI: Crypto: software
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 10 2c b ac 0 0 48 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): MEDIUM ERROR asc:11,0
(da0:umass-sim0:0:0:0): Unrecovered read error
(da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 10 2c b ac 0 0 48 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): MEDIUM ERROR asc:11,0
(da0:umass-sim0:0:0:0): Unrecovered read error
(da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 10 2c b ac 0 0 48 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): MEDIUM ERROR asc:11,0
(da0:umass-sim0:0:0:0): Unrecovered read error
(da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 10 2c b ac 0 0 48 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): MEDIUM ERROR asc:11,0
(da0:umass-sim0:0:0:0): Unrecovered read error
(da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 10 2c b ac 0 0 48 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): MEDIUM ERROR asc:11,0
(da0:umass-sim0:0:0:0): Unrecovered read error
(da0:umass-sim0:0:0:0): Retries Exhausted
GEOM_ELI: g_eli_read_done() failed da0.eli[READ(offset=123481669632, 
length=32768)]
g_vfs_done():da0.eli[READ(offset=123481669632, length=32768)]error = 5
vnode_pager_getpages: I/O read error
vm_fault: pager read error, pid 41232 (rtorrent)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 10 2c b ac 0 0 48 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): MEDIUM ERROR asc:11,0
(da0:umass-sim0:0:0:0): Unrecovered read error
(da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 10 2c b ac 0 0 48 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): MEDIUM ERROR asc:11,0
(da0:umass-sim0:0:0:0): Unrecovered read error
(da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 10 2c b ac 0 0 48 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): MEDIUM ERROR asc:11,0
(da0:umass-sim0:0:0:0): Unrecovered read error
(da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 10 2c b ac 0 0 48 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): MEDIUM ERROR asc:11,0
(da0:umass-sim0:0:0:0): Unrecovered read error
(da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 10 2c b ac 0 0 48 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): MEDIUM ERROR asc:11,0
(da0:umass-sim0:0:0:0): Unrecovered read error
(da0:umass-sim0:0:0:0): Retries Exhausted
GEOM_ELI: Crypto WRITE request failed (error=5). da0.eli[WRITE(offset=65536, 
length=4096)]
GEOM_ELI: Crypto WRITE request failed (error=5). da0.eli[WRITE(offset=5636096, 
length=12288)]
GEOM_ELI: Crypto WRITE request failed (error=5). 
da0.eli[WRITE(offset=90105315328, length=16384)]
GEOM_ELI: Crypto WRITE request failed (error=5). 
da0.eli[WRITE(offset=102119522304, length=16384)]
GEOM_ELI: Crypto WRITE request failed (error=5). 
da0.eli[WRITE(offset=110953201664, length=16384)]
GEOM_ELI: Crypto WRITE request failed (error=5). 
da0.eli[WRITE(offset=111260352512, length=16384)]
GEOM_ELI: Crypto WRITE request failed (error=5). 
da0.eli[WRITE(offset=156889153536, length=16384)]
GEOM_ELI: Crypto WRITE request failed (error=5). 
da0.eli[WRITE(offset=157223944192, length=16384)]
GEOM_ELI: Crypto WRITE request failed (error=5). 
da0.eli[WRITE(offset=157223960576, length=16384)]
GEOM_ELI: 

Opera, Flash and the stench of failure...

2008-01-04 Thread Modulok
Seeing the thread about flash with mozilla, I thought, a flash plugin
with opera would be cool. Last night I tried to get flash working
with opera. I failed. With native opera, I cannot get any plugins to
work. Here is what I know:

1. What opera bitches about:
   Could not start operapluginwrapper.
   Plugins will not work correctly.

2. Why opera bitches:
   ldd operapluginwrapper;
   ...
   libXThrStub.so.6 = not found (0x0)
   ...

3. Why it is missing:
   On OpenBSD, and on old FreeBSD, libc lacks pthread stubs.
   This is a problem because libX11 needs to support threading,
   but shouldn't cause all X programs to be linked against the
   threading library. The solution is libXThrStub (UIThrStubs.c),
   which provides weak symbols to stub threading functions,
   which are ignored if the application links against the thread
   library. I had moved libXThrStub into libX11, because it
   seemed unnecessary.

4. What I have installed:
   linux-flashplugin-9.0r115 Adobe Flash Player NPAPI Plugin
   opera-9.25.20071214 A blazingly fast, full-featured,
standards-compliant browse
   opera-linuxplugins-9.21.20070510_1 Linux plugin support for the
native Opera browser

Does anyone have flash working with opera? If so, how? Where can I get
libXThrStub.so.6?
-Modulok-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to suspend/wake-up a FreeBSD machine?

2008-01-04 Thread Ian Smith
On Fri, 4 Jan 2008, Norberto Meijome wrote:
  On Fri, 4 Jan 2008 19:13:20 +1100 (EST)
  Ian Smith [EMAIL PROTECTED] wrote:
[..]
   On my T23 I have suspend/wake on lid switch off (in BIOS), preferring to
   have to use the Fn key to wake.  No other keys do that on mine including
   the ThinkPad key, so then called.
  
  ah yes :)
  
   
   While consulting 'sysctl hw.acpi' about that I see:
   hw.acpi.lid_switch_state: NONE
   which I assume reflects my don't-do-that BIOS setting.
   
   And confirming:
   # sysctl hw.acpi.lid_switch_state=1# (or =0)
   hw.acpi.lid_switch_state: NONE
   sysctl: hw.acpi.lid_switch_state: Invalid argument
   
   which makes sense and was expected .. except that since doing that,
   closing the lid while awake still just blanks screen, but opening lid
   now wakes the laptop from sleep!  No big deal, just slightly odd .. 
  
  hmm mine reads :
  
  hw.acpi.lid_switch_state: NONE
  
  dev.acpi_lid.0.wake: 1

Sorry Beto, I must have been dreaming :)  I have that too, but did try
'sysctl dev.acpi_lid.0.wake=0'.  With that, no keys at all but only
pressing the power button (not for too long!) will wake it up (phew).

Anyway, after a reboot - having noticed that since my verbose boot the
other day, each ACPI suspend/resume is VERY chatty in messages - it's
still working the same.  So eat this message .. 

  FreeBSD ayiin.octantis.com.au 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE
  #1: Fri Jan 4 09:44:17 EST 2008
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386

Happy new job ..

cheers, Ian

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


Sun Fire X4600 Server FreeBSD

2008-01-04 Thread Susanth K
Hi All,

Experienced peoples, please help :-)

Is FreeBSD 100% hardware compatible with  Sun Fire X4600 Server ?
http://www.sun.com/servers/x64/x4600/specs.xml

Since it is amd64 platform, it should;
But what am looking for is, Will FreeBSD detect all devices and utilize the
machine fully.

Those who have experience with  Sun Fire X4600 Server  FreeBSD, please
respond.


Thanks in advance.

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


Re: Opera, Flash and the stench of failure...

2008-01-04 Thread Randy Pratt
On Fri, 4 Jan 2008 06:16:59 -0700
Modulok [EMAIL PROTECTED] wrote:

 Seeing the thread about flash with mozilla, I thought, a flash plugin
 with opera would be cool. Last night I tried to get flash working
 with opera. I failed. With native opera, I cannot get any plugins to
 work. Here is what I know:
 
 1. What opera bitches about:
Could not start operapluginwrapper.
Plugins will not work correctly.
 
 2. Why opera bitches:
ldd operapluginwrapper;
...
libXThrStub.so.6 = not found (0x0)
...
 
 3. Why it is missing:
On OpenBSD, and on old FreeBSD, libc lacks pthread stubs.
This is a problem because libX11 needs to support threading,
but shouldn't cause all X programs to be linked against the
threading library. The solution is libXThrStub (UIThrStubs.c),
which provides weak symbols to stub threading functions,
which are ignored if the application links against the thread
library. I had moved libXThrStub into libX11, because it
seemed unnecessary.
 
 4. What I have installed:
linux-flashplugin-9.0r115 Adobe Flash Player NPAPI Plugin
opera-9.25.20071214 A blazingly fast, full-featured,
 standards-compliant browse
opera-linuxplugins-9.21.20070510_1 Linux plugin support for the
 native Opera browser
 
 Does anyone have flash working with opera? If so, how? Where can I get
 libXThrStub.so.6?

I vaguely remembered someting about this and a google search
turned up this old PR:

  http://www.freebsd.org/cgi/query-pr.cgi?pr=ports%2F91900

The instructions in the referenced pkg-message for /etc/libmap.conf
disappeared after opera was subsequently updated seemingly because it
was no longer needed but I'm not sure of that.

I'm not sure that this will help you but its an easy thing to try
and back out if it doesn't.

Caveat:  I'm not an opera user and I don't use flash. ;-)

HTH,

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


Re: How to patch the kernel?

2008-01-04 Thread RW
On Fri, 4 Jan 2008 01:06:42 -0500
Aryeh Friedman [EMAIL PROTECTED] wrote:

 On 1/4/08, RW [EMAIL PROTECTED] wrote:
  On Thu, 3 Jan 2008 19:53:18 -0500
  Lyle Scott III [EMAIL PROTECTED] wrote:
 
   I don't have much experience patching anything, really.
  
   I was told by the port security/ipsec-tools to patch the kernel
   if i wanted to use nat-transversals.
  
   they provide me with
   http://vanhu.free.fr/FreeBSD/patch-natt-freebsd6-2007-05-31.diff,
   but I am now sure how to patch up the kernel so I can do a
   buildworld.
  
   Any help would be much appreciated.  I took a quick read over the
   patch manpage, but simply 'patch  file' in /usr/src askes me what
   file to patch...
 
  Try /usr/src/sys/ instead, that's where the kernel source is.
 
  ___
 
 Keep in mind the next time you do a cvsup it will nuke the patch so
 you will have to reapply it... now if you do this often enough you
 might want to consider keeping a local cvs repository that way when
 you update your sources it will not overwrite the patch

or you could just write a three line script that runs cvsup, then
reapplies the patch
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


disabling boot output

2008-01-04 Thread Omer Faruk Sen
Hi,

How can I disable boot messages so user can't see any boot message.
I think there is 4 part for that and each of them requires a different
configuration file to be edited.

1) boot
2) loader
3) kernel message
4) init scripts

Can anyone send me an URL that depicts those changes? Or at least where to
look for them. I think 2,3,4 can be done with configuration files but 1 step
requires some code change right?


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


Re: console server using a modern 1U box

2008-01-04 Thread Mykola Dzham
 Andrew Pantyukhin wrote:
 What are the options? Should we go the USB-RS232 way or are
 there PCI Express or PCI-X multiport cards supported by FreeBSD?
 This is a telecom-ish environment, so ease of rackmounting is a
 plus (consumer USB stuff is thus a PITA for us).
 
 Any comment will be appreciated!

Cisco 2511

-- 
Mykola Dzham, LEFT-(UANIC|RIPE)
JID: [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IPFW: Blocking me out. How to debug?

2008-01-04 Thread Nash Nipples
I don't think that below shall ever replace this: 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html
---

#1. i suggest you should really consider moving check-state earlier so 
legitimate packets get in asap.
#2. its never too late to start using tables
#/sbin/ipfw table 1 flush
#/sbin/ipfw table 1 add 0.0.0.0/8
#/sbin/ipfw table 1 add 1.0.0.0/8
#/sbin/ipfw table 1 add 2.0.0.0/8
#/sbin/ipfw table 1 add 10.0.0.0/8
#/sbin/ipfw table 1 add 127.0.0.0/8
#/sbin/ipfw table 1 add 169.254.0.0/16
#/sbin/ipfw table 1 add 192.0.2.0/24
#/sbin/ipfw table 1 add 192.168.0.0/16
#/sbin/ipfw table 1 add 172.16.0.0/12
#/sbin/ipfw table 1 add 192.88.99.0/24

#/sbin/ipfw table 1 add 198.18.0.0/15

#/sbin/ipfw table 1 add 224.0.0.0/3

#/sbin/ipfw table 1 add 240.0.0.0/4

add allow all from any to any via lo0

#3. all the hosts above are listed in a single rule:

add deny ip from any to any not antispoof in

add check-state

add deny log all from table\(1\) to any in
add deny log all from any to table\(1\) out

#no comments below

add allow tcp from any to me in established
add allow tcp from me to any out established

add deny log ip from any to any frag
add count icmp from any to any icmptypes 8 in
add allow icmp from any to any icmptypes 0,8,3,11
add allow udp from any to any 33434-34458 in
add allow udp from any 33434-34458 to any out
add allow udp from me to any 53 out keep-state
add allow udp from any to me 53 in keep-state 
add allow tcp from any to me ssh setup
add allow tcp from me to any ssh setup
add allow tcp from any to me http setup
add allow tcp from me to any http setup
add allow tcp from any to me https setup
add allow tcp from me to any https setup
add allow tcp from any to me dst-port 8443 in setup
add allow tcp from any to me pop3 in setup
add allow tcp from any to me pop3s in setup
add allow tcp from any to me smtp in setup
add allow tcp from me to any smtp out setup
add allow tcp from any to me smtps in setup
add allow tcp from me to any smtps out setup
add allow tcp from any to me imap in setup
add allow tcp from any to me imaps in setup
add allow tcp from any to me ftp in setup
add allow tcp from me to any ftp out setup
add allow tcp from any to me ftp\-data in setup
add allow tcp from any ftp\-data to me setup out
add allow tcp from any to me 49152-65535 in setup
add allow tcp from any to me ftps in setup
add allow tcp from me to any ftps out setup
add allow udp from me ntp to 128.252.19.1 ntp out
add allow udp from 128.252.19.1 ntp to me ntp in
add allow tcp from me to any out setup uid root
add allow tcp from me to 64.131.90.31 dst-port 5224 out setup
add deny log udp from any to me in
add deny log udp from any to me out
add deny log udp from me to any in
add deny log udp from me to any out
add deny log tcp from any to me in
add deny log tcp from any to me out
add deny log tcp from me to any in
add deny log tcp from me to any out
add deny log all from any to any



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


freebsd-isp list

2008-01-04 Thread Brian
There was a group of about 10 spam messages that hit the above list 
between 2:20 and 5:50 am today pacific time.  Is Spamassassin or some 
other anti spam not on for that list?


Brian

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


Re: software raid 1 and recovery

2008-01-04 Thread Brian A. Seklecki

Google: nagios + seklecki + check_raid_gmirror

Also check out sysutils/smartmontools/

Cheers!

~BAS (Dealing with a fucked up gmirror raid 1 this morning)

On Fri, 2008-01-04 at 15:32 +, Robin Becker wrote:
 I set this system up using Dru Lavigne's recipe, but I don't really
 understand 
-- 
Brian A. Seklecki [EMAIL PROTECTED]
Collaborative Fusion, Inc.




IMPORTANT: This message contains confidential information and is intended only 
for the individual named. If the reader of this message is not an intended 
recipient (or the individual responsible for the delivery of this message to an 
intended recipient), please be advised that any re-use, dissemination, 
distribution or copying of this message is prohibited.  Please notify the 
sender immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system.


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


Opsware

2008-01-04 Thread Bob Bomar
Does anyone use something similar to Opsware to assist in managing their 
servers?  I have roughly 15-20 servers, Solaris, Fedora, OpenBSD and FreeBSD,
and I am looking for something that is similar to Opsware, but free/cheaper.

This is for a community college, and our budget is 0, so I'm pretty limited
on what I can buy.



pgp1Jk9XfeZyr.pgp
Description: PGP signature


software raid 1 and recovery

2008-01-04 Thread Robin Becker
I'm using software raid 1 on a 6.1 freebsd. This is a so called cold swap 
system, but I wonder how much it actually improves reliability. First off what 
should I be doing to detect error conditions and secondly what happens if the 
machine refuses to boot.


I set this system up using Dru Lavigne's recipe, but I don't really understand 
what happens if one of the drives starts to fail. I think there was some 
discussion about HD monitoring recently, but I can't seem to locate it.

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


changing mysql datadir

2008-01-04 Thread zbigniew szalbot

Hello,

Wonder if you know whether it is possible to change mysql server data 
dir from the default /var/db/mysql. I looked through my-small.cnf but 
found no option called datadir.


If anyone knows how to change or where to look for compile-time options 
to set a custom datadir, I'd very much appreciate a link. I was able to 
find Windows-related advice how to change the default datadir.


Thanks!

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


RE: changing mysql datadir

2008-01-04 Thread Barry Byrne
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 

 Wonder if you know whether it is possible to change mysql server data 
 dir from the default /var/db/mysql. I looked through my-small.cnf but 
 found no option called datadir.
 
 If anyone knows how to change or where to look for 
 compile-time options 
 to set a custom datadir, I'd very much appreciate a link. I 
 was able to 

Put the following in /etc/rc.conf

mysql_dbdir=/path/to/datadir

 - barry 

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


Re: Paging Matthew Seaman

2008-01-04 Thread Paul Schmehl
--On Friday, January 04, 2008 10:03:45 -0600 Tim Daneliuk 
[EMAIL PROTECTED] wrote:



Paul Schmehl wrote:

I figure if anyone knows the answer to this off the top of their head,
Matthew will.

I've been reading the man pages for du and df, but I can't find the
right combination.  I'd like to get the type of output that df -h gives
you but only for one mount point or even one directory.  Is there a tool
that can do that? (IOW, I'd like to run du -h but only get the totals
for directories.)



du -hd1


That's not what I'm looking for.  That will return *files* and directories one 
level deep.  I want directories *only* all levels deep.


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

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


ggatec hanging on 7.0-RC1/amd64

2008-01-04 Thread Hugo Silva

Hi,

I'm experiencing some problems while attempting to export a ZVOL with 
ggated on a gigabit network.



All servers are running FreeBSD 7.0-RC1 on amd64, and using bce NICs.



client# ggatec create -t 6 -u 0 172.16.100.200 /dev/zvol/storage/vol0

client# ls -l /dev/ggate*
crw-r-  1 root  operator0, 115 Jan  4 06:23 /dev/ggate0

client# newfs /dev/ggate0
load: 0.00  cmd: newfs 51187 [g_waitidle] 0.00u 0.00s 0% 792k
^C^C^C^C^C^C^C^C^C^C^C^C^C^C


The same happens with a file exported on a UFS filesystem (so it's not a 
ZFS problem):



client# ggatec create -u100 172.16.100.200 /usr/lol

client# dir /dev/ggate100
crw-r-  1 root  operator  -   0, 115 Jan  4 06:23 /dev/ggate100

client# newfs /dev/ggate100
load: 0.00  cmd: newfs 52306 [g_waitidle] 0.00u 0.00s 0% 792k
load: 0.00  cmd: newfs 52306 [g_waitidle] 0.00u 0.00s 0% 792k
load: 0.00  cmd: newfs 52306 [g_waitidle] 0.00u 0.00s 0% 792k
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z


After several killall -9 ggatec and ggatec -fuX (-uX will stop working 
after awhile with device busy, even though no ggatec process is using 
it anymore and the newfs process is also killed), the following happens:


# killall -9 ggatec
load: 0.00  cmd: killall 52400 [sysctl lock] 0.00u 0.00s 0% 244k
load: 0.00  cmd: killall 52400 [sysctl lock] 0.00u 0.00s 0% 244k
load: 0.00  cmd: killall 52400 [sysctl lock] 0.00u 0.00s 0% 244k

At this point, the machine is dead. It still replies to pings, but 
processes are definitely unkillable now and even trying to login via SSH 
doesn't work:


$ ssh client
load: 0.05  cmd: ssh 2127 [sbwait] 0.00u 0.00s 0% 3180k
[hangs forever]


/etc/gg.exports on the server:
client.ip/32 RW /dev/zvol/storage/vol0


Am I missing something terribly obvious ? I have done this many times 
before and never encountered this problem..


Regards,

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


Re: Paging Matthew Seaman

2008-01-04 Thread Tim Daneliuk

Paul Schmehl wrote:
I figure if anyone knows the answer to this off the top of their head, 
Matthew will.


I've been reading the man pages for du and df, but I can't find the 
right combination.  I'd like to get the type of output that df -h gives 
you but only for one mount point or even one directory.  Is there a tool 
that can do that? (IOW, I'd like to run du -h but only get the totals 
for directories.)




du -hd1
--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/

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


Re: how to suspend/wake-up a FreeBSD machine?

2008-01-04 Thread John Baldwin
On Friday 04 January 2008 03:13:20 am Ian Smith wrote:
 On Fri, 4 Jan 2008, Norberto Meijome wrote:
   On Sun, 30 Dec 2007 11:51:41 +0100
   Henrik Brix Andersen [EMAIL PROTECTED] wrote:
   
That depends largely on the hardware - on e.g. ThinkPads you need to
press the 'Fn' button to wake up the laptop after sleep.
   
   hmm i think it's not so much the Fn key, u need to do anything that
   triggers an ACPI event in the BIOS - like opening the lid , or
   pressing Fn. I *think* 'thinkVantage' blue btn should work too. 
 
 On my T23 I have suspend/wake on lid switch off (in BIOS), preferring to
 have to use the Fn key to wake.  No other keys do that on mine including
 the ThinkPad key, so then called.
 
 While consulting 'sysctl hw.acpi' about that I see:
 hw.acpi.lid_switch_state: NONE
 which I assume reflects my don't-do-that BIOS setting.

No, that's the FreeBSD default.

 And confirming:
 # sysctl hw.acpi.lid_switch_state=1   # (or =0)
 hw.acpi.lid_switch_state: NONE
 sysctl: hw.acpi.lid_switch_state: Invalid argument

This is because this sysctl is not an on/off, but it takes an Sx state to 
suspend to when you close the lid.  So if you set this to S1 it will try to 
enter S1 when you close the lid, etc.  For example:

sysctl hw.acpi.lid_switch_state=S3

Would make it enter S3 when you closed the lid.

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


Paging Matthew Seaman

2008-01-04 Thread Paul Schmehl
I figure if anyone knows the answer to this off the top of their head, Matthew 
will.


I've been reading the man pages for du and df, but I can't find the right 
combination.  I'd like to get the type of output that df -h gives you but only 
for one mount point or even one directory.  Is there a tool that can do that? 
(IOW, I'd like to run du -h but only get the totals for directories.)


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

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


Re: Customized FreeBSD CD (was: Can I install Free BSD latest version on my laptop with dual boot?)

2008-01-04 Thread manikandan . x . balachandran
Hi,

I am trying to install Free BSD on my Laptop, The boot disk is not 
detecting my HDD, i am using FUJITSU HDD 80GB, Y?

Some junk text is moving from bottom to top, 

Manikandan Balachandran
JPMC IB TO - Jupiter STS
Tel: +44 1202-325271
Cell: +44 7891649680 
Email: [EMAIL PROTECTED]
---
JPMorgan Chase, 18 Christchurch Road
Floor 1, Bournemouth, BH1 3BA , UK





Manolis Kiagias [EMAIL PROTECTED]
21/12/2007 02:35 PM
 
To: [EMAIL PROTECTED]
cc: freebsd-questions@freebsd.org
Subject:Re: Customized FreeBSD CD (was: Can I install Free 
BSD latest version on my laptop withdual boot?)


[EMAIL PROTECTED] wrote:

 Hi,

 Thanks for your immediate response

 Yes, I spend two days and found out there are lot of tips in your
 documentation thanks?

 After compiling the Free BSD Kernel and making some changes on my
 system then how do I make the installable CD/DVD from my source (My
 Free BSD) to distribute to others?

 One more question: Can I use ZFS on Free BSD?

 Cheers,
 B.Manikandan
 Bournemouth, UK
 

Please do not top post.

There are couple of ways to create a custom FreeBSD CD and you will find
them by simply googling. I have not tried any, but this one looks 
promising:

http://livecd.sourceforge.net/documentos.php

It is available in the ports collection too: /usr/ports/sysutils/livecd

ZFS will be available on FreeBSD 7.



-
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase  Co., its subsidiaries
and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase 
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Opsware

2008-01-04 Thread Bill Moran
In response to Bob Bomar [EMAIL PROTECTED]:

 Does anyone use something similar to Opsware to assist in managing their 
 servers?

You'll get better answers if you describe what you're trying to do, as
opposed to mentioning an obscure product and expecting people to do
their own research.

Best I can tell, you're looking for something ala cfengine or puppet?
http://www.cfengine.org/
http://reductivelabs.com/projects/puppet/

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Paging Matthew Seaman

2008-01-04 Thread Andy Greenwood

Paul Schmehl wrote:
--On Friday, January 04, 2008 10:03:45 -0600 Tim Daneliuk 
[EMAIL PROTECTED] wrote:



Paul Schmehl wrote:

I figure if anyone knows the answer to this off the top of their head,
Matthew will.

I've been reading the man pages for du and df, but I can't find the
right combination.  I'd like to get the type of output that df -h gives
you but only for one mount point or even one directory.  Is there a 
tool

that can do that? (IOW, I'd like to run du -h but only get the totals
for directories.)



du -hd1


That's not what I'm looking for.  That will return *files* and 
directories one level deep.  I want directories *only* all levels deep.



what about find . -type d | xargs du -h
Not exactly one command, but you could easily alias it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Paging Matthew Seaman

2008-01-04 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Paul Schmehl wrote:
 I figure if anyone knows the answer to this off the top of their head,
 Matthew will.

Fame at last!

 I've been reading the man pages for du and df, but I can't find the
 right combination.  I'd like to get the type of output that df -h gives
 you but only for one mount point or even one directory.  Is there a tool
 that can do that? (IOW, I'd like to run du -h but only get the totals
 for directories.)

Well, for a mount point, the command that will give you output like
'df -h' for a specific partition is (*ta da*) 'df -h' -- tell it a
file or directory and it will tell you all about the partition that
lives on:

% df -h /tmp
FilesystemSizeUsed   Avail Capacity  Mounted on
/dev/md0  248M 22K228M 0%/tmp

For an arbitrary directory, I assume you want the du(1) style total
space usage figures but in the 'human readable' style?  'du -hs' does
that if you tell it the directory name:

% du -hs /tmp
 22K/tmp

As others have suggested else thread, there are a variety of cunning
find + xargs combinations for generating a list of directories and
feeding the list into du(1) automatically.

But all this seems to me to be pretty clearly explained in the du(1)
and df(1) man pages so I've probably completely misunderstood what you
are actually asking for. 

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHfmp78Mjk52CukIwRCBFOAJ4gMFtchgMczC9V8/MwpXrs00+L6QCfYwrU
R8Kev8R9wg2gkbJsZCuCxwg=
=djh7
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Paging Matthew Seaman

2008-01-04 Thread John Webster


--On Friday, January 4, 2008 10:28 AM -0600 Paul Schmehl [EMAIL PROTECTED] 
wrote:

 
 du -hd1
 
 That's not what I'm looking for.  That will return *files* and directories 
 one level deep.  I want directories *only* all levels deep.
 

Would the following work?

find /path/to/directories -type d -print0 | xargs -0 du -sh


 -- 
 Paul Schmehl ([EMAIL PROTECTED])
 Senior Information Security Analyst
 The University of Texas at Dallas
 http://www.utdallas.edu/ir/security/
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 




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


How to achieve auto-shutdown of hard drive on old AT machine.

2008-01-04 Thread David M. Patronis
I have 6.2 installed on an ancient AT machine. I'd like to have the OS 
shut off the hard drive when I halt the system from the KDE interface. 
What do I edit, and what code do I use to achieve this?


Machine specs, if relevant:

GA-586TX2 (Gigabyte) Motherboard
AMD K-6/2 350Mhz CPU (running at 233Mhz.)
256MB of PC100 SDRAM (running at 66Mhz)
10GB IBM Hard Drive
3Com Etherlink III ISA NIC
AWE64 Creative ISA Sound Card
Some very, very, old ATI PCI graphics card I haven't really inspected 
that closely.


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


The Complete FreeBSD: errata and addenda

2008-01-04 Thread Greg Lehey
The trouble with books is that you can't update them the way you can a web page
or any other online documentation.  The result is that most leading edge
computer books are out of date almost before they are printed.  Unfortunately,
The Complete FreeBSD, published by O'Reilly, is no exception.  Inevitably, a
number of bugs and changes have surfaced.

The Complete FreeBSD has been through a total of five editions, including its
predecessor Installing and Running FreeBSD.  Two of these have been reprinted
with corrections.  I maintain a series of errata pages.  Start at
http://www.lemis.com/errata-4.html to find out how to get the errata
information.

Note also that the book has now been released for free download in PDF
form.  Instead of downloading the changed pages, you may prefer to
download the entire book.  See http://www.lemis.com/grog/Documentation/CFBSD/ 
for more information.

Have you found a problem with the book, or maybe something confusing?
Please let me know: I'm no longer constantly updating it, but I may be
able to help

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


How to get best results from FreeBSD-questions

2008-01-04 Thread Greg Lehey

How to get the best results from FreeBSD questions.
===

Last update $Date: 2005/08/10 02:21:44 $

This is a regular posting to the FreeBSD questions mailing list.  If
you got it in answer to a message you sent, it means that the sender
thinks that at least one of the following things was wrong with your
message:

- You left out a subject line, or the subject line was not appropriate.
- You formatted it in such a way that it was difficult to read.
- You asked more than one unrelated question in one message.
- You sent out a message with an incorrect date, time or time zone.
- You sent out the same message more than once.
- You sent an 'unsubscribe' message to FreeBSD-questions.

If you have done any of these things, there is a good chance that you
will get more than one copy of this message from different people.
Read on, and your next message will be more successful.

This document is also available on the web at
http://www.lemis.com/questions.html.

=

Contents:

I:Introduction
II:   How to unsubscribe from FreeBSD-questions
III:  Should I ask -questions or -hackers?
IV:   How to submit a question to FreeBSD-questions
V:How to answer a question to FreeBSD-questions

I: Introduction
===

This is a regular posting aimed to help both those seeking advice from
FreeBSD-questions (the newcomers), and also those who answer the
questions (the hackers).

   Note that the term hacker has nothing to do with breaking
   into other people's computers.  The correct term for the latter
   activity is cracker, but the popular press hasn't found out
   yet.  The FreeBSD hackers disapprove strongly of cracking
   security, and have nothing to do with it.

In the past, there has been some friction which stems from the
different viewpoints of the two groups.  The newcomers accused the
hackers of being arrogant, stuck-up, and unhelpful, while the hackers
accused the newcomers of being stupid, unable to read plain English,
and expecting everything to be handed to them on a silver platter.  Of
course, there's an element of truth in both these claims, but for the
most part these viewpoints come from a sense of frustration.

In this document, I'd like to do something to relieve this frustration
and help everybody get better results from FreeBSD-questions.  In the
following section, I recommend how to submit a question; after that,
we'll look at how to answer one.

II:  How to unsubscribe from FreeBSD-questions
==

When you subscribed to FreeBSD-questions, you got a welcome message
from [EMAIL PROTECTED]  In this message, amongst
other things, it told you how to unsubscribe.  Here's a typical
message:

  Welcome to the freebsd-questions@freebsd.org mailing list!

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED]
  
(obviously, substitute your mail address for [EMAIL PROTECTED]).  You can
also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]
  
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including
changing the password, itself) or to unsubscribe.
  
Normally, Mailman will remind you of your freebsd.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

  Here's the general information for the list you've
  subscribed to, in case you don't already have it:

  FREEBSD-QUESTIONS   User questions
  This is the mailing list for questions about FreeBSD.  You should not
  send how to questions to the technical lists unless you consider the
  question to be pretty technical.

Normally, unsubscribing is even simpler than the message suggests: you
don't need to specify your mail ID unless it is different from the one
which you specified when you subscribed.

If Majordomo replies and tells you (incorrectly) that you're not on
the list, this may mean one of two things:

  1.  You have changed your mail ID since you subscribed.  That's where
  keeping the original message from majordomo comes in handy.  For
  example, the sample message above shows my mail ID as
  [EMAIL PROTECTED]  Since then, I have changed it to
  [EMAIL PROTECTED]  If I were to try to remove [EMAIL PROTECTED] from
  the list, it would fail: I would have to specify the name with
  which I joined.

  2.  You're subscribed to a mailing list which is subscribed to
  

Re: Paging Matthew Seaman

2008-01-04 Thread Paul Schmehl
--On Friday, January 04, 2008 17:18:51 + Matthew Seaman 
[EMAIL PROTECTED] wrote:



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Paul Schmehl wrote:

I figure if anyone knows the answer to this off the top of their head,
Matthew will.


Fame at last!



Oh, you've been famous for a while here.  :-)


I've been reading the man pages for du and df, but I can't find the
right combination.  I'd like to get the type of output that df -h gives
you but only for one mount point or even one directory.  Is there a tool
that can do that? (IOW, I'd like to run du -h but only get the totals
for directories.)


Well, for a mount point, the command that will give you output like
'df -h' for a specific partition is (*ta da*) 'df -h' -- tell it a
file or directory and it will tell you all about the partition that
lives on:

% df -h /tmp
FilesystemSizeUsed   Avail Capacity  Mounted on
/dev/md0  248M 22K228M 0%/tmp



This only returns the totals for mount points, however.  Not what I was looking 
for.



For an arbitrary directory, I assume you want the du(1) style total
space usage figures but in the 'human readable' style?  'du -hs' does
that if you tell it the directory name:

% du -hs /tmp
 22K/tmp



You are more adept at understanding man pages than I.  I didn't get the -s 
switch.  However, it only returns the single file or directory that I specify. 
It's closer to what I wanted than df but not quite there.



As others have suggested else thread, there are a variety of cunning
find + xargs combinations for generating a list of directories and
feeding the list into du(1) automatically.



Yes, and I've concluded that's probably the only way I'm going to get what I 
want.



But all this seems to me to be pretty clearly explained in the du(1)
and df(1) man pages so I've probably completely misunderstood what you
are actually asking for.



Nope.  You understood.

Thanks to everyone that responded.  I'll tweak the suggestions until I get what 
I want or some near equivalent of it.


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

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


Re: Paging Matthew Seaman

2008-01-04 Thread Andreas Rudisch
On Fri, 04 Jan 2008 10:28:24 -0600
Paul Schmehl [EMAIL PROTECTED] wrote:

  du -hd1
 
 That's not what I'm looking for.  That will return *files* and directories 
 one 
 level deep.  I want directories *only* all levels deep.

What about:

du -hd100

Andreas
--
GnuPG key  : 0x2A573565|http://www.gnupg.org/howtos/de/
Fingerprint: 925D 2089 0BF9 8DE5 9166  33BB F0FD CD37 2A57 3565


pgpLp0wpjjkR1.pgp
Description: PGP signature


Re: Finally, Flash seems to be working for Me :)

2008-01-04 Thread matt donovan
I find that flash7 as always worked for me, I know some people are trying to
get flash9 working but it's a lot of work since it seems to be a memory bug
in flash9 or npviewer.bin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Opera, Flash and the stench of failure...

2008-01-04 Thread RW
On Fri, 4 Jan 2008 06:16:59 -0700
Modulok [EMAIL PROTECTED] wrote:

 Seeing the thread about flash with mozilla, I thought, a flash plugin
 with opera would be cool. Last night I tried to get flash working
 with opera. I failed. With native opera, I cannot get any plugins to
 work. Here is what I know:
 
 1. What opera bitches about:
Could not start operapluginwrapper.
Plugins will not work correctly.

FWIW I only started seeing this when I moved to FreeBSD 7 a few weeks
ago. Before that Flash9 + Opera worked as well (or as badly) as it does
in Firefox. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


racoon saying local address is already in use

2008-01-04 Thread Lyle Scott III
I am trying to setup FreeBSD 6.2 + ipsec-tool + pf to talk to a sonicwall
via vpn

172.16.5.0/24  [lan]-[freebsd] 66.66.66.66  [internet]-
99.99.99.99 [sonicwall]-- 192.168.50.0/24

I am getting an error in /var/log/racoon.log that 172.16.5.1 is 'already in
use'.  I have verified that there are no racoon processes and start it up to
the same result.  Is there something  I am missing?

cat /var/log/racoon.log
2008-01-04 14:16:59: INFO: @(#)ipsec-tools 0.7 (
http://ipsec-tools.sourceforge.net)
2008-01-04 14:16:59: INFO: @(#)This product linked OpenSSL 0.9.7e-p1 25 Oct
2004 (http://www.openssl.org/)
2008-01-04 14:16:59: INFO: Reading configuration from
/usr/local/etc/racoon/racoon.conf
2008-01-04 14:16:59: ERROR: failed to bind to address 172.16.5.1[500]
(Address already in use).

cat /usr/local/etc/racoon/racoon.conf
# $KAME: racoon.conf.sample,v 1.28 2002/10/18 14:33:28 itojun Exp $
path include /usr/local/etc/racoon ;
path pre_shared_key /usr/local/etc/racoon/psk.txt;
#path certificate /usr/local/openssl/certs ;

# Padding values. DONT CHANGE
padding
{
maximum_length 20;  # maximum padding length.
randomize off;  # enable randomize length.
strict_check off;   # enable strict check.
exclusive_tail off; # extract last one octet.
}
timer
{
counter 5;
interval 20 sec;
persend 1;
phase1 30 sec;
phase2 15 sec;
}

#log debug;
log notify;

#listen
#{
#   isakmp  172.16.5.1;
#}

remote anonymous
{
exchange_mode aggressive;
my_identifier address 65.184.55.226;
peers_identifier address 24.168.243.54;
lifetime time 28800 sec;
# phase 1 proposal (for ISAKMP SA)
proposal {
encryption_algorithm 3des;
hash_algorithm md5;
authentication_method pre_shared_key;
dh_group 2;
}
proposal_check obey;
}

# phase 2 proposal (for IPsec SA).
sainfo anonymous
{
pfs_group 2;
lifetime time 28800 sec;
encryption_algorithm 3des;
authentication_algorithm hmac_md5;
compression_algorithm deflate ;
}

cat /etc/ipsec.conf
flush;
spdflush;
spdadd 172.16.5.0/24 192.168.50.0/24 any -P out ipsec esp/tunnel/65.184.x.x-
24.168.x.x/require;
spdadd 192.168.50.0/24 172.16.5.0/24 any -P in ipsec esp/tunnel/24.168.x.x-
65.184.x.x/require;

cat /etc/rc.conf
gif_interfaces=gif0
gifconfig_gif0=65.184.x.x 24.168.x.x
ifconfig_gif0=inet 172.16.5.1 192.168.50.1 netmask 0x
static_routes=vpn
route_vpn=192.168.50.0 192.168.50.1 netmask 255.255.255.0
racoon_enable=YES
racoon_flags=-l /var/log/racoon.log
ipsec_enable=YES
ipsec_file=/etc/ipsec.conf

-- 
Lyle Scott, III
http://www.lylescott.ws
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sun Fire X4600 Server FreeBSD

2008-01-04 Thread David Robillard
 Those who have experience with  Sun Fire X4600 Server  FreeBSD, please 
 respond.

Hi Susanth,

Your best option is to contact your Sun sales rep and arrange a test
of the system.
Sun and it's resellers usually grant access to their hardware at their
facilities for you to try before you buy.
In this way you can use the FreeBSD/amd64 install CD and perform a
real life test of the x4600.

David
-- 
David Robillard
UNIX systems administrator  Oracle DBA
CISSP, RHCE  Sun Certified Security Administrator
Montreal: +1 514 966 0122
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Opsware

2008-01-04 Thread Bob Bomar
On Fri, Jan 04, 2008 at 11:30:44AM -0500, Bill Moran wrote:
 In response to Bob Bomar [EMAIL PROTECTED]:
 
  Does anyone use something similar to Opsware to assist in managing their 
  servers?
 
 You'll get better answers if you describe what you're trying to do, as
 opposed to mentioning an obscure product and expecting people to do
 their own research.
 
 Best I can tell, you're looking for something ala cfengine or puppet?
 http://www.cfengine.org/
 http://reductivelabs.com/projects/puppet/
 

Those look like they will help.

Basically I am looking for a way to help automate patching, installing of 
software, audits, etc...


pgp7v6ZQIpzSp.pgp
Description: PGP signature


Re: Paging Matthew Seaman

2008-01-04 Thread Paul Schmehl
--On Friday, January 04, 2008 13:35:56 -0500 Jerry McAllister [EMAIL PROTECTED] 
wrote:



On Fri, Jan 04, 2008 at 12:03:51PM -0600, Paul Schmehl wrote:


--On Friday, January 04, 2008 17:18:51 + Matthew Seaman
[EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Paul Schmehl wrote:
 I figure if anyone knows the answer to this off the top of their head,
 Matthew will.

 Fame at last!


Oh, you've been famous for a while here.  :-)

 I've been reading the man pages for du and df, but I can't find the
 right combination.  I'd like to get the type of output that df -h gives
 you but only for one mount point or even one directory.  Is there a tool
 that can do that? (IOW, I'd like to run du -h but only get the totals
 for directories.)

 Well, for a mount point, the command that will give you output like
 'df -h' for a specific partition is (*ta da*) 'df -h' -- tell it a
 file or directory and it will tell you all about the partition that
 lives on:

 % df -h /tmp
 FilesystemSizeUsed   Avail Capacity  Mounted on
 /dev/md0  248M 22K228M 0%/tmp


This only returns the totals for mount points, however.  Not what I was
looking for.

 For an arbitrary directory, I assume you want the du(1) style total
 space usage figures but in the 'human readable' style?  'du -hs' does
 that if you tell it the directory name:

 % du -hs /tmp
 22K/tmp


You are more adept at understanding man pages than I.  I didn't get the
-s switch.  However, it only returns the single file or directory that I
specify. It's closer to what I wanted than df but not quite there.

 As others have suggested else thread, there are a variety of cunning
 find + xargs combinations for generating a list of directories and
 feeding the list into du(1) automatically.


Yes, and I've concluded that's probably the only way I'm going to get what
I want.

 But all this seems to me to be pretty clearly explained in the du(1)
 and df(1) man pages so I've probably completely misunderstood what you
 are actually asking for.


Nope.  You understood.

Thanks to everyone that responded.  I'll tweak the suggestions until I get
what I want or some near equivalent of it.


I may be missing what you want, but I try CDing to the directory
and then doing the du -hs *eg
  cd /tmp
  du -hs *

It seems to get it when naming the directory doesn't.



Thanks, Jerry.  This turns out to be quite useful - actually a better solution 
than what I had in mind.


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

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


Re: Opera, Flash and the stench of failure...

2008-01-04 Thread Modulok
I added the following to /etc/libmap.conf, as per suggested. (Thank you.)
   [/usr/local/share/opera/plugins/operapluginwrapper]
   libXThrStub.so.6  libXtst.so.6

The error message disappeared, but the flash plugin still does not
register in the plugins list. I have a symlink to the
libflashplayer.so in a directory that opera searches,
/usr/local/lib/npapi/linux-flashplugin/, but still no go. When I
attempt to, load new plugins, opera spits the following to the
terminal: ELF binary type 0 not known.

 FWIW I only started seeing this when I moved to FreeBSD 7 a few weeks
 ago. Before that Flash9 + Opera worked as well (or as badly) as it does
 in Firefox.

I'm using FreeBSD 7.0-RC1, because the FreeBSD 6 variants I tried
refused to boot on this system. (A laptop, with problems.)

Ideas? Thanks for the help thus far.
-Modulok-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Paging Matthew Seaman

2008-01-04 Thread Jerry McAllister
On Fri, Jan 04, 2008 at 12:03:51PM -0600, Paul Schmehl wrote:

 --On Friday, January 04, 2008 17:18:51 + Matthew Seaman 
 [EMAIL PROTECTED] wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 Paul Schmehl wrote:
 I figure if anyone knows the answer to this off the top of their head,
 Matthew will.
 
 Fame at last!
 
 
 Oh, you've been famous for a while here.  :-)
 
 I've been reading the man pages for du and df, but I can't find the
 right combination.  I'd like to get the type of output that df -h gives
 you but only for one mount point or even one directory.  Is there a tool
 that can do that? (IOW, I'd like to run du -h but only get the totals
 for directories.)
 
 Well, for a mount point, the command that will give you output like
 'df -h' for a specific partition is (*ta da*) 'df -h' -- tell it a
 file or directory and it will tell you all about the partition that
 lives on:
 
 % df -h /tmp
 FilesystemSizeUsed   Avail Capacity  Mounted on
 /dev/md0  248M 22K228M 0%/tmp
 
 
 This only returns the totals for mount points, however.  Not what I was 
 looking for.
 
 For an arbitrary directory, I assume you want the du(1) style total
 space usage figures but in the 'human readable' style?  'du -hs' does
 that if you tell it the directory name:
 
 % du -hs /tmp
  22K/tmp
 
 
 You are more adept at understanding man pages than I.  I didn't get the 
 -s switch.  However, it only returns the single file or directory that I 
 specify. It's closer to what I wanted than df but not quite there.
 
 As others have suggested else thread, there are a variety of cunning
 find + xargs combinations for generating a list of directories and
 feeding the list into du(1) automatically.
 
 
 Yes, and I've concluded that's probably the only way I'm going to get what 
 I want.
 
 But all this seems to me to be pretty clearly explained in the du(1)
 and df(1) man pages so I've probably completely misunderstood what you
 are actually asking for.
 
 
 Nope.  You understood.
 
 Thanks to everyone that responded.  I'll tweak the suggestions until I get 
 what I want or some near equivalent of it.

I may be missing what you want, but I try CDing to the directory
and then doing the du -hs *eg
  cd /tmp
  du -hs *

It seems to get it when naming the directory doesn't.

jerry


 
 -- 
 Paul Schmehl ([EMAIL PROTECTED])
 Senior Information Security Analyst
 The University of Texas at Dallas
 http://www.utdallas.edu/ir/security/
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


OT: fixing a broken key

2008-01-04 Thread Aryeh Friedman
After cleaning my keyboard by removing the keys and using a damp paper
towel to clean the keys and the area between contacts (there is a
barrier between the area under the keys and the contact so it is very
unlikely the contacts got wet) my r key now registers as being
constantly pressed any ideas on how to correct this?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Annoying FreeBSD 6.2 behavior - takedown of VNC sessions

2008-01-04 Thread Clint Olsen
Since I've upgraded to 6.2-RELEASE, I've noticed that every few disconnects
(especially putting my laptop to sleep while still connected) while
connecting remotely to a VNC hosted on FreeBSD, it tanks my gnome-session
entirely.  I've tried a couple variations (exec, background or not), but
this never used to happen with 5.4-STABLE.  I use VNC specifically for the
purpose of being able to disconnect and not have it crash my windowing
sessions.

Any suggestions would be appreciated.

FreeBSD belle.0lsen.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 
UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP  i386

Thanks,

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


Re: Opsware

2008-01-04 Thread Kurt Buff
On Jan 4, 2008 8:30 AM, Bill Moran [EMAIL PROTECTED] wrote:
 In response to Bob Bomar [EMAIL PROTECTED]:

  Does anyone use something similar to Opsware to assist in managing their
  servers?

 You'll get better answers if you describe what you're trying to do, as
 opposed to mentioning an obscure product and expecting people to do
 their own research.

 Best I can tell, you're looking for something ala cfengine or puppet?
 http://www.cfengine.org/
 http://reductivelabs.com/projects/puppet/

Possibly also bcfg2 from http://www.bcfg2.org, which is in ports.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ggatec hanging on 7.0-RC1/amd64

2008-01-04 Thread Kris Kennaway

Hugo Silva wrote:

Hi,

I'm experiencing some problems while attempting to export a ZVOL with 
ggated on a gigabit network.



All servers are running FreeBSD 7.0-RC1 on amd64, and using bce NICs.



client# ggatec create -t 6 -u 0 172.16.100.200 /dev/zvol/storage/vol0

client# ls -l /dev/ggate*
crw-r-  1 root  operator0, 115 Jan  4 06:23 /dev/ggate0

client# newfs /dev/ggate0
load: 0.00  cmd: newfs 51187 [g_waitidle] 0.00u 0.00s 0% 792k
^C^C^C^C^C^C^C^C^C^C^C^C^C^C


The same happens with a file exported on a UFS filesystem (so it's not a 
ZFS problem):



client# ggatec create -u100 172.16.100.200 /usr/lol

client# dir /dev/ggate100
crw-r-  1 root  operator  -   0, 115 Jan  4 06:23 /dev/ggate100

client# newfs /dev/ggate100
load: 0.00  cmd: newfs 52306 [g_waitidle] 0.00u 0.00s 0% 792k
load: 0.00  cmd: newfs 52306 [g_waitidle] 0.00u 0.00s 0% 792k
load: 0.00  cmd: newfs 52306 [g_waitidle] 0.00u 0.00s 0% 792k
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z 




After several killall -9 ggatec and ggatec -fuX (-uX will stop working 
after awhile with device busy, even though no ggatec process is using 
it anymore and the newfs process is also killed), the following happens:


# killall -9 ggatec
load: 0.00  cmd: killall 52400 [sysctl lock] 0.00u 0.00s 0% 244k
load: 0.00  cmd: killall 52400 [sysctl lock] 0.00u 0.00s 0% 244k
load: 0.00  cmd: killall 52400 [sysctl lock] 0.00u 0.00s 0% 244k

At this point, the machine is dead. It still replies to pings, but 
processes are definitely unkillable now and even trying to login via SSH 
doesn't work:


$ ssh client
load: 0.05  cmd: ssh 2127 [sbwait] 0.00u 0.00s 0% 3180k
[hangs forever]


/etc/gg.exports on the server:
client.ip/32 RW /dev/zvol/storage/vol0


Am I missing something terribly obvious ? I have done this many times 
before and never encountered this problem..


Please see

http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html

for how to proceed.

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


Re: Opera, Flash and the stench of failure...

2008-01-04 Thread Modulok
UPDATE:
The error about, ELF binary type 0 not known, was because I did
not have the kernel module, /boot/kernel/linux.ko, loaded. (Forgot to
add it to rc.conf before I turned the machine off last night, heh.)
Once loaded, no errors are reported. Unfortunately, the flash plugin
still does not register :(

Thoughts?
-Modulok-

On 1/4/08, Modulok [EMAIL PROTECTED] wrote:
 I added the following to /etc/libmap.conf, as per suggested. (Thank you.)
[/usr/local/share/opera/plugins/operapluginwrapper]
libXThrStub.so.6  libXtst.so.6

 The error message disappeared, but the flash plugin still does not
 register in the plugins list. I have a symlink to the
 libflashplayer.so in a directory that opera searches,
 /usr/local/lib/npapi/linux-flashplugin/, but still no go. When I
 attempt to, load new plugins, opera spits the following to the
 terminal: ELF binary type 0 not known.

  FWIW I only started seeing this when I moved to FreeBSD 7 a few weeks
  ago. Before that Flash9 + Opera worked as well (or as badly) as it does
  in Firefox.

 I'm using FreeBSD 7.0-RC1, because the FreeBSD 6 variants I tried
 refused to boot on this system. (A laptop, with problems.)

 Ideas? Thanks for the help thus far.
 -Modulok-

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


Re: Paging Matthew Seaman

2008-01-04 Thread Robert Marella
On Fri, 04 Jan 2008 13:30:00 -0600
Paul Schmehl [EMAIL PROTECTED] wrote:

 --On Friday, January 04, 2008 13:35:56 -0500 Jerry McAllister
 [EMAIL PROTECTED] wrote:
 
  On Fri, Jan 04, 2008 at 12:03:51PM -0600, Paul Schmehl wrote:
 
  --On Friday, January 04, 2008 17:18:51 + Matthew Seaman
  [EMAIL PROTECTED] wrote:
 
   -BEGIN PGP SIGNED MESSAGE-
   Hash: SHA256
  
   Paul Schmehl wrote:
   I figure if anyone knows the answer to this off the top of
   their head, Matthew will.
  
   Fame at last!
  
 
  Oh, you've been famous for a while here.  :-)
 
   I've been reading the man pages for du and df, but I can't find
   the right combination.  I'd like to get the type of output that
   df -h gives you but only for one mount point or even one
   directory.  Is there a tool that can do that? (IOW, I'd like to
   run du -h but only get the totals for directories.)
  
   Well, for a mount point, the command that will give you output
   like 'df -h' for a specific partition is (*ta da*) 'df -h' --
   tell it a file or directory and it will tell you all about the
   partition that lives on:
  
   % df -h /tmp
   FilesystemSizeUsed   Avail Capacity  Mounted on
   /dev/md0  248M 22K228M 0%/tmp
  
 
  This only returns the totals for mount points, however.  Not what
  I was looking for.
 
   For an arbitrary directory, I assume you want the du(1) style
   total space usage figures but in the 'human readable' style?
   'du -hs' does that if you tell it the directory name:
  
   % du -hs /tmp
   22K/tmp
  
 
  You are more adept at understanding man pages than I.  I didn't
  get the -s switch.  However, it only returns the single file or
  directory that I specify. It's closer to what I wanted than df but
  not quite there.
 
   As others have suggested else thread, there are a variety of
   cunning find + xargs combinations for generating a list of
   directories and feeding the list into du(1) automatically.
  
 
  Yes, and I've concluded that's probably the only way I'm going to
  get what I want.
 
   But all this seems to me to be pretty clearly explained in the
   du(1) and df(1) man pages so I've probably completely
   misunderstood what you are actually asking for.
  
 
  Nope.  You understood.
 
  Thanks to everyone that responded.  I'll tweak the suggestions
  until I get what I want or some near equivalent of it.
 
  I may be missing what you want, but I try CDing to the directory
  and then doing the du -hs *eg
cd /tmp
du -hs *
 
  It seems to get it when naming the directory doesn't.
 
 
 Thanks, Jerry.  This turns out to be quite useful - actually a better
 solution than what I had in mind.
 
No need to cd. 

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


VoIP and SSH

2008-01-04 Thread Andrew Falanga
Hi,

I don't understand this one and I'm hoping someone here might know.  My 
father's router wasn't forwarding connection requests for any port that we'd 
configured for sshd to listen on.  After changing out his linksys router and 
his Cable MODEM (the company said it was a very old modem), the problem was 
still present.  Oddly enough, if he unplugs his VoIP box from his network, 
all this problem goes away and connection requests over ssh and port 22 are 
forwarded fine.  With the VoIP box present, it doesn't work.

Neither the FreeBSD machine or the VoIP box share IPs, but it doesn't work 
with the VoIP in the network.  Any ideas?

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


Re: outgoing mail STOPPED.

2008-01-04 Thread Gary Kline
On Thu, Jan 03, 2008 at 05:48:06PM -0500, Bill Moran wrote:
 In response to Gary Kline [EMAIL PROTECTED]:
 
  On Thu, Jan 03, 2008 at 05:06:49PM -0500, Bill Moran wrote:
   In response to Gary Kline [EMAIL PROTECTED]:
   

I stumpped.   I get incomiing ail, but nothing gets out from my 
private networked servers. Anybody know where to start figuring 
out why??
   
   Have you checked /var/log/maillog?
 
 Bill Moran
 http://www.potentialtech.com

The two lines you suggested I add to my .cf file idn't work,
Bill, but it was a  start at least.  
Somehow I managed to screw up even incoming mail on 
sage==ns1.  And most or all of my other internal servers 
are hosed too. TO get mail flowing again, at least incoming, I
retrieved that last sendmail from RCS and restarted mail.

I'm hoping that somebody can clue me in. It may be a peermissions 
problem. But where/ and why would this  be
a SYSERR problem. For instance, from my new server, when I try to send 
mail to my DNS server, the following is what is 
reported in maillog:



Jan  4 13:25:45 tao sendmail[18706]: m04LPjIr018706: SYSERR(kline): collect: 
Cannot write ./dfm04LPjIr018706 (bfcommit, uid=1004, gid=25): Permission denied
Jan  4 13:25:45 tao sendmail[18706]: m04LPjIr018706: from=kline, size=543, 
class=0, nrcpts=1, [EMAIL PROTECTED]
Jan  4 13:25:45 tao sendmail[18706]: m04LPjIr018706: SYSERR(kline): queueup: 
cannot create queue file ./qfm04LPjIr018706, euid=1004, fd=-1, fp=0x0: 
Permission denied


Anybody know how I messed up? ---This is no excuse, but because 
of the recent build problems I did wholesale ``portupgrades -af''
(**sigh**)

Why cannot creat the queue files??

gary





-- 
Gary Kline  Seattle BSD Users' Group (seabug)  | [EMAIL PROTECTED]
Thought Unlimited Org's Alternate Email Site
http://www.magnesium.net/~kline
   To live is not a necessity; but to live honorably...is a necessity. -Kant

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


Re: VoIP and SSH

2008-01-04 Thread usleepless
On Jan 4, 2008 9:29 PM, Ryan Phillips [EMAIL PROTECTED] wrote:
 Andrew Falanga [EMAIL PROTECTED] said:
  Hi,
 
  I don't understand this one and I'm hoping someone here might know.  My
  father's router wasn't forwarding connection requests for any port that we'd
  configured for sshd to listen on.  After changing out his linksys router and
  his Cable MODEM (the company said it was a very old modem), the problem was
  still present.  Oddly enough, if he unplugs his VoIP box from his network,
  all this problem goes away and connection requests over ssh and port 22 are
  forwarded fine.  With the VoIP box present, it doesn't work.
 
  Neither the FreeBSD machine or the VoIP box share IPs, but it doesn't work
  with the VoIP in the network.  Any ideas?

 Does the VoIP box provide DHCP?  Perhaps that conflicts with the router's
 DHCP service.

does the voip-box provide a ssh service? is it using upnp to
reconfigure the modem?

regards,

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


Re: VoIP and SSH

2008-01-04 Thread Ryan Phillips
Andrew Falanga [EMAIL PROTECTED] said:
 Hi,
 
 I don't understand this one and I'm hoping someone here might know.  My 
 father's router wasn't forwarding connection requests for any port that we'd 
 configured for sshd to listen on.  After changing out his linksys router and 
 his Cable MODEM (the company said it was a very old modem), the problem was 
 still present.  Oddly enough, if he unplugs his VoIP box from his network, 
 all this problem goes away and connection requests over ssh and port 22 are 
 forwarded fine.  With the VoIP box present, it doesn't work.
 
 Neither the FreeBSD machine or the VoIP box share IPs, but it doesn't work 
 with the VoIP in the network.  Any ideas?

Does the VoIP box provide DHCP?  Perhaps that conflicts with the router's
DHCP service.

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


Re: Paging Matthew Seaman

2008-01-04 Thread Jerry McAllister
On Fri, Jan 04, 2008 at 10:03:18AM -1000, Robert Marella wrote:

 On Fri, 04 Jan 2008 13:30:00 -0600
 Paul Schmehl [EMAIL PROTECTED] wrote:
 
...

  
   Nope.  You understood.
  
   Thanks to everyone that responded.  I'll tweak the suggestions
   until I get what I want or some near equivalent of it.
  
   I may be missing what you want, but I try CDing to the directory
   and then doing the du -hs *eg
 cd /tmp
 du -hs *
  
   It seems to get it when naming the directory doesn't.
  
  
  Thanks, Jerry.  This turns out to be quite useful - actually a better
  solution than what I had in mind.
  
 No need to cd. 
 
 du -hs /tmp/*

Same difference I guess.   Just easier to remember to cd, plus
most of the time I need to get in to that directory anyway for
whatever reason I am doing the du in it.

jerry

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


Re: VoIP and SSH

2008-01-04 Thread Jon Krause

Andrew Falanga wrote:

Hi,

I don't understand this one and I'm hoping someone here might know.  My 
father's router wasn't forwarding connection requests for any port that we'd 
configured for sshd to listen on.  After changing out his linksys router and 
his Cable MODEM (the company said it was a very old modem), the problem was 
still present.  Oddly enough, if he unplugs his VoIP box from his network, 
all this problem goes away and connection requests over ssh and port 22 are 
forwarded fine.  With the VoIP box present, it doesn't work.


Neither the FreeBSD machine or the VoIP box share IPs, but it doesn't work 
with the VoIP in the network.  Any ideas?


  
The VoIP box is usually an MTA, many include a router/firewall also.  
It should have an admin interface usually 192.168.0.1 or 192.168.1.1  
The cable company technical support should be able to walk you through 
getting access (or check any documentation that came with the MTA)


They may or may not have port options (open or forward) that may allow 
ssh to work for you.


Good Luck,

Jon

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

  


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


Log archiving question

2008-01-04 Thread Walt Pawley
Once upon a time I messed with FreeBSD rather frequently. Then
things changed. Time passed and I'm back to tinkering with
things a little, though mostly from the perspective of a Mac OS
X user. In that distant past, I found that rotating log files
in the classical manner - changing the number and dropping any
log needing another digit - did not preserve data that was
needed to work on some of the problems we were seeing. So, I
changed the way rotating was done to never delete the logs in
question, instead naming the archived file uniquely with a time
code. Here's an example of such a modification for Mac OS X
Jaguar (a bit out of date but I use it 24/7) to deal with its
equivalent of /var/log/messages. It's offered just to show the
nature of the results.

--

echo 
echo -n Rotating log files:0
cd /var/log
for i in system.log; do
if [ -f ${i} ]; then
echo -n  ${i}
if [ -x /usr/bin/gzip ]; then gzext=.gz; else gzext=; fi
if [ -f ${i}.6${gzext} ]; then mv -f ${i}.6${gzext}
${i}.7${gzext}; fi
if [ -f ${i}.5${gzext} ]; then mv -f ${i}.5${gzext}
${i}.6${gzext}; fi
if [ -f ${i}.4${gzext} ]; then mv -f ${i}.4${gzext}
${i}.5${gzext}; fi
if [ -f ${i}.3${gzext} ]; then mv -f ${i}.3${gzext}
${i}.4${gzext}; fi
if [ -f ${i}.2${gzext} ]; then mv -f ${i}.2${gzext}
${i}.3${gzext}; fi
if [ -f ${i}.1${gzext} ]; then mv -f ${i}.1${gzext}
${i}.2${gzext}; fi
if [ -f ${i}.0${gzext} ]; then mv -f ${i}.0${gzext}
${i}.1${gzext}; fi
#   if [ -f ${i} ]; then mv -f ${i} ${i}.0  if [ -x
/usr/bin/gzip ]; then gzip -9 ${i}.0; fi; fi
#   touch ${i}  chmod 640 ${i}  chown root:admin ${i}
# 23 Sep 2007 1342
# Modification to keep system.log files by date rather than rotating them
# NOTE: no provision for deleting the accumulation is provided
X=$(date|awk '{print 0$3$2$6}')
X=${i}.${X:0-9}
mv -f ${i} ${X}
touch ${i}  chmod 640 ${i}  chown root:admin ${i}
if [ -x /usr/bin/gzip ]; then gzip -9 ${X}; fi
fi
done
if [ -f /var/run/syslog.pid ]; then kill -HUP $(cat
/var/run/syslog.pid | head -1); fi
echo 

--

Since I recently set up a PCBSD 1.4.1 machine to play with, I
see that log rotation is no longer done with scripts but
rather with newsyslog. If I read the man page correctly,
newsyslog rotates the log files in the good old way though it
seems to have a much more comprehensive approach as to when to
do it.

I've had no difficulties with the change made on my Mac OS X
Jaguar system - if it affects something, the something is
something I apparently don't do. So, all that preamble brings
me to my question. Are there things that modifying the archived
log data file names would interfere with?
-- 

Walter M. Pawley [EMAIL PROTECTED]
Wump Research  Company
676 River Bend Road, Roseburg, OR 97470
 541-672-8975
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: disabling boot output

2008-01-04 Thread Tilman Linneweh



* Omer Faruk Sen [ Jan 4, 2008 (15:20 )]:

How can I disable boot messages so user can't see any boot message.
I think there is 4 part for that and each of them requires a different
configuration file to be edited.

1) boot
2) loader
3) kernel message
4) init scripts

Can anyone send me an URL that depicts those changes? Or at least  
where to
look for them. I think 2,3,4 can be done with configuration files  
but 1 step

requires some code change right?


You can send the output to a serial port by putting

console=comconsole

into /boot/loader.conf.

See http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ 
serialconsole-setup.html

for details.

çok selamlar
arved

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


Re: VoIP and SSH

2008-01-04 Thread Andrew Falanga
On Friday 04 January 2008 14:55:00 Jon Krause wrote:
 Andrew Falanga wrote:
  Hi,
 
  I don't understand this one and I'm hoping someone here might know.  My
  father's router wasn't forwarding connection requests for any port that
  we'd configured for sshd to listen on.  After changing out his linksys
  router and his Cable MODEM (the company said it was a very old modem),
  the problem was still present.  Oddly enough, if he unplugs his VoIP box
  from his network, all this problem goes away and connection requests over
  ssh and port 22 are forwarded fine.  With the VoIP box present, it
  doesn't work.
 
  Neither the FreeBSD machine or the VoIP box share IPs, but it doesn't
  work with the VoIP in the network.  Any ideas?

 The VoIP box is usually an MTA, many include a router/firewall also.
 It should have an admin interface usually 192.168.0.1 or 192.168.1.1
 The cable company technical support should be able to walk you through
 getting access (or check any documentation that came with the MTA)

 They may or may not have port options (open or forward) that may allow
 ssh to work for you.

 Good Luck,

 Jon

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

Thanks to all for the suggestions.  I'll see what I can find.  Something one 
of you mentioned has me curious.  That being whether or not there is a DHCP 
server running.  My father's linksys router doles out IPs from 
192.168.1.100 - something (I forget now).  Once, while trying to get this 
working, he logged into his system (from his system) using ssh.  What was odd 
was that he was able to log into his system by using the IP address of 
192.168.100.101, but using ifconfig he'd always tell me that the IP was 
192.168.1.100.  I'm betting that his VoIP box must be doling out IPs as well 
as his Linksys router, or something like that.

Jon, what do you mean when you say, The 'VoIP box' is usually an MTA?  I'm 
used to MTA meaning Message Transfer Agent.  Is it the same in this case too?

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


Re: sendmail is broken, how do I fix

2008-01-04 Thread Andrew Falanga
On Wednesday 02 January 2008 14:18:53 Derek Ragona wrote:
 At 03:03 PM 1/2/2008, Andrew Falanga wrote:
   While you think there is nothing on that port something is running not
   letting that socket connection.  Try rebooting the system and see if
   the problem is still there.
  
-Derek
 
 I did try that too.  Didn't work.

 Have you tried telnet to the IP and port 25?  If it is sendmail, you can
 see that from the banner, also you can watch the maillog file in /var/log.

 I suspect you have another process tying up that port.

  -Derek

The problem seems to be sendmail itself.  Here's what I've done to isolate the 
problem.

1) changed /etc/rc.conf to NOT start sendmail or anything mail related
  -- sendmail (external stuff, the local daemon still starts in
   /etc/defaults/rc.conf)
  -- dovecot
  -- saslauthd

I know that saslauthd isn't exactly mail related but I installed it for 
sendmail

2) rebooted the computer (and verified that it did actually reboot by using 
uptime).  I'm not sitting in front of this computer, I'm ssh-ing into it.

3) once restarted, I wrote a little C program to open a socket and then bind 
the ip address 192.168.2.23 (the machines IP) and port 25 to that socket.  
The effectiveness of this program was verified using sockstat.  If necessary, 
I will post the source code, but didn't see much need to now.  The program 
worked and the bind(2) call made no complaints.

4) Stopped ALL sendmail processes (/etc/rc.d/sendmail stop)

5) edited /etc/rc.conf and re-enabled the external sendmail process

6) Started sendmail and now see the exact same problems in /var/log/maillog:  
see below

Jan  4 17:36:42 whitbap sm-mta[975]: starting daemon (8.13.8): 
[EMAIL PROTECTED]:30:00
Jan  4 17:36:42 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:42 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:36:42 whitbap sm-msp-queue[979]: starting daemon (8.13.8): 
[EMAIL PROTECTED]:30:00
Jan  4 17:36:42 whitbap sm-mta[978]: m010sNBM004564: 
to=[EMAIL PROTECTED], delay=3+23:42:19, xdelay=00:00:00, 
mailer=esmtp, pri=2555114, relay=mail02.interchangeusa.com. [63.251.210.81], 
dsn=4.0.0, stat=Deferred: Connection refused by mail02.interchangeusa.com.
Jan  4 17:36:47 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:47 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:36:52 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:52 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:36:57 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:57 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:02 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:02 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:07 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:07 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:12 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:12 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:17 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:17 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:22 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:22 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:27 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:27 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:32 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:32 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:32 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: server SMTP socket wedged: exiting

What does one do when sendmail is it's own worst enemy?

Any help is greatly appreciated because I don't understand at all what I could 
have done to this.  If necessary, I'll post my hostname.mc file for all to 
read.  Heck, I'll post whatever is necessary because this has to be working.

Andy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send 

one solved ; yet one new issue.

2008-01-04 Thread Gary Kline

People,

the reason the client queue couldn't be created was because the spool
directory was not set 770.  Nw, outgoing mail, locally is being 
refused. 
Cany anybody help me with these issues?



Jan  4 15:01:07 tao sendmail[21840]: m04N16F5021840: from=kline, size=549, 
class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
Jan  4 15:01:07 tao sendmail[21840]: m04N16F5021840: [EMAIL PROTECTED], 
ctladdr=kline (1004/1004), delay=00:00:01, xdelay=00:00:00, mailer=relay, 
pri=30549, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection 
refused by [127.0.0.1]


And::

Jan  4 15:08:19 tao sendmail[21855]: m04N8Jok021855: from=kline, size=543, 
class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
Jan  4 15:08:19 tao sendmail[21855]: m04N8Jok021855: [EMAIL PROTECTED], 
ctladdr=kline (1004/1004), delay=00:00:00, xdelay=00:00:00, mailer=relay, 
pri=30543, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection 
refused by [127.0.0.1]



-- 
Gary Kline  Seattle BSD Users' Group (seabug)  | [EMAIL PROTECTED]
Thought Unlimited Org's Alternate Email Site
http://www.magnesium.net/~kline
   To live is not a necessity; but to live honorably...is a necessity. -Kant

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


Re: one solved ; yet one new issue.

2008-01-04 Thread Jonathan Horne
how about the contents of /etc/mail/local-host-names?  is your domain listed, 
so that it will process mails?


- Message from [EMAIL PROTECTED] -



   People,

   the reason the client queue couldn't be created was because the spool
   directory was not set 770.  Nw, outgoing mail, locally is being refused.
   Cany anybody help me with these issues?



 Jan  4 15:01:07 tao sendmail[21840]: m04N16F5021840: from=kline,  
 size=549, class=0, nrcpts=1,  
 msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
 Jan  4 15:01:07 tao sendmail[21840]: m04N16F5021840:  
 [EMAIL PROTECTED], ctladdr=kline (1004/1004),  
 delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30549,  
 relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection  
 refused by [127.0.0.1]


   And::

 Jan  4 15:08:19 tao sendmail[21855]: m04N8Jok021855: from=kline,  
 size=543, class=0, nrcpts=1,  
 msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
 Jan  4 15:08:19 tao sendmail[21855]: m04N8Jok021855:  
 [EMAIL PROTECTED], ctladdr=kline (1004/1004),  
 delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30543,  
 relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection  
 refused by [127.0.0.1]



 --
 Gary Kline  Seattle BSD Users' Group (seabug)  | [EMAIL PROTECTED]
 Thought Unlimited Org's Alternate Email Site
   http://www.magnesium.net/~kline
To live is not a necessity; but to live honorably...is a necessity. -Kant

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



-- 
Jonathan Horne
http://www.dfwlp.org
[EMAIL PROTECTED]


This message was sent using MIMP, the Mobile Internet Messaging Program.

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


Re: sendmail is broken, how do I fix

2008-01-04 Thread Paul Schmehl
--On Friday, January 04, 2008 16:25:42 -0700 Andrew Falanga 
[EMAIL PROTECTED] wrote:



On Wednesday 02 January 2008 14:18:53 Derek Ragona wrote:

At 03:03 PM 1/2/2008, Andrew Falanga wrote:
  While you think there is nothing on that port something is running not
  letting that socket connection.  Try rebooting the system and see if
  the problem is still there.
 
   -Derek

 I did try that too.  Didn't work.

Have you tried telnet to the IP and port 25?  If it is sendmail, you can
see that from the banner, also you can watch the maillog file in /var/log.

I suspect you have another process tying up that port.

 -Derek


The problem seems to be sendmail itself.  Here's what I've done to isolate
the  problem.

1) changed /etc/rc.conf to NOT start sendmail or anything mail related
  -- sendmail (external stuff, the local daemon still starts in
   /etc/defaults/rc.conf)
  -- dovecot
  -- saslauthd

I know that saslauthd isn't exactly mail related but I installed it for
sendmail

2) rebooted the computer (and verified that it did actually reboot by using
uptime).  I'm not sitting in front of this computer, I'm ssh-ing into it.

3) once restarted, I wrote a little C program to open a socket and then bind
the ip address 192.168.2.23 (the machines IP) and port 25 to that socket.
The effectiveness of this program was verified using sockstat.  If necessary,
I will post the source code, but didn't see much need to now.  The program
worked and the bind(2) call made no complaints.

4) Stopped ALL sendmail processes (/etc/rc.d/sendmail stop)

5) edited /etc/rc.conf and re-enabled the external sendmail process

6) Started sendmail and now see the exact same problems in /var/log/maillog:
see below

Jan  4 17:36:42 whitbap sm-mta[975]: starting daemon (8.13.8):
[EMAIL PROTECTED]:30:00
Jan  4 17:36:42 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:42 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:36:42 whitbap sm-msp-queue[979]: starting daemon (8.13.8):
[EMAIL PROTECTED]:30:00
Jan  4 17:36:42 whitbap sm-mta[978]: m010sNBM004564:
to=[EMAIL PROTECTED], delay=3+23:42:19, xdelay=00:00:00,
mailer=esmtp, pri=2555114, relay=mail02.interchangeusa.com. [63.251.210.81],
dsn=4.0.0, stat=Deferred: Connection refused by mail02.interchangeusa.com.
Jan  4 17:36:47 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:47 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:36:52 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:52 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:36:57 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:57 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:02 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:02 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:07 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:07 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:12 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:12 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:17 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:17 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:22 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:22 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:27 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:27 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:32 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:32 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:32 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: server SMTP socket wedged: exiting

What does one do when sendmail is it's own worst enemy?

Any help is greatly appreciated because I don't understand at all what I
could  have done to this.  If necessary, I'll post my hostname.mc file for
all to  read.  Heck, I'll post whatever is necessary because this has to be
working.


With sendmail generating the errors above, post the results of this:
# sockstat | grep :25

--
Paul Schmehl ([EMAIL 

Re: one solved ; yet one new issue.

2008-01-04 Thread Roger B.A. Klorese

Gary Kline wrote:

Jan  4 15:01:07 tao sendmail[21840]: m04N16F5021840: from=kline, size=549, class=0, 
nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
Jan  4 15:01:07 tao sendmail[21840]: m04N16F5021840: [EMAIL PROTECTED], 
ctladdr=kline (1004/1004), delay=00:00:01, xdelay=00:00:00, mailer=relay, 
pri=30549, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection 
refused by [127.0.0.1]


And::

Jan  4 15:08:19 tao sendmail[21855]: m04N8Jok021855: from=kline, size=543, class=0, 
nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
Jan  4 15:08:19 tao sendmail[21855]: m04N8Jok021855: [EMAIL PROTECTED], 
ctladdr=kline (1004/1004), delay=00:00:00, xdelay=00:00:00, mailer=relay, 
pri=30543, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection 
refused by [127.0.0.1]



  




telnet 127.0.0.1 25
telnet actual-IP-address 25

Does either work?  The second but not the first?  If so, look at your 
config file to see if you're listening only on the actual IP address.

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


Re: sendmail is broken, how do I fix

2008-01-04 Thread Andrew Falanga


 With sendmail generating the errors above, post the results of this:
 # sockstat | grep :25


whitbap# /etc/rc.d/sendmail start
Starting sendmail.
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
whitbap# 

I kept on doing this until the daemon died with the same error as before.

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


Re: one solved ; yet one new issue.

2008-01-04 Thread Gary Kline
On Fri, Jan 04, 2008 at 05:45:36PM -0600, Jonathan Horne wrote:
 how about the contents of /etc/mail/local-host-names?  is your domain listed, 
 so that it will process mails?
 


no, it wasn't; thanks. i'll see


 
 - Message from [EMAIL PROTECTED] -
 
 
 
  People,
 
  the reason the client queue couldn't be created was because the spool
  directory was not set 770.  Nw, outgoing mail, locally is being refused.
  Cany anybody help me with these issues?
 
 
 
  Jan  4 15:01:07 tao sendmail[21840]: m04N16F5021840: from=kline,  
  size=549, class=0, nrcpts=1,  
  msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
  Jan  4 15:01:07 tao sendmail[21840]: m04N16F5021840:  
  [EMAIL PROTECTED], ctladdr=kline (1004/1004),  
  delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30549,  
  relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection  
  refused by [127.0.0.1]
 
 
  And::
 
  Jan  4 15:08:19 tao sendmail[21855]: m04N8Jok021855: from=kline,  
  size=543, class=0, nrcpts=1,  
  msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
  Jan  4 15:08:19 tao sendmail[21855]: m04N8Jok021855:  
  [EMAIL PROTECTED], ctladdr=kline (1004/1004),  
  delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30543,  
  relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection  
  refused by [127.0.0.1]
 
 
 
  --
  Gary Kline  Seattle BSD Users' Group (seabug)  | [EMAIL PROTECTED]
  Thought Unlimited Org's Alternate Email Site
  http://www.magnesium.net/~kline
 To live is not a necessity; but to live honorably...is a necessity. -Kant
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 
 
 -- 
 Jonathan Horne
 http://www.dfwlp.org
 [EMAIL PROTECTED]
 
 
 This message was sent using MIMP, the Mobile Internet Messaging Program.
 

-- 
Gary Kline  Seattle BSD Users' Group (seabug)  | [EMAIL PROTECTED]
Thought Unlimited Org's Alternate Email Site
http://www.magnesium.net/~kline
   To live is not a necessity; but to live honorably...is a necessity. -Kant

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


Re: one solved ; yet one new issue.

2008-01-04 Thread Gary Kline
On Fri, Jan 04, 2008 at 03:12:51PM -0800, Roger B.A. Klorese wrote:
 Gary Kline wrote:
 Jan  4 15:01:07 tao sendmail[21840]: m04N16F5021840: from=kline, size=549, 
 class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
 Jan  4 15:01:07 tao sendmail[21840]: m04N16F5021840: [EMAIL PROTECTED], 
 ctladdr=kline (1004/1004), delay=00:00:01, xdelay=00:00:00, mailer=relay, 
 pri=30549, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 
 Connection refused by [127.0.0.1]
 
 
  And::
 
 Jan  4 15:08:19 tao sendmail[21855]: m04N8Jok021855: from=kline, size=543, 
 class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
 Jan  4 15:08:19 tao sendmail[21855]: m04N8Jok021855: [EMAIL PROTECTED], 
 ctladdr=kline (1004/1004), delay=00:00:00, xdelay=00:00:00, mailer=relay, 
 pri=30543, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 
 Connection refused by [127.0.0.1]
 
 
 
   
 
 
 
 telnet 127.0.0.1 25
 telnet actual-IP-address 25
 
 Does either work?  The second but not the first?  If so, look at your 
 config file to see if you're listening only on the actual IP address.



Neither works; I thought the second mightt. *Which* config file?
I just finished editing my firewall, plus, reinitiallizing it.
.

p5 16:20 tao [3607] telnet 127.0.0.1 25  /var/log
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
p5 16:21 tao [3608] telnet 10.0.0.250 25 /var/log
Trying 10.0.0.250...
telnet: connect to address 10.0.0.250: Connection refused
telnet: Unable to connect to remote host
p5 16:21 tao [3609] 



-- 
Gary Kline  Seattle BSD Users' Group (seabug)  | [EMAIL PROTECTED]
Thought Unlimited Org's Alternate Email Site
http://www.magnesium.net/~kline
   To live is not a necessity; but to live honorably...is a necessity. -Kant

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


Re: one solved ; yet one new issue.

2008-01-04 Thread Roger B.A. Klorese

Gary Kline wrote:

Neither works; I thought the second mightt. *Which* config file?
  



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


Re: Paging Matthew Seaman

2008-01-04 Thread RW
On Fri, 4 Jan 2008 13:35:56 -0500
Jerry McAllister [EMAIL PROTECTED] wrote:


 I may be missing what you want, but I try CDing to the directory
 and then doing the du -hs *eg
   cd /tmp
   du -hs *

 It seems to get it when naming the directory doesn't.

Personally I tend to use du -hd1 rather than du -hs * 

* relies on shell expansion, so ignores top-level hidden directories,
and can show a lot of unwanted clutter from top-level files. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Install order?

2008-01-04 Thread David Reedy Jr

Hello all,

I'm very new to FreeBSD, just installed it for the first time maybe a 
week ago. I've redone it several times since, so feel comfortable in the 
VERY basics. I've got things like ntp, ftp, and ssh configured, no 
problem. Not worried about mail.


I'm setting this machine up as a local internet test server. I need to 
get Apache, MySQL and PHP installed, and I'm worried if there's a 
preferred /required order to get it to work right / at all. FWIW - I've 
checked the handbook, apache.org, php.net, and mysql.com. I keep feel 
like I'm going round in circles.


Also, I've noticed that some of the port versions on this site are a 
little newer that in my 6.2 release. Will I have problems installing 
these instead?


Thanks in advance.

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


Re: Install order?

2008-01-04 Thread Brian

David Reedy Jr wrote:

Hello all,

I'm very new to FreeBSD, just installed it for the first time maybe a 
week ago. I've redone it several times since, so feel comfortable in 
the VERY basics. I've got things like ntp, ftp, and ssh configured, no 
problem. Not worried about mail.


I'm setting this machine up as a local internet test server. I need to 
get Apache, MySQL and PHP installed, and I'm worried if there's a 
preferred /required order to get it to work right / at all. FWIW - 
I've checked the handbook, apache.org, php.net, and mysql.com. I keep 
feel like I'm going round in circles.


Also, I've noticed that some of the port versions on this site are a 
little newer that in my 6.2 release. Will I have problems installing 
these instead?


Thanks in advance.

Dave
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]
Older software has some risk, mainly that a flaw was discovered that a 
newer version fixes.  Most FreeBSD people use portsnap or cvsup to keep 
ports updated.  Portsnap is easier.  You'll want to use portupgrade, but 
there is funk you'lll run into if you try to pkg_add -r portupgrade.   
Instead, use portsnap to get a ports tree first, then cd 
/usr/ports/ports-mgmt/portupgrade then make install.




Brian

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


Re: Install order?

2008-01-04 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David Reedy Jr wrote:
 Hello all,

 I'm very new to FreeBSD, just installed it for the first time maybe
  a week ago. I've redone it several times since, so feel
 comfortable in the VERY basics. I've got things like ntp, ftp, and
 ssh configured, no problem. Not worried about mail.

 I'm setting this machine up as a local internet test server. I need
  to get Apache, MySQL and PHP installed, and I'm worried if there's
 a preferred /required order to get it to work right / at all. FWIW
 - I've checked the handbook, apache.org, php.net, and mysql.com. I
 keep feel like I'm going round in circles.

There is officially no preferred order... each port will pull in what
it needs.   For example just selecting the apache module  when
installing php will automatically drag in a configured and working
version of apache (at least if you want stuff on port 8080 [std port
is 80 so you will need to edit the config file slightly {you may also
want to move docroot to a more convient place also}])...

Now there are some known (very rare) exceptions to the above for
example if you install net-p2p/deluge and multimedia/miro you should
install deluge first (while hand configuring boost to compile with
boost-python [actually just some make flags] instead of plain boost)

 Also, I've noticed that some of the port versions on this site are
 a little newer that in my 6.2 release. Will I have problems
 installing these instead?


You shouldn't have an issue since almost all ports have existed (and
largely unmodified) since 6.2... that being said you should still
consider up grading to 7 if at all possible since it adds a lot of
stuff that makes general operation much smoother.


 Thanks in advance.

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



- --
Aryeh M. Friedman
FloSoft Systems, Java Developer Tools
http://www.flosoft-systems.com
Developer, not business, friendly.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHfxJljRvRjGmHRgQRAkB3AJ9J8MoZwhKgS3H33IorOqpbf8Sv8ACeNlg4
X1tr4LiGxX4iInBuOUzCYdU=
=pDsV
-END PGP SIGNATURE-

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


Re: Install order?

2008-01-04 Thread Chris Hill

On Fri, 4 Jan 2008, David Reedy Jr wrote:

I'm very new to FreeBSD, just installed it for the first time maybe a 
week ago. I've redone it several times since, so feel comfortable in 
the VERY basics.


Cool. Welcome!

Also, I've noticed that some of the port versions on this site are a 
little newer that in my 6.2 release. Will I have problems installing 
these instead?


The ports shown on the site are sometimes newer because the ported 
software has changed, and the port updated, since 6.2 was released.


Two ports I install on a new machine, before just about anything else, 
are sysutils/fastest_cvsup [1] and ports-mgmt/portupgrade. With 
portupgrade, I can use csup to get my ports up-to-date before installing 
anything else. That way I'll get the latest, or nearly so, version of 
apache or whatever.


[1] You'll see this notation a lot on this list. sysutils/fastest_cvsup 
means that you would do your 'make install' in 
/usr/ports/sysutils/fastest_cvsup.


To answer the question, you may or may not have problems depending on 
the specific port. For 6.2-RELEASE, I would guess that you're OK since 
it's relatively recent. But the more time passes, the fewer ports will 
install properly. I would suggest you get acquainted with port (and 
system) updating procedures early on; it will save you grief down the 
road. Now seems like a good time, since you have a new system with 
(presumably) nothing important on it yet.


HTH.

--
Chris Hill   [EMAIL PROTECTED]
** [ Busy Expunging | ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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 Aryeh M. Friedman
-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


 TIA



- --
Aryeh M. Friedman
FloSoft Systems, Java Developer Tools
http://www.flosoft-systems.com
Developer, not business, friendly.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHfx1UjRvRjGmHRgQRAi7iAJ4kFwUQRj18O1DSP6D8KrO/0sOzrwCfZkgv
zutJcCUMAlFfjpqhs5aF/Vw=
=wuvQ
-END PGP SIGNATURE-

___
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]


Re: batch rename

2008-01-04 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Shantanoo Mahajan wrote:

 On 05-Jan-08, at 11:31 AM, Aryeh M. Friedman 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


 tr will decapitalize all the letters in the string.

You can replace it with the following sed then sed s/^[A-Z]/[a-z]/


- --
Aryeh M. Friedman
FloSoft Systems, Java Developer Tools
http://www.flosoft-systems.com
Developer, not business, friendly.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHfyeujRvRjGmHRgQRAq93AKCX5RmMVI436s4fHnFL5Lbf7ZFu9QCfXnQi
BmYgPvB6m+1WlpeF9YXQd80=
=SsIF
-END PGP SIGNATURE-

___
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 Shantanoo Mahajan


On 05-Jan-08, at 12:16 PM, Aryeh M. Friedman wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Shantanoo Mahajan wrote:


On 05-Jan-08, at 11:31 AM, Aryeh M. Friedman 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




tr will decapitalize all the letters in the string.


You can replace it with the following sed then sed s/^[A-Z]/[a-z]/



In bash shell:

$ echo AsD | sed s/^[A-Z]/[a-z]/
[a-z]sD


I thought about this while sending earlier reply, but was unable to
get it working properly.

regards,
shantanoo

___
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 Shantanoo Mahajan


On 05-Jan-08, at 11:31 AM, Aryeh M. Friedman 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




tr will decapitalize all the letters in the string.

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


kernel: Fatal trap 12: page fault while in kernel mode

2008-01-04 Thread Zinevich Denis

Hi all.
Some problem with free.
I`ve got such mess in log:

Jan  4 22:47:09 fs kernel: Fatal trap 12: page fault while in kernel mode
Jan  4 22:47:09 fs kernel: fault virtual address= 0x3e
Jan  4 22:47:09 fs kernel: fault code = supervisor read, page not present
Jan  4 22:47:09 fs kernel: instruction pointer  = 0x20:0xc060cc24
Jan  4 22:47:09 fs kernel: stack pointer= 0x28:0xe529ac30
Jan  4 22:47:09 fs kernel: frame pointer= 0x28:0xe529ac34
Jan  4 22:47:09 fs kernel: code segment   = base 0x0, limit 0xf, 
type 0x1b

Jan  4 22:47:09 fs kernel: = DPL 0, pres 1, def32 1, gran 1
Jan  4 22:47:09 fs kernel: processor eflags = interrupt enabled, 
resume,IOPL = 0

Jan  4 22:47:09 fs kernel: current process  = 9 (thread taskq)
Jan  4 22:47:09 fs kernel: trap number  = 12
Jan  4 22:47:09 fs kernel: panic: page fault
Jan  4 22:47:09 fs kernel: Uptime: 4d0h37m10s
Jan  4 22:47:09 fs kernel: Physical memory: 2013 MB
Jan  4 22:47:09 fs kernel: Dumping 243 MB: 228 212 196 180 164 148 132 
116 100 84 68 52 36 20 4

Jan  4 22:47:09 fs kernel: Dump complete
Jan  4 22:47:09 fs kernel: Automatic reboot in 15 seconds - press a key 
on the console to abort

Jan  4 22:47:09 fs kernel: Rebooting...

Problem repeats for 6.2-RELEASE.

kgdb kernel.debug /var/crash/vmcore.0  - returns this:

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x3e
fault code  = supervisor read, page not present
instruction pointer = 0x20:0xc060cc24
stack pointer   = 0x28:0xe529ac30
frame pointer   = 0x28:0xe529ac34
code segment= base 0x0, limit 0xf, type 0x1b
   = DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 9 (thread taskq)
trap number = 12
panic: page fault
Uptime: 4d0h37m10s
Physical memory: 2013 MB
Dumping 243 MB: 228 212 196 180 164 148 132 116 100 84 68 52 36 20 4

#0  doadump () at pcpu.h:195
195 __asm __volatile(movl %%fs:0,%0 : =r (td));

I think it`s hardware problem. This machine has been working for about 9 
months with no problems but I dont know how to correctly find the 
problem.


uname -a:
FreeBSD fs.ngc.net.ua 8.0-CURRENT FreeBSD 8.0-CURRENT #3: Mon Dec 31 
05:07:25 EET 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FS  i386

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


Re: one solved ; yet one new issue.

2008-01-04 Thread Gary Kline
On Fri, Jan 04, 2008 at 05:29:22PM -0800, Roger B.A. Klorese wrote:
 Gary Kline wrote:
  Neither works; I thought the second mightt. *Which* config file?
   
 
 
 Your sendmail config file.

my dns server was down for hour; just got it back; and to the net.
by sheer luck, i found two files i had left in /etc/rc.d/ that needed 
to be removed.
jeez.

sendmail.cf :: i'm not that savvy about the mua, but have been using it 
long 
enough that i Ought to be somehow, thinngs usually work; or used to.
ii just began using the local--host-names file.everywhere. 
[[ well, one server is ubuntu and using a different mailer; but 
   everywhere else. ]]

no diff.  i also filled in smart-host in the .mc file. i did a
make install. no difference...

gary


-- 
Gary Kline  Seattle BSD Users' Group (seabug)  | [EMAIL PROTECTED]
Thought Unlimited Org's Alternate Email Site
http://www.magnesium.net/~kline
   To live is not a necessity; but to live honorably...is a necessity. -Kant

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


Re: how to suspend/wake-up a FreeBSD machine?

2008-01-04 Thread Ian Smith
On Fri, 4 Jan 2008, John Baldwin wrote:
  On Friday 04 January 2008 03:13:20 am Ian Smith wrote:
   On Fri, 4 Jan 2008, Norberto Meijome wrote:
 On Sun, 30 Dec 2007 11:51:41 +0100
 Henrik Brix Andersen [EMAIL PROTECTED] wrote:
 
  That depends largely on the hardware - on e.g. ThinkPads you need to
  press the 'Fn' button to wake up the laptop after sleep.
 
 hmm i think it's not so much the Fn key, u need to do anything that
 triggers an ACPI event in the BIOS - like opening the lid , or
 pressing Fn. I *think* 'thinkVantage' blue btn should work too. 
   
   On my T23 I have suspend/wake on lid switch off (in BIOS), preferring to
   have to use the Fn key to wake.  No other keys do that on mine including
   the ThinkPad key, so then called.
   
   While consulting 'sysctl hw.acpi' about that I see:
   hw.acpi.lid_switch_state: NONE
   which I assume reflects my don't-do-that BIOS setting.
  
  No, that's the FreeBSD default.

Um, der .. I see that and other sysctls are in acpi(4) now, but weren't
in my (oldish) 5.5-STABLE nor 6.1-RELEASE.  Time for upgrades for sure! 

   And confirming:
   # sysctl hw.acpi.lid_switch_state=1# (or =0)
   hw.acpi.lid_switch_state: NONE
   sysctl: hw.acpi.lid_switch_state: Invalid argument
  
  This is because this sysctl is not an on/off, but it takes an Sx state to 
  suspend to when you close the lid.  So if you set this to S1 it will try to 
  enter S1 when you close the lid, etc.  For example:
  
  sysctl hw.acpi.lid_switch_state=S3
  
  Would make it enter S3 when you closed the lid.

Thanks John.  S3 works on mine, but S1 doesn't.  Didn't try S5 :) but
NONE is really what I want there anyway.

cheers, Ian

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