Finding rc variables
For naive users (as I am under FreeBSD 5), /etc/rc.d and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcng.html beg the question: What variables do I need to enable in rc.conf? Is the intention that users will add an _enable variable for each of the 113 scripts in /etc/rc.d they use, or only a subset? The Handbook doesn't list the scripts that are toggled via rc.conf (which is good from a maintenance perspective), but is a there an efficient way to get such a list, or is it really just 'ls /etc/rc.d'? I see mentions of RCng and rc.conf in /usr/ports/UPDATING, but they're not suitable for extracting a complete list. Reading UPDATING, I get the impression all ports will eventually use RCng, but most of the scripts I have installed don't yet -- is the following a suitable test for port scripts? grep '^# KEYWORD:' /usr/local/etc/rc.d/* Thx, Chris Pepper -- Chris Pepper: http://www.reppep.com/~pepper/ Rockefeller University: http://www.rockefeller.edu/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Unexpected inet6 in FreeBSD 4.9-STABLE
At 11:53 AM -0500 2004/03/22, Teodor Iliescu wrote: On Mon, 22 Mar 2004, Chris Pepper wrote: [...] This is causing me some aggravation, as localhost connections (such as apachectl fullstatus) are from [client ::1] instead of the old-fashioned 127.0.0.1. To my surprise, http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ipv6.html doesn't talk about rc.conf at all, and I'm not sure where else this would be set up. Try commenting out (#) ::1 from /etc/hosts, which is loopback for IPv6. Teodor, Thanks for the suggestion. I commented out ::1 and rebooted. Unfortunately, ifconfig still shows inet6 configured on xl0. FWIW, www, which does not show inet6, also has the ::1 entry in /etc/hosts, so there's something else different. If you want to get more experimental, you can go ahead and completely remove IPv6 support from your kernel, although I don't see this as necessary. Nah, I don't want to break IPv6, just turn it off. Chris -- Chris Pepper: http://www.reppep.com/~pepper/ Rockefeller University: http://www.rockefeller.edu/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Unexpected inet6 in FreeBSD 4.9-STABLE
At 11:20 AM -0800 2004/03/22, Joshua Lokken wrote: * Matthew Emmerton [EMAIL PROTECTED] [2004-03-22 10:54]: On Mon, 22 Mar 2004, Chris Pepper wrote: At 11:53 AM -0500 2004/03/22, Teodor Iliescu wrote: On Mon, 22 Mar 2004, Chris Pepper wrote: [...] This is causing me some aggravation, as localhost connections (such as apachectl fullstatus) are from [client ::1] instead of the old-fashioned 127.0.0.1. To my surprise, Try commenting out (#) ::1 from /etc/hosts, which is loopback for IPv6. Close. Nah, I don't want to break IPv6, just turn it off. If you want to turn if off, remove it from your kernel. I think what you want to comment out is the line in httpd.conf that reads: Listen ::1 Well, I really do want to disable the IPv6 interface entirely, so it doesn't show up in ifconfig, but I checked httpd.conf, and it has Listen 80. The corresponding line in output from netstat -an is: tcp46 0 0 *.80 *.*LISTEN Chris PS-I am using the same kernel file for both guest www, so either www will be picking up IPv6 on its next upgrade, or there's some other configuration difference... -- Chris Pepper: http://www.reppep.com/~pepper/ Rockefeller University: http://www.rockefeller.edu/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Unexpected inet6 in FreeBSD 4.9-STABLE
I have two systems, named www guest. Both are tracking FreeBSD 4.9-STABLE, but guest is a bit more current. Neither has IPv6 explicitly enabled, but for some reason, guest insists on configuring an inet6 interface at boot time (ifconfig xl0 shows an additional inet6 address line, not present on www). This is causing me some aggravation, as localhost connections (such as apachectl fullstatus) are from [client ::1] instead of the old-fashioned 127.0.0.1. To my surprise, http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ipv6.html doesn't talk about rc.conf at all, and I'm not sure where else this would be set up. Suggestions, references for further reading, or pointers to the obvious bit which I'm missing all welcomed (please CC me directly). [EMAIL PROTECTED]:~$ uname -a FreeBSD guest.reppep.com 4.9-STABLE FreeBSD 4.9-STABLE #0: Sat Feb 28 23:56:37 EST 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 [EMAIL PROTECTED]:~$ grep -i v6 /etc/rc.conf ipv6_enable=NO# Set to YES to set up for IPv6. Thank you, Chris Pepper -- Chris Pepper: http://www.reppep.com/~pepper/ Rockefeller University: http://www.rockefeller.edu/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ps: proc size mismatch
I last did a buildworld, buildkernel, installkernel, installworld in December (from current STABLE sources via cvsup). I tried again a few weeks ago and today, and after booting to single-user get errors from ps about /proc (ps: proc size mismatch). uname from my working kernel world is: FreeBSD www.reppep.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Tue Dec 3 14:05:51 EST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/REPPEP i386 Commands I ran to update (in December successfully, and twice unsuccessfully this month): # more Makefile UPDATING # mergemaster -p ; make buildworld ~/buildworld-20030221.log ; make buildkernel ~/buildkernel-20030221.log # mergemaster found no changes # mergemaster -p # no changes found # make installkernel Searching the web, I see many people saying if ps complains about a mismatch, your world is out of sync with the kernel http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-trouble.html#KERNELCONFIG-NOBOOT. I know that, because I haven't done make installworld yet, but I'm trying to validate the new kernel first. Unfortunately, there isn't much info on how to validate the kernel (if it boots to the shell, is it fine??). Is there anything else I should test before make installworld? Thank you, Chris Pepper PS-Please cc me directly. -- Chris Pepper: http://www.reppep.com/~pepper/ Rockefeller University: http://www.rockefeller.edu/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: ps: proc size mismatch
At 5:09 AM +0200 2003/02/23, Giorgos Keramidas wrote: On 2003-02-22 21:24, Chris Pepper [EMAIL PROTECTED] wrote: Commands I ran to update (in December successfully, and twice unsuccessfully this month): # more Makefile UPDATING # mergemaster -p ; make buildworld ~/buildworld-20030221.log ; make buildkernel ~/buildkernel-20030221.log # mergemaster found no changes # mergemaster -p # no changes found # make installkernel The proc size mismatch you're seeing is because your kernel and userland is not in sync. Reboot. Enter single user mode. Run 'installworld'. If you suspect 'installworld' can fail in the middle of it all, and leave you with a useless installation, half-updated and half-not, then make sure you have about 300 MB of free space in /somewhere and run: # cd /usr/src # make DESTDIR=/somewhere installworld if this works fine, then youcan safely delete everything in /somewhere and run the real 'installworld' without DESTDIR. So (aside from verifying sufficient free space), the only test to do after installkernel and before installworld is to make sure that the system can boot single-user? Thanks, Chris -- Chris Pepper: http://www.reppep.com/~pepper/ Rockefeller University: http://www.rockefeller.edu/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Confirmation: ext2fs requires kernel rebuild?
At 2:06 AM -0800 2002/11/19, David Schultz wrote: Thus spake Chris Pepper [EMAIL PROTECTED]: I'm trying to get at a file on an ext2fs slice. I'm a bit confused about kernel recompiles vs. KLDs for Linux compatibility, though. Am I reading correctly at http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu.html http://www.seabug.org/archive/2000-05/msg00086.html, that I can run Linux applications with a single command or rc.conf entry, but accessing files on ext2 file systems requires a kernel rebuild? This seems a bit backwards -- is anyone aware of work to make ext2fs a standard module, so it can be loaded under GENERIC? Running Linux binaries and using Linux filesystems are two completely different things. To to the former, and the appropriate rc.conf entry and install ports/emulators/linux_base as described in the Handbook. To use ext2fs, you can either add the option EXT2FS to your kernel config to compile it statically into your kernel, or you can load the ext2fs module dynamically, even into GENERIC. To do the latter, the module must exist; it will be created if you make the kernel with -DWANT_EXT2FS_MODULE. It is also installed by sysinstall, IIRC. David, I know they're distinct, but it's silly for a discussion of Linux applications to ignore the possibility of those apps residing on a Linux filesystem. I couldn't find ext2fs documented anywhere, which is the first issue. The second is adding a link comment to the LABI chapter. Thanks for the tip -- I used WANT_EXT2FS_MODULE=TRUE in /etc/make.conf, which will be persistent. I think if I ever need to use it just one time in the future, I'll try cd /usr/src/sys/modules/ext2fs; make install, which looks a bit easier to find now that I know what to look for. Interestingly, I don't have a copy from sysinstall, and I never manually removed it. Thanks, Chris Pepper -- Chris Pepper: http://www.reppep.com/~pepper/ Rockefeller University: http://www.rockefeller.edu/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Confirmation: ext2fs requires kernel rebuild?
At 7:50 PM -0800 2002/11/20, David Schultz wrote: Thus spake Chris Pepper [EMAIL PROTECTED]: To use ext2fs, you can either add the option EXT2FS to your kernel config to compile it statically into your kernel, or you can load the ext2fs module dynamically, even into GENERIC. To do the latter, the module must exist; it will be created if you make the kernel with -DWANT_EXT2FS_MODULE. It is also installed by sysinstall, IIRC. David, I know they're distinct, but it's silly for a discussion of Linux applications to ignore the possibility of those apps residing on a Linux filesystem. I couldn't find ext2fs documented anywhere, which is the first issue. The second is adding a link comment to the LABI chapter. Hmm...I think you're right. I don't see any documentation for the option. I would just as soon hook the module up to the default build like all the other modules, but maybe the license is an issue. I think it's off by default for stability, but would like to submit a patch to the LABI Handbook chapter linking to a discussion of the FS module. Unfortunately, I haven't yet found a URL that describes it. LINT says: # # Add support for the EXT2FS filesystem of Linux fame. Be a bit # careful with this - the ext2fs code has a tendency to lag behind # changes and not be exercised very much, so mounting read/write could # be dangerous (and even mounting read only could result in panics.) # options EXT2FS Chris Pepper -- Chris Pepper: http://www.reppep.com/~pepper/ Rockefeller University: http://www.rockefeller.edu/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: 4.7-S: syslog from TiVo
Jerry, Thanks, but that doesn't seem to be the problem. I think it's getting through IPFW fine, and I removed the -s from syslogd's options, but I still can't find any info on (configuring) remote logging, aside from -a which I'm already using. Chris Pepper At 12:16 AM -0500 2002/11/19, Jerry Bell wrote: I really don't know if it would work or not, but you could put an ipfw divert rule and natd to redirect the syslog packets to localhost:514 or similar. Also, you'll need to remove the '-s' flag from syslogd. Jerry - Original Message - From: Chris Pepper [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 18, 2002 11:54 PM Subject: 4.7-S: syslog from TiVo I've just networked my TiVo, and noticed that it tries to connect to 255.255.255.255:514/udp on restart. So naturally I'd like to capture this in syslog, to see what it has to tell me. I opened up the port in ipfw, and see a packet coming through, but after much head-banging on syslog.conf.5, and trial and error, I still can't get anything to showi up in the log file I created for this host, or messages or console.log. What am I missing?? Thanks much, Chris Pepper [www:~] root# uname -a FreeBSD www.reppep.com 4.7-STABLE FreeBSD 4.7-STABLE #2: Mon Nov 18 21:56:46 EST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/REPPEP i386 [www:~] root# ipfw -aN l|grep syslog 01400 1122 allow udp from 66.92.104.200/30 to any dst-port syslog [www:~] root# ps -aux|grep syslog root 5850 0.0 0.2 1028 720 ?? Ss 11:28PM 0:00.04 /usr/sbin/syslogd -4 -a 66.92.104.200/30 [www:~] root# tail -2 /etc/syslog.conf +airport.reppep.com *.* /var/log/airport.log [www:~] root# ls -l /var/log/airport.log -rw-r--r-- 1 root wheel 0 Nov 18 21:09 /var/log/airport.log -- Chris Pepper: http://www.reppep.com/~pepper/ Rockefeller University: http://www.rockefeller.edu/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Confirmation: ext2fs requires kernel rebuild?
Folks, I'm trying to get at a file on an ext2fs slice. I'm a bit confused about kernel recompiles vs. KLDs for Linux compatibility, though. Am I reading correctly at http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu.html http://www.seabug.org/archive/2000-05/msg00086.html, that I can run Linux applications with a single command or rc.conf entry, but accessing files on ext2 file systems requires a kernel rebuild? This seems a bit backwards -- is anyone aware of work to make ext2fs a standard module, so it can be loaded under GENERIC? Thanks, Chris Pepper [www:sys/i386/conf] root# uname -a FreeBSD www.reppep.com 4.7-STABLE FreeBSD 4.7-STABLE #7: Mon Nov 4 11:15:00 EST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 [www:sys/i386/conf] root# kldstat Id Refs AddressSize Name 14 0xc010 419b78 kernel 21 0xc1d02000 6000 ipfw.ko 31 0xc1d7b000 3000 daemon_saver.ko 41 0xc1d89000 14000linux.ko [www:sys/i386/conf] root# lsvfs FilesystemRefs Flags - --- msdos0 procfs 1 synthetic mfs 0 ufs 4 cd9660 0 read-only nfs 0 network [www:sys/i386/conf] root# mount mount mount_fdesc mount_mfs mount_ntfs mount_portalmount_std mountd mount_cd9660mount_kernfsmount_msdos mount_null mount_procfsmount_umap mount_ext2fsmount_linprocfs mount_nfs mount_nwfs mount_smbfs mount_union [www:sys/i386/conf] root# mount mount mount_fdesc mount_mfs mount_ntfs mount_portalmount_std mountd mount_cd9660mount_kernfsmount_msdos mount_null mount_procfsmount_umap mount_ext2fsmount_linprocfs mount_nfs mount_nwfs mount_smbfs mount_union [www:sys/i386/conf] root# !mount mount /win ext2fs: vfsload(ext2fs): No such file or directory Rebooting... Copyright (c) 1992-2002 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 4.7-STABLE #7: Mon Nov 4 11:15:00 EST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC Timecounter i8254 frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (1102.50-MHz 686-class CPU) Origin = GenuineIntel Id = 0x68a Stepping = 10 Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real memory = 401539072 (392128K bytes) config di pcic0 config di sn0 config di lnc0 config di ie0 config di fe0 config di ed0 config di cs0 config di bt0 config di ata1 config di ata0 config di aic0 config di aha0 config di adv0 config q avail memory = 385167360 (376140K bytes) Preloaded elf kernel kernel at 0xc051b000. Preloaded userconfig_script /boot/kernel.conf at 0xc051b09c. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 9 entries at 0xc00fdf30 npx0: math processor on motherboard npx0: INT 16 interface pcib0: Intel 82810 (i810 GMCH) Host To Hub bridge on motherboard pci0: PCI bus on pcib0 pci0: Intel 82810 (i810 GMCH) SVGA controller at 1.0 irq 9 pcib1: Intel 82801AA (ICH) Hub to PCI bridge at device 30.0 on pci0 pci1: PCI bus on pcib1 xl0: 3Com 3c905C-TX Fast Etherlink XL port 0x2000-0x207f mem 0xf410-0xf410007f irq 9 at device 9.0 on pci1 xl0: Ethernet address: 00:04:76:df:f2:82 miibus0: MII bus on xl0 xlphy0: 3c905C 10/100 internal PHY on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci1: unknown card (vendor=0x11c1, dev=0x044e) at 10.0 irq 10 isab0: Intel 82801AA (ICH) PCI to LPC bridge at device 31.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel ICH ATA66 controller port 0x10a0-0x10af at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: Intel 82801AA (ICH) USB controller port 0x1080-0x109f irq 11 at device 31.2 on pci0 usb0: Intel 82801AA (ICH) USB controller on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhub1: Texas Instruments TUSB2046 hub, class 9/0, rev 1.10/1.25, addr 2 uhub1: 4 ports with 4 removable, self powered pci0: unknown card (vendor=0x8086, dev=0x2413) at 31.3 irq 9 chip1: Intel 82801AA (ICH) AC'97 Audio Controller port 0x1300-0x133f,0x1200-0x12ff irq 0 at device 31.5 on pci0 orm0: Option ROMs at iomem 0xc-0xc9fff,0xd8000-0xdbfff,0xe-0xe07ff on isa0 fdc0: NEC 72065B or clone at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: 1440-KB 3.5 drive on fdc0 drive 0 atkbdc0: Keyboard controller (i8042) at port 0x60,0x64 on isa0 atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: PS/2 Mouse irq 12 on atkbdc0 psm0
4.7-S: syslog from TiVo
I've just networked my TiVo, and noticed that it tries to connect to 255.255.255.255:514/udp on restart. So naturally I'd like to capture this in syslog, to see what it has to tell me. I opened up the port in ipfw, and see a packet coming through, but after much head-banging on syslog.conf.5, and trial and error, I still can't get anything to showi up in the log file I created for this host, or messages or console.log. What am I missing?? Thanks much, Chris Pepper [www:~] root# uname -a FreeBSD www.reppep.com 4.7-STABLE FreeBSD 4.7-STABLE #2: Mon Nov 18 21:56:46 EST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/REPPEP i386 [www:~] root# ipfw -aN l|grep syslog 01400 1122 allow udp from 66.92.104.200/30 to any dst-port syslog [www:~] root# ps -aux|grep syslog root 5850 0.0 0.2 1028 720 ?? Ss 11:28PM 0:00.04 /usr/sbin/syslogd -4 -a 66.92.104.200/30 [www:~] root# tail -2 /etc/syslog.conf +airport.reppep.com *.* /var/log/airport.log [www:~] root# ls -l /var/log/airport.log -rw-r--r-- 1 root wheel 0 Nov 18 21:09 /var/log/airport.log -- Chris Pepper: http://www.reppep.com/~pepper/ Rockefeller University: http://www.rockefeller.edu/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message