DHCP problem.Help please

2008-04-14 Thread Ruel Luchavez
Hello,

I hope some one will me on my problem.
My friends has and existing DHCP server and squid proxy server running both
in freebsd.We purchased a new desktop PC, we gave it a permanent IP using
the DHCP server and we edit the config file in /usr/local/etc/dhcp.conf we
add this at the bottom

host test {
  hardware ethernet 00:1d:27:64:e1:af; [this is the physical address of new
PC]
  fixed address 192.168.1.16;
  }

But as we ipconfig the new PC the IP is still the same?
Is there something i forgot to configure?

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


Re: DHCP problem.Help please

2008-04-14 Thread Da Rock

On Mon, 2008-04-14 at 14:43 +0800, Ruel Luchavez wrote:
 Hello,
 
 I hope some one will me on my problem.
 My friends has and existing DHCP server and squid proxy server running both
 in freebsd.We purchased a new desktop PC, we gave it a permanent IP using
 the DHCP server and we edit the config file in /usr/local/etc/dhcp.conf we
 add this at the bottom
 
 host test {
   hardware ethernet 00:1d:27:64:e1:af; [this is the physical address of new
 PC]
   fixed address 192.168.1.16;
   }
 
 But as we ipconfig the new PC the IP is still the same?
 Is there something i forgot to configure?
 
 PLEASE HELP here...thanks in adnvanced

So you used dhcp to obtain an ip prior to setting up a fixed address on
the dhcp server? If so you may have to clear your dhclient.leases file-
rename to .old (correct me if theres a better way to do this anyone).

When testing, use dhcpd -d - this will run the dhcp server in the
foreground so you can see any messages realtime which you can then post
here if need be. Also, send the entries in your log files.

Good luck.

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


Avermedia 507 TV

2008-04-14 Thread Victor M. Blood
Hi, All.

Anyone run tuner on phillips chip 7133/7135 on freebsd, I try to use
saa driver, devices saa0, sau0, cii0 is present in /dev/ , kbtv runs,
but freeze on begin chanel tunin...

How to test tuner and drivers works or not.

-- 
With all regards, Victor M. Blood. mailto: [EMAIL PROTECTED]
FTN: 2:5024/[EMAIL PROTECTED], ICQ#3567656




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


Re: DHCP problem.Help please

2008-04-14 Thread Ruel Luchavez
How to reload the dhcpd? what would be the command fo it?

Best regards..


On Mon, Apr 14, 2008 at 3:12 PM, Wojciech Puchar 
[EMAIL PROTECTED] wrote:

 add this at the bottom
 
  host test {
   hardware ethernet 00:1d:27:64:e1:af; [this is the physical address of
  new
  PC]
   fixed address 192.168.1.16;
   }
 
  But as we ipconfig the new PC the IP is still the same?
  Is there something i forgot to configure?
 
  PLEASE HELP here...thanks in adnvanced
 

 no idea. try turning off then on network interface in windoze.

 did you reloaded dhcpd?

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


Re: DHCP problem.Help please

2008-04-14 Thread Wojciech Puchar

How to reload the dhcpd? what would be the command fo it?

/usr/local/etc/rc.d/isc-dhcpd restart


Best regards..


On Mon, Apr 14, 2008 at 3:12 PM, Wojciech Puchar 
[EMAIL PROTECTED] wrote:


add this at the bottom


host test {
 hardware ethernet 00:1d:27:64:e1:af; [this is the physical address of
new
PC]
 fixed address 192.168.1.16;
 }

But as we ipconfig the new PC the IP is still the same?
Is there something i forgot to configure?

PLEASE HELP here...thanks in adnvanced



no idea. try turning off then on network interface in windoze.

did you reloaded dhcpd?




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


RE: DHCP problem.Help please

2008-04-14 Thread Johan Hendriks


How to reload the dhcpd? what would be the command fo it?

Best regards..

On the freebsd server use:
/usr/local/etc/rc.d/isc-dhcpd restart

On a windows box do :
Start -- run 
Type cmd  klik ok

Then you'll get a dos box
 ipconfig /release 
This releases the ip adres 
 ipconfig /renew
try to get a new adres.

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


Re: Avermedia 507 TV

2008-04-14 Thread Da Rock

On Mon, 2008-04-14 at 11:02 +0400, Victor M. Blood wrote:
 Hi, All.
 
 Anyone run tuner on phillips chip 7133/7135 on freebsd, I try to use
 saa driver, devices saa0, sau0, cii0 is present in /dev/ , kbtv runs,
 but freeze on begin chanel tunin...
 
 How to test tuner and drivers works or not.
 

I haven't had success yet- but I have an E506AR. Where did you get the
drivers from? I couldn't get access myself.

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


Re: Mousewheel verschwunden

2008-04-14 Thread Christian Walther
On 14/04/2008, Robert Huff [EMAIL PROTECTED] wrote:
 Erich Dollansky writes:

this is an English speaking list.


 Says who?

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


Restart Squid proxy server

2008-04-14 Thread Ruel Luchavez
Hallo,

How to restart the squid proxy server in freebsd?

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


Re: DHCP problem.Help please

2008-04-14 Thread Ruel Luchavez
Thanks Johan  Puchar, your advise is very effective.

again thank you..


On Mon, Apr 14, 2008 at 3:36 PM, Johan Hendriks [EMAIL PROTECTED] wrote:



 How to reload the dhcpd? what would be the command fo it?

 Best regards..

 On the freebsd server use:
 /usr/local/etc/rc.d/isc-dhcpd restart

 On a windows box do :
 Start -- run
 Type cmd  klik ok

 Then you'll get a dos box
  ipconfig /release
 This releases the ip adres
  ipconfig /renew
 try to get a new adres.

 Regards,
 Johan

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


Re: DNS server Problem

2008-04-14 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Ruel Luchavez wrote:
 Hi,
 
 I have BIND DNS Server in my freebsd, i keep on searching in google on how
 to restart it?
 is there a command to restart it like the squid and dhcp? or there is no
 command for it?

That is somewhat different to what you've asked about previously.  You
don't say if you're running the base system version of BIND or one from
ports.

In the former case, you can do:

  /etc/rc.d/named restart

In the latter case, that command should still work, but may not depending
on how it was all set up.  (The bind94 port doesn't come with its own rc
script -- I believe the expectation is that you should use the system script
by setting variables in /etc/rc.conf appropriately)

In either case you should be able to do:

  rndc reload 

so long as you've properly set up /etc/namedb/rndc.conf or /etc/namedb/rndc.key

Cheers,

Matthew

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

iEYEAREDAAYFAkgDIDUACgkQ3jDkPpsZ+VbMBQCfXxg/zVy3A3WkIFkkCwaaFPBX
UDkAoLVno5AyqfbcBqa9lA/J1IJn+2Iv
=9bI5
-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: Restart Squid proxy server

2008-04-14 Thread Johan Hendriks


Hallo,

How to restart the squid proxy server in freebsd?

Thanks...


Use the following command
/usr/local/etc/rc.d/squid restart

Regards,
Johan Hendriks
Double L Automatisering

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


RE: DNS server Problem

2008-04-14 Thread John Clement
 I have BIND DNS Server in my freebsd, i keep on searching in google on
 how
 to restart it?
 is there a command to restart it like the squid and dhcp? or there is
 no
 command for it?

You might like to try

# rndc reload

Cheers

 Thanks in advanced..
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-
 [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: Poweredge 1950 IPMI

2008-04-14 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Andy
 Christianson
 Sent: Thursday, April 10, 2008 6:35 AM
 To: freebsd-questions@freebsd.org
 Subject: Poweredge 1950 IPMI
 
 
 A while back I posted about reading the CPU temperature on a Dell
 Poweredge 1950. The proposed solution was to use ipmitool to read the
 temperature from the IPMI controller. This gives me a lot of readings,
 including ambient temperature, but it does not give me the temperature
 of the CPUs. It says disabled for the top four readings, which should be
 the CPU readings.
 
 After doing some research online, I found a possible alternate solution
 of using coretemp. There was a thread that said that the Xeon dual-core
 CPUs supported that. After checking the output of cpuid, I have
 confirmed that these CPUs definitely do not support coretemp.
 
 Here's the cpuid table (eax in 6 is for thermal monitoring capability
 --it's all 0s):
 
  eax ineax  ebx  ecx  edx
  0006 756e6547 6c65746e 49656e69
 0001 0f64 04040800 e4bd bfebfbff
 0002 605b5001   007d7040
 0003    
 0004    
 0005 0040 0040  
 0006    
 8000 8008   
 8001   0001 20100800
 8002 20202020 20202020 20202020 20202020
 8003 6e492020 286c6574 58202952 286e6f65
 8004 20294d54 20555043 30302e33 007a4847
 8005    
 8006   08006040 
 8007    
 8008 3024   
 
 Here's the output from ipmitool:
 
 [EMAIL PROTECTED] /home/achristianson]# ipmitool sdr 
 Temp | disabled  | ns
 Temp | disabled  | ns
 Temp | disabled  | ns
 Temp | disabled  | ns
 Ambient Temp | 24 degrees C  | ok
 CMOS Battery | 0x00  | ok
 ROMB Battery | Not Readable  | ns
 VCORE| 0x01  | ok
 VCORE| 0x01  | ok
 CPU VTT  | 0x01  | ok
 1.5V PG  | 0x01  | ok
 1.8V PG  | 0x01  | ok
 3.3V PG  | 0x01  | ok
 5V PG| 0x01  | ok
 1.5V PXH PG  | 0x01  | ok
 5V Riser PG  | 0x01  | ok
 Backplane PG | 0x01  | ok
 Linear PG| 0x01  | ok
 0.9V PG  | 0x01  | ok
 0.9V Over Volt   | 0x01  | ok
 CPU Power Fault  | 0x01  | ok
 FAN MOD 1A RPM   | 7350 RPM  | ok
 FAN MOD 1B RPM   | 7275 RPM  | ok
 FAN MOD 1C RPM   | 4575 RPM  | ok
 FAN MOD 1D RPM   | 4425 RPM  | ok
 FAN MOD 2A RPM   | 7500 RPM  | ok
 FAN MOD 2B RPM   | 7350 RPM  | ok
 FAN MOD 2C RPM   | 4725 RPM  | ok
 FAN MOD 2D RPM   | 4500 RPM  | ok
 FAN MOD 3A RPM   | 7800 RPM  | ok
 FAN MOD 3B RPM   | 7350 RPM  | ok
 FAN MOD 3C RPM   | 4800 RPM  | ok
 FAN MOD 3D RPM   | 4875 RPM  | ok
 FAN MOD 4A RPM   | 7500 RPM  | ok
 FAN MOD 4B RPM   | 7875 RPM  | ok
 FAN MOD 4C RPM   | 4800 RPM  | ok
 FAN MOD 4D RPM   | 4800 RPM  | ok
 Presence | 0x01  | ok
 Presence | 0x01  | ok
 Presence | 0x01  | ok
 Presence | 0x02  | ok
 Presence | 0x01  | ok
 Presence | 0x01  | ok
 DRAC5 Conn 2 Cbl | Not Readable  | ns
 PFault Fail Safe | Not Readable  | ns
 Status   | 0x80  | ok
 Status   | 0x80  | ok
 Status   | 0x01  | ok
 Status   | Not Readable  | ns
 Status   | 0x01  | ok
 RAC Status   | 0x00  | ok
 OS Watchdog  | 0x00  | ok
 SEL  | Not Readable  | ns
 Intrusion| 0x00  | ok
 PS Redundancy| Not Readable  | ns
 Fan Redundancy   | 0x01  | ok
 CPU Temp Interf  | Not Readable  | ns
 Drive| 0x01  | ok
 Cable SAS A  | 0x01  | ok
 Current 1| disabled  | ns
 Current 2| disabled  | ns
 Voltage 1| disabled  | ns
 Voltage 2| disabled  | ns
 System Level | disabled  | ns
 Power Optimized  | Not Readable  | ns
 ECC Corr Err | Not Readable  | ns
 ECC Uncorr Err   | Not Readable  | ns
 I/O Channel Chk  | Not Readable  | ns
 PCI Parity Err   | Not Readable  | ns
 PCI System Err   | Not Readable  | ns
 SBE Log Disabled | Not Readable  | ns
 Logging Disabled | Not Readable  | ns
 Unknown  | 0xc0  | ok
 CPU Protocol Err | Not 

Re: DNS server Problem

2008-04-14 Thread Mel
On Monday 14 April 2008 11:02:43 Ruel Luchavez wrote:

 I have BIND DNS Server in my freebsd, i keep on searching in google on how
 to restart it?
 is there a command to restart it like the squid and dhcp? or there is no
 command for it?

If you start reading here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/system-administration.html

It will soon answer your question and you will pick up the basics of FreeBSD 
administration very quickly.

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


DNS server Problem

2008-04-14 Thread Ruel Luchavez
Hi,

I have BIND DNS Server in my freebsd, i keep on searching in google on how
to restart it?
is there a command to restart it like the squid and dhcp? or there is no
command for it?

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


Re: Interrupt storm with 7.0

2008-04-14 Thread Jan Henrik Sylvester

lysergius2001 wrote:

Recently installed 7.0-RELEASE on an i386 as upgrade from 6.3-RELEASE and
now have a continuous interrupt storm on IRQ17.  This is a shared IRQ for
ath0 and echi0.  Never saw this on 6.3??? Any suggestions?


Just another contribution to the collection of interrupt storms maybe 
related to ath:


Whenever I plug in my ath1 on cardbus0, I get exactly one storm:
interrupt storm detected on irq10:; throttling interrupt source

ath1: Atheros 5212 mem 0xd022-0xd022 irq 10 at device 0.0 on 
cardbus0


Anyhow, I am not sure, if it is really ath causing this. During boot, I 
get one storm, too, that is on irq 10, but my ath0 on pci2 is on irq 9:


ath0: Atheros 5212 mem 0xd020-0xd020 irq 9 at device 4.0 on pci2
[...]
interrupt storm detected on irq10:; throttling interrupt source

I do not get interrupt storms on irq 9 and I have already had that storm 
before I replaced my minipci iwi0 with ath0:


http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078684.html

The reply to that posting was that it is probably related to USB:

http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078687.html

Moreover, I have a bunch of other devices sharing irq 10:

vgapci0: VGA-compatible display port 0x3000-0x30ff mem 
0xd800-0xdfff,0xd010-0xd010 irq 10 at device 0.0 on pci1
uhci0: Intel 82801DB (ICH4) USB controller USB-A port 0x1800-0x181f 
irq 10 at device 29.0 on pci0
uhci2: Intel 82801DB (ICH4) USB controller USB-C port 0x1840-0x185f 
irq 10 at device 29.2 on pci0
ehci0: Intel 82801DB/L/M (ICH4) USB 2.0 controller mem 
0xd000-0xd3ff irq 10 at device 29.7 on pci0
fwohci0: Texas Instruments TSB43AB21/A/AI/A-EP mem 
0xd0218000-0xd02187ff,0xd021-0xd0213fff irq 10 at device 7.0 on pci2
pcm0: Intel ICH4 (82801DB) port 0x1c00-0x1cff,0x18c0-0x18ff mem 
0xdc00-0xddff,0xd800-0xd8ff irq 10 at device 31.5 on pci0


On our problematic irq, we both have got echi0. Thus, the second storm I 
get upon attaching ath1 might not be directly caused by ath.


No suggestions, just more data.

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


Re: Avermedia 507 TV

2008-04-14 Thread Victor M. Blood
On 14.04.2008, Da Rock wrote:
 On Mon, 2008-04-14 at 11:02 +0400, Victor M. Blood wrote:
 Hi, All.
 
 Anyone run tuner on phillips chip 7133/7135 on freebsd, I try to use
 saa driver, devices saa0, sau0, cii0 is present in /dev/ , kbtv runs,
 but freeze on begin chanel tunin...
 
 How to test tuner and drivers works or not.
 

 I haven't had success yet- but I have an E506AR. Where did you get the
 drivers from? I couldn't get access myself.

saa_driver included in kbtv distrib, and can be found in inet, driver
homepage is broken. I-m install it from port kbtv, the nessasary
bsd-patche within distrib tarball


-- 
With all regards, Victor M. Blood.   mailto: [EMAIL PROTECTED]
FTN: 2:5024/[EMAIL PROTECTED], ICQ#3567656





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


Re: Interrupt storm with 7.0

2008-04-14 Thread ix260

 Subject: Re: Interrupt storm with 7.0
 On Sunday 13 April 2008 14:41:51 lysergius2001 wrote:
 
  Recently installed 7.0-RELEASE on an i386 as upgrade from 6.3-RELEASE and
  now have a continuous interrupt storm on IRQ17.  This is a shared IRQ for
  ath0 and echi0.  Never saw this on 6.3??? Any suggestions?  
 
 I've seen something similar on an old dell laptop, on 6.3. It would cause an 
 interrupt storm when it got disconnected by the hostap for beacon misses. ath 
 driver as well, not sure what it shared it with.
 Unfortunately, I never got around to reporting it and the machine has been 
 destroyed by little mongrols, I mean the sweet boys.
 
 I know this doesn't help you, but at least you know that there is 'something' 
 with the ath driver that can cause interrupt storms.

Had the same problem by upgrading from FBSD-6.3 to FBSD-7.0 right up start.

I think it got some thing to do with device cpufreq and shared IRQ !
I had a IRQ-storm on IRQ-10, but my iwi0 need it.

well to solved the problem temporally I did compile my kernel without device 
cpufreq as I had on
FBSD-6.3, but the down side is that my 1.8Ghz Laptop will only run very very 
slow with 0.228Ghz...
after that (ONLY on FBSD-7.0)

at the end I just removed the other PCMCIA card (a Sierra Wireless) which using 
IRQ-10 too, but is
in no function on FreeBSD any way.
after that I compiled the kernel with device cpufreq and I'm up o 1.8GHz 
without IRQ-storm again.

