portupgrade issue 4.8-STABLE
Hi all, I've sent this to stable@, but no luck so far, so I thought I'd throw it to all and sundry: Having a bit of a problem with portupgrade on a -STABLE machine: [EMAIL PROTECTED]/root: portupgrade -aRn --- Session started at: Tue, 27 May 2003 22:54:00 +1000 closed stream --- Session ended at: Tue, 27 May 2003 22:54:01 +1000 (consumed 00:00:01) [EMAIL PROTECTED]/root: pkgdb -F does the same thing. Any clues? INDEX has been rebuild as well. cheers, Rob [EMAIL PROTECTED]/root: uname -a FreeBSD erwin.number6 4.8-STABLE FreeBSD 4.8-STABLE #1: Wed May 21 00:52:39 EST 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ERWIN alpha -- If it weren't for lawyers, I think we could have invented a universal symbolic representation of reality. This is random quote 648 of 1254. Distance from the centre of the brewing universe [15200.8 km (8207.8 mi), 262.8 deg](Apparent) Rennerian Public Key fingerprint = 6219 33BD A37B 368D 29F5 19FB 945D C4D7 1F66 D9C5 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
NIS/YP/LDAP question
I have about 5 machines at home, networked together. Usually, about three of them are in use at any given time. To save updating various bits of info when I make a change that would affect them all (adding or renaming a host, changing a user password etc.) would it be a good idea to use NIS/YP or some such service? This way, I would only have to make a change on the server and have it reflected on the various hosts. What would be an alternative to NIS in this situation? LDAP? anything else? cheers, Rob Please cc me as I'm not on the list -- Evolution doesn't take prisoners. This is random quote 512 of a collection of 1274 Distance from the centre of the brewing universe: [15200.8 km (8207.8 mi), 262.8 deg](Apparent) Rennerian Public Key fingerprint = 6219 33BD A37B 368D 29F5 19FB 945D C4D7 1F66 D9C5 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
port make options
I'm upgrading my installed ports with the assistance of the portupgrade tool, and I'm wondering if there is a way to specify compile options to a particular port. I know that it is possible to upgrade one port at a time with make options specified thusly: portupgrade -m make_args Port_name but is it possible to install a port (Samba for instance), and rather than specifying the options a compile-time every time the port is upgraded, specify the options once only and have portupgrade or whatever follow those options? cheers, Rob -- What hair color do they put on the driver's licenses of bald men? This is random quote 1179 of a collection of 1269 Distance from the centre of the brewing universe: [15200.8 km (8207.8 mi), 262.8 deg](Apparent) Rennerian Public Key fingerprint = 6219 33BD A37B 368D 29F5 19FB 945D C4D7 1F66 D9C5 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
named problems
I have bind running to serve requests to my private network, and I'm getting the following lines in my logs every 30 minutes: Dec 13 15:04:22 erwin named[78]: fopen() of 192.168.100.rev.dumptmp failed: +Permission denied Dec 13 15:04:22 erwin named[78]: zone dump for '100.168.192.in-addr.arpa' +failed, rescheduling What do they mean, and how do I either stop it, or let named do what it wants? Here's what named.conf looks like - I was trying to have dhcpd update the zones at one point, but I dropped that idea since I can't get it to work. erwin:~$ cat /etc/namedb/named.conf options { directory /etc/namedb; zone . { type hint; file named.root; }; zone 0.0.127.IN-ADDR.ARPA { type master; file localhost.rev; zone number6.loop.bpa.nu { type master; file number6.loop.bpa.nu.hosts; allow-query { 127.0.0.1/32; 192.168.100.0/24; }; allow-transfer { 127.0.0.1/32; 192.168.100.0/24; }; allow-update { 127.0.0.1/32; 192.168.100/24; }; }; zone 100.168.192.in-addr.arpa { type master; file 192.168.100.rev; allow-query { 127.0.0.1/32; 192.168.100.0/24; }; allow-transfer { 127.0.0.1/32; 192.168.100.0/24; }; allow-update { 127.0.0.1/32; 192.168.100/24; }; }; erwin:~$ uname -a FreeBSD erwin.number6.loop.bpa.nu 4.7-STABLE FreeBSD 4.7-STABLE #2: Sat Dec 7 09:55:15 EST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ERWIN alpha cheers, Rob -- Teaching should be such that what is offered is perceived as a valuable gift and not as a hard duty. - Albert Einstein This is quote 76 of 1254. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
ppp works, but natd not working
I have ppp working : [root@erwin]/usr/local/etc: ping www.ozemail.com.au PING www.ozemail.com.au (203.102.166.18): 48 data bytes 56 bytes from 203.102.166.18: icmp_seq=0 ttl=56 time=132.990 ms 56 bytes from 203.102.166.18: icmp_seq=1 ttl=56 time=121.214 ms 56 bytes from 203.102.166.18: icmp_seq=2 ttl=56 time=120.237 ms 56 bytes from 203.102.166.18: icmp_seq=3 ttl=56 time=118.285 ms 56 bytes from 203.102.166.18: icmp_seq=4 ttl=56 time=114.380 ms ^C --- www.ozemail.com.au ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max/stddev = 114.380/121.421/132.990/6.240 ms but sourcing the pings from the internal interface doesn't: [root@erwin]/usr/local/etc: ping -S 192.168.100.10 www.ozemail.com.au PING www.ozemail.com.au (203.102.166.18) from 192.168.100.10: 48 data bytes ^C --- www.ozemail.com.au ping statistics --- 12 packets transmitted, 0 packets received, 100% packet loss Both ppp and natd are running: [root@erwin]/usr/local/etc: ps fax PID TT STAT TIME COMMAND snip 704 ?? Is 0:00.00 natd -dynamic -interface tun0 737 ?? Ss 0:00.31 ppp -auto -alias demand Just for completeness - the pings (or traceroutes for that matter) don't work from the LAN either. What could be wrong? TIA rob -- Today's subliminal thought is: This is quote 1102 of 1254. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: How to shut down cleanly by killing power
At 17:02 26/09/2002 +0300, Petri Riihikallio sent this up the stick: A couple of days ago I sent a message asking how to shut down a FreeBSD system when I KNOW the power will be off after the next script command. Nobody has commented yet. Maybe the question wasn't the clearest? Am I the only one using an UPS with FreeBSD? Not at all It doesn't feel right to crash after the UPS has run dry. (I don't have a generator.) About the first thing I was tought about Unix system administration was: Always shut down properly. That's why I bought the UPS. How could you crash after the UPS has run dry? You say you are using NUT, then NUT should be able to initiate a system shutdown _before_ the UPS runs out of juice - check your timings, don't let the system run for longer than you have the capacity for. How can you send a command to the UPS _after_ the system has powered down? Why tell the UPS to shutdown - your UPS should be able to turn itself off when it runs out of battery. Maybe you should do shutdown -h now to actually halt the system, then when the UPS powers off everything is dead. If the power comes back on, the UPS recharges a bit and then powers up your system normally. Or maybe I can't understand what you are trying to do Cheers, Rob At 22:20 +0300 22.9.2002, Petri Riihikallio wrote: Hello I have a FreeBSD 4.6.2 box and an UPS. I have chosen NUT (http://www.exploits.org/nut) as my UPS monitor. Everything compiles and runs fine. No problems with NUT. I have a problem with the shutdown script. How do I shut down the system properly? The problem is that I want to issue the command upsdrvctl shutdown, which switches off the power from the UPS. What do I need to do before that? To be more specific: When the AC power is down and the UPS is almost exhausted, NUT creates a file /etc/killpower and starts system shutdown with shutdown -h now. Init then runs all scripts in /usr/local/etc/rc.d with argument stop. I have put a script like this in my /usr/local/etc/rc.d -/usr/local/etc/rc.d/znut.sh: #! /bin/sh case $1 in start) su nut -c /usr/local/libexec/upsdrvctl start su nut -c /usr/local/sbin/upsd /usr/local/upsmon ;; stop) if (test -f /etc/killpower) then echo Killing the power, bye! /bin/sync ### WHAT TO DO HERE ? ### /usr/local/bin/upsdrvctl shutdown ### never makes it this far else killall upsmon killall upsd /usr/local/libexec/upsdrvctl stop fi ;; *) echo Usage: $0: [ start | stop ] 21 exit 65 ;; esac --- I have called the script znut.sh, so it should run last after all other shutdown scripts. (Nothing else runs after it in a powerfail situation ;-) Can I rely on alphabetical ordering? When my script finds the /etc/killpower file it syncs the disks and switches the UPS off. This is necessary, since the power might return when the system is in the Press any key to reboot-state. Then it would wait for the keypress indefinitely. NUT can't use shutdown -r now, since the system might start a reboot while the UPS still supplies power. NUT can't use shutdown -p now, since if the power is restored before the UPS runs dry, the system won't boot automatically. The upsdrvctl shutdown avoids these deadlocks by killing power at the UPS. When the AC power returns, the UPS first recharges, then it starts supplying power and my BIOS is set up to boot when power returns. My problem is that the disks aren't clean. If I put umount -a after the sync, I can't run the upsdrvctl from /usr. Should I remount /usr read-only? Or should I move the NUT programs to /bin and umount -A. This would leave root dirty. I have read man pages for mount and umount. Both provide the -f flag, but warn against using it. Could I make use of it? The sync man page tells that halt is better since it does more than just a sync. Can I emulate these functions of halt from a script? What happens after the rc.shutdown? Are there any other housekeeping tasks after user scripts? I couldn't find any docs on that. -- The only number that is both even and odd is infinity. This is random quote 1025 of a collection of 1253 [15200.8 km (8207.8 mi), 262.8 deg](Apparent) Rennerian To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: seting up advancesys SCSI card
- Original Message - From: Chris Denault [EMAIL PROTECTED] To: [EMAIL PROTECTED] I have a advanced systems scsi controller and i am not sure what to do to turn on support for it in the kernel. If anyone could point me to the place to look in the handbook or give me some idea as to what i should do, it would be greatly apreciated. Have a look at the /usr/src/sys/i386/conf/LINT file - there are two options there - one driver is adv (for older, narrow devices) and the other is adw (including the ADV940UW) Cheers, Rob To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: DHCP, hostname . domain, my bought hostname
At 03:36 23/07/2002, Grant Cooper sent this up the stick: I am using my home computer that uses a DHCP. In /etc/rc.conf my hostname is automatically entered. I realize this is the name of my computer given to me from my ISP. I purchased my domain kooper.ca. Should I change the hostname in /etc/rc.conf to hostname=dell.kooper.ca. If not, what would this be used for? I'm sure I should change it. I am attempting to install qmail again. I'm not near a FreeBSD box at the moment, but if you have a look at man dhclient.conf or man dhcp-options, there is a supersede option that allows you to use a locally configured option rather than the one specified by the dhcp server Cheers, Rob -- Academy: A modern school where football is taught. [15200.8 km (8207.8 mi), 262.8 deg](Apparent) Rennerian This is random quote 130 of a collection of 1254 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message