Easier way to install on 3ware 9550 card?
Hey all, I have a new system with NO FLOPPY CONTROLLER and a 3ware 9550 card. It's a 1u system -- sticking extra things into PCI slots as a workaround is likely to be impossible. I found this document on how to get it installed, in theory: http://www.3ware.com/kb/article.aspx?id=14850 But with no floppy, this is probably going to involve either transplanting the card (and drive array) to another machine JUST to do the install (translated: a serious pain in the ass). If someone could explain why any of the following aren't possible, I'd love to know: 1) Making this driver part of the boot-time probe. I can understand not including every SOUND CARD and MULTI-PORT SERIAL CARD in the generic kernel, but could we at least include the rest of the STORAGE modules? 2) Giving the ability to load a kernel module from somewhere else (an http/ftp url, maybe?) 3) Adding the kldload command to the emergency holographic shell (I was able to do an NFS mount from within it, but had no way to load the driver). 4) Allowing non-standard modules to reside on the CD, instead of loading from floppy (i.e. I see there's a twa module in the base system, why aren't the .ko's sitting around easily-accessible for sysinstall?) If I'm missing some really obvious way of doing this, please let me know. Thanks, Dan Mahoney -- Long live little fat girls! -Recent Taco Bell Ad Slogan, Literally Translated. (Viva Gorditas) Dan Mahoney Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sparc64 and perl 5.8.8 port test failures?
Steven D. Yee wrote: I'm seeing multiple errors from make test and I can't seem to figure out how to get rid of them. As far as I can tell it builds correctly. [...] ../lib/integer..NOK 10 # Failed test 'left shift' # in ../lib/integer.t at line 49. # got: '-4292583424' # expected: '-9223372036854775808' # Looks like you failed 1 test of 11. ../lib/integer..dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 10 Failed 1/11 tests, 90.91% okay I did try building with WITHOUT_PERL_64BITINT=yes but that didn't seem to make a difference, although its possible that I screwed that up since conf.sh still shows multiple references to 64 bit ints (even use64bitint is defined) does anyone have any pointers as to what may be going on? or where to start looking? This looks like the build is bringing in 64bitness when it shouldn't (or vice versa). The build process might have remnants of the previous config run lying around (in Policy.sh and/or config.sh). Step down into the build directory and delete these two files, and build again. Or, better yet, just delete the entire ./work directory, and build it again. Later, DAvid ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sparc64 and perl 5.8.8 port test failures?
Steven D. Yee wrote: I'm seeing multiple errors from make test and I can't seem to figure out how to get rid of them. As far as I can tell it builds correctly. [...] ../lib/integer..NOK 10 # Failed test 'left shift' # in ../lib/integer.t at line 49. # got: '-4292583424' # expected: '-9223372036854775808' # Looks like you failed 1 test of 11. ../lib/integer..dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 10 Failed 1/11 tests, 90.91% okay I did try building with WITHOUT_PERL_64BITINT=yes but that didn't seem to make a difference, although its possible that I screwed that up since conf.sh still shows multiple references to 64 bit ints (even use64bitint is defined) does anyone have any pointers as to what may be going on? or where to start looking? This looks like the build is bringing in 64bitness when it shouldn't (or vice versa). The build process might have remnants of the previous config run lying around (in Policy.sh and/or config.sh). Step down into the build directory and delete these two files, and build again. Or, better yet, just delete the entire ./work directory, and build it again. Later, DAvid ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Easier way to install on 3ware 9550 card?
Dan Mahoney, System Admin wrote: Hey all, I have a new system with NO FLOPPY CONTROLLER and a 3ware 9550 card. It's a 1u system -- sticking extra things into PCI slots as a workaround is likely to be impossible. I don't think you need a driver - it's already there. apropos 3ware twa(4)- 3ware 9000/9500/9550 series SATA RAID controllers driver twe(4)- 3ware 5000/6000/7000/8000 series PATA/SATA RAID adapter driver ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to reset /dev/dsp ?
On Tue, 2 Jan 2007, Lowell Gilbert wrote: Luke Dean [EMAIL PROTECTED] writes: I'm running FreeBSD 6.1. My sound device shows up like this in my dmesg: pcm0: Intel ICH5 (82801EB) port 0xd800-0xd8ff,0xdc00-0xdc3f mem 0xfc001000-0xfc0011ff,0xfc002000-0xfc0020ff irq 17 at device 31.5 on pci0 pcm0: primary codec not ready! pcm0: Avance Logic ALC658 AC97 Codec My sound driver is compiled into the kernel: device sound device snd_ich I've got a java application that I run through diablo-jdk-1.5.0.07.01_1 that uses sound. It's a game. Partway through the game, the sound stops working. The people who make the game have been aware of the problem for many months, but don't understand what to do about it. Okay, I can accept that. What I can't accept is that this java application breaks the sound in such a way that NOTHING can play sound anymore until I reboot the machine! If I attempt to play a movie with mplayer after the game has broken the sound, it says: [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory However, the dsp device still exists in /dev: [0:/dev ll dsp* crw-rw-rw- 1 root wheel - 0, 51 Dec 29 21:36 dsp0.0 crw-rw-rw- 1 root wheel - 0, 54 Dec 29 21:37 dsp0.1 crw-rw-rw- 1 root wheel - 0, 52 Dec 29 19:24 dspW0.0 crw-rw-rw- 1 root wheel - 0, 55 Dec 29 19:24 dspW0.1 crw-rw-rw- 1 root wheel - 0, 57 Dec 29 19:24 dspr0.1 The sndstat device doesn't show any problem, if I'm reading the output right: [0:/dev cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: Intel ICH5 (82801EB) at io 0xfc001000, 0xfc002000 irq 17 bufsz 16384 (1p/1r/0v channels duplex default) Is there anything I can do short of rebooting the machine to get my sound working when this happens? I thought maybe there was something I could do with devd or devctl to reset the device, but I can't figure out how to do that. I'm not even sure how to see the problem except to attempt to play a sound. Well, it's hard to say, because the hardware could be misbehaving, in which case the software may not know what's going on. It might be interesting to see whether fstat(1) sees anything holding the dsp devices. You could also try using vchans, which would (in theory) let you access the hardware from another device node after the first one hangs. fstat reveals that nothing is holding the dsp devices after the sound breaks. I read a bit about vchans, then set up a few with sysctl hw.snd.pcm0.vchans=4. I had to reboot first, because once the sound locks up, attempting to adjust this sysctl produces a device busy error. This produced some new dsp devices in /dev. I ran the java app again, broke the sound, and found that all of the vchans produce the same device busy error when I use mplayer switches to specify which vchan to use. (I was using commands like mplayer -ao oss:/dev/dsp0.1 blah.avi to test this.) Whatever this java app is doing to break the sound breaks it for all device nodes. Thanks for the idea anyway. I learned something. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Setting another machine as a firewall
Hi, i want to set another machine as a firewall for my mail server to prevent receiving huge number of spams each day. so, how shuold i change my DNS to do this ? Regards, Mo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting another machine as a firewall
i want to set another machine as a firewall for my mail server to prevent receiving huge number of spams each day. so, how shuold i change my DNS to do this ? Have your MX reccord to point to the firewall mail server. But before you do that, you should make sure that the firewall is set-up and configured and running. Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Easier way to install on 3ware 9550 card?
I have a new system with NO FLOPPY CONTROLLER and a 3ware 9550 card. It's a 1u system -- sticking extra things into PCI slots as a workaround is likely to be impossible. Any possibility of using a USB floppy drive? 3) Adding the kldload command to the emergency holographic shell (I was able to do an NFS mount from within it, but had no way to load the driver). Maybe put kldload on that NFS mount along with the module to be loaded, and run it from there? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
what is operator group for?
Hi all can anyone tell me what the operator group is for, or docs where I can read about it? I see that /sbin/shutdown and /sbin/mk_snap_ffs are both executable by members and various things in /dev/ are mountable by them. I want a regular user to be able to mount removeable media and shutdown the computer. If I make them a member of operator group what else am I allowing them to do? Thanks Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
suidperl eats my CPU
Hi! would some one tell me why suidperl process eats my CPU ? i've installed qmail, qmailscanner Regards, Mo. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sshd break-in attempt
On Tuesday 02 January 2007 16:34, Eric wrote: Hi, Why don't you use the /etc/rc.firewall, its a good firewall too. Len Conrad wrote: In our 'periodic daily' report/email, (only the list goes on for hundreds of attempts). Anyhow, long story short; is there not an easy way to make sshd block or deny hosts temporarily if X number of invalid login attempts are made within a minute's time? to reduce the brute force attacks + voluminous logging, tell sshd to listen on port other than 22. google for tcp wrappers sshd for examples of how to use tcp wrappers in reactive blocking Len check out the denyhosts port as well. works great ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Peter Nyamukusa Systems Administrator Africa Online Zimbabwe Tel: +263-4-250890 Fax: +263-4-702203 E-mail: [EMAIL PROTECTED] AIM: petenya Africa Online Disclaimer and Confidentiality Note This e-mail, its attachments and any rights attaching hereto are, unless the context clearly indicates otherwise, the property of Africa Online Holdings (Mauritius) Limited and/or its subsidiaries (the Group). It is confidential and intended for the addressee only. Should you not be the addressee and have received this e-mail by mistake, kindly notify the sender, delete this e-mail immediately and do not disclose or use the same in any manner whatsoever. Views and opinions expressed in this e-mail are those of the sender unless clearly stated as those of the Group. The Group accepts no liability whatsoever for any loss or damages, however incurred, resulting from the use of this e-mail or its attachments. The Group does not warrant the integrity of this e-mail, nor that it is free of errors, viruses, interception or interference. For more information about Africa Online, please visit our website at http://www.africaonline.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to fetch again a port from port distribution (ftp site)?
On Tuesday 02 January 2007 15:16, RW wrote: On Tue, 2 Jan 2007 06:28:22 +0100 VeeJay [EMAIL PROTECTED] wrote: Hi I was trying to install mysql from port collection. But during downloading port from port distribution, my internet connection got broken for few minuts... now when I run make again... it tries to compile uncomplete downloaded src how can I get rid of this pre-fetched src, remove it and The pre-feched src are in /usr/ports/distfiles/ you can delete the src file from there how to fetch again a port from port distribution (ftp site) when src is already downloaded once? you can also manually download the distribution files from and ftp site on another PC using a download manager which can resume in case of broken internet connection and simply copy the file in to /usr/ports/distfiles/ the run the make from the ports Firstly, the ports system should try to restart an existing download, I do this all the time. Secondly, even if a partial file cannot be completed, the port should not carry on building because the distfile will fail its MD5/SHA256 checksums. Either there is a bug here, or you have done something odd. Do you have NO_CHECKSUM set? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Peter Nyamukusa Systems Administrator Africa Online Zimbabwe Tel: +263-4-250890 Fax: +263-4-702203 E-mail: [EMAIL PROTECTED] AIM: petenya Africa Online Disclaimer and Confidentiality Note This e-mail, its attachments and any rights attaching hereto are, unless the context clearly indicates otherwise, the property of Africa Online Holdings (Mauritius) Limited and/or its subsidiaries (the Group). It is confidential and intended for the addressee only. Should you not be the addressee and have received this e-mail by mistake, kindly notify the sender, delete this e-mail immediately and do not disclose or use the same in any manner whatsoever. Views and opinions expressed in this e-mail are those of the sender unless clearly stated as those of the Group. The Group accepts no liability whatsoever for any loss or damages, however incurred, resulting from the use of this e-mail or its attachments. The Group does not warrant the integrity of this e-mail, nor that it is free of errors, viruses, interception or interference. For more information about Africa Online, please visit our website at http://www.africaonline.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting another machine as a firewall
On Wednesday 03 January 2007 11:34, Olivier Nicole wrote: i want to set another machine as a firewall for my mail server to prevent receiving huge number of spams each day. so, how shuold i change my DNS to do this ? Also note that port 25 on the firewall should be open, either accepting email as an SMTP Gateway or redirecting incoming SMTP requests on port 25 to your mail server. Have your MX reccord to point to the firewall mail server. But before you do that, you should make sure that the firewall is set-up and configured and running. Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Peter Nyamukusa Systems Administrator Africa Online Zimbabwe Tel: +263-4-250890 Fax: +263-4-702203 E-mail: [EMAIL PROTECTED] AIM: petenya Africa Online Disclaimer and Confidentiality Note This e-mail, its attachments and any rights attaching hereto are, unless the context clearly indicates otherwise, the property of Africa Online Holdings (Mauritius) Limited and/or its subsidiaries (the Group). It is confidential and intended for the addressee only. Should you not be the addressee and have received this e-mail by mistake, kindly notify the sender, delete this e-mail immediately and do not disclose or use the same in any manner whatsoever. Views and opinions expressed in this e-mail are those of the sender unless clearly stated as those of the Group. The Group accepts no liability whatsoever for any loss or damages, however incurred, resulting from the use of this e-mail or its attachments. The Group does not warrant the integrity of this e-mail, nor that it is free of errors, viruses, interception or interference. For more information about Africa Online, please visit our website at http://www.africaonline.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: starting KDE after install .. -not-
On Wed, 3 Jan 2007, bobmc wrote: After KDE is installed, startx still launches the twm default X manager. Diligent RTFM only tells me it should work once the Xserver is configured for the video hardware and monitor. I have: export LANG=en_AU.UTF-8 exec startkde as the last lines in my ~/.xinitrc file. There's a few other lines to do with my Vietnamese keyboard input, but that's it. Cheers, Rob Hurle - Rob Hurle Faculty of Asian Studies, ANU Home address and contacts: Tel: +61 2 6247 2397 PO Box 4013Fax: +61 2 6247 2397 AinslieCell phone: 0417 293 603 Australia e-mail: [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: starting KDE after install .. -not-
On Wed, 3 Jan 2007, bobmc wrote: After KDE is installed, startx still launches the twm default X manager. Diligent RTFM only tells me it should work once the Xserver is configured for the video hardware and monitor. I have: export LANG=en_AU.UTF-8 exec startkde as the last lines in my ~/.xinitrc file. There's a few other lines to do with my Vietnamese keyboard input, but that's it. Cheers, Rob Hurle - Rob Hurle Faculty of Asian Studies, ANU Home address and contacts: Tel: +61 2 6247 2397 PO Box 4013Fax: +61 2 6247 2397 AinslieCell phone: 0417 293 603 Australia e-mail: [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: linux compatability question
Thank you, I had to use a different linux library (linux-dri I think), but it ended up working. -Jim Stapleton On 12/27/06, Boris Samorodov [EMAIL PROTECTED] wrote: On Wed, 27 Dec 2006 14:02:39 -0500 Jim Stapleton wrote: I'm not sure what to do at this point, I'm trying to run a linux app (binary) that requires libGLU.so.1, and it's an x86 binary. It requires a linux library. When I first ran it, it complained that the file libGLU.so.1 could not be found (it was in my /usr/X11R6/lib directory. I made a simlink with And that is a FreeBSD one. that name to that file to /compat/linux/usr/X11R6/lib and now get this error: ./partiview: error while loading shared libraries: /lib/libGLU.so.1: ELF file OS ABI invalid Yes, the linux app tries to load a FreeBSD library. This is on an i950 based notebook (integrated intel graphics), using the i810 and vga drivers in X. FreeBSD 6.1, X is either 6.8 or 6.9 Any suggestions? Remove your simlink and install graphics/linux-libGLU. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
good news for FreeBSD lovers who admin Stellent Content Manager, irrelevant news for everyone else...
This is by no way an official post, but in my current job I admin a Stellent Content Server, which until recently only had AIX/Linux/SunOS/Win32 as supported platforms (maybe one or two other platforms that I've forgotten). I was about to try installing it with the Linux Compatability Layer where necessary, but right when I was going to start, all the images dissapeared off their website. This morning I checked, and along with the 7.6.2 (new sub-release?) I found a FreeBSD ISO. So, really, if you were interested in SCM but couldn't find it in FreeBSD, or wanted to move a system with it over to FreeBSD, you now can. If you don't know what SCM is, then you probaly wasted your time reading this message (sorry, I did warn you). I'm just happy to see a nice piece of mainstream commercial software on FreeBSD. It's not common enough as of yet. -Jim Stapleton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Easier way to install on 3ware 9550 card?
On Wednesday 03 January 2007 01:56, Dan Mahoney, System Admin wrote: Hey all, I have a new system with NO FLOPPY CONTROLLER and a 3ware 9550 card. It's a 1u system -- sticking extra things into PCI slots as a workaround is likely to be impossible. I found this document on how to get it installed, in theory: http://www.3ware.com/kb/article.aspx?id=14850 But with no floppy, this is probably going to involve either transplanting the card (and drive array) to another machine JUST to do the install (translated: a serious pain in the ass). If someone could explain why any of the following aren't possible, I'd love to know: 1) Making this driver part of the boot-time probe. I can understand not including every SOUND CARD and MULTI-PORT SERIAL CARD in the generic kernel, but could we at least include the rest of the STORAGE modules? 2) Giving the ability to load a kernel module from somewhere else (an http/ftp url, maybe?) 3) Adding the kldload command to the emergency holographic shell (I was able to do an NFS mount from within it, but had no way to load the driver). 4) Allowing non-standard modules to reside on the CD, instead of loading from floppy (i.e. I see there's a twa module in the base system, why aren't the .ko's sitting around easily-accessible for sysinstall?) If I'm missing some really obvious way of doing this, please let me know. Thanks, Dan Mahoney -- Long live little fat girls! -Recent Taco Bell Ad Slogan, Literally Translated. (Viva Gorditas) Dan Mahoney Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --- when worst come to worst, i keep a usb floppy drive aroud for just those kinds of situations. good luck, jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Batch file question - average size of file in directory
On 2007-01-02 10:20, Kurt Buff [EMAIL PROTECTED] wrote: All, I don't even have a clue how to start this one, so am looking for a little help. I've got a directory with a large number of gzipped files in it (over 110k) along with a few thousand uncompressed files. I'd like to find the average uncompressed size of the gzipped files, and ignore the uncompressed files. How on earth would I go about doing that with the default shell (no bash or other shells installed), or in perl, or something like that. I'm no scripter of any great expertise, and am just stumbling over this trying to find an approach. You can probably use awk(1) or perl(1) to post-process the output of gzip(1). The gzip(1) utility, when run with the -cd options will uncompress the compressed files and send the uncompressed data to standard output, without actually affecting the on-disk copy of the compressed data. It is easy then to pipe the uncompressed data to wc(1) to count the 'bytes' of the uncompressed data: for fname in *.Z *.z *.gz; do if test -f ${fname}; then gzip -cd ${fname} | wc -c fi done This will print the byte-size of the uncompressed output of gzip, for all the files which are currently compressed. Something like the following could be its output: 220381 3280920 This can be piped into awk(1) for further processing, with something like this: for fname in *.Z *.gz; do if test -f $fname; then gzip -cd $fname | wc -c fi done | \ awk 'BEGIN { min = -1; max = 0; total = 0; } { total += $1; if ($1 max) { max = $1; } if (min == -1 || $1 min) { min = $1; } } END { if (NR 0) { printf min/avg/max file size = %d/%d/%d\n, min, total / NR, max; } }' With the same files as above, the output of this would be: min/avg/max file size = 220381/1750650/3280920 With a slightly modified awk(1) script, you can even print a running min/average/max count, following each line. Mmodified lines marked with a pipe character (`|') in their leftmost column below. The '|' characters are *not* part of the script itself. for fname in *.Z *.gz; do if test -f $fname; then gzip -cd $fname | wc -c fi done | \ awk 'BEGIN { min = -1; max = 0; total = 0; | printf %10s %10s %10s %10s\n, | SIZE, MIN, AVERAGE, MAX; } { total += $1; if ($1 max) { max = $1; } if (min == -1 || $1 min) { min = $1; } | printf %10d %10d %10d %10d\n, | $1, min, total/NR, max; } END { if (NR 0) { | printf %10s %10d %10d %10d\n, | TOTAL, min, total / NR, max; } }' When run with the same set of two compressed files this will print: SIZEMINAVERAGEMAX 220381 220381 220381 220381 3280920 22038117506503280920 TOTAL 22038117506503280920 Please note though that with a sufficiently large set of files, awk(1) may fail to count the total number of bytes correctly. If this is the case, it should be easy to write an equivalent Perl or Python script, to take advantage of their big-number support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting another machine as a firewall
Mohamad Babaei wrote: i want to set another machine as a firewall for my mail server to prevent receiving huge number of spams each day. so, how shuold i change my DNS to do this ? Hmmm... I don't think a firewall is really the right technology to achieve what you desire. A firewall (in the general usage) is a piece of software designed to filter network packets, or a machine whose primary duty is to run such a filter. Packet filters typically look only at the ethernet and IP headers of any packets. So they can tell if an incoming packet is headed towards port 25 on your mail server, but they've got no idea if the payload in that packet is spam or not. If you want to sound impressive to management you can say that firewalls act at layers 2 and 3 of the OSI model, and this is a layer 4 problem. Technically the sort of software you need at layer 4 is a proxy server -- ie. a protocol specific piece of software which can process the incoming packet streams and respond to the sender exactly as if it was the ultimate destination, but then apply any restrictions required by your security policy and then hand-off the content to the real end-user. Web caches are a classic example of this sort of thing. Now, you can do exactly this for e-mail traffic. However, as SMTP servers, by their nature, are designed for the relaying of mail traffic, in general you'ld just use another instance of an MTA to be the firewall proxy server. Obviously you need to think carefully about the design here: simply making e-mail jump through two copies of sendmail or exim or whatever won't get you any more security or protection against spam and just introduces additional points of failure. Good reasons for adding a mail relay at your border are such things as: * we don't want to expose our Exchange server to the internet at large. because it's a security nightmare. * we have a large internal network with mailservers at several sites and we need to route SMTP traffic internally whilst still presenting a unified e-mail name space to the outside world. * we have so much incoming e-mail that we need to share out the load of spam filtering and providing mailbox services over a number of machines internally. The alternative to implementing a proxy mail server on your firewall is to set the firewall to simply direct e-mail traffic through to your internal mail server. If your internal networks are routeable from the internet, then that is just a matter of writing filter rules to allow the traffic. If you're in the very common position of using NAT on your firewall then you'll need to add configuration to allow incoming connections to port 25 to be forwarded to your internal mail server -- 'redirection' or 'binat' are commonly heard terms involved with doing that. Exactly how to do that depends on the firewalling software you're using and the detail of the way your networks are constructed. (There are 3 packages available in the base FreeBSD distribution alone capable of doing this job -- pf, ipfilter or IPFW+natd. pf is what I'd recommend.) As far as DNS goes, combining a NAT'ing firewall with a mailserver on a private interior network leads to another problem: the so-called 'split horizon', where the outside world needs to be able to look up your mailserver in the DNS and ultimately resolve it to an external IP address on your NAT gateway, but users on your internal networks must resolve it to the address of the mailserver on your internal network. It simply doesn't work for internal machines to attempt to connect to the public address on the outside of the NAT'ing firewall. E-mail is a special case here: normally you can fudge such things by putting the public addresses in the DNS but overriding them locally by putting the internal addresses in /etc/hosts and setting nsswitch.conf to prefer lookups from files rather than the DNS (which is the default setting actually). However e-mail doesn't co-operate: mail servers insist on using the global DNS to look up the data they need when sending e-mail. Partly that's because there's no way of providing an equivalent to the MX record from within /etc/hosts but mostly it is because both ends of any e-mail transaction need to have the same idea about how names resolve to IP numbers. Therefore you will need to make provision in the DNS for your internal systems to be able to lookup your mailserver and receive the internal address, while the rest of the world sees the public address. You can do that either by having a separate internal DNS server with the local data in it, or by using the 'views' facility within BIND. See: http://www.isc.org/sw/bind/arm93/Bv9ARM.ch06.html#view_statement_grammar Now, lets suppose you've chosen to have a border SMTP relay on your firewall (or, for larger sites, in your DMZ network). Where should you put the anti-virus and spam filtering function? There or on the internal mail server? In principal
Re: Root doesn't have permission to change permissions?
when i do chflags nouchg MP3 i get operation not supported. and how can i have files open when the its currently unmounted? the lock is the only thing in chflags that i see could make any difference. Robert Huff wrote: Steel City Phantom writes: when i try to delete the mount point and recreate it i get the message device busy, Not even root can dismount something while there are files open. when i try to change owners of the directory as root it says i don't have permission. man chflags Robert Huff ___ [EMAIL PROTECTED] mailing list [2]http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [3][EMAIL PROTECTED] References 1. mailto:freebsd-questions@freebsd.org 2. http://lists.freebsd.org/mailman/listinfo/freebsd-questions 3. mailto:[EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Failure -Upgrading-archivers/p5-IO-Compress-Base./p5-Compress-Raw-Zlib-2.001
Thanks in advance to anyone who could please help me deal with these errors: [EMAIL PROTECTED] /var/cvsupconfig]# portupgrade -a . . --- Upgrading 'p5-IO-Compress-Base-2.001' to 'p5-IO-Compress-Base-2.002' (archivers/p5-IO-Compress-Base) --- Building '/usr/ports/archivers/p5-IO-Compress-Base' === Cleaning for perl-5.8.8 === Cleaning for p5-IO-Compress-Base-2.002 === Vulnerability check disabled, database not found = IO-Compress-Base-2.002.tar.gz doesn't seem to exist in /usr/ports/distfiles/. = Attempting to fetch from ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/IO/. IO-Compress-Base-2.002.tar.gz 100% of 88 kB 215 kBps === Extracting for p5-IO-Compress-Base-2.002 = MD5 Checksum OK for IO-Compress-Base-2.002.tar.gz. = SHA256 Checksum OK for IO-Compress-Base-2.002.tar.gz. === p5-IO-Compress-Base-2.002 depends on file: /usr/local/bin/perl5.8.8 - found === Patching for p5-IO-Compress-Base-2.002 === p5-IO-Compress-Base-2.002 depends on file: /usr/local/bin/perl5.8.8 - found === p5-IO-Compress-Base-2.002 depends on file: /usr/local/bin/perl5.8.8 - found === Configuring for p5-IO-Compress-Base-2.002 Cannot load ExtUtils::MakeMaker: Can't locate Cwd.pm in @INC (@INC = contains: /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /usr/local/lib/perl5/5.8.8/ExtUtils/MakeMaker.pm line 167. BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.8/ExtUtils/MakeMaker.pm line 167. Compilation failed in require at (eval 4) line 1. BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.8/BSDPAN/ExtUtils/MakeMaker.pm line 17. Compilation failed in require at ./Makefile.PL line 7. BEGIN failed--compilation aborted at ./Makefile.PL line 7. *** Error code 2 Stop in /usr/ports/archivers/p5-IO-Compress-Base. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.22498.11 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=p5-IO-Compress-Base-2.001 UPGRADE_PORT_VER=2.001 make ** Fix the problem and try again. --- Skipping 'bsdpan-CPAN-1.87' because it is held by user (specify -f to force) --- Upgrading 'p5-Compress-Raw-Zlib-2.001' to 'p5-Compress-Raw-Zlib-2.002' (archivers/p5-Compress-Raw-Zlib) --- Building '/usr/ports/archivers/p5-Compress-Raw-Zlib' === Cleaning for perl-5.8.8 === Cleaning for p5-Compress-Raw-Zlib-2.002 === Vulnerability check disabled, database not found = Compress-Raw-Zlib-2.002.tar.gz doesn't seem to exist in /usr/ports/distfiles/. = Attempting to fetch from ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/C ompress/. Compress-Raw-Zlib-2.002.tar.gz100% of 201 kB 234 kBps === Extracting for p5-Compress-Raw-Zlib-2.002 = MD5 Checksum OK for Compress-Raw-Zlib-2.002.tar.gz. = SHA256 Checksum OK for Compress-Raw-Zlib-2.002.tar.gz. === p5-Compress-Raw-Zlib-2.002 depends on file: /usr/local/bin/perl5.8.8 - found === Patching for p5-Compress-Raw-Zlib-2.002 === p5-Compress-Raw-Zlib-2.002 depends on file: /usr/local/bin/perl5.8.8 - found === Applying FreeBSD patches for p5-Compress-Raw-Zlib-2.002 === p5-Compress-Raw-Zlib-2.002 depends on file: /usr/local/bin/perl5.8.8 - found === Configuring for p5-Compress-Raw-Zlib-2.002 Cannot load ExtUtils::MakeMaker: Can't locate Cwd.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /usr/local/lib/perl5/5.8.8/ExtUtils/MakeMaker.pm line 167. BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.8/ExtUtils/MakeMaker.pm line 167. Compilation failed in require at (eval 4) line 1. BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.8/BSDPAN/ExtUtils/MakeMaker.pm line 17. Compilation failed in require at ./Makefile.PL line 7. BEGIN failed--compilation aborted at ./Makefile.PL line 7. *** Error code 2 Stop in /usr/ports/archivers/p5-Compress-Raw-Zlib. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.22498.37 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=p5-Compress-Raw-Zlib-2.001 UPGRADE_PORT_VER=2.001 make ** Fix the problem and try again. Thanks\ david ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sshd break-in attempt
Per olof Ljungmark wrote: Nathan Vidican wrote: We keep getting attempts from what look like a username/password scanner utility to login to our servers externally via sshd. Thankfully, we're not ignorant enough to leave common account names open, however it is annoying to say the least. We're getting things like this: Jan 1 09:07:34 fw sshd[66547]: Invalid user staff from 208.44.210.15 Jan 1 09:07:35 fw sshd[66549]: Invalid user sales from 208.44.210.15 Jan 1 09:07:36 fw sshd[66551]: Invalid user recruit from 208.44.210.15 Jan 1 09:07:37 fw sshd[66553]: Invalid user alias from 208.44.210.15 Jan 1 09:07:38 fw sshd[66555]: Invalid user office from 208.44.210.15 Jan 1 09:07:38 fw sshd[66557]: Invalid user samba from 208.44.210.15 Jan 1 09:07:39 fw sshd[66559]: Invalid user tomcat from 208.44.210.15 Jan 1 09:07:40 fw sshd[66561]: Invalid user webadmin from 208.44.210.15 Jan 1 09:07:41 fw sshd[66563]: Invalid user spam from 208.44.210.15 Jan 1 09:07:42 fw sshd[66565]: Invalid user virus from 208.44.210.15 Jan 1 09:07:43 fw sshd[66567]: Invalid user cyrus from 208.44.210.15 Jan 1 09:07:43 fw sshd[66569]: Invalid user staff from 208.44.210.15 Jan 1 09:07:44 fw sshd[66571]: Invalid user oracle from 208.44.210.15 In our 'periodic daily' report/email, (only the list goes on for hundreds of attempts). Anyhow, long story short; is there not an easy way to make sshd block or deny hosts temporarily if X number of invalid login attempts are made within a minute's time? Must I use an external wrapper to accomplish this, or can it be done with options to sshd on it's own? There are several ways to block the attacks, one pointed out by first respondent, we use Denyhosts and sshblock here. Google should point you several others. http://www.google.se/search?hl=enq=ssh+attacksbtnG=Google+Search ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] As I have mentioned before here on this list, we use Blockhosts which has been extremely effective in blocking these after X number of attempts. You can find it here: http://www.aczoom.com/cms/blockhosts Give it a go, I think you'll be very happy with the results. Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Help Please !
Hi! why suidperl rises my CPU usage to 100% ??? please help ! thanks Mo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
BSD Host Counter
Hi there guys and happy new year. Maybe some can remind me the name of the script to install which helps to gather information about how many hosts (FreeBSD) are in which counties, as far as I remember is under sysutils, but I'm not sure, I was reading the list off line but could not find it the topic of the discussion. Lotta Thanx, sorry for the noise. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: BSD Host Counter
On Wednesday 03 January 2007 08:12, Net Warrior wrote: Hi there guys and happy new year. Maybe some can remind me the name of the script to install which helps to gather information about how many hosts (FreeBSD) are in which counties, as far as I remember is under sysutils, but I'm not sure, I was reading the list off line but could not find it the topic of the discussion. Lotta Thanx, sorry for the noise. sysutils/bsdstats is the beast you are looking for I believe. -- Thanks, Josh Paetzel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: external touchpad for Thinkpad T23? (fwd)
On Tue, 2 Jan 2007, Jurjen Middendorp wrote: On Wed, Jan 03, 2007 at 02:49:48AM +1100, Ian Smith wrote: [..] I've just bought a Thinkpad T23, and I'm loving it .. but I'm not sure I'll ever be able to love its TrackPoint, being spoilt by the touchpad on my old Compaq Armada 1500c, with which I can be quite productive .. The only one I've been able to google up that looks nearly small enough to work with below the keyboard is the Adesso/Cirque EasyCat PS/2 or USB pad .. any chance these will (some value of) work with FreeBSD 6? moused(8) only mentions the older (serial, and way too chunky) ALPS Glidepoint, and the Interlink Versapad which looks more the right sort of size, but appears to be no longer available? I'd appreciate any clues. Moused(8) doesn't mention the ALPS glidpoint nor the Interlink VersaPad. It mentions the protocols those things use, so you could use all touchpad things that use that protocol. That's true. I'm hoping someone has tried one or the other, or another. But i can't say that i have ever used one, so you might want to wait and see if there is someone that has actually used them. Maybe you can find a computer shop where you can try it? Not around here; it'll be an ebay job I guess, and I'd rather not blow what may come to A$100 shipped unless it has a fair chance of working passably well .. I googled myself goggled but only found ads and press releases, no critical reviews or user experiences. Anyway, if you buy the ps/2 touchpad specify the ps/2 proto... which is actually described 15 lines below the ALPS gildepoint and 11 lines below versapad ;P And the adesso usb touchpad is plug-and-play so i think that that one will work if you set moused to 'auto' (don't forget usb-mice kernel options?). Ta. I'd usually prefer PS/2 but will need to hot-plug the pad, so USB. You might also want to have a look at the ion window-manager. Especially on laptops it's a real pleasure to work with because it decreases the need to use a mouse for things, so you don't have to carry a lot of stuff - besides your laptop. And for simple stuff like clicking links in a browser you can use the trackpoint! :) Thankyou for the tips Jurjen, Cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help Please !
In response to Mohamad Babaei [EMAIL PROTECTED]: why suidperl rises my CPU usage to 100% ??? please help ! It's probably a result of the script that suidperl is running. Without knowing what that is, however, we can't help much. -- Bill Moran Collaborative Fusion Inc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help Please !
In response to Mohamad Babaei [EMAIL PROTECTED]: why suidperl rises my CPU usage to 100% ??? please help ! Please read: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-questions/ Your message will have been skipped over by many who could have or would have answered your question; I myself missed the initial question and only replied out of annoyance for your subject 'Help please!' - please do read the link I gave you above and re-post your question. -- Nathan Vidican [EMAIL PROTECTED] Windsor Match Plate Tool Ltd. http://www.wmptl.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: BSD Host Counter
Thanks, nice to see my country listed, but there are much more, do not know why it's only me. Bytes. 2007/1/3, dawnshade [EMAIL PROTECTED]: On Wednesday 03 January 2007 17:12, Net Warrior wrote: Hi there guys and happy new year. Maybe some can remind me the name of the script to install which helps to gather information about how many hosts (FreeBSD) are in which counties, as far as I remember is under sysutils, but I'm not sure, I was reading the list off line but could not find it the topic of the discussion. Lotta Thanx, sorry for the noise. /usr/ports/sysutils/bsdstats ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Multiple port versions
Just been doing a check on installed applications. pkg_info shows multiple installed versions of autoconf, automake, db gnupg. viz: autoconf-2.13.000227_5 Automatically configure source code on many Un*x platforms autoconf-2.53_3 Automatically configure source code on many Un*x platforms autoconf-2.59_2 Automatically configure source code on many Un*x platforms automake-1.4.6_2GNU Standards-compliant Makefile generator (1.4) automake-1.5_2,1GNU Standards-compliant Makefile generator (1.5) automake-1.9.6 GNU Standards-compliant Makefile generator (1.9) db4-4.0.14_1,1 The Berkeley DB package, revision 4 db42-4.2.52_5 The Berkeley DB package, revision 4.2 gnupg-1.4.6_3 The GNU Privacy Guard gnupg-2.0.1 The GNU Privacy Guard I used partupgrade -aF recently when, on reconsideration, it would have been better to have done portupgrade -F on specific ports! What is the safest way to remove the earlier versions? Thanks David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multiple port versions
In the last episode (Jan 03), Vizion said: Just been doing a check on installed applications. pkg_info shows multiple installed versions of autoconf, automake, db gnupg. viz: autoconf-2.13.000227_5 Automatically configure source code on many Un*x platforms autoconf-2.53_3 Automatically configure source code on many Un*x platforms autoconf-2.59_2 Automatically configure source code on many Un*x platforms automake-1.4.6_2GNU Standards-compliant Makefile generator (1.4) automake-1.5_2,1GNU Standards-compliant Makefile generator (1.5) automake-1.9.6 GNU Standards-compliant Makefile generator (1.9) db4-4.0.14_1,1 The Berkeley DB package, revision 4 db42-4.2.52_5 The Berkeley DB package, revision 4.2 gnupg-1.4.6_3 The GNU Privacy Guard gnupg-2.0.1 The GNU Privacy Guard Those are all separate ports that don't conflict with each other. You can check by running pkg_info -L on a couple of them and see that they either install into their own subdirectories, or have version prefixes on their files. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
lease line
hi ! pls give me what is lease line. why do you use lease line? what is the process of configure of lease line? thanks [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Multiple port versions
Vizion writes: What is the safest way to remove the earlier versions? By not doing so. Different ports use different versions of the same program; this especially true with things like automake and autoconf. (In the latter two instances there's a push on to unify some or all of these ... but that day is not today.) If I _had_ to do this, I would: run pkgdb -F for each port { run pkg_info -R on each port if and only if no other ports are listed under required by, delete the port run pkgdb -F } Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
portaudit problem
For some reason, portaudit is now showing 0 problems with my ports when yesterday it was showing about 9. Did something happen that is going to cause me a lot of headaches? -Matt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: starting KDE after install .. -not-
On 03 Jan Paul Schmehl wrote: Try this. Edit /etc/ttys thus: ttyv8 /usr/local/bin/kdm -nodaemon xterm on secure According to the kdm manual you should *not* use the -nodaemon Why do you? -- http://nagual.nl/ --- PGP/GnuPG key: F86289CE ++ Running FreeBSD 6.1 ++ Solaris 10 11/06 ++ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Multiple port versions
Just a quick thank everyone who responded so helpfully.. I guess its a case of leaving sleeping dogs well alone!! chuckles \ Thanks v much david ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: starting KDE after install .. -not-
Rob Hurle wrote: On Wed, 3 Jan 2007, bobmc wrote: After KDE is installed, startx still launches the twm default X manager. Diligent RTFM only tells me it should work once the Xserver is configured for the video hardware and monitor. I have: export LANG=en_AU.UTF-8 exec startkde as the last lines in my ~/.xinitrc file. There's a few other lines to do with my Vietnamese keyboard input, but that's it. Ok, that's a step forward since I put your startkde item in my .xinitrc. However, KDE said unable to connect to X server until I included X . It works but something is still amiss. There is no KDE splash background and it seems kinda slow. ## .xinitrc X exec startkde ## WindowMaker can be used instead of X \ startkde ## #xclock -geometry 50x50-1-1 #xdaemon2 -geometry +0-70 #wmaker #no here!-BobMc- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
streaming/DOS
i am interested in finding out the best ways to stop denial-of-service attacks on a live MP3 streaming server. the information presented has created a large group of people that work together to overwhelm the server whenever the radio broadcast streams. what is the most effective way to set up an MP3 live streaming server to automatically detect/block these kind of DOS attacks? i am not directly running the server, but it is possible that i may do so, and in the least, i do have an advisory capacity with the people that do (they are in the MS Windows world which i know nothing about), and i would be interested to know if FreeBSD has capabilities in this area that Windows servers do not. things i thought of as possibilities were setting up a free registration which would force attackers to re-register everytime they get banned - or some kind of bandwidth limiting thing that would disconnect IP's or 24-bit IP ranges if an IP downloaded too much too fast - i don't know all the possibilities, but it seems to me that it should be possible to recognize abusers and drop them from further HTTP connections. any ideas would be greatly appreciated, please ditto a copy of any replies off-list - thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: starting KDE after install .. -not-
dick hoogendijk wrote: On 03 Jan Paul Schmehl wrote: Try this. Edit /etc/ttys thus: ttyv8 /usr/local/bin/kdm -nodaemon xterm on secure According to the kdm manual you should *not* use the -nodaemon Why do you? After install, ttyv8 names xdm and says it is off. Changing it per the email causes periodic prints on the text console making it unusable. So I left it at the original setting. -BobMc- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Easier way to install on 3ware 9550 card?
On Wed, 3 Jan 2007, [EMAIL PROTECTED] wrote: I have a new system with NO FLOPPY CONTROLLER and a 3ware 9550 card. It's a 1u system -- sticking extra things into PCI slots as a workaround is likely to be impossible. Any possibility of using a USB floppy drive? Will the BSD installer recognize a USB floppy drive? 3) Adding the kldload command to the emergency holographic shell (I was able to do an NFS mount from within it, but had no way to load the driver). Maybe put kldload on that NFS mount along with the module to be loaded, and run it from there? I had considered that, but feared hitting version issues. Obviously sysinstall needs both mount and kldload functionality -- why aren't they in the emergency shell (For that matter, why isn't ls?) If this many years later we're still emulating floppies, there's a problem, folks. -Dan -- A mother can be an inspiration to her little son, change his thoughts, his mind, his life, just with her gentle hum. -No Doubt, Different People, from Tragic Kingdom Dan Mahoney Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
DNS propagation problems - changed ip
Hello, I changed the ip address of my server (physical move to a new location) and updated my dns. Logs show that everything is fine. I can get out to other sites just fine, send email, and internally everything is working fine. However, I updated on Jan 1st and the changes for the nameservers have still not propagated out anywhere. Logs show no one hitting the server. I'm starting to get worried. The db file has this data: 2007010101 ; Serial (year,month,day,version_that_day) 86400 ; refresh (1 day) 7200; retry (2 hours) 864 ; expire (100 days) 86400 ) ; minimum (1 day) So after 1 day external DNS's should update to the new info. The only other bit of info that I can't figure out is that in the logs I'm getting this message: Jan 2 02:44:16 gouda /kernel: arplookup 10.1.10.1 failed: host is not on local network but 10.1.10.1 has nothing to do with my network, so I have no idea which service is trying to get to this. I grepped all etc and usr/local/etc bu nothing have that ip. Finally, nslookup is working on any address including my own. Thats makes me think DNS is working properly... Any ideas on what else I can check that might not be right? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DNS propagation problems - changed ip
Alex Teslik wrote: I changed the ip address of my server (physical move to a new location) and updated my dns. Logs show that everything is fine. I can get out to other sites just fine, send email, and internally everything is working fine. However, I updated on Jan 1st and the changes for the nameservers have still not propagated out anywhere. Logs show no one hitting the server. I'm starting to get worried. Did you change your nameserver's registered IP address with your DNS registrar? Double-check the whois entry for the domain(s) in question... -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: BSD Host Counter
On Wednesday 03 January 2007 17:12, Net Warrior wrote: Hi there guys and happy new year. Maybe some can remind me the name of the script to install which helps to gather information about how many hosts (FreeBSD) are in which counties, as far as I remember is under sysutils, but I'm not sure, I was reading the list off line but could not find it the topic of the discussion. Lotta Thanx, sorry for the noise. /usr/ports/sysutils/bsdstats ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Easier way to install on 3ware 9550 card?
Dan Mahoney, System Admin wrote: On Wed, 3 Jan 2007, [EMAIL PROTECTED] wrote: I have a new system with NO FLOPPY CONTROLLER and a 3ware 9550 card. It's a 1u system -- sticking extra things into PCI slots as a workaround is likely to be impossible. Any possibility of using a USB floppy drive? Will the BSD installer recognize a USB floppy drive? 3) Adding the kldload command to the emergency holographic shell (I was able to do an NFS mount from within it, but had no way to load the driver). Maybe put kldload on that NFS mount along with the module to be loaded, and run it from there? I had considered that, but feared hitting version issues. Obviously sysinstall needs both mount and kldload functionality -- why aren't they in the emergency shell (For that matter, why isn't ls?) If this many years later we're still emulating floppies, there's a problem, folks. -Dan Dan: If this many years later we're still emulating floppies. Hey, it works for Slackware :-) You reminded me of the following article which stated (in 2004) that sysinstall was semioffically at end of life? -Bob- http://www.freebsd.org/doc/en_US.ISO8859-1/articles/fbsd-from-scratch/why.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Easier way to install on 3ware 9550 card?
On Wed, 3 Jan 2007, Per olof Ljungmark wrote: Dan Mahoney, System Admin wrote: Hey all, I have a new system with NO FLOPPY CONTROLLER and a 3ware 9550 card. It's a 1u system -- sticking extra things into PCI slots as a workaround is likely to be impossible. I don't think you need a driver - it's already there. apropos 3ware twa(4)- 3ware 9000/9500/9550 series SATA RAID controllers driver twe(4)- 3ware 5000/6000/7000/8000 series PATA/SATA RAID adapter driver Oh I'm sorry, then why didn't I just install the OS? Because it said no drives found! The card doesn't probe at boot, and there's an elaborate howto on 3ware's site that describes HOW to get it to probe at boot. While I myself stated that the driver DOES appear to be in the base, for whatever reason the kernel on the install CD doesn't include it, nor the ability to kldload a module from anyplace easy. -Dan -- SOY BOMB! -The Chest of the nameless streaker of the 1998 Grammy Awards' Bob Dylan Performance. Dan Mahoney Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Batch file question - average size of file in directory
Message: 17 Date: Tue, 2 Jan 2007 19:50:01 -0800 From: James Long [EMAIL PROTECTED] Message: 28 Date: Tue, 2 Jan 2007 10:20:08 -0800 From: Kurt Buff [EMAIL PROTECTED] I don't even have a clue how to start this one, so am looking for a little help. I've got a directory with a large number of gzipped files in it (over 110k) along with a few thousand uncompressed files. If it were me I'd mv those into a bunch of subdirectories; things get really slow with more than 500 or so files per directory .. anyway .. I'd like to find the average uncompressed size of the gzipped files, and ignore the uncompressed files. How on earth would I go about doing that with the default shell (no bash or other shells installed), or in perl, or something like that. I'm no scripter of any great expertise, and am just stumbling over this trying to find an approach. Many thanks for any help, Kurt Hi, Kurt. And hi, James, Can I make some assumptions that simplify things? No kinky filenames, just [a-zA-Z0-9.]. My approach specifically doesn't like colons or spaces, I bet. Also, you say gzipped, so I'm assuming it's ONLY gzip, no bzip2, etc. Here's a first draft that might give you some ideas. It will output: foo.gz : 3456 bar.gz : 1048576 (etc.) find . -type f | while read fname; do file $fname | grep -q compressed echo $fname : $(zcat $fname | wc -c) done % file cat7/tuning.7.gz cat7/tuning.7.gz: gzip compressed data, from Unix Good check, though grep gzip compressed excludes bzip2 etc. But you REALLY don't want to zcat 110 thousand files just to wc 'em, unless it's a benchmark :) .. may I suggest a slight speedup, template: % gunzip -l cat7/tuning.7.gz compressed uncompr. ratio uncompressed_name 13642 38421 64.5% cat7/tuning.7 If you really need a script that will do the math for you, then pip the output of this into bc: #!/bin/sh find . -type f | { n=0 echo scale=2 echo -n ( while read fname; do -if file $fname | grep -q compressed +if file $fname | grep -q gzip compressed then - echo -n $(zcat $fname | wc -c)+ + echo -n $(gunzip -l $fname | grep -v comp | awk '{print $2}')+ n=$(($n+1)) fi done echo 0) / $n } That should give you the average decompressed size of the gzip'ped files in the current directory. HTH, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Easier way to install on 3ware 9550 card?
On Wed, 3 Jan 2007, Tom Judge wrote: Dan Mahoney, System Admin wrote: Hi Dan, I have installed FreeBSD on several systems with 9550 controllers. The driver is available in sysinstall from 6.1 Release. (I installed from a 6.1 Release CD) This was the 9650, actually. -Dan -- It would be bad. -Egon Spengler, Ghostbusters Dan Mahoney Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Easier way to install on 3ware 9550 card?
Dan Mahoney, System Admin wrote: Hey all, I have a new system with NO FLOPPY CONTROLLER and a 3ware 9550 card. It's a 1u system -- sticking extra things into PCI slots as a workaround is likely to be impossible. I found this document on how to get it installed, in theory: http://www.3ware.com/kb/article.aspx?id=14850 But with no floppy, this is probably going to involve either transplanting the card (and drive array) to another machine JUST to do the install (translated: a serious pain in the ass). If someone could explain why any of the following aren't possible, I'd love to know: 1) Making this driver part of the boot-time probe. I can understand not including every SOUND CARD and MULTI-PORT SERIAL CARD in the generic kernel, but could we at least include the rest of the STORAGE modules? 2) Giving the ability to load a kernel module from somewhere else (an http/ftp url, maybe?) 3) Adding the kldload command to the emergency holographic shell (I was able to do an NFS mount from within it, but had no way to load the driver). 4) Allowing non-standard modules to reside on the CD, instead of loading from floppy (i.e. I see there's a twa module in the base system, why aren't the .ko's sitting around easily-accessible for sysinstall?) If I'm missing some really obvious way of doing this, please let me know. Hi Dan, I have installed FreeBSD on several systems with 9550 controllers. The driver is available in sysinstall from 6.1 Release. (I installed from a 6.1 Release CD) Hope that helps Tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
3ware 9650 Support
According to the 3ware site this card is supported as of FreeBSD 6.1. I previously posted with it as the 9550, but the end result is I hadn't slept enough, it's the 9650SE-4LPML. I checked the CVS sources for the twa driver, they haven't been touched in many months so I don't feel it's likely support has been added within there. Anyone have any idea how to make this card work? -Dan Mahoney -- I am a professional drinker, and I know that that was NOT Jose Cuervo! Well, what was it then? I think it was some mixture of Rubbing Alcohol, and Desenex(TM) Foot Powder, because my feet feel okay, and my back doesn't hurt, but my stomach is killing me! -Dan Mahoney, Costa Rica, August 12th, 1994 Dan Mahoney Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with built-in USB memory card reader
Alexander Pohoyda [EMAIL PROTECTED] writes: Everything works perfect if the system is started with a memory card inserted into the reader. The problem arises when the system is started without the memory card inserted. Since the reader is built-in (permanently attached to the motherboard), it is detected by the system at startup and no umass device is created. Inserting a memory card at some later time has no visible effect whatsoever. I'm using the 5.4 release. Is there a solution for this? USB handling would be better in a more recent release of FreeBSD, but I think you should be getting the basic da(4) device, just not the slices (which aren't there yet) if the medium isn't available at boot. Is that the case? [I haven't done this in a while, and don't have access to a card reader at the moment.] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gdm automatic login
Alla Gofman [EMAIL PROTECTED] writes: Hello Joe! I followed the suggestion that you gave in following link about gdm automatic login http://lists.freebsd.org/pipermail/freebsd-questions/2004-August/054439. html and my portable computer also hangs on login screen after I reboot. The message is Authentication failed. Letters must be typed in the correct case. That advice doesn't seem to be correct any more; the default PAM configuration should be appropriate for use with GDM. [I think; I don't actually use gdm, so I can't test this.] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Batch file question - average size of file in directory
On 1/2/07, James Long [EMAIL PROTECTED] wrote: snip my problem description Hi, Kurt. Can I make some assumptions that simplify things? No kinky filenames, just [a-zA-Z0-9.]. My approach specifically doesn't like colons or spaces, I bet. Also, you say gzipped, so I'm assuming it's ONLY gzip, no bzip2, etc. Right, no other compression types - just .gz. Here's a small snippet of the directory listing: -rw-r- 1 kurt kurt 108208 Dec 21 06:15 dummy-zKLQEWrDDOZh -rw-r- 1 kurt kurt24989 Dec 28 17:29 dummy-zfzaEjlURTU1 -rw-r- 1 kurt kurt30596 Jan 2 19:37 stuff-0+-OvVrXcEoq.gz -rw-r- 1 kurt kurt 2055 Dec 22 20:25 stuff-0+19OXqwpEdH.gz -rw-r- 1 kurt kurt13781 Dec 30 03:53 stuff-0+1bMFK2XvlQ.gz -rw-r- 1 kurt kurt11485 Dec 20 04:40 stuff-0+5jriDIt0jc.gz Here's a first draft that might give you some ideas. It will output: foo.gz : 3456 bar.gz : 1048576 (etc.) find . -type f | while read fname; do file $fname | grep -q compressed echo $fname : $(zcat $fname | wc -c) done If you really need a script that will do the math for you, then pip the output of this into bc: #!/bin/sh find . -type f | { n=0 echo scale=2 echo -n ( while read fname; do if file $fname | grep -q compressed then echo -n $(zcat $fname | wc -c)+ n=$(($n+1)) fi done echo 0) / $n } That should give you the average decompressed size of the gzip'ped files in the current directory. Hmmm That's the same basic approach that Giogos took, to uncompress the file and count bytes with wc. I'm liking the 'zcat -l' contstruct, as it looks more flexible, but then I have to parse the output, probably with grep and cut. Time to put on my thinking cap - I'll get back to the list on this. Kurt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: starting KDE after install .. -not-
--On Wednesday, January 03, 2007 17:17:17 +0100 dick hoogendijk [EMAIL PROTECTED] wrote: On 03 Jan Paul Schmehl wrote: Try this. Edit /etc/ttys thus: ttyv8 /usr/local/bin/kdm -nodaemon xterm on secure According to the kdm manual you should *not* use the -nodaemon Why do you? Where does it say that? According to the online docs (http://docs.kde.org/development/en/kdebase/kdm/configuring-your-system-for-kdm.html) 'For FreeBSD, edit /etc/ttys and find the line like this: ttyv8 /usr/X11R6/bin/xdm -nodaemon xterm off secure and edit it to this: ttyv8 /usr/local/bin/kdm xterm on secure' But that's not the same as saying don't use -nodaemon. According to the FreeBSD Handbook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/book.html#X11-WM-KDE-DETAILS) 'To enable kdm, the ttyv8 entry in /etc/ttys has to be adapted. The line should look as follows: ttyv8 /usr/local/bin/kdm -nodaemon xterm on secure' If you detach the parent process, what happens when the child process dies? Will the parent respawn another child without initd running? In any case, I did what the Handbook stated, because I trust that the FreeBSD developers know what they're doing, and that's what they told the guys that write the docs to use for kdm. Someone with more knowledge than I have would have to explain the technical aspects of that choice. Paul Schmehl ([EMAIL PROTECTED]) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: termcaps: xdm vs. startx
Steve Franks [EMAIL PROTECTED] writes: So if I run xdm on startup, when I log in, my up arrow gives '[[A' instead of command history, backspace, other keys have similar effects. If I log in then do startx, everything works as expected. It's really not an issue for me, I'm just curious. I tried changing the line in /etc/ttys from . on xterm. to .on xterm-color with no apparent effects. I presume there is some difference in terms of login scripts with xdm vs. startx? You presume correctly. The manual for each describe the full set of options, but users will typically have a .xsession file in their home directories for the former, and .xinitrc for the latter. /etc/ttys is not relevant. How the xterms get started within the X session is the key. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Batch file question - average size of file in directory
On 1/3/07, Ian Smith [EMAIL PROTECTED] wrote: Message: 17 Date: Tue, 2 Jan 2007 19:50:01 -0800 From: James Long [EMAIL PROTECTED] Message: 28 Date: Tue, 2 Jan 2007 10:20:08 -0800 From: Kurt Buff [EMAIL PROTECTED] I don't even have a clue how to start this one, so am looking for a little help. I've got a directory with a large number of gzipped files in it (over 110k) along with a few thousand uncompressed files. If it were me I'd mv those into a bunch of subdirectories; things get really slow with more than 500 or so files per directory .. anyway .. I just store them for a while - delete them after two weeks if they're not needed again. The overhead isn't enough to worry about at this point. I'd like to find the average uncompressed size of the gzipped files, and ignore the uncompressed files. How on earth would I go about doing that with the default shell (no bash or other shells installed), or in perl, or something like that. I'm no scripter of any great expertise, and am just stumbling over this trying to find an approach. Many thanks for any help, Kurt Hi, Kurt. And hi, James, Can I make some assumptions that simplify things? No kinky filenames, just [a-zA-Z0-9.]. My approach specifically doesn't like colons or spaces, I bet. Also, you say gzipped, so I'm assuming it's ONLY gzip, no bzip2, etc. Here's a first draft that might give you some ideas. It will output: foo.gz : 3456 bar.gz : 1048576 (etc.) find . -type f | while read fname; do file $fname | grep -q compressed echo $fname : $(zcat $fname | wc -c) done % file cat7/tuning.7.gz cat7/tuning.7.gz: gzip compressed data, from Unix Good check, though grep gzip compressed excludes bzip2 etc. But you REALLY don't want to zcat 110 thousand files just to wc 'em, unless it's a benchmark :) .. may I suggest a slight speedup, template: % gunzip -l cat7/tuning.7.gz compressed uncompr. ratio uncompressed_name 13642 38421 64.5% cat7/tuning.7 If you really need a script that will do the math for you, then pip the output of this into bc: #!/bin/sh find . -type f | { n=0 echo scale=2 echo -n ( while read fname; do -if file $fname | grep -q compressed +if file $fname | grep -q gzip compressed then - echo -n $(zcat $fname | wc -c)+ + echo -n $(gunzip -l $fname | grep -v comp | awk '{print $2}')+ n=$(($n+1)) fi done echo 0) / $n } That should give you the average decompressed size of the gzip'ped files in the current directory. HTH, Ian Ah - yes, I think that's much better. I should have thought of awk. At some point, I'd like to do a bit more processing of file sizes, such as trying to find out the number of IP packets each file would take during an SMTP transaction, so that I could categorize overhead a bit, but for now the average uncompressed file size is good enough. Thanks again for your help! Kurt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Batch file question - average size of file in directory
On 1/2/07, Giorgos Keramidas [EMAIL PROTECTED] wrote: On 2007-01-02 10:20, Kurt Buff [EMAIL PROTECTED] wrote: You can probably use awk(1) or perl(1) to post-process the output of gzip(1). The gzip(1) utility, when run with the -cd options will uncompress the compressed files and send the uncompressed data to standard output, without actually affecting the on-disk copy of the compressed data. It is easy then to pipe the uncompressed data to wc(1) to count the 'bytes' of the uncompressed data: for fname in *.Z *.z *.gz; do if test -f ${fname}; then gzip -cd ${fname} | wc -c fi done This will print the byte-size of the uncompressed output of gzip, for all the files which are currently compressed. Something like the following could be its output: I put together this one-liner after perusing 'man zcat': find /local/amavis/virusmails -name *.gz -print | xargs zcat -l out.txt It puts out multiple instances of stuff like this: compressed uncompr. ratio uncompressed_name 1508 3470 57.0% stuff-7f+BIOFX1-qX 1660 3576 54.0% stuff-bsFK-yGcWyCm 9113 17065 46.7% stuff-os1MKlKGu8ky ... ... ... 10214796 17845081 42.7% (totals) compressed uncompr. ratio uncompressed_name 7790 14732 47.2% stuff-Z3UO7-uvMANd 1806 3705 51.7% stuff-9ADk-DSBFQGQ 9020 16638 45.8% stuff-Caqfgao-Tc5F 7508 14361 47.8% stuff-kVUWa8ua4zxc I'm thinking that piping the output like so: find /local/amavis/virusmails -name *.gz -print | xargs zcat -l | grep -v compress | grep-v totals will do to suppress extraneous header/footer info This can be piped into awk(1) for further processing, with something like this: for fname in *.Z *.gz; do if test -f $fname; then gzip -cd $fname | wc -c fi done | \ awk 'BEGIN { min = -1; max = 0; total = 0; } { total += $1; if ($1 max) { max = $1; } if (min == -1 || $1 min) { min = $1; } } END { if (NR 0) { printf min/avg/max file size = %d/%d/%d\n, min, total / NR, max; } }' With the same files as above, the output of this would be: min/avg/max file size = 220381/1750650/3280920 With a slightly modified awk(1) script, you can even print a running min/average/max count, following each line. Mmodified lines marked with a pipe character (`|') in their leftmost column below. The '|' characters are *not* part of the script itself. for fname in *.Z *.gz; do if test -f $fname; then gzip -cd $fname | wc -c fi done | \ awk 'BEGIN { min = -1; max = 0; total = 0; | printf %10s %10s %10s %10s\n, | SIZE, MIN, AVERAGE, MAX; } { total += $1; if ($1 max) { max = $1; } if (min == -1 || $1 min) { min = $1; } | printf %10d %10d %10d %10d\n, | $1, min, total/NR, max; } END { if (NR 0) { | printf %10s %10d %10d %10d\n, | TOTAL, min, total / NR, max; } }' When run with the same set of two compressed files this will print: SIZEMINAVERAGEMAX 220381 220381 220381 220381 3280920 22038117506503280920 TOTAL 22038117506503280920 Please note though that with a sufficiently large set of files, awk(1) may fail to count the total number of bytes correctly. If this is the case, it should be easy to write an equivalent Perl or Python script, to take advantage of their big-number support. I'll try to parse and understand this, and see if I can modify it to suit the output I'm currently generating. Many thanks for the help! Kurt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: question
Juan Ortega [EMAIL PROTECTED] writes: Hi, I installed freeBSD 6.1-RELEASE on my Compaq ADM4, and when I input the command, Xorg -configure, theres some errors: dlopen: /usr/X11R6/lib/modules/drivers/newport_drv.so: Undefined symbol XAAFall back0ps (EE) Failed to load /usr/X11R6/lib/modules/drivers/newport_drv.so (EE) Failed to load module newport (loader failed, 7) (++) Using config file: /root/xorg.conf.new I dont know whats wrong with it, I installed Xorg and its libraries but for some reason it cant find the modules, any help? That module isn't supposed to be installed, anyway. How did it get into your configuration file? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Batch file question - average size of file in directory
On 2007-01-03 10:42, Kurt Buff [EMAIL PROTECTED] wrote: On 1/2/07, James Long [EMAIL PROTECTED] wrote: snip my problem description Hi, Kurt. Can I make some assumptions that simplify things? No kinky filenames, just [a-zA-Z0-9.]. My approach specifically doesn't like colons or spaces, I bet. Also, you say gzipped, so I'm assuming it's ONLY gzip, no bzip2, etc. Right, no other compression types - just .gz. Here's a small snippet of the directory listing: -rw-r- 1 kurt kurt 108208 Dec 21 06:15 dummy-zKLQEWrDDOZh -rw-r- 1 kurt kurt24989 Dec 28 17:29 dummy-zfzaEjlURTU1 -rw-r- 1 kurt kurt30596 Jan 2 19:37 stuff-0+-OvVrXcEoq.gz -rw-r- 1 kurt kurt 2055 Dec 22 20:25 stuff-0+19OXqwpEdH.gz -rw-r- 1 kurt kurt13781 Dec 30 03:53 stuff-0+1bMFK2XvlQ.gz -rw-r- 1 kurt kurt11485 Dec 20 04:40 stuff-0+5jriDIt0jc.gz Here's a first draft [...] Hmmm That's the same basic approach that Giogos took, to uncompress the file and count bytes with wc. I'm liking the 'zcat -l' contstruct, as it looks more flexible, but then I have to parse the output, probably with grep and cut. Excellent. I didn't know about the -l option of gzip(1) until today :) You can easily extract the uncompressed size, because it's always in column 2 and it contains only numeric digits: gzip -l *.gz *.Z *.z | awk '{print $2}' | grep '[[:digit:]]\+' Then you can feed the resulting stream of uncompressed sizes to the awk script I sent before :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Batch file question - average size of file in directory
On 2007-01-03 10:28, Kurt Buff [EMAIL PROTECTED] wrote: I put together this one-liner after perusing 'man zcat': find /local/amavis/virusmails -name *.gz -print | xargs zcat -l out.txt It puts out multiple instances of stuff like this: compressed uncompr. ratio uncompressed_name 1508 3470 57.0% stuff-7f+BIOFX1-qX 1660 3576 54.0% stuff-bsFK-yGcWyCm 9113 17065 46.7% stuff-os1MKlKGu8ky ... ... ... 10214796 17845081 42.7% (totals) compressed uncompr. ratio uncompressed_name 7790 14732 47.2% stuff-Z3UO7-uvMANd 1806 3705 51.7% stuff-9ADk-DSBFQGQ 9020 16638 45.8% stuff-Caqfgao-Tc5F 7508 14361 47.8% stuff-kVUWa8ua4zxc I'm thinking that piping the output like so: find /local/amavis/virusmails -name *.gz -print | xargs zcat -l | grep -v compress | grep-v totals will do to suppress extraneous header/footer info Sure. This is also better than grabbing the second column unconditionally, which I suggested before :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Easier way to install on 3ware 9550 card?
On Wed, 3 Jan 2007, John Nielsen wrote: 1) Boot to complete install CD 2) Go into Fixit mode (not just the emergency shell) 3) # sysctl kern.module_path=/dist/boot/kernel 4) # kldload twa 5) # exit 6) proceed with installation This shouldn't be necessary though, since twa is included in GENERIC for both FreeBSD 6.1 and 6.2 (did you say what version you were trying to install?). Now, if your controller is too new to be included in the shipping version of twa then that's another matter. If you have a binary kernel module that uses a different driver name from the vendor you could use the same general approach, but you'd want to configure your network interface and set up your NFS mount prior to step 3, and include the appropriate NFS path in the sysctl command in step 3. This is the case. I've emailed the folks in charge so that the new version of the 3ware drivers can be included in newer versions of FreeBSD. Forgot to mention you'd also need to manually copy the vendor driver and modify /boot/loader.conf on the newly installed system so it could actually boot.. you could easily take care of that from the fixit mode shell after the installation, though. Yup. In the case of a module name collision, is it safe to rename my module so that subsequent system builds won't overwrite it (i.e. rename if from twa.ko to twa2.ko) or will that break something?) -Dan -- Station! -Bill Ted's Bogus Journey Dan Mahoney Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
will it work?
Hello, I want to have a home server on my network. I have a pc with AMD Athlon xp 2200+ processor, 1gb ddr ram, 2- 500gb hard drives, 10/100 lan. I need it to serve files to 5 computers. It has to allow remote access from outside the network by administrator. It has to allow me to serve 2 websites. It has to be a ftp server. It needs to work with both windows and macs on the network. It has to have the ability to run automated backups to either internal hd (like raid mirroring) or usb external hd. It will be connected to the home network by wired ethernet. It will NOT have to dhcp (router does that). Is there a way to set up freebsd to work as this type of server? Thank you __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
kde and kooka
sorry if this is the wrong list i updated to kde 3.5.4 and now kooka doesn't see my scanner. the scanner is listed in the boot log, sane-find-scanner finds it no problem. but when i load kooka it doesn't see it. from within kooka if i go to choose scanner, i don't even get a dialog box up. is there some switch i forgot or don't know about when i updated kdegraphics? thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD Architecture
Is there a diagram somewhere that = describes how FreeBSD is organized? For example, Linux has the = following diagram: 3DPicture From everything I have found this = diagram also applies to FreeBSD simply by replacing the Linux kernel = with the FreeBSD kernel. Is this accurate? I attached a .doc = with the diagram just in case the above diagram does not come through = for some reason. Thank you in advance for all your = help. Respecfully, Daniel Nerenberg = LinuxArchitecture.doc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Emacs vs XEmacs: which to choose for plain console using?
What are advantages and disadvantages of xemacs over emacs? Which to choose for plain console using? Elisej Babenko ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Easier way to install on 3ware 9550 card?
On Wednesday 03 January 2007 14:18, John Nielsen wrote: On Wednesday 03 January 2007 12:34, Dan Mahoney, System Admin wrote: On Wed, 3 Jan 2007, Per olof Ljungmark wrote: Dan Mahoney, System Admin wrote: Hey all, I have a new system with NO FLOPPY CONTROLLER and a 3ware 9550 card. It's a 1u system -- sticking extra things into PCI slots as a workaround is likely to be impossible. I don't think you need a driver - it's already there. apropos 3ware twa(4)- 3ware 9000/9500/9550 series SATA RAID controllers driver twe(4)- 3ware 5000/6000/7000/8000 series PATA/SATA RAID adapter driver Oh I'm sorry, then why didn't I just install the OS? Because it said no drives found! The card doesn't probe at boot, and there's an elaborate howto on 3ware's site that describes HOW to get it to probe at boot. While I myself stated that the driver DOES appear to be in the base, for whatever reason the kernel on the install CD doesn't include it, nor the ability to kldload a module from anyplace easy. You were on the right track with the emergency shell, but the Fixit mode (now included on disk 1 for your convenience) gives you a lot more flexibility (inclusion of ls is just the start!). Have you tried something like this? 1) Boot to complete install CD 2) Go into Fixit mode (not just the emergency shell) 3) # sysctl kern.module_path=/dist/boot/kernel 4) # kldload twa 5) # exit 6) proceed with installation This shouldn't be necessary though, since twa is included in GENERIC for both FreeBSD 6.1 and 6.2 (did you say what version you were trying to install?). Now, if your controller is too new to be included in the shipping version of twa then that's another matter. If you have a binary kernel module that uses a different driver name from the vendor you could use the same general approach, but you'd want to configure your network interface and set up your NFS mount prior to step 3, and include the appropriate NFS path in the sysctl command in step 3. Forgot to mention you'd also need to manually copy the vendor driver and modify /boot/loader.conf on the newly installed system so it could actually boot.. you could easily take care of that from the fixit mode shell after the installation, though. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Easier way to install on 3ware 9550 card?
On Wednesday 03 January 2007 12:34, Dan Mahoney, System Admin wrote: On Wed, 3 Jan 2007, Per olof Ljungmark wrote: Dan Mahoney, System Admin wrote: Hey all, I have a new system with NO FLOPPY CONTROLLER and a 3ware 9550 card. It's a 1u system -- sticking extra things into PCI slots as a workaround is likely to be impossible. I don't think you need a driver - it's already there. apropos 3ware twa(4)- 3ware 9000/9500/9550 series SATA RAID controllers driver twe(4)- 3ware 5000/6000/7000/8000 series PATA/SATA RAID adapter driver Oh I'm sorry, then why didn't I just install the OS? Because it said no drives found! The card doesn't probe at boot, and there's an elaborate howto on 3ware's site that describes HOW to get it to probe at boot. While I myself stated that the driver DOES appear to be in the base, for whatever reason the kernel on the install CD doesn't include it, nor the ability to kldload a module from anyplace easy. You were on the right track with the emergency shell, but the Fixit mode (now included on disk 1 for your convenience) gives you a lot more flexibility (inclusion of ls is just the start!). Have you tried something like this? 1) Boot to complete install CD 2) Go into Fixit mode (not just the emergency shell) 3) # sysctl kern.module_path=/dist/boot/kernel 4) # kldload twa 5) # exit 6) proceed with installation This shouldn't be necessary though, since twa is included in GENERIC for both FreeBSD 6.1 and 6.2 (did you say what version you were trying to install?). Now, if your controller is too new to be included in the shipping version of twa then that's another matter. If you have a binary kernel module that uses a different driver name from the vendor you could use the same general approach, but you'd want to configure your network interface and set up your NFS mount prior to step 3, and include the appropriate NFS path in the sysctl command in step 3. HTH, JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Emacs vs XEmacs: which to choose for plain console using?
On Jan 3, 2007, at 2:41 PM, [EMAIL PROTECTED] wrote: What are advantages and disadvantages of xemacs over emacs? At one point, there was substantial disagreement amongst the Emacs developers about how to add support for new windowing systems besides X11, and this ended up forking the project; for a while, XEmacs had much better native font-handling and color management on non-X11 platforms like Windows, NEXTSTEP/MacOS X, etc. Most of those changes have been reverse-merged into the main Emacs tree since, so the differences are no longer as significant. Which to choose for plain console using? Under the console or a normal terminal useage, there's no real difference. -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD Installer vs RedHat Linux Fedora Core Installer?
Hello, I used to be on this mailing list several years ago, and have recently rejoined. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-sysinstall.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install/main1.png vs. http://fedora.redhat.com/docs/install-guide/fc6/en/ch-beginninginstallation.html#sn-booting-from-disc http://fedora.redhat.com/docs/install-guide/fc6/en/figs/bootprompt.png Could I begin a thread (now) about a comparison (and relatively inferiorness) of the following two installers please?? I WOULD run FreeBSD at home instead of Fedora if the installer were more .erm, Microsoftly. Do you among the developer circle hear this kind of thing from time to time? Mucho oblingato con queso (cheese). -Peter [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: FreeBSD Architecture
Try this: http://www.bookpool.com/sm/0201702452 The Design and Implementation of the FreeBSD Operating System, by Marshall Kirk McKusick, George V. Neville-Neil Kurt On 1/3/07, Nerenberg Daniel D 1stLt AFIT/ENG [EMAIL PROTECTED] wrote: Is there a diagram somewhere that describes how FreeBSD is organized? For example, Linux has the following diagram: 3DPicture From everything I have found this diagram also applies to FreeBSD simply by replacing the Linux kernel with the FreeBSD kernel. Is this accurate? I attached a .doc with the diagram just in case the above diagram does not come through for some reason. Thank you in advance for all your help. Respecfully, Daniel Nerenberg LinuxArchitecture.doc ___ 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: FreeBSD Installer vs RedHat Linux Fedora Core Installer?
In response to Peter aka SweetPete [EMAIL PROTECTED]: Hello, I used to be on this mailing list several years ago, and have recently rejoined. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-sysinstall.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install/main1.png vs. http://fedora.redhat.com/docs/install-guide/fc6/en/ch-beginninginstallation.html#sn-booting-from-disc http://fedora.redhat.com/docs/install-guide/fc6/en/figs/bootprompt.png Could I begin a thread (now) about a comparison (and relatively inferiorness) of the following two installers please?? I WOULD run FreeBSD at home instead of Fedora if the installer were more .erm, Microsoftly. Do you among the developer circle hear this kind of thing from time to time? This seems to come up over and over again. About every other month. The developers are aware of it. The general consensus is that yes, our installer could be nicer/prettier/easier/etc However, until someone either takes the time to write a better one, or foots some cash to get a better one written, or blackmails a developer in to doing it or something else, we still have what we have. I think the biggest problem is that the installer is good enough -- so nobody is particularly interested in rewriting it until it's not good enough any more -- even though it could be better. -- Bill Moran Collaborative Fusion Inc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
OT: stupid sh scripting question
This is probably staring me in the face: if [ ! -d foo] then mkdir foo fi gives me: [: missing ] Looking at rc.subr I see: if [ ! -d $linkdir ]; then warn $_me: the directory $linkdir does not exist. return 1 fi Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what is operator group for?
On Fri, 29 Dec 2006 23:30:49 + Chris Whitehouse [EMAIL PROTECTED] wrote: Hi Chris You could run a: find / -type f -group operator to see all files where operator is the group. Forgive me if I am wrong but I actually think this is the best way to find out. Hi all can anyone tell me what the operator group is for, or docs where I can read about it? I see that /sbin/shutdown and /sbin/mk_snap_ffs are both executable by members and various things in /dev/ are mountable by them. I want a regular user to be able to mount removeable media and shutdown the computer. If I make them a member of operator group what else am I allowing them to do? Thanks Chris ___ 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: OT: stupid sh scripting question
In response to Robert Huff [EMAIL PROTECTED]: This is probably staring me in the face: if [ ! -d foo] then mkdir foo fi gives me: [: missing ] Looking at rc.subr I see: if [ ! -d $linkdir ]; then warn $_me: the directory $linkdir does not exist. return 1 fi The ; after the ] ? -- Bill Moran Collaborative Fusion Inc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Which version of BIND to use on FreeBSD 6.1?
I'm trying to figure out which is the best version of BIND to use on FreeBSD 6.1? I've always stuck with FreeBSD's base version, and since upgrading from FreeBSD 4.x to 6.1, that meant moving from BIND 8.3.x to 9.3.2. I've encountered numerous problems since moving to 9.3.2 which primarily revolve around exponential increases in memory and CPU usage. On our BIND 8.3.x setup, we have 750 master domains. Memory usage is just shy of 70MBs. On our new server with BIND 9.3.2, we have currently 140 master domains, and memory usage continually grows until FreeBSD cuts it off. I have discovered the max-cache-size option which allows me set an upper limit, but when the named process hits that limit, it starts eating up all available CPU cycles. I've seen some similar reports from other users, but haven't found any real solutions. While browsing the ports tree, I found I have my pick of BIND 8.3.x, 8.4.x, and a ports version of 9.3.x (not sure exactly how this differs from base -- more current?). Our needs are fairly basic -- we have a few DNS servers, and each are masters and slaves, helping one another out. We're not using DNSSEC or anything. I'm wondering what other people are generally using, and which version works best for them? Thanks, Patrick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Installer vs RedHat Linux Fedora Core Installer?
As a recent BSD initiate, I can say, if you read all the details, and use the defaults for everything (especially 'A' for label) (except most people want X-user for the distribution), then everything works great. Have you looked at PC-BSD? They seem to want to be more MS-like, but I found they have next to no documentation, and they break things that are perfectly doable in regular free-bsd by reading the handbook. Also pc-bsd is KDE-centric, and I'm more of a XFCE Gnome lover. My overall reaction: What the installer lacks in goodness/utility/pick-an-adjective, the handbook more than makes up for, if you don't mind reading it. It has answered pretty much all of my questions. It's a hell of a resource, and I wish the same existed for MS (although with Vista, I'm really not planning on using MS anymore anyway). Steve On 1/3/07, Bill Moran [EMAIL PROTECTED] wrote: In response to Peter aka SweetPete [EMAIL PROTECTED]: Hello, I used to be on this mailing list several years ago, and have recently rejoined. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-sysinstall.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install/main1.png vs. http://fedora.redhat.com/docs/install-guide/fc6/en/ch-beginninginstallation.html#sn-booting-from-disc http://fedora.redhat.com/docs/install-guide/fc6/en/figs/bootprompt.png Could I begin a thread (now) about a comparison (and relatively inferiorness) of the following two installers please?? I WOULD run FreeBSD at home instead of Fedora if the installer were more .erm, Microsoftly. Do you among the developer circle hear this kind of thing from time to time? This seems to come up over and over again. About every other month. The developers are aware of it. The general consensus is that yes, our installer could be nicer/prettier/easier/etc However, until someone either takes the time to write a better one, or foots some cash to get a better one written, or blackmails a developer in to doing it or something else, we still have what we have. I think the biggest problem is that the installer is good enough -- so nobody is particularly interested in rewriting it until it's not good enough any more -- even though it could be better. -- Bill Moran Collaborative Fusion Inc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Steve Franks, KE7BTE Staff Engineer La Palma Devices, LLC http://www.lapalmadevices.com (520) 312-0089 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: FreeBSD Installer vs RedHat Linux Fedora Core Installer?
I have made a post like this before, so I can hardly criticise you for that, though my goal was more to try to consolidate a group to work on the issue. I'll say this, while the graphics aren't as pretty as those of many Linux distros, the FreeBSD installer is a lot more user friendly and workable in 6.x than it was in 5.2 (5.3?) when I had tried it previously. It may not be a pretty GUI, but it has the functionality and flexibility, in fact, a bit more than even the GUIs of those I'd say, and it's not user-unfriendly anymore. Additionally, it's worth the switch now, simply for the fact that although the learning curve is a touch higher when things work, it's a lot lower when fixing things that don't, add to that the fact that more of the listed supported stuff just works without the hassle you get on Linux, it's well worth the switch. -Jim Stapleton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: stupid sh scripting question
On Jan 3, 2007, at 3:07 PM, Robert Huff wrote: if [ ! -d foo] then mkdir foo fi You want a space before the ] and a semicolon after it. -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: stupid sh scripting question
On 1/3/07, Bill Moran [EMAIL PROTECTED] wrote: In response to Robert Huff [EMAIL PROTECTED]: This is probably staring me in the face: if [ ! -d foo] then mkdir foo fi gives me: [: missing ] Looking at rc.subr I see: if [ ! -d $linkdir ]; then warn $_me: the directory $linkdir does not exist. return 1 fi The ; after the ] ? -- Bill Moran Collaborative Fusion Inc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] you need a space before the ']' -- The biggest problem with communication is the illusion that it has occurred. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with built-in USB memory card reader
Lowell Gilbert writes: Alexander Pohoyda [EMAIL PROTECTED] writes: Everything works perfect if the system is started with a memory card inserted into the reader. The problem arises when the system is started without the memory card inserted. Since the reader is built-in (permanently attached to the motherboard), it is detected by the system at startup and no umass device is created. Inserting a memory card at some later time has no visible effect whatsoever. I'm using the 5.4 release. Is there a solution for this? USB handling would be better in a more recent release of FreeBSD, but I think you should be getting the basic da(4) device, just not the slices (which aren't there yet) if the medium isn't available at boot. Is that the case? [I haven't done this in a while, and don't have access to a card reader at the moment.] Yes, exactly. If no memory cards were inserted at the boot, only da(4) devices are created and inserting/removing memory cards afterwards has no visible effect. This behavior is well known also for external USB card readers, but those are easily detached/re-attached which triggers their re-scanning. I'm asking because Ms Windows somehow gets the insertion event and mounts the memory card automatically. So that is be possible. Does anybody know how that is done? -- Alexander Pohoyda [EMAIL PROTECTED] PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Emacs vs XEmacs: which to choose for plain console using?
Wed, 3 Jan 2007 21:41:57 +0200, [EMAIL PROTECTED] wrote: What are advantages and disadvantages of xemacs over emacs? Which to choose for plain console using? Emacs by default is very usable in plain FreeBSD сonsole, also XEmacs is not. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
DB43 sysmlink problem
I have installed db43-4.3.29. The install sets up symlinks to the db commands as: /usr/local/bin/db_dump-4.3@ - db43/db_dump As non of the symlinks work, it appears to me they should be set up as: /usr/local/bin/db_dump-4.3@ - /usr/local/bin/db43/db_dump Is this correct, or am I missing something? _ Douglas Denault http://www.safeport.com [EMAIL PROTECTED] Voice: 301-469-8766 Fax: 301-469-0601 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: stupid sh scripting question
In the last episode (Jan 03), Robert Huff said: This is probably staring me in the face: if [ ! -d foo] then mkdir foo fi gives me: [: missing ] Looking at rc.subr I see: if [ ! -d $linkdir ]; then warn $_me: the directory $linkdir does not exist. return 1 fi You need a space between foo and ] . -- Dan Nelson [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: FreeBSD Installer vs RedHat Linux Fedora Core Installer?
On Wed, Jan 03, 2007 at 11:42:35AM -0800, Peter aka SweetPete wrote: Hello, I used to be on this mailing list several years ago, and have recently rejoined. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-sysinstall.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install/main1.png vs. http://fedora.redhat.com/docs/install-guide/fc6/en/ch-beginninginstallation.html#sn-booting-from-disc http://fedora.redhat.com/docs/install-guide/fc6/en/figs/bootprompt.png Could I begin a thread (now) about a comparison (and relatively inferiorness) of the following two installers please?? I WOULD run FreeBSD at home instead of Fedora if the installer were more .erm, Microsoftly. I would suggest starting a separate list for this. This topic has been beat to death on this list and everyone is weary of it. You can fish through the archives for lots of posts. It comes down to most FreeBSD users do not want a cuter Gui-er installer that interferes with just doing things in a straightforward way nor one that makes decisions for them. They want to boot it, pick what they need (not what some self-named guru thinks they need) and then let it run. It is acknowledged that some pieces of the installer might be getting a bit old and creaky, but it works and you only use it once per install. There are lots of other things to work on that get used lots of times per day that people can put their time in to, plus advances in the general design and implementation of some advanced features for the OS. So, you won't get much sympathy on weaknesses in the installer that only gets used twice per year and especially to make it more (ugghh gaaag) microslothty. There are people who have created their own contained install versions of FreeBSD that includes their own favorite install choices and glob of ports, made a bootup CD of it that will plunk that on a machine. You could play with one of those or make up your own. It takes some big initial work, but is pretty easy after that.One that comes to mind is Freesbie and there are others. So, make up your own list to jaw about your favorite install choices and ports set and create your own contained install version. Have fun and avoid being thought a troll by trying to jam this subject down people's throats yet one more time. jerry Do you among the developer circle hear this kind of thing from time to time? Mucho oblingato con queso (cheese). -Peter [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: will it work?
On Jan 3, 2007, at 1:16 PM, X X wrote: Hello, I want to have a home server on my network. I have a pc with AMD Athlon xp 2200+ processor, 1gb ddr ram, 2- 500gb hard drives, 10/100 lan. I need it to serve files to 5 computers. It has to allow remote access from outside the network by administrator. It has to allow me to serve 2 websites. It has to be a ftp server. It needs to work with both windows and macs on the network. It has to have the ability to run automated backups to either internal hd (like raid mirroring) or usb external hd. It will be connected to the home network by wired ethernet. It will NOT have to dhcp (router does that). Is there a way to set up freebsd to work as this type of server? Will it work? Yes, you can do that. Should you? If you're absolutely green around the collar, you need to get a book like the FreeBSD Unleashed book and/or the FreeBSD bible, where it can step you through the steps necessary to configure this. You're asking several questions at once. For example, access from the outside in. For what services? SSH? Windows sharing? It could be something as simple as just forwarding port 22 to your server from the home router. Windows sharing? Much more complicated...you're talking about using a VPN to do that. Web sites...you probably would want Apache with virtual hosting. Possible, more complicated than many people want to try tackling as a first project. Your server would need a static, not DHCP, address. Automated backups? That can be done with some kind of cron script or using Amanda. I'd strongly recommend an external hard drive or two so you can move them offsite, and if storage allows, use RAID 1 on your drives just to have better drive integrity. FTP services should not be hard, using something like ProFTP. But why? Is it just you using this network, or family with their own accounts? Random strangers? I ask because a lot of file transfers can be done using SSH/SCP (using a utility on the Mac like Fugu, and Windows should have a utility like that using SSH in the background). You'll also want to use something like ClamAV and chkrootkit and rkhunter on your system to check for intrusion, and probably also add on some kind of file integrity system like Tripwire. If you're considering printers, I'd strongly urge you to splurge on a network printer from HP. That way they can be used when computers are off, and setting them up are just a matter of pointing a virtual port or printer setup to an hp port on a particular IP address (plus, of course, the driver for that model printer). I found that it gets kind of weird to configure a Unix system to pose as a Windows system to hand out Windows printer shares to non-Windows (ie, Mac) systems. It can be done, but...well, maybe it's just me. Anyway, get the big books that go over the details of the type of project you're looking at, and break down your project into individual goals. As you worded the question it can indeed be done, but if you've never done anything like this before it may be a bit much to swallow in one fell swoop unless you have a buddy or two that's familiar with this type of setup. -Bart ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: stupid sh scripting question
On Wed, Jan 03, 2007 at 03:07:43PM -0500, Robert Huff wrote: This is probably staring me in the face: if [ ! -d foo] then mkdir foo fi gives me: [: missing ] It is probably not telling you ':' missing but ';' missing. It goes after the ']', plus I think the space before ']' is required. jerry Looking at rc.subr I see: if [ ! -d $linkdir ]; then warn $_me: the directory $linkdir does not exist. return 1 fi Robert Huff ___ 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: FreeBSD Installer vs RedHat Linux Fedora Core Installer?
Bill Moran wrote: In response to Peter aka SweetPete [1][EMAIL PROTECTED]: Hello, I used to be on this mailing list several years ago, and have recently rejoined. [2]http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-sysinstall.h tml [3]http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install/main1.png vs. [4]http://fedora.redhat.com/docs/install-guide/fc6/en/ch-beginninginstallation. html#sn-booting-from-disc [5]http://fedora.redhat.com/docs/install-guide/fc6/en/figs/bootprompt.png Could I begin a thread (now) about a comparison (and relatively inferiorness) of the following two installers please?? I WOULD run FreeBSD at home instead of Fedora if the installer were more .erm, Microsoftly. Do you among the developer circle hear this kind of thing from time to time? This seems to come up over and over again. About every other month. The developers are aware of it. The general consensus is that yes, our installer could be nicer/prettier/easier/etc However, until someone either takes the time to write a better one, or foots some cash to get a better one written, or blackmails a developer in to doing it or something else, we still have what we have. I think the biggest problem is that the installer is good enough -- so nobody is particularly interested in rewriting it until it's not good enough any more -- even though it could be better. Coincidently, issue 68 of linuxuser.co.uk has a positive review of Fedora 6. But Cons: Anacoda installer is clumsy and poorly designed, due for a major overhaul. (in the reviewer's opinion). It looks fine to me? I like Mepis Linux for it's superior usability and attention to detail. But in FreeBSD I am looking for a lightweight efficient OS that can run a media management system (TBD) on a low-power Mini-ITX computer. IMO, iterative and incremental developement in the FOSS way is more effective than paradigm shift. Therefore, the existing sysinstall program can be improved by setting up a mini-project to do just that. I am sure there are plenty of ideas to improve usability. How about replacing most of these sequential dialogues with tabbed panels where you can check settings in any order? -Bob- References 1. mailto:[EMAIL PROTECTED] 2. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-sysinstall.html 3. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install/main1.png 4. http://fedora.redhat.com/docs/install-guide/fc6/en/ch-beginninginstallation.html#sn-booting-from-disc 5. http://fedora.redhat.com/docs/install-guide/fc6/en/figs/bootprompt.png ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DB43 sysmlink problem
In the last episode (Jan 03), [EMAIL PROTECTED] said: I have installed db43-4.3.29. The install sets up symlinks to the db commands as: /usr/local/bin/db_dump-4.3@ - db43/db_dump As non of the symlinks work, it appears to me they should be set up as: /usr/local/bin/db_dump-4.3@ - /usr/local/bin/db43/db_dump Is this correct, or am I missing something? The command works for me. What error are you getting? $ db_dump-4.3 -V Sleepycat Software: Berkeley DB 4.3.29: (September 6, 2005) $ which db_dump-4.3 /usr/local/bin/db_dump-4.3 $ ls -l /usr/local/bin/db_dump-4.3 lrwxr-xr-x 1 root wheel 12 Nov 8 10:55 /usr/local/bin/db_dump-4.3 - db43/db_dump $ -- Dan Nelson [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: OT: stupid sh scripting question
On 1/3/07, Jerry McAllister [EMAIL PROTECTED] wrote: On Wed, Jan 03, 2007 at 03:07:43PM -0500, Robert Huff wrote: This is probably staring me in the face: if [ ! -d foo] then mkdir foo fi gives me: [: missing ] It is probably not telling you ':' missing but ';' missing. It goes after the ']', plus I think the space before ']' is required. jerry Looking at rc.subr I see: if [ ! -d $linkdir ]; then warn $_me: the directory $linkdir does not exist. return 1 fi Robert Huff ___ 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] the ';' is not required if the 'then' statement is not on the same line as the 'if' statement. [EMAIL PROTECTED] ~% sh $ if echo foo then echo bar fi foo bar sorry for the repeat jerry (gmail's reply defaults to replying to just the sender and not everyone) -- The biggest problem with communication is the illusion that it has occurred. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: stupid sh scripting question
Robert Huff wrote: This is probably staring me in the face: if [ ! -d foo] Missing space ^ here. ie: if [ ! -d foo ] then mkdir foo fi or perhaps more succinctly: [ -d foo ] || mkdir foo or best of all, maybe just: mkdir -p foo Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: FreeBSD Installer vs RedHat Linux Fedora Core Installer?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 bobmc wrote: Bill Moran wrote: In response to Peter aka SweetPete [1][EMAIL PROTECTED]: Hello, I used to be on this mailing list several years ago, and have recently rejoined. [2]http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-sysinstall.h tml [3]http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install/main1.png vs. [4]http://fedora.redhat.com/docs/install-guide/fc6/en/ch-beginninginstallation. html#sn-booting-from-disc [5]http://fedora.redhat.com/docs/install-guide/fc6/en/figs/bootprompt.png Could I begin a thread (now) about a comparison (and relatively inferiorness) of the following two installers please?? I WOULD run FreeBSD at home instead of Fedora if the installer were more .erm, Microsoftly. Do you among the developer circle hear this kind of thing from time to time? This seems to come up over and over again. About every other month. The developers are aware of it. The general consensus is that yes, our installer could be nicer/prettier/easier/etc However, until someone either takes the time to write a better one, or foots some cash to get a better one written, or blackmails a developer in to doing it or something else, we still have what we have. I think the biggest problem is that the installer is good enough -- so nobody is particularly interested in rewriting it until it's not good enough any more -- even though it could be better. Coincidently, issue 68 of linuxuser.co.uk has a positive review of Fedora 6. But Cons: Anacoda installer is clumsy and poorly designed, due for a major overhaul. (in the reviewer's opinion). It looks fine to me? I like Mepis Linux for it's superior usability and attention to detail. But in FreeBSD I am looking for a lightweight efficient OS that can run a media management system (TBD) on a low-power Mini-ITX computer. IMO, iterative and incremental developement in the FOSS way is more effective than paradigm shift. Therefore, the existing sysinstall program can be improved by setting up a mini-project to do just that. I am sure there are plenty of ideas to improve usability. How about replacing most of these sequential dialogues with tabbed panels where you can check settings in any order? -Bob- References 1. mailto:[EMAIL PROTECTED] 2. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-sysinstall.html 3. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install/main1.png 4. http://fedora.redhat.com/docs/install-guide/fc6/en/ch-beginninginstallation.html#sn-booting-from-disc 5. http://fedora.redhat.com/docs/install-guide/fc6/en/figs/bootprompt.png Rather than saying Blah installer is better than FreeBSD installer, could you provide specific examples of where and how it could be better? My only complaint with the installer deals with the binary repository when downloading/fetching binaries for the first time from behind a NAT (Netgear router); many times the installer fails after a period of time due to a checksum or extraction error. However, my complaints may not coincide with other's complaints. Also, an interesting thing is that sysinstall required (at least in my case) a clean filesystem / partition tables every time I tried to install. Whenever I installed with a partially or complete filesystem, sysinstall would die every single time when installing when fetching / extracting sources. - -Garrett -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.1 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFnCSnEnKyINQw/HARAls3AJ0QlkpxGpLzumVOaFglRUJTCtFaPwCeN4ih mg04mmonQXAC5mJf1u8TfA4= =q5Fa -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: stupid sh scripting question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin Downey wrote: On 1/3/07, Jerry McAllister [EMAIL PROTECTED] wrote: On Wed, Jan 03, 2007 at 03:07:43PM -0500, Robert Huff wrote: This is probably staring me in the face: if [ ! -d foo] then mkdir foo fi gives me: [: missing ] It is probably not telling you ':' missing but ';' missing. It goes after the ']', plus I think the space before ']' is required. jerry Looking at rc.subr I see: if [ ! -d $linkdir ]; then warn $_me: the directory $linkdir does not exist. return 1 fi Robert Huff the ';' is not required if the 'then' statement is not on the same line as the 'if' statement. [EMAIL PROTECTED] ~% sh $ if echo foo then echo bar fi foo bar Right. As many people have said on the list already, the only issue with the original script is with the lack of a space between the last quote for foo and ]. test(1) likes having that extra space and will not work properly without it. - -Garrett -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.1 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFnCU4EnKyINQw/HARAhLZAJsG0Wk9t9RjzieA3u/EPWK3Dynv2ACcCRGZ 0e8eCk+ScQnqNrAMHrgIuZc= =rh5F -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]
RSS feed search and notification program
Hi there, I am looking for an program that notifies me when specific text and/or search criteria appears in an RSS feed. is there anything out there that people enjoy using? It would be even better if the application would send notification emails to me. Cheers, Noah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with built-in USB memory card reader
Micah wrote: Alexander Pohoyda wrote: Lowell Gilbert writes: Alexander Pohoyda [EMAIL PROTECTED] writes: Everything works perfect if the system is started with a memory card inserted into the reader. The problem arises when the system is started without the memory card inserted. Since the reader is built-in (permanently attached to the motherboard), it is detected by the system at startup and no umass device is created. Inserting a memory card at some later time has no visible effect whatsoever. I'm using the 5.4 release. Is there a solution for this? USB handling would be better in a more recent release of FreeBSD, but I think you should be getting the basic da(4) device, just not the slices (which aren't there yet) if the medium isn't available at boot. Is that the case? [I haven't done this in a while, and don't have access to a card reader at the moment.] Yes, exactly. If no memory cards were inserted at the boot, only da(4) devices are created and inserting/removing memory cards afterwards has no visible effect. This behavior is well known also for external USB card readers, but those are easily detached/re-attached which triggers their re-scanning. I'm asking because Ms Windows somehow gets the insertion event and mounts the memory card automatically. So that is be possible. Does anybody know how that is done? There is a hack, but I can't quite remember it. I think it was true /dev/da0 to get devfs to reread the partitions and create the dev entires. I haven't been able to get to a reader to test it though. Test on a junk media card just in case I'm totally off base. After some experiments in FreeBSD 4.9, I found out that just running the fdisk on da(4) device will enable to mount partitions on it: $ fdisk /dev/da0 *** Working on device /dev/da0 *** parameters extracted from in-core disklabel are: cylinders=495 heads=2 sectors/track=16 (32 blks/cyl) parameters to be used for BIOS calculations are: cylinders=495 heads=2 sectors/track=16 (32 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 1,(Primary DOS with 12 bit FAT) start 25, size 15783 (7 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 10; end: cyl 493/ head 1/ sector 16 The data for partition 2 is: UNUSED The data for partition 3 is: UNUSED The data for partition 4 is: UNUSED $ mount /dev/da0s1 Success This should be automatically done by the system, I suppose. -- Alexander Pohoyda [EMAIL PROTECTED] PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with built-in USB memory card reader
Alexander Pohoyda wrote: Lowell Gilbert writes: Alexander Pohoyda [EMAIL PROTECTED] writes: Everything works perfect if the system is started with a memory card inserted into the reader. The problem arises when the system is started without the memory card inserted. Since the reader is built-in (permanently attached to the motherboard), it is detected by the system at startup and no umass device is created. Inserting a memory card at some later time has no visible effect whatsoever. I'm using the 5.4 release. Is there a solution for this? USB handling would be better in a more recent release of FreeBSD, but I think you should be getting the basic da(4) device, just not the slices (which aren't there yet) if the medium isn't available at boot. Is that the case? [I haven't done this in a while, and don't have access to a card reader at the moment.] Yes, exactly. If no memory cards were inserted at the boot, only da(4) devices are created and inserting/removing memory cards afterwards has no visible effect. This behavior is well known also for external USB card readers, but those are easily detached/re-attached which triggers their re-scanning. I'm asking because Ms Windows somehow gets the insertion event and mounts the memory card automatically. So that is be possible. Does anybody know how that is done? There is a hack, but I can't quite remember it. I think it was true /dev/da0 to get devfs to reread the partitions and create the dev entires. I haven't been able to get to a reader to test it though. Test on a junk media card just in case I'm totally off base. - Micah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: starting KDE after install .. -not-
On 03 Jan Paul Schmehl wrote: --On Wednesday, January 03, 2007 17:17:17 +0100 dick hoogendijk [EMAIL PROTECTED] wrote: According to the kdm manual you should *not* use the -nodaemon Where does it say that? According to the online docs 'For FreeBSD, edit /etc/ttys and find the line like this: ttyv8 /usr/X11R6/bin/xdm -nodaemon xterm off secure and edit it to this: ttyv8 /usr/local/bin/kdm xterm on secure' But that's not the same as saying don't use -nodaemon. To me at least it sounds like the kde / kdm developers say what I have to do on a FreeBSD machine, don't you? I agree the words don't use -nodaemon are not used, but they are not in their command line. According to the FreeBSD Handbook 'To enable kdm, the ttyv8 entry in /etc/ttys has to be adapted. The line should look as follows: ttyv8 /usr/local/bin/kdm -nodaemon xterm on secure' In any case, I did what the Handbook stated, because I trust that the FreeBSD developers know what they're doing, and that's what they told the guys that write the docs to use for kdm. Someone with more knowledge than I have would have to explain the technical aspects of that choice. The handbook is kind of a fbsd bible. I must say it's very thorough. Absolutely _the_ book to read when you run a fbsd flavour. Still I hope that someone more technical than I am will explain some more on this topic. -- http://nagual.nl/ --- PGP/GnuPG key: F86289CE ++ Running FreeBSD 6.1 ++ Solaris 10 11/06 ++ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DB43 sysmlink problem
On Wed, 3 Jan 2007, Dan Nelson wrote: In the last episode (Jan 03), [EMAIL PROTECTED] said: I have installed db43-4.3.29. The install sets up symlinks to the db commands as: /usr/local/bin/db_dump-4.3@ - db43/db_dump As non of the symlinks work, it appears to me they should be set up as: /usr/local/bin/db_dump-4.3@ - /usr/local/bin/db43/db_dump Is this correct, or am I missing something? The command works for me. What error are you getting? $ db_dump-4.3 -V Sleepycat Software: Berkeley DB 4.3.29: (September 6, 2005) $ which db_dump-4.3 /usr/local/bin/db_dump-4.3 $ ls -l /usr/local/bin/db_dump-4.3 lrwxr-xr-x 1 root wheel 12 Nov 8 10:55 /usr/local/bin/db_dump-4.3 - db43/db_dump $ Dan, thanks for responding. I occasionally feel the need to embarrass myself. Reading carefully/learning to type might also help. I guess I had to cut and paste you command to see my error. _ Douglas Denault http://www.safeport.com [EMAIL PROTECTED] Voice: 301-469-8766 Fax: 301-469-0601 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Which version of BIND to use on FreeBSD 6.1?
I am using the default 9.X that is installed with 6.1. The only problems I have had is that startup options changed and required another define in rc.conf. -Derek At 02:41 PM 1/3/2007, patrick wrote: I'm trying to figure out which is the best version of BIND to use on FreeBSD 6.1? I've always stuck with FreeBSD's base version, and since upgrading from FreeBSD 4.x to 6.1, that meant moving from BIND 8.3.x to 9.3.2. I've encountered numerous problems since moving to 9.3.2 which primarily revolve around exponential increases in memory and CPU usage. On our BIND 8.3.x setup, we have 750 master domains. Memory usage is just shy of 70MBs. On our new server with BIND 9.3.2, we have currently 140 master domains, and memory usage continually grows until FreeBSD cuts it off. I have discovered the max-cache-size option which allows me set an upper limit, but when the named process hits that limit, it starts eating up all available CPU cycles. I've seen some similar reports from other users, but haven't found any real solutions. While browsing the ports tree, I found I have my pick of BIND 8.3.x, 8.4.x, and a ports version of 9.3.x (not sure exactly how this differs from base -- more current?). Our needs are fairly basic -- we have a few DNS servers, and each are masters and slaves, helping one another out. We're not using DNSSEC or anything. I'm wondering what other people are generally using, and which version works best for them? Thanks, Patrick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DNS propagation problems - changed ip
Your registrar for the domain maintains actual IP's for your authoritative DNS servers. If you moved those from one IP to another, update the registrars record to reflect the new addresses. -Derek At 10:30 AM 1/3/2007, Alex Teslik wrote: Hello, I changed the ip address of my server (physical move to a new location) and updated my dns. Logs show that everything is fine. I can get out to other sites just fine, send email, and internally everything is working fine. However, I updated on Jan 1st and the changes for the nameservers have still not propagated out anywhere. Logs show no one hitting the server. I'm starting to get worried. The db file has this data: 2007010101 ; Serial (year,month,day,version_that_day) 86400 ; refresh (1 day) 7200; retry (2 hours) 864 ; expire (100 days) 86400 ) ; minimum (1 day) So after 1 day external DNS's should update to the new info. The only other bit of info that I can't figure out is that in the logs I'm getting this message: Jan 2 02:44:16 gouda /kernel: arplookup 10.1.10.1 failed: host is not on local network but 10.1.10.1 has nothing to do with my network, so I have no idea which service is trying to get to this. I grepped all etc and usr/local/etc bu nothing have that ip. Finally, nslookup is working on any address including my own. Thats makes me think DNS is working properly... Any ideas on what else I can check that might not be right? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Batch file question - average size of file in directory
Date: Thu, 4 Jan 2007 04:46:43 +1100 (EST) From: Ian Smith [EMAIL PROTECTED] Subject: Re: Batch file question - average size of file in directory To: freebsd-questions@freebsd.org Cc: James Long [EMAIL PROTECTED], Kurt Buff [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: TEXT/PLAIN; charset=US-ASCII ... you REALLY don't want to zcat 110 thousand files just to wc 'em, unless it's a benchmark :) Quite right! Well played. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]