I know this is not a finally solution, but I think we have to wait for FBSD-7.1 
or higher to brush
out all this little faults. I had a similarly problem when I was updating from 
FBSD-5.4 to FBSD-6.0
with the iwi0 driver, lots of IRQ-storms, had some thing to do with device 
cpufreq and ACPI that
time too !

hope this will go away in future.
---
Hanno


signature.asc
Description: PGP signature


Re: Interrupt storm with 7.0

2008-04-14 Thread Mel
On Monday 14 April 2008 11:36:43 Jan Henrik Sylvester wrote:
 lysergius2001 wrote:
  Recently installed 7.0-RELEASE on an i386 as upgrade from 6.3-RELEASE and
  now have a continuous interrupt storm on IRQ17.  This is a shared IRQ for
  ath0 and echi0.  Never saw this on 6.3??? Any suggestions?

 Just another contribution to the collection of interrupt storms maybe
 related to ath:

 Whenever I plug in my ath1 on cardbus0, I get exactly one storm:
 interrupt storm detected on irq10:; throttling interrupt source

 ath1: Atheros 5212 mem 0xd022-0xd022 irq 10 at device 0.0 on
 cardbus0

 Anyhow, I am not sure, if it is really ath causing this. During boot, I
 get one storm, too, that is on irq 10, but my ath0 on pci2 is on irq 9:

 ath0: Atheros 5212 mem 0xd020-0xd020 irq 9 at device 4.0 on pci2
 [...]
 interrupt storm detected on irq10:; throttling interrupt source

 I do not get interrupt storms on irq 9 and I have already had that storm
 before I replaced my minipci iwi0 with ath0:

 http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078684.html

 The reply to that posting was that it is probably related to USB:

 http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078687.html

 Moreover, I have a bunch of other devices sharing irq 10:

 vgapci0: VGA-compatible display port 0x3000-0x30ff mem
 0xd800-0xdfff,0xd010-0xd010 irq 10 at device 0.0 on pci1
 uhci0: Intel 82801DB (ICH4) USB controller USB-A port 0x1800-0x181f
 irq 10 at device 29.0 on pci0
 uhci2: Intel 82801DB (ICH4) USB controller USB-C port 0x1840-0x185f
 irq 10 at device 29.2 on pci0
 ehci0: Intel 82801DB/L/M (ICH4) USB 2.0 controller mem
 0xd000-0xd3ff irq 10 at device 29.7 on pci0
 fwohci0: Texas Instruments TSB43AB21/A/AI/A-EP mem
 0xd0218000-0xd02187ff,0xd021-0xd0213fff irq 10 at device 7.0 on pci2
 pcm0: Intel ICH4 (82801DB) port 0x1c00-0x1cff,0x18c0-0x18ff mem
 0xdc00-0xddff,0xd800-0xd8ff irq 10 at device 31.5 on pci0

 On our problematic irq, we both have got echi0. Thus, the second storm I
 get upon attaching ath1 might not be directly caused by ath.

 No suggestions, just more data.

I dug through daily security runs and \o/ the machine got rebooted one time, 
so I got a dmesg:
+uhci0: Intel 82371AB/EB (PIIX4) USB controller port 0xdce0-0xdcff irq 11 at 
device 7.2 on pci0
+uhci0: [GIANT-LOCKED]
+ath0: Atheros 5212 mem 0x8800-0x8800 irq 11 at device 0.0 on 
cardbus0
+ath0: Ethernet address: 00:11:95:69:1d:eb
+ath0: mac 7.9 phy 4.5 radio 5.6

Not ehci, but uhci. Still...

I can't find if it had cpufreq. The kernel config I still have and it had it 
compiled in, but it doesn't show in the dmesg. Only power/sleep button, lid 
switch and thermal zone.

A typical storm session looks like this:
+ath0: link state changed to DOWN
+interrupt storm detected on irq11:; throttling interrupt source
+interrupt storm detected on irq11:; throttling interrupt source
+interrupt storm detected on irq11:; throttling interrupt source
+interrupt storm detected on irq11:; throttling interrupt source
+interrupt storm detected on irq11:; throttling interrupt source
+interrupt storm detected on irq11:; throttling interrupt source
+interrupt storm detected on irq11:; throttling interrupt source
+interrupt storm detected on irq11:; throttling interrupt source
+interrupt storm detected on irq11:; throttling interrupt source
+interrupt storm detected on irq11:; throttling interrupt source
+interrupt storm detected on irq11:; throttling interrupt source
+ath0: link state changed to UP

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS server Problem

2008-04-14 Thread Wojciech Puchar


I have BIND DNS Server in my freebsd, i keep on searching in google on how
to restart it?


/etc/rc.d/named restart


is there a command to restart it like the squid and dhcp? or there is no
command for it?

Thanks in advanced..
___
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: Poweredge 1950 IPMI

2008-04-14 Thread Andy Christianson
On Mon, 2008-04-14 at 02:07 -0700, Ted Mittelstaedt wrote:
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Andy
  Christianson
  Sent: Thursday, April 10, 2008 6:35 AM
  To: freebsd-questions@freebsd.org
  Subject: Poweredge 1950 IPMI
  
  
  A while back I posted about reading the CPU temperature on a Dell
  Poweredge 1950. The proposed solution was to use ipmitool to read the
  temperature from the IPMI controller. This gives me a lot of readings,
  including ambient temperature, but it does not give me the temperature
  of the CPUs. It says disabled for the top four readings, which should be
  the CPU readings.
  
  After doing some research online, I found a possible alternate solution
  of using coretemp. There was a thread that said that the Xeon dual-core
  CPUs supported that. After checking the output of cpuid, I have
  confirmed that these CPUs definitely do not support coretemp.
  
  Here's the cpuid table (eax in 6 is for thermal monitoring capability
  --it's all 0s):
  
   eax ineax  ebx  ecx  edx
   0006 756e6547 6c65746e 49656e69
  0001 0f64 04040800 e4bd bfebfbff
  0002 605b5001   007d7040
  0003    
  0004    
  0005 0040 0040  
  0006    
  8000 8008   
  8001   0001 20100800
  8002 20202020 20202020 20202020 20202020
  8003 6e492020 286c6574 58202952 286e6f65
  8004 20294d54 20555043 30302e33 007a4847
  8005    
  8006   08006040 
  8007    
  8008 3024   
  
  Here's the output from ipmitool:
  
  [EMAIL PROTECTED] /home/achristianson]# ipmitool sdr 
  Temp | disabled  | ns
  Temp | disabled  | ns
  Temp | disabled  | ns
  Temp | disabled  | ns
  Ambient Temp | 24 degrees C  | ok
  CMOS Battery | 0x00  | ok
  ROMB Battery | Not Readable  | ns
  VCORE| 0x01  | ok
  VCORE| 0x01  | ok
  CPU VTT  | 0x01  | ok
  1.5V PG  | 0x01  | ok
  1.8V PG  | 0x01  | ok
  3.3V PG  | 0x01  | ok
  5V PG| 0x01  | ok
  1.5V PXH PG  | 0x01  | ok
  5V Riser PG  | 0x01  | ok
  Backplane PG | 0x01  | ok
  Linear PG| 0x01  | ok
  0.9V PG  | 0x01  | ok
  0.9V Over Volt   | 0x01  | ok
  CPU Power Fault  | 0x01  | ok
  FAN MOD 1A RPM   | 7350 RPM  | ok
  FAN MOD 1B RPM   | 7275 RPM  | ok
  FAN MOD 1C RPM   | 4575 RPM  | ok
  FAN MOD 1D RPM   | 4425 RPM  | ok
  FAN MOD 2A RPM   | 7500 RPM  | ok
  FAN MOD 2B RPM   | 7350 RPM  | ok
  FAN MOD 2C RPM   | 4725 RPM  | ok
  FAN MOD 2D RPM   | 4500 RPM  | ok
  FAN MOD 3A RPM   | 7800 RPM  | ok
  FAN MOD 3B RPM   | 7350 RPM  | ok
  FAN MOD 3C RPM   | 4800 RPM  | ok
  FAN MOD 3D RPM   | 4875 RPM  | ok
  FAN MOD 4A RPM   | 7500 RPM  | ok
  FAN MOD 4B RPM   | 7875 RPM  | ok
  FAN MOD 4C RPM   | 4800 RPM  | ok
  FAN MOD 4D RPM   | 4800 RPM  | ok
  Presence | 0x01  | ok
  Presence | 0x01  | ok
  Presence | 0x01  | ok
  Presence | 0x02  | ok
  Presence | 0x01  | ok
  Presence | 0x01  | ok
  DRAC5 Conn 2 Cbl | Not Readable  | ns
  PFault Fail Safe | Not Readable  | ns
  Status   | 0x80  | ok
  Status   | 0x80  | ok
  Status   | 0x01  | ok
  Status   | Not Readable  | ns
  Status   | 0x01  | ok
  RAC Status   | 0x00  | ok
  OS Watchdog  | 0x00  | ok
  SEL  | Not Readable  | ns
  Intrusion| 0x00  | ok
  PS Redundancy| Not Readable  | ns
  Fan Redundancy   | 0x01  | ok
  CPU Temp Interf  | Not Readable  | ns
  Drive| 0x01  | ok
  Cable SAS A  | 0x01  | ok
  Current 1| disabled  | ns
  Current 2| disabled  | ns
  Voltage 1| disabled  | ns
  Voltage 2| disabled  | ns
  System Level | disabled  | ns
  Power Optimized  | Not Readable  | ns
  ECC Corr Err | Not Readable  | ns
  ECC Uncorr Err   | Not Readable  | ns
  I/O Channel Chk  | Not Readable  | ns
  PCI Parity Err   | Not Readable  | ns
  PCI System Err   | 

Re: qmail w/ SMTP auth using freebsd port

2008-04-14 Thread Jeff Dickens
I used the patches and documents from qmail.jms1.net and built my own 
qmail, and it works well.  I think a port that tracks qmail + jms1's 
current combined patch set would be well received.


BTW, I copied the maintainer of the qmail port on my earlier message, 
and it eventually bounced:


 [EMAIL PROTECTED]
   SMTP error from remote mail server after RCPT TO:[EMAIL PROTECTED]:
   host mx1.freebsd.org [69.147.83.52]: 450 4.7.1 [EMAIL PROTECTED]:
   Recipient address rejected: Service is unavailable:
   retry timeout exceeded


Michael P. Soulier wrote:

On 10/04/08 Jeff Dickens said:

  
Is there a document on how to set up SMTP auth using the FreeBSD qmail 
port?



I didn't think qmail supported anything as modern as smtp auth. Most likely
the expectation would be to proxy qmail through a tool that performs it for
you. 


Mike
  

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


Slow performance as root over SSH?

2008-04-14 Thread Edward Ruggeri
Hi all,

(This may actually be a question for the dtach people).

I've recently been using dtach (basically the detach function of
screen) over SSH to instruct my freeBSD machine to perform long tasks
even after I disconnect from it.  It's worked great: I run SSH and
connect to my box, execute dtach to create a new session in which to
execute a program, hit ctr-\ to detach the session from the terminal,
and then I can close the SSH tunnel.

Recently, I figured to do this with portupgrade.  Now, I don't allow
root login, so I log in as a user in the wheel group and use su.  Now,
as root, I run: dtach -A portupgrade -a.  It starts working, but
extremely slowly.  For instance, portsnap fetch update takes several
minutes, whereas it normally is blazing fast when performed locally.
I can still detach, exit root, and close the SSH tunnel.  I suppose
this is probably a dtach performance issue?

If anyone has any thoughts, I'd definitely appreciate them.  Thanks!

Sincerely,

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


Re: Trying to install a wireless broadcom card

2008-04-14 Thread Reid Linnemann
Written by Gaëtan Podevijn on 04/13/08 08:14
 Hello,
 
 I'm trying to configure my Acer Aspire 5024wmli wireless card (pciconf
 -lv told me device: BCM43XX Broadcom 802.11b/g) but without any success.
 
 I use ndis with windows drivers and it is correctly loaded:
 
 kldstat
 
 Id Refs AddressSize Name
  1   24 0xc040 906518   kernel
  22 0xc0d07000 e750 if_ndis.ko
  33 0xc0d16000 1aa10ndis.ko
  51 0xc0d94000 1bdc wlan_xauth.ko
  61 0xc0d96000 2ec0 wlan_acl.ko
  71 0xc0d99000 6a32cacpi.ko
  81 0xc44f4000 22000linux.ko
  91 0xc4699000 62000bcmwl5_sys.ko
 101 0xc47c9000 21000radeon.ko
 111 0xc47ea000 f000 drm.ko
 
 and I have a ndis0 interface but when I use this command line: ifconfig
 ndis0 up scan it returns me anything!
 
 Here is my /etc/wpa_supplicant.conf:
 
 ctrl_interface=/var/run/wpa_supplicant
 ctrl_interface_group=wheel
 
 network={
   ssid=wireless
   scan_ssid=1
   key_mgmt=NONE
   wep_key0=XXX
 }
 
 and my /etc/rc.conf:
 # -- sysinstall generated deltas -- # Sat Apr 12 18:32:05 2008
 # Created: Sat Apr 12 18:32:05 2008
 # Enable network daemons for user convenience.
 # Please make all changes to this file, not to /etc/defaults/rc.conf.
 # This file now contains just the overrides from /etc/defaults/rc.conf.
 hostname=herlock-bsd
 keymap=be.iso
 linux_enable=YES
 nfs_server_enable=YES
 rpcbind_enable=YES
 sshd_enable=YES
 # -- sysinstall generated deltas -- # Sat Apr 12 17:07:34 2008
 #ifconfig_re0=DHCP
 hostname=herlock-bsd
 ifconfig_ndis0=WPA DHCP
 gnome_enabled=YES
 
 And it doesn't work...
 
 Can anyone tells me how is it possible to make this card works on
 freebsd ?
 
 Thank you.
 
 Gaëtan.

Make sure the radio is actually turned on for the device. I've had ndis
bite me in the ass before on laptops with Fn-key radio switches; when I
put FreeBSD on, the radio was disabled and the Fn-key apparently
required OS support to work. I beat my head against the wall trying to
get it to associate with an AP to no avail. I've never been sure if
there is a way on these systems to turn the radio on in FreeBSD, I've
always thrown Windows on a spare partition and used it to turn the radio
on. Maybe someone else can be more enlightening on this subject.

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


Re: Slow performance as root over SSH?

2008-04-14 Thread Kris Kennaway

Edward Ruggeri wrote:

Hi all,

(This may actually be a question for the dtach people).

I've recently been using dtach (basically the detach function of
screen) over SSH to instruct my freeBSD machine to perform long tasks
even after I disconnect from it.  It's worked great: I run SSH and
connect to my box, execute dtach to create a new session in which to
execute a program, hit ctr-\ to detach the session from the terminal,
and then I can close the SSH tunnel.

Recently, I figured to do this with portupgrade.  Now, I don't allow
root login, so I log in as a user in the wheel group and use su.  Now,
as root, I run: dtach -A portupgrade -a.  It starts working, but
extremely slowly.  For instance, portsnap fetch update takes several
minutes, whereas it normally is blazing fast when performed locally.
I can still detach, exit root, and close the SSH tunnel.  I suppose
this is probably a dtach performance issue?


Likely unrelated to either.  There is nothing that would make root 
perform any differently than other users, and dtach only affects the 
terminal handling and not any other aspect of the system.


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


Re: qmail w/ SMTP auth using freebsd port

2008-04-14 Thread Vince Hoffman
Jeff Dickens wrote:
 I used the patches and documents from qmail.jms1.net and built my own
 qmail, and it works well.  I think a port that tracks qmail + jms1's
 current combined patch set would be well received.
 

For what is worth the mail/qmail-tls port says it supports smtp-auth. I
dont use qmail myself though so I havent tried it.


Vince

 BTW, I copied the maintainer of the qmail port on my earlier message,
 and it eventually bounced:
 
  [EMAIL PROTECTED]
SMTP error from remote mail server after RCPT TO:[EMAIL PROTECTED]:
host mx1.freebsd.org [69.147.83.52]: 450 4.7.1 [EMAIL PROTECTED]:
Recipient address rejected: Service is unavailable:
retry timeout exceeded
 
 
 Michael P. Soulier wrote:
 On 10/04/08 Jeff Dickens said:

  
 Is there a document on how to set up SMTP auth using the FreeBSD
 qmail port?
 

 I didn't think qmail supported anything as modern as smtp auth. Most
 likely
 the expectation would be to proxy qmail through a tool that performs
 it for
 you.
 Mike
   
 ___
 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]


Can't log in as root on new 7.0 install

2008-04-14 Thread Jesse Sheidlower

I've recently installed FreeBSD 7.0 on a new server. I seem to
be unable to log in as root in any way, and I'm not sure why.
Furthermore I'm now physically separate from the machine, and
have been relying on a (non-computer-literate) colleague with
access to its console server to try and help.

After the initial install I (am pretty sure I) was able to log
in as root over ssh. However, after a week when the machine
was inaccessible for other reasons, I cannot log in as root,
only as a normal user.

I thought that I had perhaps mis-remembered the root password,
so I directed the colleague to log in in single user mode and
reset the root password; she was able to do this, and typed
exit to return the system to multi-user mode and herself at
a root prompt. However I was still not able to log in as root,
either over ssh, or by logging in as a normal user and then
typing login root (i.e. it wasn't just something preventing
root logins over ssh).

I then asked the colleague to add me to the wheel group,
which she successfully did; I logged out and back in again,
determined that I was indeed in this group, and tried to su - 
and got a su: Sorry message, with the colleague reporting
that a BAD SU [user] to root on /dev/ttyp0 message had
appeared.

I'm sort of at a loss for what to do or why this is happening,
and am quite eager to control my own machineSuggestions
welcome.

Thanks very much.

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


Re: Can't log in as root on new 7.0 install

2008-04-14 Thread Derek Ragona

At 09:35 AM 4/14/2008, Jesse Sheidlower wrote:


