The FreeBSD Diary: 2006-10-29 - 2006-11-18
The FreeBSD Diary contains a large number of practical examples and how-to guides. This message is posted weekly to freebsd-questions@freebsd.org with the aim of letting people know what's available on the website. Before you post a question here it might be a good idea to first search the mailing list archives http://www.freebsd.org/search/search.html#mailinglists and/or The FreeBSD Diary http://www.freebsddiary.org/. -- Dan Langille BSDCan - http://www.BSDCan.org/ - BSD Conference ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Sendmail and network aliases
Hello! I have FreeBSD-6.1 machine with two network interfaces: one for private network, one for internet. Network interface for internet has some aliases. I need to configure mail relay for some domains at this computer. Can I configure my MTA (Sendmail) to send e-mail for different domains via particular network interface but with different IP-addresses (aliases)? For example, to send e-mail for DOMAIN1 via INTEREFACE1.ALIAS1, for DOMAIN2 via INTERFACE1.ALIAS2, for DOMAIN3 via INTERFACE1.ALIAS3 and so on. Best regards, Evgeniy Belomestnov [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
sysutils/coreutils upgrade error
Hi, When doing an portmaster -a -i -v, the sysutils/coreutils port needs to be updated. But I'm getting the following error. How do I get past this ? Thanks, Beni. www# pkgdb -F --- Checking the package registry database [Updating the pkgdb format:bdb_btree in /var/db/pkg ... - 499 packages found (-12 +11) (...)... done] www# cd /usr/ports/sysutils/coreutils/ www# make deinstall === Deinstalling for sysutils/coreutils === coreutils not installed, skipping www# make make install clean === Installing for coreutils-6.4 === coreutils-6.4 depends on shared library: intl - found === Generating temporary packing list === Checking if sysutils/coreutils already installed Making install in src gmake[1]: Entering directory `/usr/ports/sysutils/coreutils/work/coreutils-6.4/src' gmake install-am gmake[2]: Entering directory `/usr/ports/sysutils/coreutils/work/coreutils-6.4/src' gmake[3]: Entering directory `/usr/ports/sysutils/coreutils/work/coreutils-6.4/src' test -z /usr/local/bin || /usr/local/bin/gmkdir -p /usr/local/bin /usr/local/bin/gmkdir: not found gmake[3]: *** [install-binPROGRAMS] Error 127 gmake[3]: Leaving directory `/usr/ports/sysutils/coreutils/work/coreutils-6.4/src' gmake[2]: *** [install-am] Error 2 gmake[2]: Leaving directory `/usr/ports/sysutils/coreutils/work/coreutils-6.4/src' gmake[1]: *** [install] Error 2 gmake[1]: Leaving directory `/usr/ports/sysutils/coreutils/work/coreutils-6.4/src' gmake: *** [install-recursive] Error 1 *** Error code 2 Stop in /usr/ports/sysutils/coreutils. www# whereis gmkdir gmkdir: www# ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
error in portupgrading audio/amarok
Hi, When trying to portupgrade amarok, I'm getting the following error. I did already a make config and unchecked the iPod option cause I don't need the iPod support. But the upgrade still fails. Any hints on how to get audio/amarok upgraded please? Thankx, Beni. [...] Making all in ipod gmake[5]: Entering directory `/usr/ports/audio/amarok/work/amarok-1.4.4/amarok/src/mediadevice/ipod' /usr/X11R6/bin/moc ./ipodmediadevice.h -o ipodmediadevice.moc if /bin/sh /usr/local/bin/libtool --silent --mode=compile --tag=CXX c++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../amarok/src -I../../../../amarok/src -I../../../../amarok/src/amarokcore -I../../../../amarok/src/amarokcore -I../../../../amarok/src/engine -I../../../../amarok/src/engine -I../../../../amarok/src/mediadevice -I/usr/local/include/gpod-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/taglib -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -D_GETOPT_H -D_THREAD_SAFE -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -fno-strict-aliasing -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT ipodmediadevice.lo -MD -MP -MF .deps/ipodmediadevice.Tpo -c -o ipodmediadevice.lo ipodmediadevice.cpp; \ then mv -f .deps/ipodmediadevice.Tpo .deps/ipodmediadevice.Plo; else rm -f .deps/ipodmediadevice.Tpo; exit 1; fi /bin/sh /usr/local/bin/libtool --silent --mode=link --tag=CXX c++ -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -fno-strict-aliasing -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION-o libamarok_ipod-mediadevice.la -rpath /usr/local/lib/kde3 -avoid-version -module -no-undefined -R /usr/local/lib -R /usr/local/lib -R /usr/X11R6/lib -R /usr/X11R6/lib -R /usr/local/lib -D_THREAD_SAFE -pthread -L/usr/local/lib -lgpod -lglib-2.0 -liconv -L/usr/local/lib -L/usr/X11R6/lib -D_THREAD_SAFE -pthread -L/usr/local/lib ipodmediadevice.lo ../../../../amarok/src/libamarok.la -Wl,-export-dynamic -L/usr/local/lib -L/usr/X11R6/lib -ljpeg -L/usr/X11R6/lib grep: /usr/X11R6/lib/libgdk_pixbuf-2.0.la: No such file or directory sed: /usr/X11R6/lib/libgdk_pixbuf-2.0.la: No such file or directory libtool: link: `/usr/X11R6/lib/libgdk_pixbuf-2.0.la' is not a valid libtool archive gmake[5]: *** [libamarok_ipod-mediadevice.la] Error 1 gmake[5]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.4/amarok/src/mediadevice/ipod' gmake[4]: *** [all-recursive] Error 1 gmake[4]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.4/amarok/src/mediadevice' gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.4/amarok/src' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.4/amarok' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.4' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/audio/amarok. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.25870.68 env PORT_UPGRADE=yes make ** Fix the problem and try again. ** Listing the failed packages (*:skipped / !:failed) ! audio/amarok (amarok-1.4.3_3) (missing header) --- Packages processed: 0 done, 106 ignored, 0 skipped and 1 failed www# ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Installworld Problem... Please help!!!
Hello, Please help!!! I have CVSup'ed my 6.1 Fresh Install. No problems with buildworld or kernel build, but I am getting failures during installworld. When I give this command in single user mode: # make installworld A Partial output of the Screen Dump cd /usr/src/etc; make distrib-dirs mtree -eU -f /usr/src/etc/mtree/BSD.root.dist -p / mtree -eU -f /usr/src/etc/mtree/BSD.var.dist -p /var mtree -eU -f /usr/src/etc/mtree/BSD.usr.dist -p /usr mtree -eU -f /usr/src/etc/mtree/BSD.include.dist -p /usr/include mtree -deU -f /usr/src/etc/mtree/BIND.chroot.dist -p /var/named mtree -deU -f /usr/src/etc/mtree/BSD.sendmail.dist -p / cd /; rm -f /sys; ln -s usr/src/sys sys rm: /sys: Read-only file system *** Error code 1 Stop in /usr/src/etc. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. # Information about my FSTAB: # cat /etc/fstab # DeviceMountpoint FStype Options Dump Pass# /dev/mfid0s1b none swapsw 00 /dev/mfid0s1a / ufsrw 1 1 /dev/mfid0s1g /home ufs rw 2 2 /dev/mfid0s1e /tmp ufs rw 2 2 /dev/mfid0s1f /usr ufs rw 2 2 /dev/mfid0s1d /var ufs rw 2 2 /dev/acd0/cdromcd9660 ro, noauto 0 0 -- Thanks! BR / vj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Installworld Problem... Please help!!!
On Sunday 19 November 2006 06:47, VeeJay wrote: Hello, Please help!!! I have CVSup'ed my 6.1 Fresh Install. No problems with buildworld or kernel build, but I am getting failures during installworld. When I give this command in single user mode: # make installworld A Partial output of the Screen Dump cd /usr/src/etc; make distrib-dirs mtree -eU -f /usr/src/etc/mtree/BSD.root.dist -p / mtree -eU -f /usr/src/etc/mtree/BSD.var.dist -p /var mtree -eU -f /usr/src/etc/mtree/BSD.usr.dist -p /usr mtree -eU -f /usr/src/etc/mtree/BSD.include.dist -p /usr/include mtree -deU -f /usr/src/etc/mtree/BIND.chroot.dist -p /var/named mtree -deU -f /usr/src/etc/mtree/BSD.sendmail.dist -p / cd /; rm -f /sys; ln -s usr/src/sys sys rm: /sys: Read-only file system *** Error code 1 Stop in /usr/src/etc. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. # Information about my FSTAB: # cat /etc/fstab # DeviceMountpoint FStype Options Dump Pass# /dev/mfid0s1b none swapsw 00 /dev/mfid0s1a / ufsrw 1 1 /dev/mfid0s1g /home ufs rw 2 2 /dev/mfid0s1e /tmp ufs rw 2 2 /dev/mfid0s1f /usr ufs rw 2 2 /dev/mfid0s1d /var ufs rw 2 2 /dev/acd0/cdromcd9660 ro, noauto 0 0 What are you doing to go into single user mode? It looks like your not mounting in r/w. The handbook Section 21.4.5, gives a very good method (two actually) of what to do. I used to use the first, I have used the second for several years. Try that. Don ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: error in portupgrading audio/amarok
On 11/19/06, Beni [EMAIL PROTECTED] wrote: Hi, When trying to portupgrade amarok, I'm getting the following error. I did already a make config and unchecked the iPod option cause I don't need the iPod support. But the upgrade still fails. Any hints on how to get audio/amarok upgraded please? grep: /usr/X11R6/lib/libgdk_pixbuf-2.0.la: No such file or directory sed: /usr/X11R6/lib/libgdk_pixbuf-2.0.la: No such file or directory libtool: link: `/usr/X11R6/lib/libgdk_pixbuf-2.0.la' is not a valid libtool archive This has to do with the Gnome upgrade. Go here and read the part about using the find command and grepping for old libtool archives on your system. http://www.freebsd.org/gnome/docs/faq2.html#q2 -- Andy Harrison ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Xircom XE2000 card problem
Asked this question a couple of days ago in freebsd-mobile, but haven't heard anything. I'm reposting here to, hopefully, a wider audience... I have an Inspiron 7000 laptop I've set up as a FreeBSD server running Version 6.1. I have a Xircom XE2000 ethernet card I'd like to use. It appears to be recognized by FreeBSD, but doesn't startup correctly. In searching I've seen references to it working with FreeBSD, but indicate it should use the xe driver. Here's what the dmesg says: ed1: Xircom 10/100 Network PC Card at port 0x100-0x10f iomem 0x8800-0x88000fff irq 1 1 function 0 config 1 on pccard0 device_attach: ed1 attach returned 6 Looking at the hardware list it should be supported by the dc or xe drivers, but not the ed driver. Am I missing something easy, or is this card not reallyl supported at all? Thanks, Joe. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
dvd extractor
Hi Im looking to extract some of my dvd's, not convert to mpeg4 or anything... simply extract the video_ts and audio_ts... Is there any application in the ports tree that can do this for me? I tried dvdrip but it stopped with an error installing mplayer... Thanks Eoghan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: TCP parameters and interpreting tcpdump output
On Sat, 18 Nov 2006 23:42:31 + Dieter [EMAIL PROTECTED] wrote: [snip] Bill writes: Bill My guess would be that your process blocked on stdout. Bill You don't mention what you're doing with stdout from the program, are Bill you just letting it scroll on the terminal, or redirecting it to a file? Just redirected to a file. FFS, soft updates, 7200 rpm SATA drive with the disk's write cache turned off. Input data rate is less than 20 M bits/sec. I can write to the disk at approx 6 M Bytes/sec sustained. (or 10x that with disk write cache turned on, but I don't like trashed filesystems after the machine goes down hard) The machine and the disk are plenty fast enough, AMD64, 2 GB main memory. CPU is 90-something percent idle. Sometimes it works fine for extended periods, 30-40 minutes. Other times the src box reports thousands of network errors. So far I haven't figured out what the difference is between the working tests and the failing tests. The crontab directory is empty, so it shouldn't be cron jobs. As an experiment, try running the process and redirecting stdout to /dev/null -- if it doesn't exhibit the problem, then you need to look at where you're actually storing the data and speed that part up. I've thought of trying /dev/null but haven't yet. It might provide a clue. I would expect that the filesystem should be buffering the write from short term disk latency. Surely FreeBSD 6.0 provides the classic Unix write-behind? The disk activity LED flashes constantly, so it doesn't appear to be saving up disk writes and then doing a bunch at once, Is the data coming in at a fairly constant rate? Yes. you've got plenty of RAM The machine has 2 GB. I wonder if the process is getting its fair share? I have been observing other problems where disk activity to one disk will make an unrelated process reading data from a different disk *very* unresponsive. Sounds like a hardware problem to me. If you've got a crappy SATA controller that's going to block every now and again, you're going to have trouble with this. It's not something impossible to work around. I get the impression that this machine is doing little or nothing other than receiving this data. If that's that case, you can use the entire 2G for buffering, and store incomming data until the disk starts responding again. I don't know off the top of my head, but I seriously doubt if the OS is going to use 2G to buffer disk writes. You, however, can. As your program stands, it will buffer a maximum of 15000 bytes, but you're using blocking IO, so that doesn't even help you if the write blocks. If you want to take advantage of all that RAM, you'll have to add some complexity to your program. The following is roughed out, not tested (may contain fenceposts) but liable to work once you fill in the blanks (although it's lacking any error checking) Start by making BUFFER_SIZE _much_ larger -- several megs at least, or even bigger if this machine is dedicated to this task: [...] /* Set stdout to non-blocking */ fnctl(1, O_NONBLOCK); startread = startwrite = buffer; while (1) { /* Wrap around if we're at the end of the buffer */ if (startread == buffer + BUFFER_SIZE) { startread = buffer; } /* Find out how much unused space is currently in the buffer */ if (startwrite = startread) { avail_buffer = BUFFER_SIZE - startwrite; } else { avail_buffer = startread - startwrite; } /* Read in as much as possible */ num_read = read(fd2, startwrite, avail_buffer); /* move the write pointer */ startwrite += num_read; /* Wrap around if we're at the end of the buffer */ if (startwrite == buffer + BUFFER_SIZE) { startwrite = buffer; } /* Calculate how many bytes we have to write */ if (startwrite = startread) { readytowrite = startwrite - startread; } else { readytowrite = BUFFER_SIZE - startwrite; } /* Here is the key ... this only works if descriptor 1 is * non-blocking ... otherwise your code will wait here until * all the bytes are written ... you don't want that */ num_written = write(1, startwrite, readytowrite); startwrite += num_written; } ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dvd extractor
On Sunday 19 November 2006 10:20, eoghan wrote: I tried dvdrip but it stopped with an error installing mplayer... what exactly was the error with mplayer? i had to deselect a few codecs to get mine to install, in the end, i still had a working media player. might be worth your time to play with the make config-recursive in the dvdrip port to see if you can eliminate whichever problem was with mplayer (or, start directly with mplayer, and get that all working, then turn your attention to dvdrip). cheers, jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Modifying gcc34 makefile to compile with java
Hi Kris. This is a libgcj in gcc issue and have posted to [EMAIL PROTECTED] list. I see that there is a similar reference to something similar on Darwin platform which has FreeBSD roots. It seems that unwind symbol may be getting introduced into libgcj (so that when compiled produces the error). I believe this symbol provides support for libunwind for specific platforms other than FreeBSD. l'll have to track down the person responsible for the FreeBSD port since they should also be interested in determining a solution. Regards, David Kris Kennaway wrote: On Sat, Nov 18, 2006 at 08:58:01PM -0400, David Pratt wrote: Hi Kris. I realize the java support prior to 4 requires a ton of RAM to compile but I also know the compiler is reasonably good afterwards (from other platforms) but have not been successful with FreeBSD at this point. I attempted a few tries at 4.1 an 4.2 today and getting this sort of an error using gcj: /usr/local/lib/gcc-4.2.0/libgcj.so.8: Undefined symbol _Unwind_GetIPInfo so am looking to try something earlier that is known to work on Linux. If I were you I'd focus on solving that error instead. Without more context I can't help though. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to install security patches from http://www.freebsd.org/security?
Hi How to install security patches from http://www.freebsd.org/security? Thanks for your time... -- Thanks! BR / vj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
maxusers ??? (Building Kernel)
Hi I am just building Kernel for my Web Server which do have a pretty heavy traffic. Just wondering that what should I set MAXUSERS in Kernel config file? -- Thanks! BR / vj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dvd extractor
Im looking to extract some of my dvd's, not convert to mpeg4 or anything... simply extract the video_ts and audio_ts... Hallo Eoghan, how about vobcopy (/usr/ports/sysutils/vobcopy)? It works fine for me. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Install
Hi Where should I be asking questions regarding install ? If this is the correct forum I have a Sis648-FX motherboard. I have two hard drives; one Hitachi and one Western Digital. I also have a BTC DVD-ROM. In addtition to this I have two Sil 3112 SATA Controllers on which I have four disks. Overall I have 6 disks. I would like to run Free BSD on it make it a NAS box. The 6.1 Production release bootonly.iso and the 6.2 RC1 bootonly.iso have problems getting to install. When I try to install I cannot stop the screen from scrolling very very fast. It just seems like some unhandled interrupt in a continuous loop. This happens as soon as I see the Boot from CD image. I cannot see anything meaningful. Other than removing the Silicon image controllers what should I do. Appreciate any ideas. Thanks Ramesh Sponsored Link Compare mortgage rates for today. Get up to 5 free quotes. Www2.nextag.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
chpass -p dilema
Dear list, I made a error that changed the root password to something unknown. Experimenting, I intended to change the password of pjones, but instead changed the root password since I gave no user argument. As root, I said: chpass -p pjones I logged out then logged back in as my username, then su'd to root. Would not accept the old pw, and wouldn't accept pjones. I'm stuck with an unknown root password. man chpass tells me the argument provided with -p is the encrypted password in crypt format, but doesn't provide enough detail to know where to go from here. I know I can go to the computer and startup in single user and change the root password. This computer is 2 hour round trip for me, which I'd like to avoid. Can anyone help? Thanks, David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Auto-response for your message to the Employee_relations mailing list
Your message to the Employee Relations ListServe has been received. All messages to this list require approval from the moderator prior for it to being sent out. Thank you for your patience, Mary Creasey Legislative Analyst League of California Cities ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Mail System Error - Returned Mail
You are not allowed to post to this mailing list, and your message has been automatically rejected. If you think that your messages are being rejected in error, contact the mailing list owner at [EMAIL PROTECTED] ---BeginMessage--- The original message was received at Sun, 19 Nov 2006 20:20:42 -0800 from freebsd.org [23.63.251.99] - The following addresses had permanent fatal errors - [EMAIL PROTECTED] ---End Message--- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: chpass -p dilema
David, I doubt there's much you're going to be able to do other than reset the password. 'pjones' doesn't look like a valid password hash of any kind so I can't think of a way to crack it even if you wanted to do something like that. Of course I will bow to anybody who has superior knowledge of crypt, etc. as this is not an area with which I have a lot of expertise. From my PoV, essentially what you are trying to do is crack the system at this point and unless you set it up poorly or are incredibly lucky I don't think it's worth the effort to bother, the only advantage you have over a random attacker is knowledge of the (invalid) password hash (and a regular user account to work from). A couple of thoughts: do you use sudo on this system? (If you don't you should consider it when you've resolved this problem, amongst other excellent features which might aid in remote administration, out of the box it only requires you to know your own password to become root.) Is it possible to get somebody local at your datacentre to drop the system into single user mode and change the password? Do you have any other back doors or accounts that run with elevated privs? Even if the datacentre folks are not knowledgeable WRT FreeBSD/Unix you could guide them through the steps required pretty trivially ('boot -s; enter; passwd'). Of course there are risks in terms of security, but it all depends on your requirements and the criticality of this system, I know I personally wouldn't want to drive for 2 hours to reset a root password unless I really had to. I only mention this because at my workplace we have operators at our corporate datacentre who are non-technical (at least on our platforms) who we can and do occasionally walk through procedures that require local access when we are dealing with emergencies remotely. Another thought for the future, whenever I do something that might have the potential to lock me out of the root account I make certain I have a second shell open somewhere that I can use to un-fudge whatever I just did and I only sit 7 floors away from most of the servers I'm responsible for and about a 10 minute subway ride from the rest! Don't be too bummed out though, you will probably never do this again... I can't tell you how many commands and utilities I have learned inside out *after* I used them wrong and this one is pretty painless... no data loss! Sorry I'm not of more help... good luck! cheers, Gabriel -- Gabriel O'Brien IT Analyst, MPS-EN-CBC.ca w: 416-205-8740 m: 416-576-0088 David McCord wrote: Dear list, I made a error that changed the root password to something unknown. Experimenting, I intended to change the password of pjones, but instead changed the root password since I gave no user argument. As root, I said: chpass -p pjones I logged out then logged back in as my username, then su'd to root. Would not accept the old pw, and wouldn't accept pjones. I'm stuck with an unknown root password. man chpass tells me the argument provided with -p is the encrypted password in crypt format, but doesn't provide enough detail to know where to go from here. I know I can go to the computer and startup in single user and change the root password. This computer is 2 hour round trip for me, which I'd like to avoid. Can anyone help? Thanks, David ___ 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: maxusers ??? (Building Kernel)
On 11/19/06, VeeJay [EMAIL PROTECTED] wrote: Hi I am just building Kernel for my Web Server which do have a pretty heavy traffic. Just wondering that what should I set MAXUSERS in Kernel config file? Short answer: it depends. Long answer: 0 -- -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: maxusers ??? (Building Kernel)
On 11/19/06, VeeJay [EMAIL PROTECTED] wrote: Hi I am just building Kernel for my Web Server which do have a pretty heavy traffic. Just wondering that what should I set MAXUSERS in Kernel config file? Short answer: it depends. Long answer: 0 -- -- ___ 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]
Mistake: Re: maxusers ??? (Building Kernel)
Christian Jung schrieb: On 11/19/06, VeeJay [EMAIL PROTECTED] wrote: Hi I am just building Kernel for my Web Server which do have a pretty heavy traffic. Just wondering that what should I set MAXUSERS in Kernel config file? Short answer: it depends. Long answer: 0 Hello, please forgive me my silly mistake. I send the message above erroneously with my address to this list. Please send answers to the original message to [EMAIL PROTECTED], because i'm not the sender. Thank you. Yours sincerely Christian Jung ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: firefox2 - core dump
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Andriy Babiy said the following on 03.11.2006 10:05: Hello everybody, After last upgrade of Firefox, it dumps core when I run it. I am not sure, but the problem might be caused by the additional optimization that I enabled during configuration. Yes, I have this problem too with additional optimization. Now, my attempt to portupgrade -f firefox results in Found saved configuration - I cannot change this option. Maybe, someone could advise me on how to do it properly? Where is this saved configuration? Should it be deleted? Or I can give some options to portupgrade to ignore it? For remove configuration: cd /usr/ports/www/firefox make rmconfig or simply remove /var/db/ports/firefox2 directory More details: man 7 ports - -- Best regards, Simon Phoenix (Phoenix Lab.) - --- KeyID: 0x2569D30B Fingerprint: 78FC 5C40 07CC D331 148E CC79 84B8 D514 2569 D30B - --- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFYLO9hLjVFCVp0wsRCra/AKDSCxO7AbXMyq7EbWbGvHdMlJ1ObgCfTk2S UazaLpz6cfQdYt6tFtAMYwk= =Cdjq -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]
Something wrong with the files in /usr/local/include/subversion-1/ ?
Hey, Today I tried manually building anjuta2, after getting rid of some errors by fixing FreeBSD specific includes in the anjuta-source files At some point I got this kind of errors: /usr/local/include/subversion-1/svn_io.h:28:17: apr.h: No such file or directory /usr/local/include/subversion-1/svn_io.h:30:25: apr_file_io.h: No such file or directory /usr/local/include/subversion-1/svn_io.h:31:29: apr_thread_proc.h: No such file or directory In file included from /usr/local/include/subversion-1/svn_delta.h:36, from /usr/local/include/subversion-1/svn_wc.h:44, from /usr/local/include/subversion-1/svn_client.h:39, from svn-backend.h:25, from svn-backend.c:19: So I checked the files in /usr/local/include/subversion-1/ , allmost all of them need some apr files which are included. Allthough none of them can by found when compiling the sources. When I ran a locate I found out the apr files are all in /usr/local/include/apr-1/ . I fixed the compiling errors by just symlinking the files in /usr/local/include/apr-1/ to /usr/local/include but this is just a dirty trick to fool the svn header files. Is there just an include to the apr-1 dir missing in the svn*.h files or am I missing something on my system ? Thanks in advance, -- -Frank Staals ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Modifying gcc34 makefile to compile with java
On Sun, Nov 19, 2006 at 01:04:23PM -0400, David Pratt wrote: Hi Kris. This is a libgcj in gcc issue and have posted to [EMAIL PROTECTED] list. I see that there is a similar reference to something similar on Darwin platform which has FreeBSD roots. It seems that unwind symbol may be getting introduced into libgcj (so that when compiled produces the error). I believe this symbol provides support for libunwind for specific platforms other than FreeBSD. l'll have to track down the person responsible for the FreeBSD port since they should also be interested in determining a solution. They're easy to find, and listed right there in the port makefile :-) Kris pgpvAAQeKoRE8.pgp Description: PGP signature
Re: How to install security patches from http://www.freebsd.org/security?
On Sun, Nov 19, 2006 at 06:04:59PM +0100, VeeJay wrote: Hi How to install security patches from http://www.freebsd.org/security? The instructions are right there in the advisories. Kris pgpQtadqDBtwD.pgp Description: PGP signature
Re: flink_elf_lookup_symbol:missing symbol hash table
(Digest, Vol 156, Issue 20, msg 18) Date: Sat, 18 Nov 2006 17:42:29 -0600 From: David Kelly [EMAIL PROTECTED] Subject: link_elf_lookup_symbol: missing symbol hash table The most unusual thing about my system configuration would be /boot/ loader.conf: geom_vinum_load=YES # either load these here or statically compile into the kernel: # 3/17/2006 dmk #wlan_wep_load=YES# used by WEP #wlan_tkip_load=YES # used by WPA wlan_ccmp_load=YES# used by WPA2 wlan_xauth_load=YES #wlan_acl_load=YES snd_ich_load=YES hw.ata.atapi_dma=1 kern.maxdsiz=2G kern.dfldsiz=2G #hw.physmem=2G # saying this broke things wonderfully, altho true kern.maxssiz=128M nvidia_load=YES linux_load=YES Hello David, I notice you don't have:- sound_load=YES in your loader.conf file ! Could that be causing the missing hash table message ? (Accidentally deleted ?) Regards Keith ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: devfs creates unwanted devices in jail after ruleset applied
If no one has any ideas, suggestions on perhaps a better place to pose this question? Steve On Sat, 18 Nov 2006 10:52:55 -0500, Steve Brown [EMAIL PROTECTED] said: I am running a DNS server in a jail and have setup a devfs mount in the jail to have null and random devices. The setup works fine, but once I log out then log back in the pty and tty devices of my login get created in the jail. Which, of course, I don't want to happen. To clarify, I'm not talking about logging into the jail, this occurs when logging on to the system. The jail is stripped down, not anywhere close to a virtual server. I do the following to create the jail'd devfs at startup: mount_devfs devfs JAILDIR/dev devfs -m JAILDER/dev rule -s 35 add hide devfs -m JAILDIR/dev rule -s 35 add path null unhide devfs -m JAILDIR/dev rule -s 35 add path random unhide devfs -m JAILDIR/dev rule -s 35 applyset This works great - I get a dev directory setup with just null and random. But the second anyone logs into the system, whammo all the sudden pty and tty devices appear inside the jail's /dev directory. If anyone would care to unclueless me I would appreciate it. Steve ___ 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]
make.conf FreeBSD 6.2 RC1
Hi, I've recently installed 6.2-Beta3 and got KDE working with Xorg. As RC1 is now released I want to upgrade to this version as I have been witnessing some kernel errors and also want to 'play' with the system. I've installed Xorg and KDE from the ports. I am currently creating a make.conf file which should build the world but nothing more than required. I have come up with the following but I am unsure if certain lines shouldn't be commented out. Such as NO_X. As I have build Xorg from the port, should I not build it with the world? Any suggestions are welcome. Thank and regards, Patrick Start of /etc/make.conf NO_I4B= true# do not build isdn4bsd package NO_SHAREDOCS= true# do not build the 4.4BSD legacy docs NO_X= true# do not compile in XWindows support (e.g. doscmd) NOGAMES=true# do not build games (games/ subdir) NOINFO= true# do not make or install info files NO_BLUETOOTH= true# do not build Bluetooth related stuff NO_IPFILTER=true# do not build IP Filter package NO_FORTRAN= true# do not build g77 and related libraries COMPAT4X= yes NOPROFILE=true NO_SENDMAIL=true NO_LPR=true NO_BIND=true # added by use.perl 2006-11-15 21:59:37 PERL_VER=5.8.8 PERL_VERSION=5.8.8 end of /etc/make.conf ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: system updates, as affected by securelevel
On Sun, 19 Nov 2006, Chuck Swiger wrote: Darrel wrote: With OpenBSD securelevel=2 I can install a kernel, make build, and install programs which are compiled using Systrace. What is the highest securelevel that I can configure on RELENG_6_2 which will not affect compiling and installing; e.g., perhaps not much local difference but having to reboot for a firewall change? This installation is new and the AUDIT option will be in the kernel. securelevel = 0. Because the kernel is installed using the schg flag: if you have securelevel set to 1 or higher, you will not be able to over-write the kernel without rebooting into single-user mode. See man init for details. [ Of course, reinstalling the kernel and/or world is something which you are encouraged to do under single-user mode... ] Thanks, Chuck. Excepting my amd64 the computers are servers at work, so I will use 'securelevel = 0' to facilitate system upgrades while up- only shutting down now for install world. 6.2 rc1 'install world' failed on my amd64. I can csup next month and try out 'securelevel = 3' on that. Probably build the world, etc., installkernel, mergemaster and installworld could all be run from single user then. Darrel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make.conf FreeBSD 6.2 RC1
On Sun, Nov 19, 2006 at 10:58:06PM +0100, Gelsema, P (Patrick) - FreeBSD wrote: Hi, I've recently installed 6.2-Beta3 and got KDE working with Xorg. As RC1 is now released I want to upgrade to this version as I have been witnessing some kernel errors and also want to 'play' with the system. I've installed Xorg and KDE from the ports. I am currently creating a make.conf file which should build the world but nothing more than required. I have come up with the following but I am unsure if certain lines shouldn't be commented out. Such as NO_X. As I have build Xorg from the port, should I not build it with the world? The only thing in the world that was affected by NO_X was doscmd (per the command), but this was removed from the tree some time ago. In fact, so was the NO_X entry from the example make.conf, so I guess you're basing off an old version. Kris pgpovdlM3WZfZ.pgp Description: PGP signature
Re: make.conf FreeBSD 6.2 RC1
On Sunday 19 November 2006 23:06, Kris Kennaway wrote: On Sun, Nov 19, 2006 at 10:58:06PM +0100, Gelsema, P (Patrick) - FreeBSD wrote: Hi, I've recently installed 6.2-Beta3 and got KDE working with Xorg. As RC1 is now released I want to upgrade to this version as I have been witnessing some kernel errors and also want to 'play' with the system. I've installed Xorg and KDE from the ports. I am currently creating a make.conf file which should build the world but nothing more than required. I have come up with the following but I am unsure if certain lines shouldn't be commented out. Such as NO_X. As I have build Xorg from the port, should I not build it with the world? The only thing in the world that was affected by NO_X was doscmd (per the command), but this was removed from the tree some time ago. In fact, so was the NO_X entry from the example make.conf, so I guess you're basing off an old version. True. I got FreeBSD 5.4 running on another box and used the make.conf as a starter. I have amended the make.conf file. My err. What I basically want is a make.conf with just enough to start FreeBSD, with SSH. Everything else to be installed from ports. Is this feasible? And if yes, which options are required? Crypto, CCX and OPENSSH? Any pointer in any direction much appreciated. Cheers Patrick 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 Vpopmail From Ports
7676Thanks everyone for your help. It's been a long weekend with lots of mistakes, but I'm up now. Rachel Sponsored Link Mortgage rates near 39yr lows. $420k for $1,399/mo. Calculate new payment! www.LowerMyBills.com/lre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Best Hardware Choices
8080Hi; I need to buy new h/w that I'm going to use specifically to build an experimental server...one that I can screw up with without crashing clients' sites ;) What motherboard, chip, hard drive and firewall pci card do you guys recommend for FBSD? I'm rebuilding a standalone box connected to a satellite dish. TIA, Rachel Sponsored Link Don't quit your job - take classes online www.Classesusa.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: TCP parameters and interpreting tcpdump output
The machine has 2 GB. I wonder if the process is getting its fair share? I have been observing other problems where disk activity to one disk will make an unrelated process reading data from a different disk *very* unresponsive. Sounds like a hardware problem to me. If you've got a crappy SATA controller that's going to block every now and again, you're going to have trouble with this. Is the Nvidia Nforce4 Ultra chipset considered a crappy SATA controller? There are 4 Seagate SATA drives, 1 Seagate PATA drive (all 7200.8 .9 or .10), and 1 LG CD/DVD PATA drive. The PATA drives are idle during these tests. Doing dd between the disks and /dev/null it can do 40 MB/sec sustained at the slow end and 65-70 MB/s at the fast end of the drives, limited by the drives, and do this with all four SATA drives at once. It can do this reading or writing if the disks' cache is turned on. With the disks' cache turned off, the sustained write speed drops to about 1/10. But... if I do something like copy a large file from one disk to another, and then do something that needs to read from a third disk, the new process may hang for a very very long time. If I suspend (^Z) the copy process for a moment, the new process gets its data. I suspect that the kernel is letting the copy process kick everything else out of memory. To some extent that makes sence. It is caching the most recently accessed data. What I haven't figured out is why the new process is allowed to hang for so long. I had thought of putting in a circular buffer, but figured that it should be unnecessary since the normal Unix write-behind should buffer the writes from the disk I/O for me. I'll give it a try, maybe it will help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: chpass -p dilema
forgot root password Are you able to login to Single User Mode? On a vanilla installation it doesn't ask for the root password, so you should be able to mount the system and run chpass again. Regards, Russell Wood DISCLAIMER: Disclaimer. This e-mail is private and confidential. If you are not the intended recipient, please advise us by return e-mail immediately, and delete the e-mail and any attachments without using or disclosing the contents in any way. The views expressed in this e-mail are those of the author, and do not represent those of this company unless this is clearly indicated. You should scan this e-mail and any attachments for viruses. This company accepts no liability for any direct or indirect damage or loss resulting from the use of any attachments to this e-mail. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Install
-Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd- [EMAIL PROTECTED] On Behalf Of Ramesh Subrahmaniam Sent: Monday, 20 November 2006 1:33 AM To: freebsd-questions@freebsd.org Subject: Install Hi Where should I be asking questions regarding install ? If this is the correct forum I have a Sis648-FX motherboard. I have two hard drives; one Hitachi and one Western Digital. I also have a BTC DVD-ROM. In addtition to this I have two Sil 3112 SATA Controllers on which I have four disks. Overall I have 6 disks. I would like to run Free BSD on it make it a NAS box. The 6.1 Production release bootonly.iso and the 6.2 RC1 bootonly.iso have problems getting to install. When I try to install I cannot stop the screen from scrolling very very fast. It just seems like some unhandled interrupt in a continuous loop. This happens as soon as I see the Boot from CD image. I cannot see anything meaningful. Other than removing the Silicon image controllers what should I do. Appreciate any ideas. Thanks Ramesh I would recommend disabling as much as possible in the BIOS just so you can get the installation done. Then one by one re-enabling everything to look for the issue. Regards, Russell Wood DISCLAIMER: Disclaimer. This e-mail is private and confidential. If you are not the intended recipient, please advise us by return e-mail immediately, and delete the e-mail and any attachments without using or disclosing the contents in any way. The views expressed in this e-mail are those of the author, and do not represent those of this company unless this is clearly indicated. You should scan this e-mail and any attachments for viruses. This company accepts no liability for any direct or indirect damage or loss resulting from the use of any attachments to this e-mail. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Xircom XE2000 card problem
-Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd- [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, 20 November 2006 12:08 AM To: freebsd-questions@freebsd.org Subject: Xircom XE2000 card problem Asked this question a couple of days ago in freebsd-mobile, but haven't heard anything. I'm reposting here to, hopefully, a wider audience... I have an Inspiron 7000 laptop I've set up as a FreeBSD server running Version 6.1. I have a Xircom XE2000 ethernet card I'd like to use. It appears to be recognized by FreeBSD, but doesn't startup correctly. In searching I've seen references to it working with FreeBSD, but indicate it should use the xe driver. Here's what the dmesg says: ed1: Xircom 10/100 Network PC Card at port 0x100-0x10f iomem 0x8800-0x88000fff irq 1 1 function 0 config 1 on pccard0 device_attach: ed1 attach returned 6 Looking at the hardware list it should be supported by the dc or xe drivers, but not the ed driver. Am I missing something easy, or is this card not reallyl supported at all? Thanks, Joe. If you have a closer look, it is using the ed (4): ed1: Xircom 10/100 Network PC Card at port 0x100-0x10f iomem Make sure you have the following devices compiled in your kernel: device miibus device ed ... also, you might need: device pccard device cardbus Regards, Russell Wood DISCLAIMER: Disclaimer. This e-mail is private and confidential. If you are not the intended recipient, please advise us by return e-mail immediately, and delete the e-mail and any attachments without using or disclosing the contents in any way. The views expressed in this e-mail are those of the author, and do not represent those of this company unless this is clearly indicated. You should scan this e-mail and any attachments for viruses. This company accepts no liability for any direct or indirect damage or loss resulting from the use of any attachments to this e-mail. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]