Re: portupgrade issue 4.8-STABLE
At 03:17 AM 5/06/03, clayton rollins sent this up the stick: On Wed, 04 Jun 2003 19:30:38 +1000 Rob B <[EMAIL PROTECTED]> wrote Subject: 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. You might try 'pkgdb -fu' to see if that clears up the problem. As a side note, I just upgraded my 4.8 stable without problems... That dodn't work ... I can upgrade the OS no problems, just the ports when using portupgrade are giving me problems. Can't think of anything I did to cause it tho. Rob -- Only the lavender prairie dogs know the key to unlock the secret of the tumble-weeds. This is random quote 892 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]"
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 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: unix locate cmd
- Original Message - From: "Lee Gold" <[EMAIL PROTECTED]> To: "Adam Weinberger" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 01, 2002 9:15 PM Subject: Re: unix locate cmd > > > > >> (10.01.2002 @ 0418 PST): Lee Gold said, in 0.5K: << > > > I'm trying to use the locate cmd to find all > > > instances of .xinitrc in my system. I did, > > > > ..snip.. > > > > when you run the program, you're leaving out the 'n' in locate.updatedb, > > right? > > that's an email typo. > > ...snip... > > > so you can't locate anything at all? so, for example, "locate termcap" > > gives no output? what's the filesize of your /var/db/locate.database? > > the db is about 420kb > sorry, it works perfectly $locate temp or $locate X11 > give big lists. I think I'm getting stuck on the dot beginning > the string .xinitrc - I must not be handling that leading "." > correctly w/locate. The output of $locate .xinitrc is nothing > just a new prompt. What would be the reason? Try using locate ".xinitrc" Wildcards and regexps have to be enclosed in quotes for locate to work. cheers, Rob To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ssh problems
- Original Message - From: "Daniel Bye" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 12, 2002 11:24 PM Subject: Re: ssh problems > On Thu, Sep 12, 2002 at 10:52:34PM +1000, Rob B wrote: > > These two machines are on a private LAN. Going from one to the other works > > fine, but not the other way round. > > erwin:~$ ssh doormat > > The authenticity of host 'doormat (192.168.100.1)' can't be established. > > DSA key fingerprint is c9:5d:b6:f5:d6:ab:6a:58:75:5f:d9:a7:c1:6f:be:00. > > Are you sure you want to continue connecting (yes/no)? yes > > Warning: Permanently added 'doormat' (DSA) to the list of known hosts. > > key_verify failed for server_host_key > > Try running ssh with the flags "-v -v" to get more verbose diagnostics. > You may well see what is failing, where, when and why. debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'doormat.number6.loop.bpa.nu' is known and matches the DSA host key. debug1: Found key in /home/loop/.ssh/known_hosts:1 debug1: bits set: 1628/3191 debug1: ssh_dss_verify: signature incorrect key_verify failed for server_host_key debug1: Calling cleanup 0x12002ad20(0x0) erwin:~$ I'm wondering if erwin's keys are the ones with the problem, and it's doormat sending the error > Just as a thought, though, is doormat's server_host_key in the right place, > with the correct permissions? [root@doormat]/root: ls -la /etc/ssh/ total 136 drwxr-xr-x 2 root wheel512 Jul 29 2002 . drwxr-xr-x 16 root wheel 2048 Sep 16 09:13 .. -rw-r--r-- 1 root wheel 88110 Jul 29 2002 moduli -rw-r--r-- 1 root wheel 26346 Jun 15 2002 primes -rw-r--r-- 1 root wheel 1233 Jul 29 2002 ssh_config -rw--- 1 root wheel668 Jul 27 2002 ssh_host_dsa_key -rw-r--r-- 1 root wheel612 Jul 27 2002 ssh_host_dsa_key.pub -rw--- 1 root wheel537 Jul 27 2002 ssh_host_key -rw-r--r-- 1 root wheel341 Jul 27 2002 ssh_host_key.pub -rw--- 1 root wheel883 Jul 29 2002 ssh_host_rsa_key -rw-r--r-- 1 root wheel234 Jul 29 2002 ssh_host_rsa_key.pub -rw-r--r-- 1 root wheel 2414 Jul 29 2002 sshd_config I have regenerated the keys on doormat, still getting the same error To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Tutorial on Postfix
- Original Message - From: "Carl-Johan Kihlbom" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 29, 2002 8:03 AM Subject: Tutorial on Postfix > I'm replacing Sendmail with Postfix on my FreeBSD server, but I'm quite > a newbie when it comes to mailservers. > > Do you have any good books or urls to tutorials/good pages on > mailservers in general and Postfix in particular. I'm also interested > in Cyrus, etc. Most definately join the Postfix-users mailing list, I knew nothing about mailservers when I joined, I have a lot more knowledge now. Read the documentation that Wietse provides on the website - it is invaluable and he take a lot of care to make sure it makes sense. Postfix is mostly set up "out ofthe box" so it is not likely you will have to do much fiddling to get it working right. cheers, Rob 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 ]" 2>&1 >> 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