I've recently installed FreeBSD 7.0 on a new server. I seem to
be unable to log in as root in any way, and I'm not sure why.
Furthermore I'm now physically separate from the machine, and
have been relying on a (non-computer-literate) colleague with
access to its console server to try and help.

After the initial install I (am pretty sure I) was able to log
in as root over ssh. However, after a week when the machine
was inaccessible for other reasons, I cannot log in as root,
only as a normal user.

I thought that I had perhaps mis-remembered the root password,
so I directed the colleague to log in in single user mode and
reset the root password; she was able to do this, and typed
exit to return the system to multi-user mode and herself at
a root prompt. However I was still not able to log in as root,
either over ssh, or by logging in as a normal user and then
typing login root (i.e. it wasn't just something preventing
root logins over ssh).

I then asked the colleague to add me to the wheel group,
which she successfully did; I logged out and back in again,
determined that I was indeed in this group, and tried to su -
and got a su: Sorry message, with the colleague reporting
that a BAD SU [user] to root on /dev/ttyp0 message had
appeared.

I'm sort of at a loss for what to do or why this is happening,
and am quite eager to control my own machineSuggestions
welcome.

Thanks very much.

Jesse Sheidlower


I would have your helper log in as root and reboot the server.  This will 
assure it is in multi-user.


You should NOT be able to ssh in as root, unless you've opened up that 
security hole which is not recommended.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Poweredge 1950 IPMI

2008-04-14 Thread Roland Smith
On Mon, Apr 14, 2008 at 08:29:43AM -0400, Andy Christianson wrote:
snip
   So, any ideas on how to read the CPU temperature from this machine?
   Thanks in advance for any advice.
   
  
  My experience is that it's more important to be able to read
  fan rpm on the CPU heatsink.  If fan rpm is 0, then the fan is
  not cooling the CPU and you will shortly have no CPU.
  
  As long as you have fan RPM on the heatsink above a certain level
  and your internal case temp is below a certain temp, you can easily
  infer the CPU temp - as they say, that's good enough for government
  
  Ted
  
 
 I agree with you that fan RPM is usually the most important thing. The
 problem I have is that our server closet is very, very small and the
 only ventilation is the removal of one ceiling tile. When I close the
 door, the server gets really loud. This is because fan RPMs are running
 up above 11,000 RPM when they're normally at 6,000-7,000 RPM.

Server cupboards usually have dedicated fans. Why not get one of those? 
 
 That was the original motivation to get temperature monitoring working.
 We want to know if it's safe to leave the door closed with the fans
 screaming away at 11,000+ RPM.

The fact that the dans are running at max should tell you something...

A quick  dirty solution would be to drill a couple of holes into the
door, one near the top, and one near the bottom. Get a couple of 120 mm
fans. Put them in holes in the the bottom of the door as an intake fans.
Leave the top hole open as an exhaust. Hook the fans up to an old power
supply and you're done. Need more cooling? Add more fans. It might be a
good idea put some filter material in front of the intake fans, lest you
want to breed dust puppies. :-)

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpDiPgmK02jq.pgp
Description: PGP signature


Re: start up scripts stopped working

2008-04-14 Thread Jerry McAllister
On Sun, Apr 13, 2008 at 01:02:45PM -0600, Eric wrote:

 hello,
 
 does anyone know what I can do to fix the following problem?  Every time 
 my FreeBSd 6.2 machine reboots, none of the scripts in the 
 /usr/local/etc/rc.d directory launch the various programs i have defined 
 in my rc.conf file. when i added
 
 rc_info=yes
 rc_debug=yes
 
 to rc.conf i see things getting evaluated, but nothing is launched. this 
 forces someone to log in locally to the machine and start openssh so i 
 can get to the box.

Are there startup scripts for these things in rc.d?
Putting something in rc.conf is only setting a flag or value
that scripts read up to see if they should run or not and what
values to run with.   Nothing actually starts (or shouldn't) from
the rc.conf file.

jerry

 
 does anyone know what could be causing this?
 ___
 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]


Freebsd 7 release wireless problem

2008-04-14 Thread Jie Ouyang
I have Freebsd 7 Release installed on my laptop and the dhcp client works
unstably with WIRELESS connection. It does not get ip unless the dhcp server
on the router is restarted. I am kind of sure this is the problem with
freebsd as I installed ubuntu and windows xp on the same laptop with no
problem with dhcp. Any hints to work around this issue? Here is some
information

System:
Dell Inspiron 600m
PM 1.5 G. 512m
Intel Pro 2100 802.11b.
FreeBSD 7 release generic kernel .


I have
if_ipw_load =YES
legal.intel_ipw.license_ack=1
in /boot/loader.conf

Run ifconfig ipw0 up scan  gives
ipw0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
ether xx:xx:xx:xx:xx:xx
media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps)
status: associated
ssid xx channel 5 (2432 Mhz 11b) bssid xx:xx:xx:xx:xx:xx
authmode OPEN privacy OFF bmiss 7 scanvalid 60

Free# dhclient ipw0
DHCPDISCOVER on ipw0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ipw0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ipw0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on ipw0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on ipw0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ipw0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: start up scripts stopped working

2008-04-14 Thread Eric Zimmerman

Jerry McAllister wrote:
to rc.conf i see things getting evaluated, but nothing is launched. this 
forces someone to log in locally to the machine and start openssh so i 
can get to the box.


