The FreeBSD Diary: 2002-10-20 - 2002-11-09
The FreeBSD Diary contains a large number of practical examples and how-to guides. This message is posted weekly to [EMAIL PROTECTED] with the aim of letting people know what's available on the website. Before you post a question here it might be a good idea to first search the mailing list archives http://www.freebsd.org/search/search.html#mailinglists and/or The FreeBSD Diary http://www.freebsddiary.org/. These are the articles posted during this period: 6-Nov : Postfix - virtual domains This is easier than it sounds http://freebsddiary.org/postfix.php?2 -- Dan Langille - DVL Software Limited The FreeBSD Diary - http://www.FreeBSDDiary.org/ - practical examples FreshPorts- http://www.FreshPorts.org/ - the place for ports FreshSource - http://www.FreshSource.org/ - the place for source To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Moving my home server to completely different hardware
Hi all, I'm running a home server, which acts as an IP-forwarding machine for my home network, does some webserving, mail, etc. It's currently based on a Pentium 120, but I plan to move it to an AMD Athlon.About the only thing that will remain the same is the hard drive and the two NICs in the machine. What would be my best route? Fresh install? (Eeek, have to install everything all over again). I think it should be possible to just take the hard drive and put in in the new machine, boot a generic kernel and then compile a new kernel for the new hardware, but I'm wondering whether I'm missing something. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Help with lost partition info.
On Sat, Nov 09, 2002 at 04:04:56PM -0800, Derrick MacPherson wrote: I lost my partition info during an upgrade. I never actually wnet ahead with the upgrade, yet but I guess I overwrote the info that says whre my partitions are mounted, and I'm unsure whichi is which.. I don't want to map / to the wrong partition and have the /etc/master.passwd and other important files overwritten. I have the latest boot floppies, and I can get to sysinstall - I'm wondering if there is a way to get the proper info off the disks? I have a large partition that I can overwrite if it's worth doing a minimal install to that partition to read teh origional fstab file, but is there a easier or better way? I have to get this back up ASAP, so anything that is quick and easy (HA!) would be great... This is one of those maximum frustration situations: you know the data is still there on the disk, but you can't get to it. All you need to do is reconstruct the disk slice and partition tables, but if you don't get it exactly right you won't achieve anything. *The* quick and easy solution is to have had the foresight to keep offline copies of the output of 'fdisk da0' and 'disklabel -r da0s1' (for whatever values of da0 or da0s1 are appropriate for you system). Print out of both of those should fit onto a single sheet of A4 or letter paper. Make a habit of printing out this information as part of the standard routine of setting up a new machine. Keep the printouts with your level 0 backups. Failing that, your best bet is the sysutils/gpart port -- http://home.pages.de/~michab/gpart/ or http://www.stud.uni-hannover.de/user/76201/gpart/ Of course, to use that you need a running system: your best bets are either to pull the disk out of the trashed machine, add it to a working system and run gpart on it from there (the other system doesn't necessarily have to be FreeBSD: a Linux box would do as well) --- or grab a copy of the staticly linked gpart program from Michail Brzitwa's site, write it onto a floppy and then boot the system to single user mode from the install CDs, mount the floppy and away you go. Fixit mode should work for this purpose: http://www.freebsd.org/relnotes/4-STABLE/installation/i386/trouble.html Section 4.1. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Now portupgrade -R ruby_static-1.6.7.2002.09.12_1 to ruby_static-1.6.8.p2 fails as well!
Someone, quite probably Stacey Roberts, once wrote: Just an update to this here. I thought I might as well not bother with trying to upgrade this port, but to simply deinstall it and reinstall - hoping that the newer version would get fetched: n# make deinstall clean === Cleaning for ruby-shim-ruby18-1.7.3.2002.09.20 This is you deleting /usr/ports/lang/ruby16-shim-ruby18/work/* # make find: /usr/ports/lang/ruby16-shim-ruby18/work/shim/ruby16: No such file or directory This is the port wondering where /usr/ports/lang/ruby16-shim- ruby18/work/shim/ruby16 is. Try something like: # cd /usr/ports/lang/ruby16-shim-ruby18 # make # cd /usr/ports/lang/ruby_static # make # make install # make clean Kevin -- [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: How to stop SPAMMER??!
At 12:16 AM 11.10.2002 -0600, W. D. wrote: At 21:17 11/9/2002, Jack L. Stone wrote: At 03:04 AM 11.10.2002 +0100, Gustaf Sjoberg wrote: On Sat, 09 Nov 2002 15:13:09 -0600 W. D. [EMAIL PROTECTED] wrote: either block incomming port 25 connections or set the smtserver to require authentication. ipfw entry could look something like: add rule# deny log tcp from any to yourip 25 in recv interface This would completely block SMTP wouldn't it? I do have clients on this server using email. Hi folks, I've got some bozo from: SpaWeb1.spaelegance.com..auth doing all kinds of SMTP activity on my FreeBSD server. Does anyone know how to stop this? What kind of entry would I add to ipfw? Does anyone know what vulnerability this might be? How to stop permanently? Get the IP of the spammer if possible. I've had to use a total block like this: # DENY INTRUDER through external interface #${fwcmd} add deny all from 66.000.00.000 to any via ${oif} Where is ${oif} defined? When I run a command like this it doesn't understand 'fwcmd'. usw2# {fwcmd} add deny log all from 168.93.100.59/16 to any in via ${oif} oif: Undefined variable. usw2# {fwcmd} add deny log all from 168.93.100.59/16 to any in via lo0 fwcmd: Command not found. Sorry, that was a defined variable in my script: # Firewall program fwcmd=/sbin/ipfw Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Net connection problem: sis, miibus
Hi all! I have a friend who decided to try FreeBSD 4.6.2 and it works just fine except one thing, his connection to the internet. He has a sis network card, which is compiled into the kernel, with miibus that is required. He gets a connection just fine, for about half a minute, then it doesn't work anymore, with long periods of wait time. A ping to an address works perfectly, next minute a ping to the same address does not work. Somehow, issuing kldstat, the miibus is there, which it should not, as it's compiled into the kernel. If I recall correct, it's not there when it's first working, but later it is, when not working. There is also an arp message, that looks as if some change of MAC- address has taken place, which seem to be strange. Also, one last thing, ifconfig says the sis is using full-duplex. Is that ok, if maybe not the other side can handle full-duplex? I can provide more information if needed to help me solve this pro- blem, so that he can start using FreeBSD full time. Thanks in advance for any reply! Best regards, Paul To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
make pid files
Is there a way to create pid files for applications you start, if the application doesn't have a configuration option within itself to create one ? Im guessing using some kind of regex with grep to capture the pid/error number when you run it ? Though im not really that good with that stuff. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
xhost: unable to open display
llo all, I use ssh to connect to My.FreeBSD.Machine from My.Main.Machine running FreeBSD and xdm. xwin is running properly on My.Main.Machine. When trying to run mozilla on My.FreeBSD.Machine I get the error: Gtk-WARNING **: cannot open display: When running xhost I get the following error: xhost: unable to open display I do not export $DISPLAY=My.FreeBSD.Machine:0.0 It's supposed automatically set to My.FreeBSD.Machine:X+1.0 when I log in with ssh. help anyone? TIA, Henk To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Printing to Win2K share printer with apsfilter via samba fails
Hello, I've installed apsfilter-7.2.3, and despite successfully printing the test page, I am unable to get anything to print either from an application (opera / AbiWord), nor command line. Checking printer status: # lpc status all hp845c: queuing is enabled printing is enabled no entries in spool area printer idle # System: # uname -a FreeBSD snipped 4.7-STABLE FreeBSD 4.7-STABLE #0: Sat Oct 12 10:04:03 BST 2002 root@snipped:/usr/obj/usr/src/sys/snipped i386 # Printer entry created by apsfilter setup in /etc/printcap: # APS1_BEGIN:printer1 # - don't delete start label for apsfilter printer1 # - no other printer defines between BEGIN and END LABEL hp845c|ijs/DESKJET_845;r=600x300;q=high;c=full;p=a4;m=auto:\ :lp=/dev/null:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/hp845c:\ :lf=/var/spool/lpd/hp845c/log:\ :af=/var/spool/lpd/hp845c/acct:\ :mx#0:\ :sh: # APS1_END - don't delete this # I try printing webpage from opera, I get: # lpc status all hp845c: queuing is enabled printing is enabled no entries in spool area printer idle You have new mail. # Checking mail: From [EMAIL PROTECTED] Sun Nov 10 15:10:14 2002 Date: Sun, 10 Nov 2002 15:10:14 GMT From: Owner of many system processes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: apsfilter: can't find configuration apsfilter fatal error: can't find configuration The configuration file /usr/local/etc/apsfilter/hp845c/apsfilterrc is missing. Please run SETUP. -- apsfilter, your lpd input filter Checking spool logs: # tail /var/spool/lpd/hp845c/log apsfilter: The configuration file /usr/local/etc/apsfilter/hp845c/apsfilterrc apsfilter: is missing. Please run SETUP. cat: /rc: No such file or directory rm: No such file or directory /usr/local/etc/apsfilter/basedir/bin/apsfilter: line 116: /rc: Permission denied apsfilter: can't find configuration apsfilter: The configuration file /usr/local/etc/apsfilter/hp845c/apsfilterrc apsfilter: is missing. Please run SETUP. cat: /rc: No such file or directory rm: No such file or directory # But this file DOES exist: # more /usr/local/etc/apsfilter/hp845c/apsfilterrc # # don't delete these settings # PRINTER='ijs/DESKJET_845' PAPERSIZE='a4' METHOD='auto' QUALITY='high' COLOR='full' RESOLUTION='600x300' # # additional configuration follows # insert settings as seen in /usr/local/etc/apsfilter/apsfilterrc # # That's failed big time. I'll try printing with lpr: # pwd /usr/home/stacey # date Sun Nov 10 15:15:23 GMT 2002 # file test test: ASCII English text # lpr -Php845c test # lpc status all hp845c: queuing is enabled printing is enabled no entries in spool area hp845c is ready and printing # Nothing.., Checking logs again:- Messages: Nov 10 15:15:42 Demon lpd[91979]: Demon.vickiandstacey.com requests printjob hp845c Nov 10 15:15:43 Demon lpd[91979]: restarting hp845c Nov 10 15:15:45 Demon last message repeated 3 times Nov 10 15:15:46 Demon lpd[91979]: hp845c: job could not be printed (cfA033Demon.vickiandstacey.com) Nov 10 15:15:47 Demon lpd[91979]: mail sent to user root about job unknown on printer hp845c (FATALERR) # Checking root's mail: Message 21: From [EMAIL PROTECTED] Sun Nov 10 15:15:47 2002 Date: Sun, 10 Nov 2002 15:15:46 GMT From: Owner of many system processes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: hp845c printer job unknown Reply-To: [EMAIL PROTECTED] Your printer job could not be printed Checking spool again: # date Sun Nov 10 15:18:07 GMT 2002 # tail /var/spool/lpd/hp845c/log apsfilter: The configuration file /usr/local/etc/apsfilter/hp845c/apsfilterrc apsfilter: is missing. Please run SETUP. cat: /rc: No such file or directory rm: No such file or directory /usr/local/etc/apsfilter/basedir/bin/apsfilter: line 116: /rc: Permission denied apsfilter: can't find configuration apsfilter: The configuration file /usr/local/etc/apsfilter/hp845c/apsfilterrc apsfilter: is missing. Please run SETUP. cat: /rc: No such file or directory rm: No such file or directory # There's a permission denied error being thrown. Checking permissions on the offending file: # ls -al /usr/local/etc/apsfilter/basedir/bin/apsfilter -r-xr-xr-x 1 root wheel 56940 Nov 8 22:24 /usr/local/etc/apsfilter/basedir/bin/apsfilter # Is this not what it should be? I didn't see instructions to change permissions on any of apsfilter config file, scripts, nor any files concerning printing anywhere. Again complaints about a missing file.., this file DOES EXIST: # more /usr/local/etc/apsfilter/hp845c/apsfilterrc # # don't delete these settings # PRINTER='ijs/DESKJET_845' PAPERSIZE='a4' METHOD='auto' QUALITY='high' COLOR='full' RESOLUTION='600x300' # # additional configuration follows # insert settings as seen in /usr/local/etc/apsfilter/apsfilterrc # # I've searched the apsfilter mailing
Fatal Trap 9
As you might know, ive been suffering from error 11's, trap 12's and filesystem boo-boo's. Now ive just got this one and the server rebooted, which is new. Nov 10 15:39:50 admin /kernel: Fatal trap 9: general protection fault while in kernel mode Do you think that still could be to overheating? My host has looked into the heating problem, we are going to get many fans installed into the case to sort it in the future, but does this latest error coincide with heating ? Nov 10 15:39:50 admin /kernel: Nov 10 15:39:50 admin /kernel: Nov 10 15:39:50 admin /kernel: Fatal trap 9: general protection fault while in kernel mode Nov 10 15:39:50 admin /kernel: instruction pointer = 0x8:0xd6c05cf4 Nov 10 15:39:50 admin /kernel: stack pointer= 0x10:0xd6c05c44 Nov 10 15:39:50 admin /kernel: frame pointer= 0x10:0xd6c05c40 Nov 10 15:39:50 admin /kernel: code segment = base 0x0, limit 0xf, type 0x1b Nov 10 15:39:50 admin /kernel: = DPL 0, pres 1, def32 1, gran 1 Nov 10 15:39:50 admin /kernel: processor eflags = interrupt enabled, resume, IOPL = 0 Nov 10 15:39:50 admin /kernel: current process = 12590 (cp) Nov 10 15:39:50 admin /kernel: interrupt mask = none Nov 10 15:39:50 admin /kernel: trap number = 9 Nov 10 15:39:50 admin /kernel: panic: general protection fault Nov 10 15:39:50 admin /kernel: Nov 10 15:39:50 admin /kernel: syncing disks... 218 192 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: xhost: unable to open display
On Sun, Nov 10, 2002 at 04:04:01PM +0100, Henk wrote: I use ssh to connect to My.FreeBSD.Machine from My.Main.Machine running FreeBSD and xdm. xwin is running properly on My.Main.Machine. When trying to run mozilla on My.FreeBSD.Machine I get the error: Gtk-WARNING **: cannot open display: When running xhost I get the following error: xhost: unable to open display I do not export $DISPLAY=My.FreeBSD.Machine:0.0 It's supposed automatically set to My.FreeBSD.Machine:X+1.0 when I log in with ssh. On the server (sshd) side, you need X11Forwarding yes in /etc/ssh/sshd_config (which is the default, so you can just leave the X11Forarding line commented out). You'll also need xauth available --- it's part of the XFree86-clients port, which is slightly unfortunate as practically everything else you need comes out of the XFree86-libraries port. On the client side, either in /etc/ssh/ssh_config or in ~/.ssh/config you need ForwardX11 yes in a host section matching the server. Or you can just use the '-X' flag to ssh(1) or slogin(1) on the command line. The DISPLAY variable you'll see automatically set up on the server will be something like localhost:10.0 Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: trouble with perl writing to pipes :(
* Matthew Seaman [EMAIL PROTECTED] [20021108 12:40]: On Fri, Nov 08, 2002 at 10:46:43AM +0100, Joan Picanyol i Puig wrote: I'm noticing some weird behaviour having perl writing to pipes (they eat my output): [...] You may find that appropriate use of the $| special variable (or equivalently the autoflush method of the IO::Handle object) suddenly makes things work a lot better. Many thanks, hat did the trick Hmmm... This only seems to affect perl-5.00503 --- perl-5.6.1 works for me in the way you expect without any extra flushing. I believe it only affects perl on FreeBSD, but anyway... tks -- pica To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Can Do10548
wow, this annoys me. it's just the reasons listed in this later that makes me hate spam so much. suddenly i feel like.. hitting something. hard. sorry for the rant, couldn't help myself. On Sun, 10 Nov 2002 10:29:50 -2000 John Zimmer [EMAIL PROTECTED] wrote: [...] Because there is no charge for paper, printing, mailing or the unbelievabley HIGH COST of putting Ads into Magazines or Papers. Why should most of your advertising dollar go for overhead? There IS a BETTER way! [...] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: How to stop SPAMMER??!
On Sat, 9 Nov 2002, W. D. wrote: At 19:49 11/9/2002, Steve Wingate wrote: 2. Are you the recipient of spam or is your box being used as a relay? Relay. If your system is an open relay, close it. I have no idea how to do that with qmail--a web search will help. In fact, if your system is an open relay, you should disconnect it from the net until you have it closed. There are two reasons for that. The first is to stop the abuse of your system. The second is to keep your system from being added to lists of open relays or spam sources. -Warren Block * Rapid City, South Dakota USA To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
sudo in syslog.conf
Hi, what would an entry in syslog.conf look like if i want to send all information on sudo attempts to /dev/console? any ideas? ;-) thanks in anticipation, Gustaf Sjoberg To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Can Do10548
If your interested in putting your product or service in front of millions of prospective clients or buyers READ ON! What is the most cost effective form of advertising for the very small all the way up to the largest of companies? Commercial Email! Why? Because there is no charge for paper, printing, mailing or the unbelievabley HIGH COST of putting Ads into Magazines or Papers. Why should most of your advertising dollar go for overhead? There IS a BETTER way! How? By placing your ad directly into the e-mail boxes of consumers who, like you, have an Internet e-mail address. Almost every user of the Internet has a unique e-mail address and we can effectively reach as many of those people as you want FAST and EFFECTIVELY. Every year the number of users increases tremendously creating a huge market. Why not become part of this unlimited market by placing your personal ad in one of the largest consumer databases? We are interested in doing business with you, however, we DO NOT do pornography or schemes of any kind. Please call us with your legitimate product or service. Some of you may not be interested at all, and possibly are agitated by our message. We will respectfully remove you from our list by request. We are responsible commercial e-mailers and don't want to bother those who are not interested. We not only respect you, but also our customers. We do not want our customers spending their advertising dollars on prospects that do not have any interest. (Decline instructions are at the end of this letter.) Below you will find basic mailing options we are offering at this time. Check out our SPECIALS! Commercial Email Gets Results! Untargeted mailings: 1,000,000 E-mails for U.S $500.00 2,000,000 E-mails for U.S $900.00 3,000,000 E-mails for U.S $1200.00 4,000,000 E-mails for U.S $1400.00 For Professional Advertising Campaigns at Affordable Prices Call 818-743-7507 By utilizing our resources and technology we have achieved our goal of making advertising affordable and effective on the Internet. We hope that you will choose our company to help you in attaining your companies goals. This message is an advertisement. We will continue to bring you valuable permission based messages on the products and services that interest you most unless you wish to decline. If you no longer wish to receive our messages send a e-mail to: mailto:mxrly;yahoo.com?subject=expunge To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
USRobotics Wireless
Hi, Anyone using a U.S.Robotics Wireless card under Fbsd 4.7 ? I'm interested in buying one card for my laptop ! http://www.usr-emea.com/products/p-networking-product.asp?prod=net-pc-cardloc=emea It's in the Hardware Notes but I would prefer that someone who actually uses a card like this tells me it's ok! Regards -- Pierrick Brossin IT Employee 15, Ch. du Château, 1422 Grandson, Switzerland Tel Prof: +41-327201423 Mobile Priv: +41-794137145 Mail Prof: [EMAIL PROTECTED] Mail Priv: [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Recovering /etc/passwd (was: REASON #7919 NOT to do things asroot!)
On Sun, 10 Nov 2002, Greg 'groggy' Lehey wrote: # pwd_mkdb -p /etc/master.passwd /etc/passwd doesn't get used much any more. The real files are /etc/pwd.db and /etc/spwd.db. See the man page for pwd_mkdb for more details. And the files in /var/backups/ used by the periodic script have saved my bacon more than once. ls /var/backups aliases.bak group.bak master.passwd.bak aliases.bak2group.bak2 master.passwd.bak2 One would almost wish that things like the /etc/rc.conf, named and *mc files where there too :-) Dw To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Printing to Win2K share printer with apsfilter via samba fails
On 10 Nov 2002, Stacey Roberts wrote: Printer entry created by apsfilter setup in /etc/printcap: # APS1_BEGIN:printer1 # - don't delete start label for apsfilter printer1 # - no other printer defines between BEGIN and END LABEL hp845c|ijs/DESKJET_845;r=600x300;q=high;c=full;p=a4;m=auto:\ :lp=/dev/null:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/hp845c:\ :lf=/var/spool/lpd/hp845c/log:\ :af=/var/spool/lpd/hp845c/acct:\ :mx#0:\ :sh: # APS1_END - don't delete this # That if= line says that every time you try to print through this printer, the input is to be filtered by apsfilter. Since something is apparently wrong with apsfilter, you will not be able to print with this printcap entry. # tail /var/spool/lpd/hp845c/log apsfilter: The configuration file /usr/local/etc/apsfilter/hp845c/apsfilterrc apsfilter: is missing. Please run SETUP. Okay. So what happens when you run SETUP? But this file DOES exist: # more /usr/local/etc/apsfilter/hp845c/apsfilterrc Possibly a permissions problem? That's failed big time. I'll try printing with lpr: # lpr -Php845c test Won't work--you're just sending more stuff through the same failing input filter. I suggested in an earlier response that it would be good to get basic text printing working before trying one of the big filter packages like apsfilter. I think I even posted a printcap entry that would work. What happens when you try that? -Warren Block * Rapid City, South Dakota USA To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Recovering /etc/passwd (was: REASON #7919 NOT to do things as root!)
At 08:23 PM 11.10.2002 +0100, Dirk-Willem van Gulik wrote: On Sun, 10 Nov 2002, Greg 'groggy' Lehey wrote: # pwd_mkdb -p /etc/master.passwd /etc/passwd doesn't get used much any more. The real files are /etc/pwd.db and /etc/spwd.db. See the man page for pwd_mkdb for more details. And the files in /var/backups/ used by the periodic script have saved my bacon more than once. ls /var/backups aliases.bak group.bak master.passwd.bak aliases.bak2group.bak2 master.passwd.bak2 One would almost wish that things like the /etc/rc.conf, named and *mc files where there too :-) Dw Just do your own script to run the backups you want. that's all the other one(s) do Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: How to stop SPAMMER??!
-Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd-questions;FreeBSD.ORG] On Behalf Of Warren Block Sent: Sunday, November 10, 2002 10:50 AM To: W. D. Cc: [EMAIL PROTECTED] Subject: Re: How to stop SPAMMER??! On Sat, 9 Nov 2002, W. D. wrote: At 19:49 11/9/2002, Steve Wingate wrote: 2. Are you the recipient of spam or is your box being used as a relay? Relay. http://logicsquad.net/freebsd/qmail-how-to.html That is the site I used to get a basic qmail system up and running. The file which determines who can use qmail to relay is /etc/tcp.smtp 127.0.0.1:allow,RELAYCLIENT= 192.168.1.:allow,RELAYCLIENT= :allow The first two lines allow localhost and local network to relay using the box, the third line I believe allows anyone to send mail to the box. If the people using your qmail have fairly static ip addys, then just added them to this file with the relayclient option. Ranges of ips are enabled via dropping the last octet as shown in line two above. After modifying tcp.smtp, you need to run this line for tcpserver /usr/local/bin/tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp /etc/tcp.smtp Hope this helps. In fact, if your system is an open relay, you should disconnect it from the net until you have it closed. There are two reasons for that. The first is to stop the abuse of your system. The second is to keep your system from being added to lists of open relays or spam sources. -Warren Block * Rapid City, South Dakota USA To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
DHCP
Hi How to have DHCP in version 4.7 like it was in 4.5. By default it is not anymore installed. Thanks Dany_H ;-) attachment: winmail.dat
coloring up my life
Hey guys, So I like working in the console, is there any other way? But I find that all that black and white really gets kind of boring in the long run. So I want to start coloring everything up nice and pretty. I have started on my shell (tcsh) and ls. This is where my knowledge on this subject ends. So my question is, does anyone else have pointer/tips/hints/ideas on how to put more color in my life? ie /etc/motd, commands other than ls, other? TIA, Morten. -- DetEr.dk - Rules are made to control the fun. for mails directly to me remove 'no-spam-2' from my email To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
general questions about patches ports [nethack]
(no answers off ports, so thought I'd give it a try on questions) In an effort to get some experience with ports I've been working in my spare time on making a local entry in the tree that lets you apply a variety of nethack enhancing, generally accepted patches (namely the hell patch, dump patch, new toys, and toughvlad patches) using -D appendations to the initial make command. It builds fine with various patches enabled; however, I had to modify the original diffs to get everything to apply it an order independent fashion. Part of this was necessary because I was specifying the files to use via PATCHFILES and some .if defined() ... .endif branches in the Makefile, and their application order did matter. Anyhow, I got that sorted out, and have been storing my patchfiles on a remote server and fetching using a PATCH_SITES define, which fetches and applies seamlessly. That brings me to my questions.. First, for future reference, is there a way, besides naming patchfiles aa ab ac etc, to get PATCHFILES, or any similar defines, to apply patches in a user specifid particular order? Second, is there a way to store/bundle optional patches with a port and be able to include them in the build or not, at your discretion, so that you don't have to fetch them from third party sites? Third, is there even any interest in something like this, or does conservative BSD philosophy frown on game patches such as these being included in the ports tree, leaving it to the end user to compile from scratch and apply patches by hand if they wish enhancement? --Eric To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-ports in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Permissions user/group scheme for webserver?
This is an excellent question, and it's also an enduring problem. It's easy enough to make all files owned by user:nobody, but the problem is that CGI's executing as nobody can go off and read other peoples files! To counter this, I run all CGI's as suid the user. But this requires Apache's suexec code, which is difficult to get working properly, since the Apache folks disapprove and have placed so many restrictions on it. Of course you run the risk of an insecure CGI allowing an attacker to place files in your web tree, or plant trojan binaries. Buy hey, just don't write insecure CGI's! :) I'd love to hear if anyone knows a way to restrict a CGI's access to a particular sub-tree. The suexec stuff really is a pain, and more of risk than I really like to take. -Lee 11/10/02 3:21:23 PM, Johannes Angeldorff [EMAIL PROTECTED] wrote: Dear FreeBSD:ers! We are converting an old Windows web server to a new FreeBSD 4.6 webserver with apache and PHP. I could really need some help/tips for securing the server for each user... I want users to be able to FTP in their files to their home directories, and I want the web server to be able to read and execute all users' files... But I _don't_ want users to be able to read each others' files (since they may include for example passwords for MySQL databases). And of course, the users should not be able to read other files on the machine, like /etc/master.passwd. Simply: I want users to only FTP in their own directories, and the web server to be able to read it all... Has anyone a good scheme how to set up user and groups - with suitable permissions - for the webserver, FTP and the users' home dirs? Very grateful for all help on this matter! Sincerely, Smartnet Sverige AB Johannes Angeldorff To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: GD2 without X11 from ports
Jez Hancock ([EMAIL PROTECTED]) wrote: root@dev /usr/ports/graphics/gd2# make -DWITHOUT_XPM -DWITHOUT_X11 -DWITH_LZW So far so good, GD2 is built without the X11 libs. However when I move on to install the port: the 'make install' command still attempts to install the X libs. Can anyone tell me why this is happening? try make install -DWITHOUT_XPM -DWITHOUT_X11 -DWITH_LZW Morten -- DetEr.dk - Rules are made to control the fun. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: coloring up my life
On Sun, Nov 10, 2002 at 10:37:06PM +0100, Morten Grunnet Buhl wrote: the long run. So I want to start coloring everything up nice and pretty. I have started on my shell (tcsh) and ls. This is where my knowledge on this subject ends. So my question is, does anyone else have pointer/tips/hints/ideas on how to put more color in my life? ie /etc/motd, commands other than ls, other? look in /sys/i386/conf/LINT file, there are these optional settings: (to put in your normal kernel config file, LINT is read-only) # The following options will let you change the default colors of syscons. options SC_NORM_ATTR=(FG_GREEN|BG_BLACK) options SC_NORM_REV_ATTR=(FG_YELLOW|BG_GREEN) options SC_KERNEL_CONS_ATTR=(FG_RED|BG_BLACK) options SC_KERNEL_CONS_REV_ATTR=(FG_BLACK|BG_RED) besides these, every program is responsible for its own colors (if any), like mutt or tirc or others. If this is not enough, go for X11 ;) -- bye! Ale To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Apache Help
Ok here is the deal. I've been trying to get apache to work on my FreeBSD 4.6.2 box. Here is what I was told I should do to install apache/php http://lith.hn.org/apache.php I know it install this way but want to make sure it is the correct way to install apache/php on freebsd. The domain name I am trying to use with apache is bsdsys.dyndns.org and I just can't get it. Sorry, I've RTFM many times and just don't know what I'm doing wrong. I hope someone will help me out here. I am going to do a new install of apache/php from those instructions on that site I just provided here unless someone says I should do it different. All I want for starters is to get apache working to where when someone hits bsdsys.dyndns.org it shows the apache stuff so atleast I know I have things setup right then I will work on the rest to add the content. So if no one minds to help me I would really appreciate it. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Adding additional HD space
The 10 GB Hard Disk should have a BIOS Limitation jumper that will make the BIOS think it is a 508 MB drive. Set that jumper, and the system should boot. Once you have that drive in there, you could create the file system structure on it however you want, but place the / and /boot partitions below 500 MB so that the system will boot when you take out the old drive. Note that you will have to tell fdisk the correct geometry of the disk. Otherwise, create the partitions exactly how you have them on your 2 GB drive, making them larger as you wish, and dump + restore the files from one disk to the other. Once everything is copied over, you can install the boot sector on the new drive with fdisk -B -b /boot/mbr NOTE: Replace /boot/mbr with the path of the new hard disk! For example, /mnt/boot/mbr if you mounted the new disk under /mnt. After this is done, you can set the jumpers on the new drive to match the position of the old one (master, for example) and simply swap it out. Reboot, and enjoy. Marco Radzinschi E-Mail: [EMAIL PROTECTED] On Sat, 9 Nov 2002, Mike Loiterman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My current 2GB HD is reaching maximum capacity, is fairly old and probably about to die. What is the best way to go about replacing the drive? Few points to keep in mind: 1. The system cannot deal with HD drives over, I believe, 8 gigs. 2. I suppose it goes without saying, but I'll say it anyway: its critical to maintain the existing data! The machine is my web, mail, ssh, vpn, and ftp server. Needles to say I do a full backup every night. Ideally I'd like to buy new drive and do a ghost of the old drive onto the new drive. If you're not familiar with the term ghost -- in the Windows world there is a piece of software the allows you to do a bit for bit copy of one drive to another and accordingly its called Norton Ghost. Would doing a full restore from my backup be equivalent to this? If so, how do I preserve the partition structure and how do I actually perform the task? Do I boot using the old HD, do the restore onto the new drive, shutdown, unhook the old drive and reboot? How do I know the data is unaltered and is an exact copy? My last question -- How can I get the system to recognize larger hard drives? I have been successful getting older systems to recognize large drives using utilities such as MaxBlaster from Maxtor, but that was using Windows. Are there similar utilities for FreeBSD? I tried adding a 10 gig drive the system in question but the system refused to boot with that drive in any place on the IDE chain. I was also unsuccessful in using the MaxBlaster to enable the drive for use on the system. Maybe I was doing something wrong? Thanks in advance. ... Randomly Generated Quote: 'A government that is big enough to give you all you want is big enough to take it all away.' -- Barry Goldwater Mike Loiterman PGP Key 0xD1B9D18E http://www.ascendency.net -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 Comment: Message digitally signed by Mike Loiterman iQA/AwUBPczK9WjZbUnRudGOEQI5cwCgtUceNvjBESBz1WE2Oh0U1oKy+TEAnj5q P00iJZZ6WyVf1EvckZlcWr8v =gRXu -END PGP SIGNATURE- To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: DHCP
On Sunday 10 November 2002 16:23, Daniel HARTMANN wrote: Hi How to have DHCP in version 4.7 like it was in 4.5. By default it is not anymore installed. Yes it is.. add ifconfig_interface=DHCP to your rc.conf Thanks Dany_H ;-) To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
In search of the ultimate .muttrc
Hi all, I have just started recently using mutt and love it. I know there are heaps of sites that have sample .muttrc configuration files but I am looking for one specifically for use with this listanyone willing to share theirs? -Thanks in advance - Would you like to receive faxes to your personal email address? You can with mBox. Visit http://www.mbox.com.au/fax To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Printing to Win2K share printer with apsfilter via samba fails
Hi Warren, On Sun, 2002-11-10 at 19:27, Warren Block wrote: On 10 Nov 2002, Stacey Roberts wrote: Printer entry created by apsfilter setup in /etc/printcap: # APS1_BEGIN:printer1 # - don't delete start label for apsfilter printer1 # - no other printer defines between BEGIN and END LABEL hp845c|ijs/DESKJET_845;r=600x300;q=high;c=full;p=a4;m=auto:\ :lp=/dev/null:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/hp845c:\ :lf=/var/spool/lpd/hp845c/log:\ :af=/var/spool/lpd/hp845c/acct:\ :mx#0:\ :sh: # APS1_END - don't delete this # That if= line says that every time you try to print through this printer, the input is to be filtered by apsfilter. Since something is apparently wrong with apsfilter, you will not be able to print with this printcap entry. # tail /var/spool/lpd/hp845c/log apsfilter: The configuration file /usr/local/etc/apsfilter/hp845c/apsfilterrc apsfilter: is missing. Please run SETUP. Okay. So what happens when you run SETUP? Re-running SETUP only repopulates /etc/printcap with the very same entries that are in there now. I have tried this, made a copy of the initial post-apsfilter-amended printcap to printcap.old, then re-ran SETUP. Did a diff, and no differences detected. But this file DOES exist: # more /usr/local/etc/apsfilter/hp845c/apsfilterrc Possibly a permissions problem? If the permissions are not correct, then what are they *supposed* to be. I've read through the docs at apsfilter.org and found *nothing* that suggests that a review of the permissions on various file / configs should be amended. For the benefit of that argument though, I *did* chmod 777 the file with the same result - nothing doing at the printer. In fact Warren, I ran trafshow at the same time I attempted printing, and on all occasions no traffic between the samba server and the Win2K box was captured. Concurring with you earlier deduction, that something must be wrong with apsfilter. That's failed big time. I'll try printing with lpr: # lpr -Php845c test Won't work--you're just sending more stuff through the same failing input filter. I suggested in an earlier response that it would be good to get basic text printing working before trying one of the big filter packages like apsfilter. I think I even posted a printcap entry that would work. What happens when you try that? I haven't tried attaching the printer directly to the samba server to test printing that way. But I am able to print (/etc/hosts) to the printer via smbclient using command line. This method however, bypasses apsfilter. Such a struggle this. I have tried all diplomatic means of communicating this problem to folks at apsfilter.org to no avail. I have been trouble-shooting this for over a week now, with only curt responses from the couple of people there to show for it. I'll hanker on for tonight, but will probably kick this project to the linux guys (they've an alternative being worked on using CUPS / RH8) if I get no joy. Thanks for the kind reply. Stacey -Warren Block * Rapid City, South Dakota USA To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message -- Stacey Roberts B.Sc (HONS) Computer Science Web: www.vickiandstacey.com signature.asc Description: This is a digitally signed message part
Re: BIND
Briliant! That is exactly what the doctor ordered! :) Thank! - Mark - Original Message - From: Michal Mertl [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Mark [EMAIL PROTECTED] Sent: Sunday, November 10, 2002 9:54 PM Subject: Re: BIND Configuration of bind 8.x to stop outside world using your nameserver looks like this (only relevant part shown): options { allow-query { localnets; localhost; internal_net;}; allow-transfer { localnets; localhost; internal_net;}; allow-recursion { localhost; localnets; internal_net;}; }; zone . { type hint; file named.root; }; zone example.com { type master; file example.com; allow-transfer { important_servers; localhost; }; allow-query { any; }; }; To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Intel 845 graphics
Hi I'm trying to get XFree86 4.2.0_1.1 trying to run on a motherboard with an Intel's intregrated video. The board is an Intel 845GRGL using the Intel 845G chipset for Pentium IV. After reading through some messages relating to the Intel 810 video I have included the Device AGP option in to my kernel so the onboard video is now recognised as can be seen from the attatched dmseg output however when try and start X Windows it crashes with Symbol xf86InterpretEDID from module /usr/X11R6/lib/modules/libvbe.a is unresol$ Symbol XAAInit from module /usr/X11R6/lib/modules/drivers/i810_drv.o is unresol$ Symbol XAAInit from module /usr/X11R6/lib/modules/drivers/i810_drv.o is unresol$Hi I'm trying to get XFree86 4.2.0_1.1 trying to run on a motherboard with an Intel's intregrated video. The board is an Intel 845GRGL using the Intel 845G chipset for Pentium IV. After reading through some messages relating to the Intel 810 video I have included the Device AGP option in to my kernel so the onboard video is now recognised as can be seen from the attatched dmseg output however when try and start X Windows it crashes with Symbol xf86InterpretEDID from module /usr/X11R6/lib/modules/libvbe.a is unresol$ Symbol XAAInit from module /usr/X11R6/lib/modules/drivers/i810_drv.o is unresol$ Symbol XAAInit from module /usr/X11R6/lib/modules/drivers/i810_drv.o is unresol$ Symbol XAAFillSolidRects from module /usr/X11R6/lib/modules/drivers/i810_drv.o $ Symbol XAAFillSolidRects from module /usr/X11R6/lib/modules/drivers/i810_drv.o $ My /etc/X11/XF86config (attached to this message) file was generated by xf86config in text mode called by sysinstall. Can anyone suggest where I might be going wrong and where to find a fix? Thankx Marc Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.7-STABLE #0: Fri Nov 8 13:47:16 CST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ZEN Timecounter i8254 frequency 1193182 Hz CPU: Pentium 4 (1699.82-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf13 Stepping = 3 Features=0x3febfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,b28,ACC real memory = 259260416 (253184K bytes) avail memory = 247873536 (242064K bytes) Preloaded elf kernel kernel at 0xc044a000. netsmb_dev: loaded Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 11 entries at 0xc00f4690 npx0: math processor on motherboard npx0: INT 16 interface pcib0: Host to PCI bridge on motherboard pci0: PCI bus on pcib0 agp0: Intel 82845 (i845 GMCH) SVGA controller mem 0xffa8-0xffaf,0xf000-0xf7ff irq 11 at device 2.0 on pci0 agp0: detected 8060k stolen memory agp0: aperture size is 128M uhci0: Intel 82801DB (ICH4) USB controller USB-A port 0xe800-0xe81f irq 11 at device 29.0 on pci0 usb0: Intel 82801DB (ICH4) USB controller USB-A on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: Intel 82801DB (ICH4) USB controller USB-B port 0xe880-0xe89f irq 9 at device 29.1 on pci0 usb1: Intel 82801DB (ICH4) USB controller USB-B on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: Intel 82801DB (ICH4) USB controller USB-C port 0xec00-0xec1f irq 10 at device 29.2 on pci0 usb2: Intel 82801DB (ICH4) USB controller USB-C on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered ulpt0: EPSON USB Printer, rev 1.10/1.00, addr 2, iclass 7/1 pcib1: Intel 82801BA/BAM (ICH2) Hub to PCI bridge at device 30.0 on pci0 pci1: PCI bus on pcib1 rl0: D-Link DFE-530TX+ 10/100BaseTX port 0xd800-0xd8ff mem 0xff8ff800-0xff8ff8ff irq 7 at device 0.0 on pci1 rl0: Ethernet address: 00:05:5d:28:98:fa miibus0: MII bus on rl0 rlphy0: RealTek internal media interface on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto mlx0: Mylex version 2 RAID interface port 0xdc00-0xdc7f mem 0xff8ffc00-0xff8ffc7f irq 10 at device 2.0 on pci1 mlx0: DAC960P/PD, 3 channels, firmware 2.73-0-00, 4MB RAM mlxd0: Mylex System Drive on mlx0 mlxd0: 8683MB (17782784 sectors) RAID 1 (online) fxp0: Intel Pro/100 Ethernet port 0xd480-0xd4bf mem 0xff8fe000-0xff8fefff irq 3 at device 8.0 on pci1 fxp0: Ethernet address 00:07:e9:92:ae:7e inphy0: i82562ET 10/100 media interface on miibus1 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: PCI to ISA bridge (vendor=8086 device=24c0) at device 31.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel ICH4 ATA100 controller port 0xffa0-0xffaf,0-0x3,0-0x7,0-0x3,0-0x7 at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 ichsmb0: SMBus controller port 0xe000-0xe01f irq 5 at
RE: Adding additional HD space
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The 10 GB Hard Disk should have a BIOS Limitation jumper that will make the BIOS think it is a 508 MB drive. Set that jumper, and the system should boot. I thought so too. I tried setting it, but I couldn't get it to boot. I guess the drive *could* be damaged, but I just pulled it out of a Windows box where it was working fine. It still has XP on it. Would that make a difference? I never reformatted it after I pulled it out. Once you have that drive in there, you could create the file system structure on it however you want, but place the / and /boot partitions below 500 MB so that the system will boot when you take out the old drive. Do you mean make the / and /boot partitions *less* then 500 MB or *below*. If you mean below, I'm not sure how to do that. Note that you will have to tell fdisk the correct geometry of the disk. I don't know how to do this or at least I don't remeber. Otherwise, create the partitions exactly how you have them on your 2 GB drive, making them larger as you wish, and dump + restore the files from one disk to the other. When you say dump + restore you mean do a level 0 dump and then a restore? Is that correct? ... Randomly Generated Quote: The moral of the story is: Kill the parents kill the children. Mike Loiterman PGP Key 0xD1B9D18E http://www.ascendency.net -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 Comment: Message digitally signed by Mike Loiterman iQA/AwUBPc7iZ2jZbUnRudGOEQLmGACg3Ql+Y6arFF74pECW1QUqTTqiCdQAoMx7 z0+lIzJj2pSAGxUP+w0eEbU1 =oMj+ -END PGP SIGNATURE- To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
HELP. KDE3 locks up system,
Hello all, Once KDE3 locks up system, nothing can be done except to hit the power button. I rebuilt the world and kernel based on todays cvsup and it still locks up 4.7-STABLE KDE 3.0.4 This is actually my second attempt at sending this email, because the system locked up while I was writing the first one. Any help would be appreciated... otherwise I will be forced to use some other desktop environment, but I really like KDE. thanks Michael Mercer To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Mounting Files -- Help Plz :)
Wuzzup guys, I'm running 2 boxes with freebsd. One with pure-ftpd and the other runs my apache/php/mysql. My ftp is an old compaq prolient workgroup server p pro 200mhz. My webserver is a p3 - 500mhz. My question -- What is the best way to mount or link to the files from box to box? When user ftp in and uploads files, I want the files uploaded into my webserver box. The webserver box will have all my hdds in it... And say a user logs into ftp box,, when he uploads a file onto the other box -- will the file instantly show up for webserver? Tx guys RD To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Load averages exceed 1 - but all seems well!
Running fvcool -e -i works just fine for me in keeping my Athlon CPU cool, BUT the output from TOP, shows: last pid: 2890; load averages: 1.10, 1.07, 1.00 up 1+02:45:27 23:20:20 66 processes: 2 running, 64 sleeping CPU states: 1.2% user, 98.4% nice, 0.4% system, 0.0% interrupt, 0.0% idle Mem: 112M Active, 139M Inact, 39M Wired, 11M Cache, 41M Buf, 11M Free Swap: 650M Total, 650M Free PID USERNAME PRI NICE SIZERES STATETIME WCPUCPU COMMAND 2814 root 97 20 872K 368K RUN 36:32 98.00% 98.00% fvcool Yet I can still run all the apps I wish, including X/Windowmaker, without any apparent loss of speed or stability. How is this possible? -- Regards, Brian To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Mounting Files -- Help Plz :)
On Mon, 2002-11-11 at 10:12, RD wrote: Wuzzup guys, I'm running 2 boxes with freebsd. One with pure-ftpd and the other runs my apache/php/mysql. My ftp is an old compaq prolient workgroup server p pro 200mhz. My webserver is a p3 - 500mhz. My question -- What is the best way to mount or link to the files from box to box? NFS When user ftp in and uploads files, I want the files uploaded into my webserver box. The webserver box will have all my hdds in it... That may not be such a great idea - if you have all the drives on your web server, you would need to run the NFS server there, and if you're going to do that, why not just run FTP on the web server? Why not run a web server and a file server, NFS mount the file server on the web server and FTP files to and from the file server. I doubt you're thinking of expanding anytime soon, but if you wanted to run 2 or more web servers, that's a much easier setup. And say a user logs into ftp box,, when he uploads a file onto the other box -- will the file instantly show up for webserver? Okay, a user logs into ftp box ... Yes the file will show up instantly, or as close to. Read this: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/nfs.html To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Load averages exceed 1 - but all seems well!
On Sunday, 10 November 2002 at 23:30:44 +1030, Brian Astill wrote: Running fvcool -e -i works just fine for me in keeping my Athlon CPU cool, BUT the output from TOP, shows: last pid: 2890; load averages: 1.10, 1.07, 1.00 up 1+02:45:27 23:20:20 66 processes: 2 running, 64 sleeping CPU states: 1.2% user, 98.4% nice, 0.4% system, 0.0% interrupt, 0.0% idle Mem: 112M Active, 139M Inact, 39M Wired, 11M Cache, 41M Buf, 11M Free Swap: 650M Total, 650M Free PID USERNAME PRI NICE SIZERES STATETIME WCPUCPU COMMAND 2814 root 97 20 872K 368K RUN 36:32 98.00% 98.00% fvcool Yet I can still run all the apps I wish, including X/Windowmaker, without any apparent loss of speed or stability. How is this possible? The load average is just an indication of the average number of processes waiting to use the machine at any one time. It can get very high, over 100 under some circumstances. The reason you can run your other applications is because of load balancing. fvcool is running at a low priority (higher number). I still suspect it's not supposed to consume all that CPU time, though, and I find it rather strange that this should help cool the CPU. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Mounting Files -- Help Plz :)
Tx duncan, Let me see if I got this right... File server will be the box with ftp - right? Then I can expand my webservers in the future to 2 or more boxes to handle the load -- right? -Original Message- From: Duncan Anker [mailto:d.anker;au.darkbluesea.com] Sent: Sunday, November 10, 2002 7:26 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Mounting Files -- Help Plz :) On Mon, 2002-11-11 at 10:12, RD wrote: Wuzzup guys, I'm running 2 boxes with freebsd. One with pure-ftpd and the other runs my apache/php/mysql. My ftp is an old compaq prolient workgroup server p pro 200mhz. My webserver is a p3 - 500mhz. My question -- What is the best way to mount or link to the files from box to box? NFS When user ftp in and uploads files, I want the files uploaded into my webserver box. The webserver box will have all my hdds in it... That may not be such a great idea - if you have all the drives on your web server, you would need to run the NFS server there, and if you're going to do that, why not just run FTP on the web server? Why not run a web server and a file server, NFS mount the file server on the web server and FTP files to and from the file server. I doubt you're thinking of expanding anytime soon, but if you wanted to run 2 or more web servers, that's a much easier setup. And say a user logs into ftp box,, when he uploads a file onto the other box -- will the file instantly show up for webserver? Okay, a user logs into ftp box ... Yes the file will show up instantly, or as close to. Read this: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/nfs.html To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
sysutils/cpuburn lives up to its name
The subject explains it pretty well -- last night I ran burnK7 from the cpuburn port and my system is toast. Now I'm trying to figure out just what it was I killed so I can replace it. About 40 seconds into the run, the system switched the power off. Now it won't switch back on again. ACPI was disabled (relevant, since this was -current) but APM was on. I know the power supply is good since the on-board NIC shows a link on the Linksys it's attached to, and that only happens when it has power. The system just does nothing when I push the power switch. So what needs replaced? The Motherboard? The CPU? Something else? - @ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
missing atapicam.h ??
Hi, I am trying to get ATAPI SCSI emulation working on 4.6.2 so that I can use cdrecord. I applied the following patches: atapicam-20021031.diff cam_xpt.c.diff atapicam-STABLE-config-20021031.diff but now when I run make depend there is a header file missing: eagle# make depend rm -f .newdep make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | xargs mkdep -a -f .newdep -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I/usr/include -I../../contrib/ipfilter -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 ../../dev/ata/ata-all.c:37: atapicam.h: No such file or directory ../../dev/ata/atapi-all.c:35: atapicam.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /usr/src/sys/compile/EAGLE. What have I missed here. any help appreciated. cheers, Iain. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: In search of the ultimate .muttrc
On Mon, Nov 11, 2002 at 09:30:46AM +1100, BSD Freak wrote: Hi all, I have just started recently using mutt and love it. I know there are heaps of sites that have sample .muttrc configuration files but I am looking for one specifically for use with this listanyone willing to share theirs? I just started using Mutt a number of weeks ago and it took me a while to get my .muttrc file in shape. So far, I really like Mutt..it's nice not to remove my hands from the keyboard. I'm sure that it's not really optimized, but for the moment it works for mehere are the lines that I altered. I've change a few things for privacy, but you get the idea. Note that in some place, especially the 'set' lines, you may have to comment the corresponding line later on in the file. In order to differentiate between changes I made and the default config, I moved all my changes to the top of the file and placed them with a begging and ending mark. Also, be careful, as a few of the config lines are wrapped. For what it's worth, here you go: set folder=~/muttmail set mbox=+mbox set confirmappend=no set mark_old=no set move=no set realname=your name here set record=+sent set edit_headers=yes set index_format=%4C %Z %{%b %d} %F (%4l) %s set editor=vim '+set textwidth=72' set from=your email address here set tmpdir=your mutt tmp dir here my_hdr Reply-To: your reply to address here # define mail lists and subscriptions lists [EMAIL PROTECTED] lists [EMAIL PROTECTED] lists [EMAIL PROTECTED] lists [EMAIL PROTECTED] lists [EMAIL PROTECTED] subscribe [EMAIL PROTECTED] subscribe [EMAIL PROTECTED] subscribe [EMAIL PROTECTED] subscribe [EMAIL PROTECTED] # add some mailboxes mailboxes ! mailboxes +freebsd-questions mailboxes +freebsd-stable mailboxes +freebsd-announce mailboxes +freebsd-security # add some aliases here (examples. real ones removed) alias john [EMAIL PROTECTED] alias mom [EMAIL PROTECTED] color normal default default color hdrdefault brightcyan default color signature green default color attachment brightyellow default color indicator brightblack brightcyan color quoted green default color quoted1 white default color tilde blue default color body brightcyan default [-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+ color body brightwhite default (http|ftp|news|telnet|finger)://[^ \\t\r\n]* color body brightwhite default mailto:[-a-z_0-9.]+;[-a-z_0-9.]+ color header brightmagenta default ^(Date): color header brightyellow default ^Subject: color body brightred default [;:]-*[)(|] folder-hook . set sort=threads folder-hook . set pager_index_lines=15 folder-hook /var/mail/nkinkade set sort=date-received folder-hook +sent set sort=date-sent hdr_order Date From To Cc User-Agent X-Mailer Subject ignore * unignore Date From To Cc User-Agent X-Mailer Subject To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: How to stop SPAMMER??!
Hi Stephen, I hope you don't mind, I've CC'd the list as well: Guys: I locked myself out of my server using the hosts.allow script below. I couldn't get in with SSH, FTP, and *ALL* email was blocked. I changed back to the old hosts.allow and I can get back in, but so are the slimy spammers. It seems that hosts.allow is very powerfull--perhaps the way to go. However, I can't shut off FTP and email for all the other users. Does anyone have ready-to-go hosts.allow file? At 08:39 11/10/2002, Stephen Hovey, wrote: Its a tuffy - why do you have both a sendmail and a qmail entry? you run both? Nope. Nor EXIM. I just wanted them there for the time being. I was going to delete them once I was sure the script worked. the only thing I can think of is that ALL: paranoid line if you tried to connect from an ip with bad in-addr.arpa/ident - and I dont think this is correct form: ALL : 209.152.117.190192.0.2.35 : allow What would work? On Sun, 10 Nov 2002, W. D. wrote: At 01:14 11/10/2002, Stephen Hovey, wrote: Put an entry in /etc/hosts.allow with that domain and DENY.. it will give them a 550 denied no matter what they try, and/or an entry in /etc/mail/access Hi Stephen, Well, I tried the 'hosts.allow' route. It seems I've disallowed SSH FTP for myself now! Assuming I can get into the ISP tomorrow, which are the offending lines below? How can I get back into my own server I had to go to the colo and switch back to the old hosts.allow # # hosts.allow access control file for tcp wrapped applications. # $FreeBSD: src/etc/hosts.allow,v 1.8.2.5 2001/08/30 16:02:37 dwmalone Exp $ # # NOTE: The hosts.deny file is deprecated. # Place both 'allow' and 'deny' rules in the hosts.allow file. #See hosts_options(5) for the format of this file. #hosts_access(5) no longer fully applies. #_ _ _ #| | __ __ __ _ _ __ ____ __ | | ___ | | #| _| \ \/ / / _` | | '_ ` _ \ | '_ \ | | / _ \ | | #| |___ | (_| | | | | | | | | |_) | | | | __/ |_| #|_| /_/\_\ \__,_| |_| |_| |_| | .__/ |_| \___| (_) # |_| # !!! This is an example! You will need to modify it for your specific # !!! requirements! # Start by allowing everything (this prevents the rest of the file # from working, so remove it when you need protection). # The rules here work on a First match wins basis. # Commented out 2002 Nov 10 - WD: # ALL : ALL : allow # Wrapping sshd(8) is not normally a good idea, but if you # need to do it, here's how #sshd : .evil.cracker.example.com : deny # Protect against simple DNS spoofing attacks by checking that the # forward and reverse records for the remote host match. If a mismatch # occurs, access is denied, and any positive ident response within # 20 seconds is logged. No protection is afforded against DNS poisoning, # IP spoofing or more complicated attacks. Hosts with no reverse DNS # pass this rule. ALL : PARANOID : RFC931 20 : deny # Allow anything from localhost. Note that an IP address (not a host # name) *MUST* be specified for portmap(8). ALL : localhost 127.0.0.1 : allow #ALL : my.machine.example.com 192.0.2.35 : allow # Added 2002 Nov. 10 - WD: ALL : 209.152.117.190192.0.2.35 : allow # To use IPv6 addresses you must enclose them in []'s ALL : [fe80::%fxp0]/10 : allow ALL : [fe80::]/10 : deny ALL : [3ffe:fffe:2:1:2:3:4:3fe1] : deny ALL : [3ffe:fffe:2:1::]/64 : allow # Added 2002 Nov. 10 - WD: # Qmail qmail : localhost : allow #qmail : .nice.guy.example.com : allow #qmail : .evil.cracker.example.com : deny # Added 2002 Nov. 10 - WD qmail : .spaelegance.com : deny qmail : .SpaWeb1.spaelegance.com : deny qmail : .testargeted.com : deny qmail : .tesdaily.com : deny qmail : ALL : allow # Sendmail can help protect you against spammers and relay-rapers sendmail : localhost : allow sendmail : .nice.guy.example.com : allow sendmail : .evil.cracker.example.com : deny # Added 2002 Nov. 10 - WD sendmail : .spaelegance.com : deny sendmail : .SpaWeb1.spaelegance.com : deny sendmail : .testargeted.com : deny sendmail : .tesdaily.com : deny sendmail : ALL : allow # Exim is an alternative to sendmail, available in the ports tree exim : localhost : allow # exim : .nice.guy.example.com : allow # exim : .evil.cracker.example.com : deny # Added 2002 Nov. 10 - WD exim : .spaelegance.com : deny exim : .SpaWeb1.spaelegance.com : deny exim : .testargeted.com : deny exim : .tesdaily.com : deny exim : ALL : allow # Portmapper is used for all RPC services; protect your NFS! # (IP addresses rather than hostnames *MUST* be used here) portmap : 192.0.2.32/255.255.255.224 : allow portmap : 192.0.2.96/255.255.255.224 :
Re: How to stop SPAMMER??!
From: Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED] From: W. D. [EMAIL PROTECTED] Subject: Re: How to stop SPAMMER??! Well, now we see why the file comments suggest that wrapping sshd is *not* such a good idea.. Get the IP block of the system(s) from which you are remotely adminning the server into hosts.allow with something like this at the top: all: 192.168.0.0/255.255.255.0 : allow This is a sample netblock that makes sure hosts on my/the* LAN have access to the machinefigure out the netblock of your ISP at the home, office, or home office, and try, try, again. HTH, Kevin Kinsey DaleCo, S.P. *Your LAN may differ, of course. And, FWIW, hosts.allow is pretty 'ready to go' straight from 'the box.' Lots of examples.. Also, if I remember the O.P., you're running 4.4 or 4.5are you keeping up with patches? Surely an upgrade would be in order to address any issues that appeared over the summer... My $.02 Kevin Kinsey To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
[OT] Reverse ssh through firewall?
Hi Guys, If I have two machines (one at work, and one at home) and one of them has all ports firewalled (I can ssh from work to home, but not home to work). Is there a way to open ssh on the home machine and have my work computer connect to it (so that i have access to my work machine from home). Any ideas much appreciated... Thanks, Jacob Jacob RhodenPhone: +61 3 8344 6102 ITS DivisionEmail: [EMAIL PROTECTED] Melbourne University Mobile: +61 403 788 386 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: logos freebsd
On Mon, Nov 11, 2002 at 01:43:39AM -0300, João Alberto Rampim de Oliveira wrote: have you logo of the Freebsd in high-resolution to send me? You can use the standard /usr/share/examples/BSD_daemon/beastie.eps file to generate beastie images at whatever resolution you desire. Use something like Gimp to convert to a bitmap format like .xpm or .gif Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Ô¶³ÌË«½ÊÏßÊÓƵÊÕ·¢Æ÷
HT-SJ1500ʹÓõçÄÔÎåÀàË«½ÊÏß´«ËÍÊÓƵÐźţ¬ÌرðÊÊÓÃÓÚÖÇÄÜ´óÂ¥×ÛºÏ ²¼Ïß¼à¿Øϵͳ»òÆäËûÔ¶³Ì¼à¿Ø¼°ÓÐÑÏÖع¤Òµ¸ÉÈÅÔ´µÄ³¡ºÏʹÓã¬Æä¼Û¸ñµÍ¡¢ ¿¹¸ÉÈÅÐÔÇ¿£¬Í¼ÏóÖÊÁ¿ºÃ¡¢¾àÀë¿É´ï2000Ã×,¼ÓÖм̿ɴïÊýǧÃ×£¬Ê¹ÓÃÒ»¸ù ËĶÔË«½ÊÏß¼´¿Éͬʱ´«ËÍÊÓƵ¡¢ÒôƵ¡¢½âÂëºÍµçÔ´»òËÄ·ͼÏó. ×îвúÆ·:ÐÔÄÜÒ»Á÷µÄÍøÂçÊÓƵ²úÆ·ÍøÉÏÑÝʾ£¬¿Éͨ¹ý»¥Á¬ÍøÌæ´úÆóÒµ 800µç»°£¬¸ü¿ÉÓë¿Í»§×ö¿ÉÊÓ½»Á÷£¬»¶ÓÏÂÔØ×îпͻ§¶ËÈí¼þÓëÎÒ¹«Ë¾¿Í»§ ·þÎñÈËÔ±Ö±½ÓÍøÉϽ»Ì¸¡£www.webht.com [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message