Are there startup scripts for these things in rc.d?
Putting something in rc.conf is only setting a flag or value
that scripts read up to see if they should run or not and what
values to run with.   Nothing actually starts (or shouldn't) from
the rc.conf file.

jerry

yes, the files are in the rc.d directory and start up properly when i 
issue the commands manually (ie #/usr/local/etc/rc.d/dovecot start).

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


Re: Mousewheel verschwunden

2008-04-14 Thread Seth Brundle
2008/4/14, Seth Brundle [EMAIL PROTECTED]:
 2008/4/14, Christian Walther [EMAIL PROTECTED]:

  On 14/04/2008, Robert Huff [EMAIL PROTECTED] wrote:
 Erich Dollansky writes:

this is an English speaking list.


 Says who?

  
   The handbook.


 I'm sorry, I ignored the fact that I sent my initial email to the
  (int'l, thusly english) mailing list; it was intended to be sent to
  the german mailing list.

  Deep apologies  best,

  Ernst

(That set aside: I'm deeply impressed by the fact that list members
translated my erraneous posting -- this is VERY friendly and shows the
BSD communities superiority, if I might say so. Thanks again! :)

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


Re: Can't log in as root on new 7.0 install

2008-04-14 Thread Jesse Sheidlower
On Mon, Apr 14, 2008 at 10:04:21AM -0500, Derek Ragona wrote:
 At 09:35 AM 4/14/2008, Jesse Sheidlower wrote:
 
 I've recently installed FreeBSD 7.0 on a new server. I seem to
 be unable to log in as root in any way, and I'm not sure why.
 Furthermore I'm now physically separate from the machine, and
 have been relying on a (non-computer-literate) colleague with
 access to its console server to try and help.
 
 After the initial install I (am pretty sure I) was able to log
 in as root over ssh. However, after a week when the machine
 was inaccessible for other reasons, I cannot log in as root,
 only as a normal user.
 
 I thought that I had perhaps mis-remembered the root password,
 so I directed the colleague to log in in single user mode and
 reset the root password; she was able to do this, and typed
 exit to return the system to multi-user mode and herself at
 a root prompt. However I was still not able to log in as root,
 either over ssh, or by logging in as a normal user and then
 typing login root (i.e. it wasn't just something preventing
 root logins over ssh).
 
 I then asked the colleague to add me to the wheel group,
 which she successfully did; I logged out and back in again,
 determined that I was indeed in this group, and tried to su -
 and got a su: Sorry message, with the colleague reporting
 that a BAD SU [user] to root on /dev/ttyp0 message had
 appeared.
 
 I'm sort of at a loss for what to do or why this is happening,
 and am quite eager to control my own machineSuggestions
 welcome.
 
 Thanks very much.
 
 Jesse Sheidlower
 
 I would have your helper log in as root and reboot the server.  This will 
 assure it is in multi-user.
 
 You should NOT be able to ssh in as root, unless you've opened up that 
 security hole which is not recommended.

My helper did successfully log in as root over the console,
and rebooted the server. However, all of my above problems are
still the case: I cannot log in as root over ssh (OK, you
addressed this), or by logging in as a regular user and doing
a login root; and I cannot su to root even though I'm in the
wheel group.

When this is up and running I won't allow root logins at all,
but my issue right now is that I'm not at the console and need
to actually install things on the machine (sudo, for
example...). So aside from being on the console, how _can_ I
get this access on the machine?

Thanks again.

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


Re: Slow performance as root over SSH?

2008-04-14 Thread Edward Ruggeri
On Mon, Apr 14, 2008 at 9:29 AM, Kris Kennaway [EMAIL PROTECTED] wrote:

 Edward Ruggeri wrote:
  Recently, I figured to do this with portupgrade.  Now, I don't allow
  root login, so I log in as a user in the wheel group and use su.  Now,
  as root, I run: dtach -A portupgrade -a.  It starts working, but
  extremely slowly.  For instance, portsnap fetch update takes several
  minutes, whereas it normally is blazing fast when performed locally.
  I can still detach, exit root, and close the SSH tunnel.  I suppose
  this is probably a dtach performance issue?
 

  Likely unrelated to either.  There is nothing that would make root perform
 any differently than other users, and dtach only affects the terminal
 handling and not any other aspect of the system.

  Kris


Thanks Kris!

Well, that's what I would have expected.  But then what explains the
difference in performance?  The only other difference I can imagine is
that I am logging in with a wheel account and using su, rather than
logging in as root.  Being something of a novice still, could that be
the issue?

Sincerely,

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


Re: Mousewheel verschwunden

2008-04-14 Thread Seth Brundle
2008/4/14, Christian Walther [EMAIL PROTECTED]:
 On 14/04/2008, Robert Huff [EMAIL PROTECTED] wrote:
   Erich Dollansky writes:
  
  this is an English speaking list.
  
  
   Says who?
  

 The handbook.

I'm sorry, I ignored the fact that I sent my initial email to the
(int'l, thusly english) mailing list; it was intended to be sent to
the german mailing list.

Deep apologies  best,

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


Re: Slow performance as root over SSH?

2008-04-14 Thread Kris Kennaway

Edward Ruggeri wrote:

On Mon, Apr 14, 2008 at 9:29 AM, Kris Kennaway [EMAIL PROTECTED] wrote:

Edward Ruggeri wrote:

Recently, I figured to do this with portupgrade.  Now, I don't allow
root login, so I log in as a user in the wheel group and use su.  Now,
as root, I run: dtach -A portupgrade -a.  It starts working, but
extremely slowly.  For instance, portsnap fetch update takes several
minutes, whereas it normally is blazing fast when performed locally.
I can still detach, exit root, and close the SSH tunnel.  I suppose
this is probably a dtach performance issue?


 Likely unrelated to either.  There is nothing that would make root perform
any differently than other users, and dtach only affects the terminal
handling and not any other aspect of the system.

 Kris



Thanks Kris!

Well, that's what I would have expected.  But then what explains the
difference in performance?  The only other difference I can imagine is
that I am logging in with a wheel account and using su, rather than
logging in as root.  Being something of a novice still, could that be
the issue?


No.  Unless dtach is doing something bizarre I cannot think of a reason 
this would be happening.


Kris

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


Re: Slow performance as root over SSH?

2008-04-14 Thread Edward Ruggeri
On Mon, Apr 14, 2008 at 12:41 PM, Kris Kennaway [EMAIL PROTECTED] wrote:
  No.  Unless dtach is doing something bizarre I cannot think of a reason
 this would be happening.

  Kris

Maybe I simply over-sentimentalized the old days of updating the portsdb.

Sincerely,

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


Re: Using FreeBSD's make under Linux

2008-04-14 Thread sergio lenzi

Em Dom, 2008-04-13 às 04:14 +0300, Giorgos Keramidas escreveu:

 On Sat, 12 Apr 2008 17:20:17 +0200, Michaël Le Barbier [EMAIL PROTECTED] 
 wrote:
  Hi folks,
 
  a few years ago, I tried to use FreeBSD's make under GNU/Linux, and
  thanks to `jpd' on c.u.b.f.misc, I managed to build FreeBSD 4.7's make
  under some GNU/Linux systems. Having a couple makefiles using make's
  features that were introduced after 4.7, I would like to build a more
  up-to-date.

there is the  bmake... from netbsd... it understands freebsd .mk files
comes with a bootstrap..   and after some configuration  runs very
good
on linux

http://www.morphisms.net/~wkj/software/bmake/index.html


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


Re: Can't log in as root on new 7.0 install

2008-04-14 Thread Jesse Sheidlower
On Mon, Apr 14, 2008 at 12:01:22PM -0500, Derek Ragona wrote:
 Jesse Sheidlower wrote:
 My helper did successfully log in as root over the console,
 and rebooted the server. However, all of my above problems are
 still the case: I cannot log in as root over ssh (OK, you
 addressed this), or by logging in as a regular user and doing
 a login root; and I cannot su to root even though I'm in the
 wheel group.
 
 When this is up and running I won't allow root logins at all,
 but my issue right now is that I'm not at the console and need
 to actually install things on the machine (sudo, for
 example...). So aside from being on the console, how _can_ I
 get this access on the machine?
 
 Thanks again.
 
 Jesse Sheidlower
 
 Are you logging in as a regular user then trying to su to root?  If you 
 are, what error are you getting?
 
 When you first login type:
 id
 and verify you are in the wheel group.

I had done this, but I just discovered the problem: I was
trying to su to root using the _user's_ password, not the
_root_ password.  I don't normally use su, I use sudo.

But now that I can in fact get to root this way, I'm on my
way.

Thanks very much.

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


advanced programming unix environment

2008-04-14 Thread Brother Seamus
I am trying to build the neccesary files for the stevens/rago APUE.2e book on 
FreeBSD 7.0

as instructed i get the source from here: http://www.apuebook.com/src.tar.gz

unzip  untar to:

/home/seamus/apue.2e

cd /home/seamus/apue.2e

amend Make.defines.freebsd as instructed so:
WKDIR=/home/seamus/apue.2e

and then run make from this directory.

I get the following error:
+
pracct.c  ../lib/libapue.a 
pracct.c: In function 'main':
pracct.c:31: error: storage size of 'acdata' isn't known
pracct.c:31: warning: unused variable 'acdata'
*** Error code 1

Stop in /usr/home/seamus/apue.2e/proc.
*** Error code 1

Stop in /usr/home/seamus/apue.2e.
*** Error code 1

Stop in /usr/home/seamus/apue.2e.
+

I would appreciate any help.

+
Make.defines.freebsd
+

# Common make definitions, customized for each platform

# Definitions required in all program directories to compile and link
# C programs using gcc.

WKDIR=/home/seamus/apue.2e
CC=gcc
COMPILE.c=$(CC) $(CFLAGS) $(CPPFLAGS) -c
LINK.c=$(CC) $(CFLAGS) $(CPPFLAGS) $(LDDIR) $(LDFLAGS)
LDDIR=-L../lib
LDLIBS=../lib/libapue.a $(EXTRALIBS)
CFLAGS=-ansi -I$(WKDIR)/include -Wall -DBSD $(EXTRA)

# Our library that almost every program needs.
LIB=../libapue.a

# Common temp files to delete from each directory.
TEMPFILES=core core.* *.o temp.* *.out typescript*

+
pracct.c
+

#include apue.h
#include sys/acct.h

#ifdef HAS_SA_STAT
#define FMT %-*.*s  e = %6ld, chars = %7ld, stat = %3u: %c %c %c %c\n
#else
#define FMT %-*.*s  e = %6ld, chars = %7ld, %c %c %c %c\n
#endif
#ifndef HAS_ACORE
#define ACORE 0
#endif
#ifndef HAS_AXSIG
#define AXSIG 0
#endif

static unsigned long
compt2ulong(comp_t comptime)/* convert comp_t to unsigned long */
{
unsigned longval;
intexp;

val = comptime  0x1fff;/* 13-bit fraction */
exp = (comptime  13)  7;/* 3-bit exponent (0-7) */
while (exp--  0)
val *= 8;
return(val);
}
int
main(int argc, char *argv[])
{
struct acctacdata;
FILE*fp;

if (argc != 2)
err_quit(usage: pracct filename);
if ((fp = fopen(argv[1], r)) == NULL)
err_sys(can't open %s, argv[1]);
while (fread(acdata, sizeof(acdata), 1, fp) == 1) {
printf(FMT, (int)sizeof(acdata.ac_comm),
(int)sizeof(acdata.ac_comm), acdata.ac_comm,
compt2ulong(acdata.ac_etime), compt2ulong(acdata.ac_io),
#ifdef HAS_SA_STAT
(unsigned char) acdata.ac_stat,
#endif
acdata.ac_flag  ACORE ? 'D' : ' ',
acdata.ac_flag  AXSIG ? 'X' : ' ',
acdata.ac_flag  AFORK ? 'F' : ' ',
acdata.ac_flag  ASU   ? 'S' : ' ');
}
if (ferror(fp))
err_sys(read error);
exit(0);
}





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


Re: Can't log in as root on new 7.0 install

2008-04-14 Thread Jerry McAllister
On Mon, Apr 14, 2008 at 10:35:03AM -0400, Jesse Sheidlower wrote:

 
 I've recently installed FreeBSD 7.0 on a new server. I seem to
 be unable to log in as root in any way, and I'm not sure why.
 Furthermore I'm now physically separate from the machine, and
 have been relying on a (non-computer-literate) colleague with
 access to its console server to try and help.
 
 After the initial install I (am pretty sure I) was able to log
 in as root over ssh. However, after a week when the machine
 was inaccessible for other reasons, I cannot log in as root,
 only as a normal user.
 
 I thought that I had perhaps mis-remembered the root password,
 so I directed the colleague to log in in single user mode and
 reset the root password; she was able to do this, and typed
 exit to return the system to multi-user mode and herself at
 a root prompt. However I was still not able to log in as root,
 either over ssh, or by logging in as a normal user and then
 typing login root (i.e. it wasn't just something preventing
 root logins over ssh).
 
 I then asked the colleague to add me to the wheel group,
 which she successfully did; I logged out and back in again,
 determined that I was indeed in this group, and tried to su - 
 and got a su: Sorry message, with the colleague reporting
 that a BAD SU [user] to root on /dev/ttyp0 message had
 appeared.
 
 I'm sort of at a loss for what to do or why this is happening,
 and am quite eager to control my own machineSuggestions
 welcome.

Well, the two things I would guess are:  there is a syntax error
in adding your regular id to the wheel group and you are typing
in the root password incorrectly.

I've never had it fail when I remembered to add my id to wheel
and got the root password right.

Can your colleague log in with her id and then su to root?

I have never used su with the '-' on it, but I presume that
should be no problem.

jerry

 
 Thanks very much.
 
 Jesse Sheidlower
 ___
 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: start up scripts stopped working

2008-04-14 Thread Frank Shute
On Sun, Apr 13, 2008 at 07:18:52PM -0600, Eric wrote:

 tomasz dereszynski wrote:
 Eric wrote:
 hello,
 
 does anyone know what I can do to fix the following problem?  Every 
 time my FreeBSd 6.2 machine reboots, none of the scripts in the 
 /usr/local/etc/rc.d directory launch the various programs i have 
 defined in my rc.conf file. when i added
 
 rc_info=yes
 rc_debug=yes
 
 to rc.conf i see things getting evaluated, but nothing is launched. 
 this forces someone to log in locally to the machine and start 
 openssh so i can get to the box.
 
 does anyone know what could be causing this?
 Hi Eric,
 
 can you copy your rc.conf file?
 
 would be easier to say something...
 cheers
 
 sure, here it is:
 
 defaultrouter=192.168.0.1
 hostname=someservername
 ifconfig_xl0=inet 192.168.0.51  netmask 255.255.255.0
 
 
 #sshd_program=/usr/local/sbin/sshd
 #sshd_enable=YES
 # disable built in SSH and enable SSH_portable
 sshd_enable=NO
 openssh_enable=YES
 
 font8x8=swiss-8x8
 font8x14=NO
 font8x16=swiss-8x16
 
 saslauthd_enable=YES
 
 postgrey_enable=YES
 
 sendmail_enable=YES
 sendmail_flags=-bd
 sendmail_outbound_enable=NO
 sendmail_submit_enable=NO
 sendmail_msp_queue_enable=NO
 
 clamav_freshclam_enable=YES
 clamav_clamd_enable=YES
 
 amavisd_enable=YES
 
 dovecot_enable=YES
 
 apache22_enable=YES
 samba_enable=YES
 smartd_enable=YES
 
 mysql_enable=YES
 
 vsftpd_enable=YES
 
 denyhosts_enable=YES
 
 mailgraph_enable=YES
 
 ddclient_enable=YES
 
 twdm2_enable=YES
 
 kern_securelevel=1
 kern_securelevel_enable=YES
 

I spotted a couple of things with your rc.conf that could be causing
you trouble:

1) There are a lot of unquoted YES's for enabling services. I don't
know if that could screw thing's up but for form's sake, I'd try quoting
them and rebooting.

2) You seem to have set your security level quite high. I can't find
where they are documented in 6.3 (in 7.0 under security(7)) but it
could be worth a try commenting out the securelevel lines and
rebooting and then setting your security level through sysctl (I
think you can do that).

HTH.

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

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


Re: Can't log in as root on new 7.0 install

2008-04-14 Thread Derek Ragona

At 11:30 AM 4/14/2008, Jesse Sheidlower wrote:

On Mon, Apr 14, 2008 at 10:04:21AM -0500, Derek Ragona wrote:
 At 09:35 AM 4/14/2008, Jesse Sheidlower wrote:

 I've recently installed FreeBSD 7.0 on a new server. I seem to
 be unable to log in as root in any way, and I'm not sure why.
 Furthermore I'm now physically separate from the machine, and
 have been relying on a (non-computer-literate) colleague with
 access to its console server to try and help.
 
 After the initial install I (am pretty sure I) was able to log
 in as root over ssh. However, after a week when the machine
 was inaccessible for other reasons, I cannot log in as root,
 only as a normal user.
 
 I thought that I had perhaps mis-remembered the root password,
 so I directed the colleague to log in in single user mode and
 reset the root password; she was able to do this, and typed
 exit to return the system to multi-user mode and herself at
 a root prompt. However I was still not able to log in as root,
 either over ssh, or by logging in as a normal user and then
 typing login root (i.e. it wasn't just something preventing
 root logins over ssh).
 
 I then asked the colleague to add me to the wheel group,
 which she successfully did; I logged out and back in again,
 determined that I was indeed in this group, and tried to su -
 and got a su: Sorry message, with the colleague reporting
 that a BAD SU [user] to root on /dev/ttyp0 message had
 appeared.
 
 I'm sort of at a loss for what to do or why this is happening,
 and am quite eager to control my own machineSuggestions
 welcome.
 
 Thanks very much.
 
 Jesse Sheidlower

 I would have your helper log in as root and reboot the server.  This will
 assure it is in multi-user.

 You should NOT be able to ssh in as root, unless you've opened up that
 security hole which is not recommended.

My helper did successfully log in as root over the console,
and rebooted the server. However, all of my above problems are
still the case: I cannot log in as root over ssh (OK, you
addressed this), or by logging in as a regular user and doing
a login root; and I cannot su to root even though I'm in the
wheel group.

When this is up and running I won't allow root logins at all,
but my issue right now is that I'm not at the console and need
to actually install things on the machine (sudo, for
example...). So aside from being on the console, how _can_ I
get this access on the machine?

Thanks again.

Jesse Sheidlower


Are you logging in as a regular user then trying to su to root?  If you 
are, what error are you getting?


When you first login type:
id
and verify you are in the wheel group.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Renovation Projects

2008-04-14 Thread uktradestreet
Hello

I came across your details and hope you will not see this as junk mail; if 
so, please do accept my apologies.

 

We at  www.uktradestreet.com  can offer you a complimentary service in that 
we have genuine customers - both commercial and domestic who would need your 
services and as such we would welcome you to register with us for FREE.

 

If you are a customer who needs to have a job undertaken - whether at home 
or in the office, then likewise you are most welcome to post your job on our 
site, and honest, reliable and customer recommended Tradespeople/companies, 
will be happy to give you a Quotation.

 

Why not have a look around, and remember, it is FREE to register ~ and you 
can tell all your friends and colleagues too!

 

Thanks

Michelle

T:020 8133 0625

www.uktradestreet.com

 

 

To unsubscribe please reply with 'unsubscribe' in subject heading ~ but we
hope you will sign up first!



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


Re: Can't log in as root on new 7.0 install

2008-04-14 Thread David Kelly
On Mon, Apr 14, 2008 at 01:16:45PM -0400, Jerry McAllister wrote:
 
 Well, the two things I would guess are:  there is a syntax error in
 adding your regular id to the wheel group and you are typing in the
 root password incorrectly.

In ancient times I had IRIX lock out a user because there was a space at
the end of their entry in /etc/passwd. Not hardly believing it myself,
made a link copy of csh with a space at the end and the user could
login. Fixed /etc/passwd, deleted the link, and placed a trouble report
with SGI.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


yelp won't upgrade properly

2008-04-14 Thread Dino Vliet


Jeremy Messenger [EMAIL PROTECTED] wrote: On Sun, 13 Apr 2008 15:56:11 -0500, 
Dino Vliet   
wrote:



 Jeremy Messenger  wrote: On Sat, 12 Apr 2008 14:45:47  
 -0500, Dino Vliet
 wrote:

 Folks,

 I've tried to upgrade my ports and get the following error from
 gnome-applets everytime I do a portupgrade gnome-applets:

 ain.c:42: error: structure has no member named `gconf'
 main.c:46: error: structure has no member named `gweather_pref'
 main.c:46: error: structure has no member named `gconf'
 gmake[2]: *** [main.o] Error 1
 gmake[2]: Leaving directory
 `/usr/ports/x11/gnome-applets/work/gnome-applets-2.22.1/gweather'
 gmake[1]: *** [install-recursive] Error 1
 gmake[1]: Leaving directory
 `/usr/ports/x11/gnome-applets/work/gnome-applets-2.22.1/gweather'
 gmake: *** [install-recursive] Error 1
 *** Error code 2

 Stop in /usr/ports/x11/gnome-applets.
 *** Error code 1

 Stop in /usr/ports/x11/gnome-applets.
 *** Error code 1

 Stop in /usr/ports/x11/gnome-applets.
 ** Command failed [exit code 1]: /usr/bin/script -qa
 /tmp/portupgrade.38565.0 env UPGRADE_TOOL=portupgrade
 UPGRADE_PORT=gnome-applets-2.20.1 UPGRADE_PORT_VER=2.20.1 make
 WITH_FAM_SYSTEM=fam reinstall
 ---  Restoring the old version

 ** Fix the installation problem and try again.
 [Updating the pkgdb  in /var/db/pkg ... - 988 packages
 found (-0 +1) . done]
 ** Listing the failed packages (-:ignored / *:skipped / !:failed)
 ! x11/gnome-applets (gnome-applets-2.20.1)  (install error)
 ** Could not clean up temporary directory: Directory not empty -
 /var/tmp/portupgradeOdM6jXk4


 I'm seeing this on my AMD64 freebsd 6.3 system.

 Does anyone have ideas?

 Did you follow the /usr/ports/UPDATING?

 Cheers,
 Mezz

 Thanks

 Now I did and chek out the mess:

 ** Fix the problem and try again.
 ** Listing the failed packages (-:ignored / *:skipped / !:failed)
 - graphics/ImageMagick (marked as IGNORE)
 - java/diablo-jdk15 (marked as IGNORE)
 - japanese/lynx (marked as IGNORE)
 - java/jdk15 (marked as IGNORE)
 - textproc/p5-Text-ParseWords (port directory error)
 - x11-servers/xorg-printserver (marked as IGNORE)
 ! devel/ccrtp (ccrtp-1.5.2) (unknown build error)
 * devel/libzrtpcpp (libzrtpcpp-0.9.2)
 * net/twinkle (twinkle-1.0_4)
 * multimedia/libxine (libxine-1.1.7_3)
 ! x11/yelp (yelp-2.18.1_1)  (linker error)
 * finance/gnucash-docs (gnucash-docs-2.2.0)
 * finance/gnucash (gnucash-2.2.0)
 ! security/seahorse (gnome-keyring-manager-2.20.0)   
 (configure error)

 What is next?

It doesn't show anything. You need to do it again to get actually error.  
The portupgrade has option to save build log or you can go to each port  
and do it by hand to get build error log. As for the seahorse part, are  
you sure you have complete ports tree up to date? The portupgrade is  
supposed to delete gnome-keyring-manager. If you still have it, remove it  
by manual and redo it.

Cheers,
Mezz


-- 
[EMAIL PROTECTED]  -  [EMAIL PROTECTED]
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  [EMAIL PROTECTED]
Ok thanks for the suggestions,

I've started with Yelp but am getting this error when doing a make install 
distclean.

[EMAIL PROTECTED] /usr/ports/x11/yelp]# make install distclean
===  Building for yelp-2.22.1
gmake  all-recursive
gmake[1]: Entering directory `/usr/ports/x11/yelp/work/yelp-2.22.1'
Making all in src
gmake[2]: Entering directory `/usr/ports/x11/yelp/work/yelp-2.22.1/src'
gmake  all-am
gmake[3]: Entering directory `/usr/ports/x11/yelp/work/yelp-2.22.1/src'
/bin/sh ../libtool --tag=CXX --mode=link c++ -fno-rtti  -fshort-wchar -O2 
-fno-strict-aliasing -pipe -Wall -Wno-unused  -Wno-ctor-dtor-privacy 
-Wno-non-virtual-dtor -O2 -fno-strict-aliasing -pipe  -L/usr/local/lib -o yelp 
-R/usr/local/lib/firefox  yelp-Yelper.o yelp-yelp-base.o yelp-yelp-bookmarks.o 
yelp-yelp-debug.o yelp-yelp-error.o yelp-yelp-gecko-utils.o yelp-yelp-html.o 
yelp-yelp-io-channel.o yelp-yelp-settings.o yelp-yelp-utils.o 
yelp-yelp-window.o yelp-yelp-marshal.o yelp-yelp-main.o yelp-yelp-print.o 
yelp-yelp-page.o yelp-yelp-transform.o yelp-yelp-gecko-services.o 
yelp-yelp-document.o yelp-yelp-toc.o yelp-yelp-docbook.o yelp-yelp-db-print.o 
yelp-yelp-man-parser.o yelp-yelp-man.o yelp-yelp-info.o yelp-yelp-info-parser.o 
yelp-gtkentryaction.o yelp-yelp-search.o yelp-yelp-search-parser.o -pthread 
-L/usr/local/lib -lglade-2.0 -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnomevfs-2 
-lgnomecanvas-2 -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lORBit-2 
-lart_lgpl_2
 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lXext 
-lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lcairo 
-lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lX11 -lXfixes -lgconf-2 
-lgthread-2.0 -lgmodule-2.0 -lexslt -lxslt -lz -lm -lgcrypt -lgpg-error -lxml2 
-lstartup-notification-1 -ldbus-glib-1 -ldbus-1 -lgobject-2.0 

Re: port seahorse won't upgrade properly

2008-04-14 Thread Dino Vliet


Jeremy Messenger [EMAIL PROTECTED] wrote: On Sun, 13 Apr 2008 15:56:11 -0500, 
Dino Vliet   
wrote:



 Jeremy Messenger  wrote: On Sat, 12 Apr 2008 14:45:47  
 -0500, Dino Vliet
 wrote:

 Folks,

 I've tried to upgrade my ports and get the following error from
 gnome-applets everytime I do a portupgrade gnome-applets:

 ain.c:42: error: structure has no member named `gconf'
 main.c:46: error: structure has no member named `gweather_pref'
 main.c:46: error: structure has no member named `gconf'
 gmake[2]: *** [main.o] Error 1
 gmake[2]: Leaving directory
 `/usr/ports/x11/gnome-applets/work/gnome-applets-2.22.1/gweather'
 gmake[1]: *** [install-recursive] Error 1
 gmake[1]: Leaving directory
 `/usr/ports/x11/gnome-applets/work/gnome-applets-2.22.1/gweather'
 gmake: *** [install-recursive] Error 1
 *** Error code 2

 Stop in /usr/ports/x11/gnome-applets.
 *** Error code 1

 Stop in /usr/ports/x11/gnome-applets.
 *** Error code 1

 Stop in /usr/ports/x11/gnome-applets.
 ** Command failed [exit code 1]: /usr/bin/script -qa
 /tmp/portupgrade.38565.0 env UPGRADE_TOOL=portupgrade
 UPGRADE_PORT=gnome-applets-2.20.1 UPGRADE_PORT_VER=2.20.1 make
 WITH_FAM_SYSTEM=fam reinstall
 ---  Restoring the old version

 ** Fix the installation problem and try again.
 [Updating the pkgdb  in /var/db/pkg ... - 988 packages
 found (-0 +1) . done]
 ** Listing the failed packages (-:ignored / *:skipped / !:failed)
 ! x11/gnome-applets (gnome-applets-2.20.1)  (install error)
 ** Could not clean up temporary directory: Directory not empty -
 /var/tmp/portupgradeOdM6jXk4


 I'm seeing this on my AMD64 freebsd 6.3 system.

 Does anyone have ideas?

 Did you follow the /usr/ports/UPDATING?

 Cheers,
 Mezz

 Thanks

 Now I did and chek out the mess:

 ** Fix the problem and try again.
 ** Listing the failed packages (-:ignored / *:skipped / !:failed)
 - graphics/ImageMagick (marked as IGNORE)
 - java/diablo-jdk15 (marked as IGNORE)
 - japanese/lynx (marked as IGNORE)
 - java/jdk15 (marked as IGNORE)
 - textproc/p5-Text-ParseWords (port directory error)
 - x11-servers/xorg-printserver (marked as IGNORE)
 ! devel/ccrtp (ccrtp-1.5.2) (unknown build error)
 * devel/libzrtpcpp (libzrtpcpp-0.9.2)
 * net/twinkle (twinkle-1.0_4)
 * multimedia/libxine (libxine-1.1.7_3)
 ! x11/yelp (yelp-2.18.1_1)  (linker error)
 * finance/gnucash-docs (gnucash-docs-2.2.0)
 * finance/gnucash (gnucash-2.2.0)
 ! security/seahorse (gnome-keyring-manager-2.20.0)   
 (configure error)

 What is next?

It doesn't show anything. You need to do it again to get actually error.  
The portupgrade has option to save build log or you can go to each port  
and do it by hand to get build error log. As for the seahorse part, are  
you sure you have complete ports tree up to date? The portupgrade is  
supposed to delete gnome-keyring-manager. If you still have it, remove it  
by manual and redo it.

Cheers,
Mezz


-- 
[EMAIL PROTECTED]  -  [EMAIL PROTECTED]
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  [EMAIL PROTECTED]
I've continued with the seahorse problem. In /usr/ports/UPDATING I couldn't 
find anything regarding seahorse!

So I removed gnome-keyring-manager as you suggested.
Then I did a portsnap fetch update.

I then tried to install seahorse but got the following error:
===   epiphany-2.22.1.1 depends on shared library: ORBit-2.0 - found
===   epiphany-2.22.1.1 depends on shared library: pango-1.0.0 - found
===  Configuring for epiphany-2.22.1.1
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... amd64-portbld-freebsd6.3
checking host system type... amd64-portbld-freebsd6.3
checking for style of include used by gmake... GNU
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking dependency style of cc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes

Re: advanced programming unix environment

2008-04-14 Thread Mel
On Monday 14 April 2008 18:48:58 Brother Seamus wrote:

 I am trying to build the neccesary files for the stevens/rago APUE.2e book
 on FreeBSD 7.0

snip

 I get the following error:
 +
 pracct.c  ../lib/libapue.a
 pracct.c: In function 'main':
 pracct.c:31: error: storage size of 'acdata' isn't known
 pracct.c:31: warning: unused variable 'acdata'

The legacy struct acct has been renamed to acctv1 and a new one is named 
acctv2.
If you add:
typedef struct acctv1 acct_t;
After the #include sys/acct.h

then change the type of acdata to 'acct_t', you'll probably have solved it. 
But depends a bit on the rest of the library.


-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: advanced programming unix environment

2008-04-14 Thread Brother Seamus
just a note: same source code makes fine on solaris installation.

I would appreciate if somebody else running freebsd 7.0 could download source 
and see if it makes fine on their installation.

Steven's Advance Programming in the Unix Environment Source code:
http://www.apuebook.com/src.tar.gz

thanks


Date: Mon, 14 Apr 2008 16:48:58 + (GMT)
From: Brother Seamus [EMAIL PROTECTED]
Subject: advanced programming unix environment
To: freebsd-questions@freebsd.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=utf-8

I am trying to build the neccesary files for the stevens/rago APUE.2e book on 
FreeBSD 7.0

as instructed i get the source from here: http://www.apuebook.com/src.tar.gz

unzip  untar to:

/home/seamus/apue.2e

cd /home/seamus/apue.2e

amend Make.defines.freebsd as instructed so:
WKDIR=/home/seamus/apue.2e

and then run make from this directory.

I get the following error:
+
pracct.c  ../lib/libapue.a 
pracct.c: In function 'main':
pracct.c:31: error: storage size of 'acdata' isn't known
pracct.c:31: warning: unused variable 'acdata'
*** Error code 1

Stop in /usr/home/seamus/apue.2e/proc.
*** Error code 1

Stop in /usr/home/seamus/apue.2e.
*** Error code 1

Stop in /usr/home/seamus/apue.2e.
+

I would appreciate any help.

+
Make.defines.freebsd
+

# Common make definitions, customized for each platform

# Definitions required in all program directories to compile and link
# C programs using gcc.

WKDIR=/home/seamus/apue.2e
CC=gcc
COMPILE.c=$(CC) $(CFLAGS) $(CPPFLAGS) -c
LINK.c=$(CC) $(CFLAGS) $(CPPFLAGS) $(LDDIR) $(LDFLAGS)
LDDIR=-L../lib
LDLIBS=../lib/libapue.a $(EXTRALIBS)
CFLAGS=-ansi -I$(WKDIR)/include -Wall -DBSD $(EXTRA)

# Our library that almost every program needs.
LIB=../libapue.a

# Common temp files to delete from each directory.
TEMPFILES=core core.* *.o temp.* *.out typescript*

+
pracct.c
+

#include apue.h
#include sys/acct.h

#ifdef HAS_SA_STAT
#define FMT %-*.*s  e = %6ld, chars = %7ld, stat = %3u: %c %c %c %c\n
#else
#define FMT %-*.*s  e = %6ld, chars = %7ld, %c %c %c %c\n
#endif
#ifndef HAS_ACORE
#define ACORE 0
#endif
#ifndef HAS_AXSIG
#define AXSIG 0
#endif

static unsigned long
compt2ulong(comp_t comptime)/* convert comp_t to unsigned long */
{
unsigned longval;
intexp;

val = comptime  0x1fff;/* 13-bit fraction */
exp = (comptime  13)  7;/* 3-bit exponent (0-7) */
while (exp--  0)
val *= 8;
return(val);
}
int
main(int argc, char *argv[])
{
struct acctacdata;
FILE*fp;

if (argc != 2)
err_quit(usage: pracct filename);
if ((fp = fopen(argv[1], r)) == NULL)
err_sys(can't open %s, argv[1]);
while (fread(acdata, sizeof(acdata), 1, fp) == 1) {
printf(FMT, (int)sizeof(acdata.ac_comm),
(int)sizeof(acdata.ac_comm), acdata.ac_comm,
compt2ulong(acdata.ac_etime), compt2ulong(acdata.ac_io),
#ifdef HAS_SA_STAT
(unsigned char) acdata.ac_stat,
#endif
acdata.ac_flag  ACORE ? 'D' : ' ',
acdata.ac_flag  AXSIG ? 'X' : ' ',
acdata.ac_flag  AFORK ? 'F' : ' ',
acdata.ac_flag  ASU   ? 'S' : ' ');
}
if (ferror(fp))
err_sys(read error);
exit(0);
}







--

Message: 23
Date: Mon, 14 Apr 2008 13:16:45 -0400
From: Jerry McAllister [EMAIL PROTECTED]
Subject: Re: Can't log in as root on new 7.0 install
To: Jesse Sheidlower [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii

On Mon, Apr 14, 2008 at 10:35:03AM -0400, Jesse Sheidlower wrote:

 
 I've recently installed FreeBSD 7.0 on a new server. I seem to
 be unable to log in as root in any way, and I'm not sure why.
 Furthermore I'm now physically separate from the machine, and
 have been relying on a (non-computer-literate) colleague with
 access to its console server to try and help.
 
 After the initial install I (am pretty sure I) was able to log
 in as root over ssh. However, after a week when the machine
 was inaccessible for other reasons, I cannot log in as root,
 only as a normal user.
 
 I thought that I had perhaps mis-remembered the root password,
 so I directed the colleague to log in in single user mode and
 reset the root password; she was able to do this, and typed
 exit to return the system to multi-user mode and herself at
 a root prompt. However I was still not able to log in as root,
 either over ssh, or by logging in as a normal user and then
 typing login root (i.e. it wasn't just something preventing
 root logins over ssh).
 
 I then asked the colleague to add me to the wheel group,
 which she successfully did; I logged out and back in again,
 

Re: start up scripts stopped working

2008-04-14 Thread Eric Zimmerman

Frank Shute wrote:


I spotted a couple of things with your rc.conf that could be causing
you trouble:

1) There are a lot of unquoted YES's for enabling services. I don't
know if that could screw thing's up but for form's sake, I'd try quoting
them and rebooting.

2) You seem to have set your security level quite high. I can't find
where they are documented in 6.3 (in 7.0 under security(7)) but it
could be worth a try commenting out the securelevel lines and
rebooting and then setting your security level through sysctl (I
think you can do that).


I will give this a whirl and see how it goes. I have never had issues 
with the unquoted YES statements unless they are not balanced (i.e. 
foo_enable=YES or foo_enable=YES blows up), but I did quote everything 
to be consistent


I commented out the securelevel stuff as well.

Thanks for the suggestions. i will report back once i get the box rebooted
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mousewheel verschwunden

2008-04-14 Thread Rob

Seth Brundle wrote:

(That set aside: I'm deeply impressed by the fact that list members
translated my erraneous posting -- this is VERY friendly and shows the
BSD communities superiority, if I might say so. Thanks again! :)


w00t!!

That's Internet for Thanks, Erich, and I concur with Seth's praise  :)

 -R


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


Re: yelp won't upgrade properly

2008-04-14 Thread Jeremy Messenger
On Mon, 14 Apr 2008 13:28:40 -0500, Dino Vliet [EMAIL PROTECTED]  
wrote:



Ok thanks for the suggestions,

I've started with Yelp but am getting this error when doing a make  
install distclean.


[EMAIL PROTECTED] /usr/ports/x11/yelp]# make install distclean
===  Building for yelp-2.22.1
gmake  all-recursive
gmake[1]: Entering directory `/usr/ports/x11/yelp/work/yelp-2.22.1'
Making all in src
gmake[2]: Entering directory `/usr/ports/x11/yelp/work/yelp-2.22.1/src'
gmake  all-am
gmake[3]: Entering directory `/usr/ports/x11/yelp/work/yelp-2.22.1/src'
/bin/sh ../libtool --tag=CXX --mode=link c++ -fno-rtti  -fshort-wchar  
-O2 -fno-strict-aliasing -pipe -Wall -Wno-unused  -Wno-ctor-dtor-privacy  
-Wno-non-virtual-dtor -O2 -fno-strict-aliasing -pipe  -L/usr/local/lib  
-o yelp -R/usr/local/lib/firefox  yelp-Yelper.o yelp-yelp-base.o  
yelp-yelp-bookmarks.o yelp-yelp-debug.o yelp-yelp-error.o  
yelp-yelp-gecko-utils.o yelp-yelp-html.o yelp-yelp-io-channel.o  
yelp-yelp-settings.o yelp-yelp-utils.o yelp-yelp-window.o  
yelp-yelp-marshal.o yelp-yelp-main.o yelp-yelp-print.o yelp-yelp-page.o  
yelp-yelp-transform.o yelp-yelp-gecko-services.o yelp-yelp-document.o  
yelp-yelp-toc.o yelp-yelp-docbook.o yelp-yelp-db-print.o  
yelp-yelp-man-parser.o yelp-yelp-man.o yelp-yelp-info.o  
yelp-yelp-info-parser.o yelp-gtkentryaction.o yelp-yelp-search.o  
yelp-yelp-search-parser.o -pthread -L/usr/local/lib -lglade-2.0  
-lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnomevfs-2 -lgnomecanvas-2  
-lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lORBit-2 -lart_lgpl_2
 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0  
-lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite  
-lXdamage -lcairo -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig  
-lX11 -lXfixes -lgconf-2 -lgthread-2.0 -lgmodule-2.0 -lexslt -lxslt -lz  
-lm -lgcrypt -lgpg-error -lxml2 -lstartup-notification-1 -ldbus-glib-1  
-ldbus-1 -lgobject-2.0 -lglib-2.0 -liconv -lrarian -lz -lbz2  -lSM  
-lICE  -L/usr/local/lib -lX11  -Wl,-rpath,/usr/local/lib/firefox  
-pthread -L/usr/local/lib/firefox -L/usr/local/lib -lgtkembedmoz -lxpcom  
-lplds4 -lplc4 -lnspr4
c++ -fno-rtti -fshort-wchar -O2 -fno-strict-aliasing -pipe -Wall  
-Wno-unused -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -O2  
-fno-strict-aliasing -pipe -o yelp yelp-Yelper.o yelp-yelp-base.o  
yelp-yelp-bookmarks.o yelp-yelp-debug.o yelp-yelp-error.o  
yelp-yelp-gecko-utils.o yelp-yelp-html.o yelp-yelp-io-channel.o  
yelp-yelp-settings.o yelp-yelp-utils.o yelp-yelp-window.o  
yelp-yelp-marshal.o yelp-yelp-main.o yelp-yelp-print.o yelp-yelp-page.o  
yelp-yelp-transform.o yelp-yelp-gecko-services.o yelp-yelp-document.o  
yelp-yelp-toc.o yelp-yelp-docbook.o yelp-yelp-db-print.o  
yelp-yelp-man-parser.o yelp-yelp-man.o yelp-yelp-info.o  
yelp-yelp-info-parser.o yelp-gtkentryaction.o yelp-yelp-search.o  
yelp-yelp-search-parser.o -pthread -Wl,-rpath -Wl,/usr/local/lib/firefox  
-pthread  -L/usr/local/lib /usr/local/lib/libglade-2.0.so  
/usr/local/lib/libgnomeui-2.so /usr/local/lib/libgio-2.0.so  
/usr/local/lib/libgnome-keyring.so /usr/local/lib/libjpeg.so  
/usr/local/lib/libbonoboui-2.so
 /usr/local/lib/libgnomecanvas-2.so /usr/local/lib/libgailutil.so  
/usr/local/lib/libpixman-1.so /usr/local/lib/libgnome-2.so  
/usr/local/lib/libgnomevfs-2.so -lssl -lcrypto -lutil  
/usr/local/lib/libesd.so -laudiofile /usr/local/lib/libpopt.so  
/usr/local/lib/libbonobo-2.so /usr/local/lib/libbonobo-activation.so  
/usr/local/lib/libORBitCosNaming-2.so /usr/local/lib/libart_lgpl_2.so  
/usr/local/lib/libgtk-x11-2.0.so /usr/local/lib/libgdk-x11-2.0.so  
/usr/local/lib/libatk-1.0.so /usr/local/lib/libgdk_pixbuf-2.0.so  
/usr/local/lib/libpangocairo-1.0.so /usr/local/lib/libXinerama.so  
/usr/local/lib/libXi.so /usr/local/lib/libXrandr.so  
/usr/local/lib/libXcursor.so /usr/local/lib/libXcomposite.so  
/usr/local/lib/libXext.so /usr/local/lib/libXdamage.so  
/usr/local/lib/libcairo.so /usr/local/lib/libglitz.so -lpng  
/usr/local/lib/libXrender.so /usr/local/lib/libpangoft2-1.0.so  
/usr/local/lib/libpango-1.0.so /usr/local/lib/libfontconfig.so  
/usr/local/lib/libfreetype.so /usr/local/lib/libexpat.so
 /usr/local/lib/libXfixes.so /usr/local/lib/libgconf-2.so  
/usr/local/lib/libORBit-2.so /usr/local/lib/libgthread-2.0.so  
/usr/local/lib/libgmodule-2.0.so /usr/local/lib/libexslt.so  
/usr/local/lib/libxslt.so /usr/local/lib/libgcrypt.so  
/usr/local/lib/libgpg-error.so /usr/local/lib/libxml2.so -lm  
/usr/local/lib/libstartup-notification-1.so  
/usr/local/lib/libdbus-glib-1.so /usr/local/lib/libdbus-1.so -pthread  
/usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so -licui18n  
/usr/local/lib/libintl.so /usr/local/lib/libpcre.so  
/usr/local/lib/libiconv.so /usr/local/lib/librarian.so -lz -lbz2  
/usr/local/lib/libSM.so /usr/local/lib/libICE.so  
/usr/local/lib/libX11.so /usr/local/lib/libXau.so  
/usr/local/lib/libXdmcp.so -lrpcsvc -L/usr/local/lib/firefox  
-lgtkembedmoz -lxpcom 

Re: start up scripts stopped working

2008-04-14 Thread Eric Zimmerman

Eric Zimmerman wrote:

Frank Shute wrote:


I spotted a couple of things with your rc.conf that could be causing
you trouble:

1) There are a lot of unquoted YES's for enabling services. I don't
know if that could screw thing's up but for form's sake, I'd try quoting
them and rebooting.

2) You seem to have set your security level quite high. I can't find
where they are documented in 6.3 (in 7.0 under security(7)) but it
could be worth a try commenting out the securelevel lines and
rebooting and then setting your security level through sysctl (I
think you can do that).


I will give this a whirl and see how it goes. I have never had issues 
with the unquoted YES statements unless they are not balanced (i.e. 
foo_enable=YES or foo_enable=YES blows up), but I did quote everything 
to be consistent


I commented out the securelevel stuff as well.

Thanks for the suggestions. i will report back once i get the box rebooted


success! commenting out the securelevel resolved the issue.  i never ran 
into that before, but glad its working as expected now.


Thanks for the help!

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


Defer Checking on USB Drive

2008-04-14 Thread Andy Christianson
I have a production server running FreeBSD 7.0-RELEASE, and it has
stability issues. The problem is that after a crash, it takes quite a
while to get back up and running. Most of the time is spent doing a file
system check on a 500GB USB drive with a single UFS partition. I noticed
that my var, root, an dtmp partitions all have their checks deferred,
which is the desirable behavior as it gets the server back up and
running as soon as possible. Is there a way to have the file system
check for the partition that resides on the USB drive follow this same
behavior?

Thanks in advance for any advice.

-- 
Andrew Christianson
Orases Consulting Corporation
Interactive Business and Technology Solutions
phone/ 301.694.8991 ext. 100
fax/ 301.694.8993
email/ [EMAIL PROTECTED]
http://www.orases.com

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


Re: port seahorse won't upgrade properly

2008-04-14 Thread Jeremy Messenger
On Mon, 14 Apr 2008 13:36:18 -0500, Dino Vliet [EMAIL PROTECTED]  
wrote:


I've continued with the seahorse problem. In /usr/ports/UPDATING I  
couldn't find anything regarding seahorse!


The gnome-keyring-manager is in /usr/ports/MOVED for gnome-keyring-manager  
- seahorse. For some reason, your portupgrade doesn't remove and replace  
to seahorse by itself. I don't know what happened.



So I removed gnome-keyring-manager as you suggested.
Then I did a portsnap fetch update.

I then tried to install seahorse but got the following error:

===   epiphany-2.22.1.1 depends on shared library: ORBit-2.0 - found
===   epiphany-2.22.1.1 depends on shared library: pango-1.0.0 - found
===  Configuring for epiphany-2.22.1.1

snip

checking what language compliance flags to pass to the C++ compiler...
checking for DEPENDENCIES... configure: error: Package requirements (
  glib-2.0 = 2.16.0
  gmodule-2.0
  gio-unix-2.0 = 2.16.0
  gtk+-2.0 = 2.12.0
  gtk+-unix-print-2.0 = 2.12.0
  libxml-2.0 = 2.6.12
  libxslt = 1.1.7
  libgnome-2.0 = 2.14.0
  libgnomeui-2.0 = 2.14.0
  libglade-2.0 = 2.3.1   gconf-2.0
  gnome-desktop-2.0 = 2.9.91
  libstartup-notification-1.0 = 0.5
  libnotify = 0.4
  ) were not met:
Package gnome-keyring-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gnome-keyring-1.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gnome-keyring-1', required by 'libgnomeui', not found

snip


What now?

I really don't have a clue.

Hope you can help me out,


Let me guess, you have selected to disable KEYRING option? It looks like  
this part is our fault. In Seahorse 2.22, it no longer provide option,  
which it required to have gnome-keyring dependency. I will fix it when I  
get back this afternoon by remove KEYRING option and depend on  
gnome-keyring. Meaning time, you can re-enable KEYRING and it should  
install Seahorse.


Cheers,
Mezz


brgds
Dino



--
[EMAIL PROTECTED]  -  [EMAIL PROTECTED]
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  [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: Defer Checking on USB Drive

2008-04-14 Thread Dominic Fandrey

Andy Christianson wrote:

I have a production server running FreeBSD 7.0-RELEASE, and it has
stability issues. The problem is that after a crash, it takes quite a
while to get back up and running. Most of the time is spent doing a file
system check on a 500GB USB drive with a single UFS partition. I noticed
that my var, root, an dtmp partitions all have their checks deferred,
which is the desirable behavior as it gets the server back up and
running as soon as possible. Is there a way to have the file system
check for the partition that resides on the USB drive follow this same
behavior?

Thanks in advance for any advice.



This sounds like the pass column in your /etc/fstab file is wrong.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: advanced programming unix environment

2008-04-14 Thread Brother Seamus
Hi Mel,

Thanks for your reply - very insightful - i have beendelving into the c library 
files - which is after all why i am readingthis book, though still at the 
beginning 8).

On the pracct.c source file I have found it sufficient just to change line 31

from 
  struct acctacdata;
to
 struct acctv1acdata;

this leaves me with only 1 error which I have side stepped but not fixed.


error: +

bsdexit2.c: In function 'thr_fn2';
bsdexit2.c:31: Warning format '%d' expects type 'int', but argument 2 has type 
'pthread_t'
+

line 31of threads/bsdexit2.c reads:

printf(thread 2: ID is %d\n, pthread_self

which I have commented this line and Make finishes building.

however which %   ? operater would I use to display pthread_self. 
In the c library pthread.h it says it is of pthread_t type.

I appreciate your help and I am grateful that you have inspired me.

Kindest regards,

Seamus

- Original Message 
From: Mel [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Cc: Brother Seamus [EMAIL PROTECTED]
Sent: Monday, 14 April, 2008 7:51:05 PM
Subject: Re: advanced programming unix environment

On Monday 14 April 2008 18:48:58 Brother Seamus wrote:

 I am trying to build the neccesary files for the stevens/rago APUE.2e book
 on FreeBSD 7.0

snip

 I get the following error:
 +
 pracct.c  ../lib/libapue.a
 pracct.c: In function 'main':
 pracct.c:31: error: storage size of 'acdata' isn't known
 pracct.c:31: warning: unused variable 'acdata'

The legacy struct acct has been renamed to acctv1 and a new one is named 
acctv2.
If you add:
typedef struct acctv1 acct_t;
After the #include sys/acct.h

then change the type of acdata to 'acct_t', you'll probably have solved it. 
But depends a bit on the rest of the library.


-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.

- Original Message 
From: Mel [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Cc: Brother Seamus [EMAIL PROTECTED]
Sent: Monday, 14 April, 2008 7:51:05 PM
Subject: Re: advanced programming unix environment

On Monday 14 April 2008 18:48:58 Brother Seamus wrote:

 I am trying to build the neccesary files for the stevens/rago APUE.2e book
 on FreeBSD 7.0

snip

 I get the following error:
 +
 pracct.c  ../lib/libapue.a
 pracct.c: In function 'main':
 pracct.c:31: error: storage size of 'acdata' isn't known
 pracct.c:31: warning: unused variable 'acdata'

The legacy struct acct has been renamed to acctv1 and a new one is named 
acctv2.
If you add:
typedef struct acctv1 acct_t;
After the #include sys/acct.h

then change the type of acdata to 'acct_t', you'll probably have solved it. 
But depends a bit on the rest of the library.


-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.




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


Re: Invoking ldconfig without arguments wipes all hints and makes me very sad

2008-04-14 Thread Shelby Cain

On Fri, 2008-04-11 at 22:13 +0200, Mel wrote:
 On Friday 11 April 2008 16:42:57 Shelby Cain wrote:
 
  Why does factory settings not include scanning the built-in system
  library path /usr/lib?  From the man page, it would seem that if I truly
  wanted to remove all runtime information I'd want to run something along
  the lines of ldconfig -s.  Am I misreading something?
 
 It should, otherwise it's a bug in either the manpage or ldconfig.
 

Alright, assuming I'm not hallucinating I'll file an appropriate bug
report.

  Also, under what circumstances does -v actually do something?  I can't
  seem to find a case where -v actually alters the output of ldconfig.
 
 When it does something. For example, if your cache contains libfoo.so.1 and 
 you installed /usr/local/lib/libfoo.so.2, then ldconfig -vm /usr/local/lib 
 will print:
 Updating libfoo.so.1.0 to /usr/local/lib/libfoo.so.2
 

Ok, thanks.

Regards,

Shelby Cain


signature.asc
Description: This is a digitally signed message part


smbutil crypt'd password authentication failures

2008-04-14 Thread Darren Spruell
I'm using the FreeBSD SMB/CIFS layer for authentication to remote
Windows shared resources in a domain ( smbutil(1), mount_smbfs(8),
nsmb.conf(5) ). I've ran into the following situation:

1. Listing the password literally (in the clear) in nsmb.conf allows
me to authenticate against the Windows domain and access resources
successfully.
2. Listing the password's crypt (using 'smbutil crypt') i.e. $$1..
results in authentication failures, e.g.:


# With password crypt:
$ sudo smbutil view //[EMAIL PROTECTED]
smbutil: unable to open connection: syserr = Authentication error
smbutil: could not login to server CAFFEINEADDICTS: syserr =
Authentication error

# With cleartext password
$ sudo smbutil view //[EMAIL PROTECTED]
ShareType   Comment
---
share1   disk
share2   disk
shared   disk

3 shares listed from 4 available


I've retried generating the crypt of the password several times both
my listing the password as a shell parameter (in single quotes) and by
typing at the Password: prompt from smbutil. Each time it outputs the
same crypt and I've verified accuracy of the crypt in nsmb.conf. The
clear text password is 25 characters in length and contains mixed
case, spaces, and symbols. A previous password worked successfully,
similar in makeup but ~17 characters in length.



Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-STABLE #0: Mon Mar 17 18:04:24 MST 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(R) CPU   E5345  @ 2.33GHz (2327.51-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x6f7  Stepping = 7
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0x4e3bdSSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA
  AMD Features=0x2010NX,LM
  AMD Features2=0x1LAHF
  Cores per package: 4
real memory  = 3219169280 (3070 MB)
avail memory = 3136241664 (2990 MB)
ACPI APIC Table: DELL   B8K
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC ID:  3
 cpu4 (AP): APIC ID:  4
 cpu5 (AP): APIC ID:  5
 cpu6 (AP): APIC ID:  6
 cpu7 (AP): APIC ID:  7
ioapic0: Changing APIC ID to 8
ioapic1: Changing APIC ID to 9
ioapic0 Version 2.0 irqs 0-23 on motherboard
ioapic1 Version 2.0 irqs 24-47 on motherboard
kbd1 at kbdmux0
netsmb_dev: loaded
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: DELL B8K on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
acpi_hpet0: High Precision Event Timer iomem 0xfed0-0xfed003ff on acpi0
Timecounter HPET frequency 14318180 Hz quality 900
cpu0: ACPI CPU on acpi0
est0: Enhanced SpeedStep Frequency Control on cpu0
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 721072106000721
device_attach: est0 attach returned 6
p4tcc0: CPU Frequency Thermal Control on cpu0
cpu1: ACPI CPU on acpi0
est1: Enhanced SpeedStep Frequency Control on cpu1
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 721072106000721
device_attach: est1 attach returned 6
p4tcc1: CPU Frequency Thermal Control on cpu1
cpu2: ACPI CPU on acpi0
est2: Enhanced SpeedStep Frequency Control on cpu2
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 721072106000721
device_attach: est2 attach returned 6
p4tcc2: CPU Frequency Thermal Control on cpu2
cpu3: ACPI CPU on acpi0
est3: Enhanced SpeedStep Frequency Control on cpu3
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 721072106000721
device_attach: est3 attach returned 6
p4tcc3: CPU Frequency Thermal Control on cpu3
cpu4: ACPI CPU on acpi0
est4: Enhanced SpeedStep Frequency Control on cpu4
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 721072106000721
device_attach: est4 attach returned 6
p4tcc4: CPU Frequency Thermal Control on cpu4
cpu5: ACPI CPU on acpi0
est5: Enhanced SpeedStep Frequency Control on cpu5
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 721072106000721
device_attach: est5 attach returned 6
p4tcc5: CPU Frequency Thermal Control on cpu5
cpu6: ACPI CPU on acpi0
est6: Enhanced SpeedStep Frequency Control on cpu6
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 721072106000721
device_attach: est6 attach returned 6
p4tcc6: CPU Frequency 

Re: Defer Checking on USB Drive

2008-04-14 Thread Mel
On Monday 14 April 2008 21:45:32 Andy Christianson wrote:

 Is there a way to have the file system
 check for the partition that resides on the USB drive follow this same
 behavior?

man tunefs, specifically, it needs to be ufs2 partitioned. Good telltale if it 
is ufs2 is the precense of a .snap directory in the root of the partition.
fsck uses this to make a snapshot of the partition so that it can defer the 
fsck.
And yes, could be your pass flag in fstab is set to 1, rather then 2.
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Defer Checking on USB Drive

2008-04-14 Thread RW
On Mon, 14 Apr 2008 22:12:52 +0200
Mel [EMAIL PROTECTED] wrote:

 On Monday 14 April 2008 21:45:32 Andy Christianson wrote:
 
  Is there a way to have the file system
  check for the partition that resides on the USB drive follow this
  same behavior?
 
 man tunefs, specifically, it needs to be ufs2 partitioned. Good
 telltale if it is ufs2 is the precense of a .snap directory in the
 root of the partition. fsck uses this to make a snapshot of the
 partition so that it can defer the fsck.

It's not just a matter of its being ufs2, you also need to have
soft-updates enabled for background file-checking.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Pkg_info corrupt for some packages

2008-04-14 Thread Aijaz Baig
Hello,

I tried running the script suggested by mel and after that I was able to see
that some of those packages got registered as installed.

However some of the packages were not being found and as an example I saw
the following:

Restoring doodle-0.6.6_1
Failed: cannot find doodle-0.6.6_1 in /usr/ports/INDEX-7*

*Then as suggested by andrew I tried to see just how many packages have been
messed and to my shock the figure for the first command was 336 and for the
second command was 326.

Well...how do I 'extract the port origins' from pkgdb.db?I am sorry if I
sound naive but im a bit new to freebsd.

Hope to hear from you guys,

On Sun, Apr 13, 2008 at 11:01 PM, Mel [EMAIL PROTECTED]
wrote:

 On Sunday 13 April 2008 11:41:19 Aijaz Baig wrote:
  Hi,
 
  Well...I tried to cut and paste the command as is by mel (though It
 would
  have been better if you explained what that cryptic looking command
  actually meant) and I got the followinfg output:
 
  'grep: /var/db/pkg/xorg-server-1.4_4,1/+CONTENTS: No such file or
 directory

 Well, that explaines it right there. It wasn't installed properly, because
 every installed port should have a +CONTENTS file.
 You can grab the files from 'pkgdb.db' like Andrew suggested, but I
 personally
 wouldn't trust those if portupgrade was the one that did this in the first
 place.
 This is where daily backups rock :).

 If your /usr/ports/INDEX-6 (or -7) is in sync with your installed
 packages,
 then maybe the following script will work. It worked for me testing it,
 but I
 can't guarentee it will work in all cases.

 If you're on FreeBSD 6, change INDEXFILE to /usr/ports/INDEX-6. Rest
 should
 work without changes.

 #!/bin/sh


 INDEXFILE='/usr/ports/INDEX-7'
 for dir in /var/db/pkg/*; do
if test ! -e ${dir}/+CONTENTS -a -d ${dir}; then
pkgname=${dir##*pkg/}
echo Restoring ${pkgname}
IDX=$(grep ^${pkgname}| ${INDEXFILE} 2/dev/null)
if test -z ${IDX}; then
echo Failed: cannot find ${pkgname} in ${INDEXFILE}
else
_origin=${IDX#*|}
origin=${_origin%%|*}
echo --- ${origin}
cd ${origin}
mv ${dir} /tmp/
make -DFORCE_PKG_REGISTER generate-plist fake-pkg
for file in /tmp/${pkgname}/*; do
f=${file##*/}
if test ! -f ${dir}/${f}; then
echo -- Restoring ${pkgname}/${f}
mv ${file} ${dir}/
fi
done
fi
fi
 done


 --
 Mel

 Problem with today's modular software: they start with the modules
and never get to the software part.

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


Re: advanced programming unix environment

2008-04-14 Thread Mel
On Monday 14 April 2008 22:02:22 Brother Seamus wrote:
 Hi Mel,

 Thanks for your reply - very insightful - i have beendelving into the c
 library files - which is after all why i am readingthis book, though still
 at the beginning 8).

 On the pracct.c source file I have found it sufficient just to change line
 31

 from
   struct acctacdata;
 to
  struct acctv1acdata;

I changed it like this, to be compatible with other OS's:
--- proc/pracct.c~  2005-05-24 03:59:41.0 -0800
+++ proc/pracct.c   2008-04-14 12:53:41.0 -0800
@@ -13,6 +13,12 @@
 #define AXSIG 0
 #endif

+#ifdef HAVE_ACCTV1
+typedef struct acctv1 acct_t;
+#else
+typedef struct acct acct_t;
+#endif
+
 static unsigned long
 compt2ulong(comp_t comptime)   /* convert comp_t to unsigned long */
 {
@@ -28,7 +34,7 @@
 int
 main(int argc, char *argv[])
 {
-   struct acct acdata;
+   acct_t  acdata;
FILE*fp;

if (argc != 2)

And added HAVE_ACCTV1 to CFLAGS in Make.defines.freebsd :)


 this leaves me with only 1 error which I have side stepped but not fixed.


 error: +

 bsdexit2.c: In function 'thr_fn2';
 bsdexit2.c:31: Warning format '%d' expects type 'int', but argument 2 has
 type 'pthread_t' +

 line 31of threads/bsdexit2.c reads:

 printf(thread 2: ID is %d\n, pthread_self

 which I have commented this line and Make finishes building.

 however which %   ? operater would I use to display pthread_self.
 In the c library pthread.h it says it is of pthread_t type.

Yes, it's a structure, so it's not an integer. pthread_self() returns the 
structure, not the thread id. The thread id is burried in the structure and 
you shouldn't make any assumptions about it's size or type, since it's opaque 
to you.

However, you can cast it to int and get away with it ;)
So make it:
printf(thread 2: ID is %d\n, (int)pthread_self());

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


HDD partitioning question...

2008-04-14 Thread Dharma Wolford
Hi folks,

(I'm a relative newcomer to all this... thanks for your patience  help.)

I've installed FreeBSD 6.2 on a system that will be primarily used as an FTP
server.  It has 2 drives - one for the OS and the other for the FTP
storage.  My question is about the storage drive in this case.

You can see how I have things partitioned right now:
#
[EMAIL PROTECTED] /var/log]# mount
/dev/da0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/da0s1d on /tmp (ufs, local, soft-updates)
/dev/da0s1f on /usr (ufs, local, soft-updates)
/dev/da0s1e on /var (ufs, local, soft-updates)
/dev/da1 on /usr/home (ufs, local, soft-updates)
[EMAIL PROTECTED] /var/log]#
#

I started by trying to use fdisk to partition the storage drive (/dev/da1)
but was getting errors which I don't exactly recall - something about a
problem with the 'block device'.
Anyway, then I wound up using the command newfs -O 2 /dev/da1  which
seemed to work and I was then able to mount and use the drive.

My question is:  is there anything wrong with having /dev/da1  mounted an
in-use?  Should I have created a partition like /dev/da1s1a or something?
I seem to remember somebody once chiding me for having formatted or mounted
the 'block device' itself instead of a partition... is this making any sense
to anyone?  Clearly I need to know more about *NIX file systems (slices,
partitions, block devices) and best practices or some such - I am working on
it but obviously have a ways to go!

Thanks very much!

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


Re: HDD partitioning question...

2008-04-14 Thread Derek Ragona

At 03:27 PM 4/14/2008, Dharma Wolford wrote:

Hi folks,

(I'm a relative newcomer to all this... thanks for your patience  help.)

I've installed FreeBSD 6.2 on a system that will be primarily used as an FTP
server.  It has 2 drives - one for the OS and the other for the FTP
storage.  My question is about the storage drive in this case.

You can see how I have things partitioned right now:
#
[EMAIL PROTECTED] /var/log]# mount
/dev/da0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/da0s1d on /tmp (ufs, local, soft-updates)
/dev/da0s1f on /usr (ufs, local, soft-updates)
/dev/da0s1e on /var (ufs, local, soft-updates)
/dev/da1 on /usr/home (ufs, local, soft-updates)
[EMAIL PROTECTED] /var/log]#
#

I started by trying to use fdisk to partition the storage drive (/dev/da1)
but was getting errors which I don't exactly recall - something about a
problem with the 'block device'.
Anyway, then I wound up using the command newfs -O 2 /dev/da1  which
seemed to work and I was then able to mount and use the drive.

My question is:  is there anything wrong with having /dev/da1  mounted an
in-use?  Should I have created a partition like /dev/da1s1a or something?
I seem to remember somebody once chiding me for having formatted or mounted
the 'block device' itself instead of a partition... is this making any sense
to anyone?  Clearly I need to know more about *NIX file systems (slices,
partitions, block devices) and best practices or some such - I am working on
it but obviously have a ways to go!

Thanks very much!

dharma


Sounds like the drive geometry was off or you may have a drive with 
issues.  You should have been able to create a partition with a single 
slice on it.  I would check the drive with diagnostics from the 
manufacturer.  Those utilities will also allow you to know the correct 
geometry.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: HDD partitioning question...

2008-04-14 Thread Jerry McAllister
On Mon, Apr 14, 2008 at 01:27:24PM -0700, Dharma Wolford wrote:

 Hi folks,
 
 (I'm a relative newcomer to all this... thanks for your patience  help.)
 
 I've installed FreeBSD 6.2 on a system that will be primarily used as an FTP
 server.  It has 2 drives - one for the OS and the other for the FTP
 storage.  My question is about the storage drive in this case.
 
 You can see how I have things partitioned right now:
 #
 [EMAIL PROTECTED] /var/log]# mount
 /dev/da0s1a on / (ufs, local)
 devfs on /dev (devfs, local)
 /dev/da0s1d on /tmp (ufs, local, soft-updates)
 /dev/da0s1f on /usr (ufs, local, soft-updates)
 /dev/da0s1e on /var (ufs, local, soft-updates)
 /dev/da1 on /usr/home (ufs, local, soft-updates)
 [EMAIL PROTECTED] /var/log]#
 #
 
 I started by trying to use fdisk to partition the storage drive (/dev/da1)
 but was getting errors which I don't exactly recall - something about a
 problem with the 'block device'.
 Anyway, then I wound up using the command newfs -O 2 /dev/da1  which
 seemed to work and I was then able to mount and use the drive.

Let's get a technicality out of the way first.
The primary division of the disk - that is usually created using fdisk
is called a 'slice' in FreeBSD, not partition.   If you subdivide
a slice, then those subdivisions are called partitions.

So, maybe you either misused fdisk or misunderstood the error message.
You didn't repete either the full command you entered or the exact
error message you got, so it is hard to be sure what happened with fdisk.
 
 My question is:  is there anything wrong with having /dev/da1  mounted an
 in-use?  Should I have created a partition like /dev/da1s1a or something?
 I seem to remember somebody once chiding me for having formatted or mounted
 the 'block device' itself instead of a partition... is this making any sense
 to anyone?  Clearly I need to know more about *NIX file systems (slices,
 partitions, block devices) and best practices or some such - I am working on
 it but obviously have a ways to go!

It looks like you have made what is referred to in the handbook
as a 'dangerously dedicated' disk.   It is dangerous only because
it is not compatible with anything else but what you are doing right
now.   If you want to access it with any other system, then it would
not work.   But, as long as you only write/read it with the FreeBSD
system like you are, it should be no problem.

If, before you get any further, you want to clean it up a little,
post the full fdisk command you were using and the error message
you got.

jerry

 
 Thanks very much!
 
 dharma
 ___
 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]


ipmi(4) on PowerEdge 860 - bogus CPU temperature readings

2008-04-14 Thread Brian A. Seklecki
This platform is returning a bogus value for the main temperature sensor
using the ipmi(4) module in 6.3/amd64:

# ipmitool -V
ipmitool version 1.8.8

# ipmitool sdr 
Temp | -54 degrees C | cr
Planar Temp  | 30 degrees C  | ok

That value should probably be an absolute value?


IpmiTool:

# ipmitool -v sdr': ipmitool -v sdr |more
Sensor ID  : Temp (0x1)
 Entity ID : 3.1 (Processor)
 Sensor Type (Analog)  : Temperature
 Sensor Reading: -54 (+/- 1) degrees C
 Status: Lower Critical
 Nominal Reading   : 50.000
 Normal Minimum: 11.000
 Normal Maximum: 119.000
 Positive Hysteresis   : -127.000
 Negative Hysteresis   : -127.000
 Minimum sensor range  : Unspecified
 Maximum sensor range  : Unspecified
 Event Message Control : Per-threshold
 Readable Thresholds   : 
 Settable Thresholds   : lcr lnc unc ucr 
 Threshold Read Mask   : lcr lnc unc ucr 
 Event Status  : Event Messages Disabled
 Assertion Events  : 
 Event Enable  : Event Messages Disabled
 Assertions Enabled: 

Same results with FreeIPMI

# ipmi-sensors 
1: Temp (Temperature): -54.00 C (5.00/125.00): [At or Below (=) Lower
Critical Threshold]
2: Planar Temp (Temperature): 30.00 C (3.00/53.00): [OK]
3: CMOS Battery (Voltage): 3.06 V (2.64/NA): [OK]
4: VCORE (Voltage): [State Deasserted]
5: PROC VTT (Voltage): [State Deasserted]
6: 1.5V PG (Voltage): [State Deasserted]
7: 1.8V PG (Voltage): [State Deasserted]
8: Presence (Entity Presence): [Entity Present]
9: PROC Fan (Fan): 3150.00 RPM (750.00/NA): [OK]
10: DIMM Fan (Fan): 3000.00 RPM (750.00/NA): [OK]
11: PCI Fan (Fan): 1350.00 RPM (1425.00/NA): [OK]
12: Status (Processor): [Processor Presence detected]
13: VRM (Power Supply): [Presence detected]
14: OS Watchdog (Watchdog 2): [OK]
15: SEL (Event Logging Disabled): [Unknown]
16: Intrusion (Platform Chassis Intrusion): [OK]
17: Temp Interface (Temperature): [OK]
23: ECC Corr Err (Memory): [Unknown]
24: ECC Uncorr Err (Memory): [Unknown]
25: I/O Channel Chk (Critical Interrupt): [Unknown]
26: PCI Parity Err (Critical Interrupt): [Unknown]
27: PCI System Err (Critical Interrupt): [Unknown]
28: SBE Log Disable (Event Logging Disabled): [Unknown]
29: Logging Disable (Event Logging Disabled): [Unknown]
30: Unknown (System Event): [Unknown]
31: PROC Protocol (Processor): [Unknown]
32: PROC Bus PERR (Processor): [Unknown]
33: PROC Init Err (Processor): [Unknown]
34: PROC Machine Ch (Processor): [Unknown]
35: Memory Spared (Memory): [Unknown]
36: Memory Mirrored (Memory): [Unknown]
37: Memory RAID (Memory): [Unknown]
38: Memory Added (Memory): [Unknown]
39: Memory Removed (Memory): [Unknown]
40: PCIE Fatal Err (Critical Interrupt): [Unknown]
41: Chipset Err (Critical Interrupt): [Unknown]
42: Err Reg Pointer (OEM Reserved): [Unknown]



dmesg(8):

Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights
reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD RELENG_6_3_amd64-CFI_INTERNAL-022408-1232EST #0: Sun Feb 24
19:43:21 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP
ACPI APIC Table: DELL   PE_SC3  
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(R) CPU3050  @ 2.13GHz (2133.42-MHz
K8-class CPU)
  Origin = GenuineIntel  Id = 0x6f2  Stepping = 2

Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE

Features2=0xe3bdSSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
  Cores per package: 2
real memory  = 1073479680 (1023 MB)
avail memory = 1020604416 (973 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic1: Changing APIC ID to 3
ioapic0 Version 2.0 irqs 0-23 on motherboard
ioapic1 Version 2.0 irqs 32-55 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413,
RF5413)
hptrr: HPT RocketRAID controller driver v1.1 (Feb 24 2008 19:42:43)
acpi0: DELL PE_SC3 on motherboard
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
acpi_hpet0: High Precision Event Timer iomem 0xfed0-0xfed003ff on
acpi0
Timecounter HPET frequency 14318180 Hz quality 900
cpu0: ACPI CPU on acpi0
cpu1: ACPI CPU on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0
pci1: ACPI PCI bus on pcib1
pcib2: ACPI PCI-PCI bridge at device 28.0 on pci0
pci2: ACPI PCI bus on pcib2
pcib3: ACPI PCI-PCI bridge at device 0.0 on pci2
pci3: ACPI PCI bus on pcib3
pcib4: PCI-PCI bridge at device 2.0 on pci3
pci4: PCI bus on pcib4
pci4: display, 

Re: wlan driver for VIA USB card

2008-04-14 Thread knowtree
Peter Boosten [EMAIL PROTECTED] wrote:

 [EMAIL PROTECTED] wrote:
  I am looking for a driver for the VIA VNT6656G6A40 54 MBps Wireless USB
  Module to run on FreeBSD 7.0 i386. This is a daughterboard built around the
  VIA 6656 chipset. Two VIA drivers are listed in /boot/defaults/loader.conf
  but they are for different chip sets.
  
  http://www.via.com.tw/en/products/networking/wireless/vt6656/
  
  http://www.logicsupply.com/products/vnt6656g6a40
  
 
 Gary,
 
 You can make one yourself if you have the Windows drivers. Have a look 
 at ndisgen(8).

Thanks, I appreciate the effort. Call me a fool, but I am designing Open
Slate to work independently of Windows. 

The lack of other positive replies suggests nobody has a native driver, so
on to the next question: VIA has Linux source available. Assuming the
license is tenable and the code is functional, how hard would it be to
convert it to FreeBSD format? Assume an experienced C programmer with zero
experience writing drivers. I'm thinking, grab the source for a similar
driver, one that works well, and divine how to match the backside with the
frontside.

There's still time to call me a fool.

Gary Dunn
Open Slate Project
http://openslate.net/


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


Re: HDD partitioning question...

2008-04-14 Thread Mario Lobo
On Monday 14 April 2008 18:36:30 Derek Ragona wrote:
 At 03:27 PM 4/14/2008, Dharma Wolford wrote:
 Hi folks,
 
 (I'm a relative newcomer to all this... thanks for your patience  help.)
 
 I've installed FreeBSD 6.2 on a system that will be primarily used as an
  FTP server.  It has 2 drives - one for the OS and the other for the FTP
  storage.  My question is about the storage drive in this case.
 
 You can see how I have things partitioned right now:
 #
 [EMAIL PROTECTED] /var/log]# mount
 /dev/da0s1a on / (ufs, local)
 devfs on /dev (devfs, local)
 /dev/da0s1d on /tmp (ufs, local, soft-updates)
 /dev/da0s1f on /usr (ufs, local, soft-updates)
 /dev/da0s1e on /var (ufs, local, soft-updates)
 /dev/da1 on /usr/home (ufs, local, soft-updates)
 [EMAIL PROTECTED] /var/log]#
 #
 
 I started by trying to use fdisk to partition the storage drive (/dev/da1)
 but was getting errors which I don't exactly recall - something about a
 problem with the 'block device'.
 Anyway, then I wound up using the command newfs -O 2 /dev/da1  which
 seemed to work and I was then able to mount and use the drive.
 
 My question is:  is there anything wrong with having /dev/da1  mounted
  an in-use?  Should I have created a partition like /dev/da1s1a or
  something? I seem to remember somebody once chiding me for having
  formatted or mounted the 'block device' itself instead of a partition...
  is this making any sense to anyone?  Clearly I need to know more about
  *NIX file systems (slices, partitions, block devices) and best practices
  or some such - I am working on it but obviously have a ways to go!
 
 Thanks very much!
 
 dharma

 Sounds like the drive geometry was off or you may have a drive with
 issues.  You should have been able to create a partition with a single
 slice on it.  I would check the drive with diagnostics from the
 manufacturer.  Those utilities will also allow you to know the correct
 geometry.

  -Derek

If you issue the command:

fdisk -I /dev/da1

 -I  Initialize sector 0 slice table for one FreeBSD slice covering
 the entire disk.

and then:  ls /dev/da1*

you'll get:

/dev/da1
/dev/da1s1

which I believe is what you want.

then you can:   newfs -O 2  (-U) /dev/da1s1

then you can: mount /dev/da1s1  /whatever

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Limiting apache's upload speed?

2008-04-14 Thread David Kaye
On  0, Manolis Kiagias [EMAIL PROTECTED] wrote:
 Patsy wrote:
snip

 I do not wish to take my website down and so I was hoping somebody would 
 be able to tell me if it is possible to throttle apache's upload speed. It 
 seems that this would provide a good solution - people will need to wait a 
 little longer to see my page, but a change of waiting 3 seconds to waiting 
 6 seconds isn't terrible.

 My router does not appear to have the option to throttle individual 
 hosts/ports. Any advice on the matter would be appreciated.

 Patsy


 I run something similar here in Greece, but have not noticed any 
 performance problems just yet. You are probably getting a lot of hits!

 What you need is an apache module designed specifically for speed / 
 bandwidth throttling: www/mod_cband

 You may also wish to have a look at these instructions (linux specific, but 
 easy to adjust for FreeBSD):

 http://howtoforge.com/mod_cband_apache2_bandwidth_quota_throttling

 BTW, what is your ADSL speed? You mention upload capacity of 500kb/s, and I 
 suppose you mean kbits/sec, *not* kbytes/sec. Assuming it is kbits, you may 
 well be consuming all your upload bandwidth if for some reason you get more 
 than a few simultaneous connections...

My estimated upload speed is 500kilobits per second. mod_cband seems to do the 
trick perfectly. I set maximum global upload to 400kilobits per second and all 
seems to be working well.

Just as a side note for anyone S'ing the FA's, when I ran:

#pkg_add -r mod_cband

it pulled down a version of mod_cband compiled for Apache 2.0, with Apache 2.0 
therefore being a dependancy, it was pulled down as well. After I removed 2.0, 
I needed to reinstall 2.2 and make mod_cband from ports. None of this was a 
problem, I just thought it should be on the list somewhere.

Many thanks to everybody who responded.

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


[?OT?] strndup exists in FreeBSD?

2008-04-14 Thread Steve Franks
I'm getting an undefined reference to strndup, so clearly there's a
header somewhere with it - doesn't seem to be in my default libc,
however on 7.0-amd64?

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


Re: Limiting apache's upload speed?

2008-04-14 Thread Mel
On Tuesday 15 April 2008 00:15:45 David Kaye wrote:

 Just as a side note for anyone S'ing the FA's, when I ran:

 #pkg_add -r mod_cband

 it pulled down a version of mod_cband compiled for Apache 2.0, with Apache
 2.0 therefore being a dependancy, it was pulled down as well. After I
 removed 2.0, I needed to reinstall 2.2 and make mod_cband from ports. None
 of this was a problem, I just thought it should be on the list somewhere.

If you pull packages from FreeBSD servers, then you should expect them to use 
default options (more to the point, the options defined by PACKAGE_BUILDING 
if the port specifies it) and default dependencies.
The default APACHE_PORT is www/apache20. If you use www/apache22, then 
you 'cannot' use those packages.

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [?OT?] strndup exists in FreeBSD?

2008-04-14 Thread Mel
On Tuesday 15 April 2008 00:43:24 Steve Franks wrote:
 I'm getting an undefined reference to strndup, so clearly there's a
 header somewhere with it - doesn't seem to be in my default libc,
 however on 7.0-amd64?

roken.h
openssl/buffer.h as BUF_strndup.

And no, there's no strndup.

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [?OT?] strndup exists in FreeBSD?

2008-04-14 Thread Giorgos Keramidas
On Mon, 14 Apr 2008 15:43:24 -0700, Steve Franks [EMAIL PROTECTED] wrote:
 I'm getting an undefined reference to strndup, so clearly there's a
 header somewhere with it - doesn't seem to be in my default libc,
 however on 7.0-amd64?

I don't see an strndup() function in our libc.

[EMAIL PROTECTED]:/usr/src/lib/libc/string$ grep ^strdup *.c
strdup.c:strdup(str)
[EMAIL PROTECTED]:/usr/src/lib/libc/string$ grep ^strndup *.c
[EMAIL PROTECTED]:/usr/src/lib/libc/string$

While it seems like a cool function name, what's the point of having it?
If you know how much you want to copy, it's trivial to allocate a buffer
large enough and strlcpy() into it.  If you don't know how much you want
to copy, then strdup() is ok anyway :)

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


Re: HDD partitioning question...

2008-04-14 Thread Dharma Wolford
On Mon, Apr 14, 2008 at 3:38 PM, Mario Lobo [EMAIL PROTECTED] wrote:


 If you issue the command:

 fdisk -I /dev/da1

 -I  Initialize sector 0 slice table for one FreeBSD slice covering
 the entire disk.

 and then:  ls /dev/da1*

 you'll get:

 /dev/da1
 /dev/da1s1

 which I believe is what you want.

 then you can:   newfs -O 2  (-U) /dev/da1s1

 then you can: mount /dev/da1s1  /whatever

 --
 Mario Lobo



Thanks Mario,  and Jerry and Derek!

Jerry, Introducing the idea of 'dangerously dedicated' disks helped a lot...
it lead me to this page:

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/formatting-media/index.html

...which gave some additional info on 'dedicated mode' and 'compatability
mode' and walked me through the steps to create either.  I managed to do
that and then tried to mount the /dev/da1s1 device but it complained about
'incorrect super block'  until I executed newfs -O 2 /dev/da1s1  after
which I was able to mount it!


[EMAIL PROTECTED] /usr]# mount
/dev/da0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/da0s1d on /tmp (ufs, local, soft-updates)
/dev/da0s1f on /usr (ufs, local, soft-updates)
/dev/da0s1e on /var (ufs, local, soft-updates)
/dev/da1s1 on /usr/home (ufs, local, soft-updates)
[EMAIL PROTECTED] /usr]#


I did all that just before I saw Mario's response (thanks again!) so...
anyway, looks like I've got it going in a better way now and it agrees with
what Mario suggested I should be expecting so I'm happy.

Thanks to all!

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


file/directory names with space in between

2008-04-14 Thread Simon Gao

Hi,

I need to work on some files and directories that have spaces in them like:

interesting story\2008 March\{story one,story two}.

When using find with -exec, part of the file/directory name will be 
missing and therefore lead to error.


What should I do to put escape key in there to include full names?

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


Re: [?OT?] strndup exists in FreeBSD?

2008-04-14 Thread Mel
On Tuesday 15 April 2008 01:06:24 Giorgos Keramidas wrote:
 On Mon, 14 Apr 2008 15:43:24 -0700, Steve Franks [EMAIL PROTECTED] 
wrote:
  I'm getting an undefined reference to strndup, so clearly there's a
  header somewhere with it - doesn't seem to be in my default libc,
  however on 7.0-amd64?

 I don't see an strndup() function in our libc.

 [EMAIL PROTECTED]:/usr/src/lib/libc/string$ grep ^strdup *.c
 strdup.c:strdup(str)
 [EMAIL PROTECTED]:/usr/src/lib/libc/string$ grep ^strndup *.c
 [EMAIL PROTECTED]:/usr/src/lib/libc/string$

 While it seems like a cool function name, what's the point of having it?
 If you know how much you want to copy, it's trivial to allocate a buffer
 large enough and strlcpy() into it.  If you don't know how much you want
 to copy, then strdup() is ok anyway :)

It can be convenient for trickery:
char file[MAXPATHLEN];
char *dir;
...
dir = strndup(file, (strrchr(file, '/')-file)));

Or space optimization:
char *p, *path;
path = malloc(MAXPATHLEN);
(void)strlcpy(path, argv[i], MAXPATHLEN);
p = strndup(path, strlen(path));
free(path);

But, personally I prefer taking the long route or wasting a few bytes over 
dual allocations.


-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [?OT?] strndup exists in FreeBSD?

2008-04-14 Thread Steve Franks
  While it seems like a cool function name, what's the point of having it?
  If you know how much you want to copy, it's trivial to allocate a buffer
  large enough and strlcpy() into it.  If you don't know how much you want
  to copy, then strdup() is ok anyway :)

Granted.  It's just one more thing to hack when porting linux code
(which I'm getting rather tired of doing, I must admit - they seem to
assume everyone likes to include every new api ever concieved, then
they go off and use them...)

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


Re: file/directory names with space in between

2008-04-14 Thread Christopher Cowart
Simon Gao wrote:
 I need to work on some files and directories that have spaces in them like:
 
 interesting story\2008 March\{story one,story two}.
 
 When using find with -exec, part of the file/directory name will be missing 
 and therefore lead to error.
 
 What should I do to put escape key in there to include full names?

$ echo foo  test 1
$ find . -type f -exec cat {} \;
foo

Looks like it Just Works(tm), no quoting necessary. Could you provide
the actually command you're running that isn't doing what you expect?

-- 
Chris Cowart
Network Technical Lead
Network  Infrastructure Services, RSSP-IT
UC Berkeley


pgpok0Zsz3fiS.pgp
Description: PGP signature


Re: Avermedia 507 TV

2008-04-14 Thread Danny Pansters
On Monday 14 April 2008 12:25:14 Victor M. Blood wrote:
 On 14.04.2008, Da Rock wrote:
  On Mon, 2008-04-14 at 11:02 +0400, Victor M. Blood wrote:
  Hi, All.
 
  Anyone run tuner on phillips chip 7133/7135 on freebsd, I try to use
  saa driver, devices saa0, sau0, cii0 is present in /dev/ , kbtv runs,
  but freeze on begin chanel tunin...
 
  How to test tuner and drivers works or not.
 
  I haven't had success yet- but I have an E506AR. Where did you get the
  drivers from? I couldn't get access myself.

 saa_driver included in kbtv distrib, and can be found in inet, driver
 homepage is broken. I-m install it from port kbtv, the nessasary
 bsd-patche within distrib tarball

I suspect your tuner (terratec?)  is not amongst the supported ones.

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


Re: HDD partitioning question...

2008-04-14 Thread Jerry McAllister
On Mon, Apr 14, 2008 at 04:08:11PM -0700, Dharma Wolford wrote:

 On Mon, Apr 14, 2008 at 3:38 PM, Mario Lobo [EMAIL PROTECTED] wrote:
 
 
  If you issue the command:
 
  fdisk -I /dev/da1
 
  -I  Initialize sector 0 slice table for one FreeBSD slice covering
  the entire disk.
 
  and then:  ls /dev/da1*
 
  you'll get:
 
  /dev/da1
  /dev/da1s1
 
  which I believe is what you want.
 
  then you can:   newfs -O 2  (-U) /dev/da1s1
 
  then you can: mount /dev/da1s1  /whatever
 
  --
  Mario Lobo
 
 
 
 Thanks Mario,  and Jerry and Derek!
 
 Jerry, Introducing the idea of 'dangerously dedicated' disks helped a lot...
 it lead me to this page:
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/articles/formatting-media/index.html
 
 ...which gave some additional info on 'dedicated mode' and 'compatability
 mode' and walked me through the steps to create either.  I managed to do
 that and then tried to mount the /dev/da1s1 device but it complained about
 'incorrect super block'  until I executed newfs -O 2 /dev/da1s1  after
 which I was able to mount it!

I would have gone on then and used bsdlabel to create one partition
in the single slice before doing the newfs again.
That would have given you  /dev/da1s1a .

jerry

 
 
 [EMAIL PROTECTED] /usr]# mount
 /dev/da0s1a on / (ufs, local)
 devfs on /dev (devfs, local)
 /dev/da0s1d on /tmp (ufs, local, soft-updates)
 /dev/da0s1f on /usr (ufs, local, soft-updates)
 /dev/da0s1e on /var (ufs, local, soft-updates)
 /dev/da1s1 on /usr/home (ufs, local, soft-updates)
 [EMAIL PROTECTED] /usr]#
 
 
 I did all that just before I saw Mario's response (thanks again!) so...
 anyway, looks like I've got it going in a better way now and it agrees with
 what Mario suggested I should be expecting so I'm happy.
 
 Thanks to all!
 
 dharma
 ___
 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: file/directory names with space in between

2008-04-14 Thread Bill Campbell
On Mon, Apr 14, 2008, Simon Gao wrote:
Hi,

I need to work on some files and directories that have spaces in them like:

interesting story\2008 March\{story one,story two}.

When using find with -exec, part of the file/directory name will be 
missing and therefore lead to error.

Generally it's better to use find and xargs when processing
arbitrary lists of files.  It can be significantly more efficient
than ``exec'ing'' a command for each file when the command can
process multiple arguments, and they previde for file names with
strange characters using the -print0 option to find, and -0
option to xargs as in:

find something -print0 | xargs -0 command

Bill
-- 
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:  (206) 236-1676  Mercer Island, WA 98040-0820
Fax:(206) 232-9186

The ultimate result of shielding men from the effects of folly is to fill
the world with fools. -- Herbert Spencer (1891)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [?OT?] strndup exists in FreeBSD?

2008-04-14 Thread Giorgos Keramidas
On Mon, 14 Apr 2008 16:27:42 -0700, Steve Franks [EMAIL PROTECTED] wrote:
  While it seems like a cool function name, what's the point of having it?
  If you know how much you want to copy, it's trivial to allocate a buffer
  large enough and strlcpy() into it.  If you don't know how much you want
  to copy, then strdup() is ok anyway :)

 Granted.  It's just one more thing to hack when porting linux code
 (which I'm getting rather tired of doing, I must admit - they seem to
 assume everyone likes to include every new api ever concieved, then
 they go off and use them...)

Ah, I see now.  I think I know the feeling...

I just saw a diff fly by at the review emails at work, which replaced
strlcpy() with strncpy() because of a similar problem, only this time
the other way around.

The libc of BSD and Solaris includes strlcpy() and strlcat(), but it's
unavailable in Linux, so we have to either hack around the missing
feature with strncpy() or conditionally include a BSD licensed version
of strlcpy() to our compatibility cruft.

``Portability is a huge chimera.''  Oh well :(

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


Re: [?OT?] strndup exists in FreeBSD?

2008-04-14 Thread Giorgos Keramidas
On Tue, 15 Apr 2008 01:26:40 +0200, Mel [EMAIL PROTECTED] wrote:
 On Tuesday 15 April 2008 01:06:24 Giorgos Keramidas wrote:
 On Mon, 14 Apr 2008 15:43:24 -0700, Steve Franks [EMAIL PROTECTED] 
 wrote:
  I'm getting an undefined reference to strndup, so clearly there's a
  header somewhere with it - doesn't seem to be in my default libc,
  however on 7.0-amd64?

 I don't see an strndup() function in our libc.

 [EMAIL PROTECTED]:/usr/src/lib/libc/string$ grep ^strdup *.c
 strdup.c:strdup(str)
 [EMAIL PROTECTED]:/usr/src/lib/libc/string$ grep ^strndup *.c
 [EMAIL PROTECTED]:/usr/src/lib/libc/string$

 While it seems like a cool function name, what's the point of having it?
 If you know how much you want to copy, it's trivial to allocate a buffer
 large enough and strlcpy() into it.  If you don't know how much you want
 to copy, then strdup() is ok anyway :)

 It can be convenient for trickery:
 char file[MAXPATHLEN];
 char *dir;
 ...
 dir = strndup(file, (strrchr(file, '/')-file)));

I know, but I don't feel safe when I see code like this.  All sorts of
amusing things can happen when it's used this way and strrchr() returns
NULL though, so it is safer to explicitly allocate buffers and check
what's going on.

 Or space optimization:
 char *p, *path;
 path = malloc(MAXPATHLEN);
 (void)strlcpy(path, argv[i], MAXPATHLEN);
 p = strndup(path, strlen(path));
 free(path);

 But, personally I prefer taking the long route or wasting a few bytes
 over dual allocations.

I can definitely agree with this part :)

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


Go EvO

2008-04-14 Thread Gary Kline

gang,

there's just something about kmail/kontact that grabs me the
wrong way.  on my ubuntu server where gnome is my wm, i use 
BOTH KDE and GNome, and use evo[gnome is my default]
here on my primary computer i chose kde.  i know the 2 are
inter-operable, but i can't seem to add evolution to my top/button
bar--nor even the middle part of the screen.  i think i've
fingured out how to get a gnome-settings-daemon running; still 
not sure thar ALL things-gnome fly.  

if i do use evo, how can i get it to exec konqueror as my default
browser?  konq has the festival tts tools and helps me grind thru
billions-and-billions of lines of deep/technical stuff... 

thanks much for any help; either onlist or off.

gary



-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


cutecom requires sudo to work, but minicom works without - permissions?

2008-04-14 Thread Steve Franks
I have two terminal programs - cutecom and minicom, both built from
ports with no tweaks.   Minicom will fire up and hit the serial port
just fine, but cutecom can't open it except with sudo.  I tried
tweaking devfs.conf (as well as a straight chmod on /dev/cuad0), and
it doesn't seem to rectify the problem.  I've also got several linux
ports that hit usb devices via libusb that won't connect without sudo
- obviously, I'd like not to have to run user-type apps with sudo on
my system

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


Re: Go EvO

2008-04-14 Thread Michael Johnson
On Mon, Apr 14, 2008 at 8:22 PM, Gary Kline [EMAIL PROTECTED] wrote:


gang,

there's just something about kmail/kontact that grabs me the
wrong way.  on my ubuntu server where gnome is my wm, i use
BOTH KDE and GNome, and use evo[gnome is my default]
here on my primary computer i chose kde.  i know the 2 are
inter-operable, but i can't seem to add evolution to my top/button
bar--nor even the middle part of the screen.  i think i've
fingured out how to get a gnome-settings-daemon running; still
not sure thar ALL things-gnome fly.


run gnome-default-applications-properties




if i do use evo, how can i get it to exec konqueror as my default
browser?  konq has the festival tts tools and helps me grind thru
billions-and-billions of lines of deep/technical stuff...

thanks much for any help; either onlist or off.

gary



 --
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


Skype

2008-04-14 Thread Sébastien Morand

Hi guys,

I'm trying to install skype on freebsd 7.0-stable, but I can't find out what I'm 
missing. I found several procedures on the web, but none of them was really 
efficient to get it working. I thnk I have know severa linux_base installation, 
maybe it could be the problem, so how to fix it?


My /etc/make.conf contains the line:
OVERRIDE_LINUX_BASE_PORT=f8

Actually the install is finem but everytime I launch skype, I have only a white 
window with End User License Agreement. I can see grey band at the top and the 
bottom of the window instead of the menu and status bar (I suppose).


I try to download Skype 2 but libasound2 is required, so I was not able to get 
it working.


How can I get a decent skype installation?

Thanks by advance

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

Re: Skype

2008-04-14 Thread Eduardo Cerejo
On Tue, 15 Apr 2008 01:35:48 +
Sébastien Morand [EMAIL PROTECTED] wrote:

 Hi guys,
 
 I'm trying to install skype on freebsd 7.0-stable, but I can't find out what 
 I'm 
 missing. I found several procedures on the web, but none of them was really 
 efficient to get it working. I thnk I have know severa linux_base 
 installation, 
 maybe it could be the problem, so how to fix it?
 
 My /etc/make.conf contains the line:
 OVERRIDE_LINUX_BASE_PORT=f8
 
 Actually the install is finem but everytime I launch skype, I have only a 
 white 
 window with End User License Agreement. I can see grey band at the top and 
 the 
 bottom of the window instead of the menu and status bar (I suppose).
 
 I try to download Skype 2 but libasound2 is required, so I was not able to 
 get 
 it working.
 
 How can I get a decent skype installation?
 
 Thanks by advance
 
 Sebastien

How are you trying to install it? Are you using the ports collection?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Avermedia 507 TV

2008-04-14 Thread Da Rock

On Tue, 2008-04-15 at 01:30 +0200, Danny Pansters wrote:
 On Monday 14 April 2008 12:25:14 Victor M. Blood wrote:
  On 14.04.2008, Da Rock wrote:
   On Mon, 2008-04-14 at 11:02 +0400, Victor M. Blood wrote:
   Hi, All.
  
   Anyone run tuner on phillips chip 7133/7135 on freebsd, I try to use
   saa driver, devices saa0, sau0, cii0 is present in /dev/ , kbtv runs,
   but freeze on begin chanel tunin...
  
   How to test tuner and drivers works or not.
  
   I haven't had success yet- but I have an E506AR. Where did you get the
   drivers from? I couldn't get access myself.
 
  saa_driver included in kbtv distrib, and can be found in inet, driver
  homepage is broken. I-m install it from port kbtv, the nessasary
  bsd-patche within distrib tarball
 
 I suspect your tuner (terratec?)  is not amongst the supported ones.

Both are Avermedia actually as posted, and yes they're only marginally
supported. So far only the analogue works (possibly).

That saa driver- I thought there was a problem with the site, but I had
no idea it could be downloaded with kbtv. I thought it was only compiled
with support for the driver, not the driver itself.

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


Re: file/directory names with space in between

2008-04-14 Thread RW
On Mon, 14 Apr 2008 16:39:23 -0700
Bill Campbell [EMAIL PROTECTED] wrote:

 On Mon, Apr 14, 2008, Simon Gao wrote:
 Hi,
 
 I need to work on some files and directories that have spaces in
 them like:
 
 interesting story\2008 March\{story one,story two}.
 
 When using find with -exec, part of the file/directory name will be 
 missing and therefore lead to error.
 
 Generally it's better to use find and xargs when processing
 arbitrary lists of files.  It can be significantly more efficient
 than ``exec'ing'' a command for each file when the command can
 process multiple arguments, and they previde for file names with
 strange characters using the -print0 option to find, and -0
 option to xargs as in:

find has neither of the limitations you mention. It does the equivalent
of -print0 | xargs -0 automatically, and can handle multiple arguments
with {} +. It also has -execdir which can be convenient.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Come Join My Network at Diigo

2008-04-14 Thread most wanted

   I've been using Diigo and thought you might like to try it out. Here's
   an invitation to create an account and connect with me on Diigo.

   [1]most wanted ([EMAIL PROTECTED]) is a member of Diigo and would
   like to send you an invitation.

   To accept this invitation and register for your free account, please
   click and visit [2]Create Account

   If you haven't already heard about Diigo, you can view a short
   [3]introductory video here. As you will see, Diigo is both a powerful
   research tool and a knowledge-sharing community that allows you:

   - to add highlights and sticky notes on any web pages, just as you can
   on books!
   - to create and organize your personal digest of the web, and access
   and search it from anywhere.
   - to create groups for collaborative research.
   - to keep in touch with friends effortlessly and non-intrusively by
   sharing contents.
   - to connect with others based on shared content and interests.
   - to discover quality resources on any subject or get personalized
   recommendations.

   We're still working every day to improve Diigo. We hope you'll like
   Diigo. We do. And, it's only going to get better!

   Thanks

   The Diigo Team

   If clicking the URLs in this message does not work, copy and paste the
   following link into the address bar of your browser:
   http://www.diigo.com/sign-up?i_key=3e84cffcb28816a41be61ced1133243c

References

   1. 
http://www.diigo.com/profile/mostwanted?i_key=3e84cffcb28816a41be61ced1133243c
   2. http://www.diigo.com/sign-up?i_key=3e84cffcb28816a41be61ced1133243c
   3. http://www.youtube.com/watch?v=0RvAkTuL02A
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Skype

2008-04-14 Thread Beech Rintoul
On Monday 14 April 2008, Eduardo Cerejo said:
 On Tue, 15 Apr 2008 01:35:48 +

 Sébastien Morand [EMAIL PROTECTED] wrote:
  Hi guys,
 
  I'm trying to install skype on freebsd 7.0-stable, but I can't
  find out what I'm missing. I found several procedures on the web,
  but none of them was really efficient to get it working. I thnk I
  have know severa linux_base installation, maybe it could be the
  problem, so how to fix it?
 
  My /etc/make.conf contains the line:
  OVERRIDE_LINUX_BASE_PORT=f8
 
  Actually the install is finem but everytime I launch skype, I
  have only a white window with End User License Agreement. I can
  see grey band at the top and the bottom of the window instead of
  the menu and status bar (I suppose).
 
  I try to download Skype 2 but libasound2 is required, so I was
  not able to get it working.
 
  How can I get a decent skype installation?

What FreeBSD version are you running? 
Skype 2.0 hasn't been ported yet (I'm working on it). 


-- 
---
Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | FreeBSD Since 4.x
\ / - NO HTML/RTF in e-mail   | http://www.freebsd.org
 X  - NO Word docs in e-mail | Latest Release:
/ \  - http://www.FreeBSD.org/releases/7.0R/announce.html
---



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