Re: shell script doesnot executing
On Fri, 2005-12-16 at 01:51 -0600, Harley D. Eades III wrote: On Fri, 2005-12-16 at 11:23 +0530, Anirban Adhikary wrote: Hi guys This is Anirban here. I have the problem again with the previous shell script.Which was Write a shell script that will check whether a server is up or not(on ping) log the report to a file. I have tried to write the program in the following way #! /bin/sh echo -n Enter the IP or Hostname of the Server read host #echo $host ping -c2 $host file2 if [ $? = 0 ];then The problem is you're checking the exit status of ping, even if the host is down ping is exiting with a successful status. You need to use sed or awk or something similiar to test for replys. Actually, I just tested this and I am wrong. Ping does exit with a error status when there are no replys sorry. -- Harley -BEGIN GEEK CODE BLOCK- G: GCS-- d- a? C B- E+++ W+++ N++ w--- X+++ b++ G e* r x+ z+ --END GEEK CODE BLOCK-- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: shell script doesnot executing
On Fri, 2005-12-16 at 11:23 +0530, Anirban Adhikary wrote: Hi guys This is Anirban here. I have the problem again with the previous shell script.Which was Write a shell script that will check whether a server is up or not(on ping) log the report to a file. I have tried to write the program in the following way #! /bin/sh echo -n Enter the IP or Hostname of the Server read host #echo $host ping -c2 $host file2 if [ $? = 0 ];then echo Server is up and working $host else echoServer is not up and not working $host fi I reworked your script a bit, it is working for me maybe it will for you: #! /bin/sh echo -n Enter the IP or Hostname of the Server: read host ping -c2 $host file2; if `test $? = 0`; then echo Server is up and working $host else echo Server is not up and not working $host fi TEST: hde{/usr/home/hde} $ ./test.sh Enter the IP or Hostname of the Server: 193.169.1.1 Server is up and working 193.169.1.1 hde{/usr/home/hde} $ ./test.sh Enter the IP or Hostname of the Server: 193.169.1.111 Server is not up and not working 193.169.1.111 hde{/usr/home/hde} $ cat file2 PING 193.169.1.111 (193.169.1.111): 56 data bytes --- 193.169.1.111 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss hde{/usr/home/hde} $ -- Harley -BEGIN GEEK CODE BLOCK- G: GCS-- d- a? C B- E+++ W+++ N++ w--- X+++ b++ G e* r x+ z+ --END GEEK CODE BLOCK-- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Reproducable Panic 6.0-RELEASE i386
I'm getting the following panic, which I can reproduce easily. Let me know what other information I should provide. The backtrace seems really short for some reason. I get the panic when running a multi-threaded application I'm developing/modifying. kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode fault virtual address = 0x48 fault code = supervisor write, page not present instruction pointer = 0x20:0xc0510cb3 stack pointer = 0x28:0xe9aebb74 frame pointer = 0x28:0xe9aebbf8 code segment= base 0x0, limit 0xf, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags= resume, IOPL = 0 current process = 7848 (gdb) [thread pid 7848 tid 100184 ] Stopped at kern_ptrace+0x11e3: andl$0xfffb,0x48(%eax) db bt Tracing pid 7848 tid 100184 td 0xc4302180 kern_ptrace(c4302180,a,1ea6,0,11) at kern_ptrace+0x11e3 ptrace(c4302180,e9aebd04,10,418,4) at ptrace+0x56 syscall(3b,3b,3b,bfbfe580,1ea6) at syscall+0x13d Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (26, FreeBSD ELF32, ptrace), eip = 0x283360e7, esp = 0xbfbfe3bc, ebp = 0xbfbfe3d8 --- Full panic and backtrace, and alltrace: http://am-productions.biz/docs/bigguy-panic.gz http://am-productions.biz/docs/bigguy-dmesg.gz http://am-productions.biz/docs/bigguy-pciconf.gz Kernel config: http://am-productions.biz/docs/BIGGUY.gz -- Anish Mistry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: atheros wireless setup
Jim Pazarena wrote: I can't believe how incredibly easy it was to get the wireless going in my laptop. add: if_ath_load=YES to /boot/loader.conf and: ifconfig_ath0=dhcp to /etc/rc.conf and it works ! please tell me where I can read up on how to control the wireless link. Such as how to enter the SSID, and connect speed etc. I assume you use FBSD6? Check wpa_supplicant, if you are always connecting to the same wireless network you can also enter these details in the rc.conf line: ifconfig_ath0=ssid MyWireless dhcp Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt Subject ID: 9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72 Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: argh with freebsd's networking!
Jeff D. Hamann wrote: the instructions seem to be clear enough but the problem is is that I don't have any network connection so I can't install ports and packages. You shouldn't need to download any packages, drivers should be with the source code which you have on the install cds. If anyone has any meaningful assistance in getting the wireless or the wired ethernet working please assist. Well: output from dmesg would be really usefull, because then we can see what the kernel identifies. Also, just output of ifconfig will give you a list of found interfaces and their current configuration. If the driver is in the kernel then the nic will appear in dmesg. Then all you have to do is: ifconfig_interface ip/mask For wireless it may be more complicated because you also need to set SSID etc. I'm using FreeBSD 6.0 i386. I downloaded the ISO images last week. I would love to recompile the kernel so that neither works. Most nic's drivers are in the GENERIC kernel, but if not you can load the needed modules, for example: kldload if_iwi Cheers, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt Subject ID: 9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72 Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Patching a port
On Friday 16 December 2005 18:18, Markus Trippelsdorf wrote: On 2005-12-16, Ian Moore [EMAIL PROTECTED] wrote: I'm having some trouble with the www/sarg port. The writer has sent me a=20 couple of .patch files to apply and I'm wondering if there's some way to=20 apply those patches and still use the ports system to build install the=20 port. I know the source code installs stuff in places that aren't the standard FB= SD=20 locations - I assume they are the norm for Linux. The port fixes that and=20 puts stuff where we expect it to be. It would make life easier if I could apply the patches and then build the p= ort=20 make patch -apply your patches- make install clean Thanks, I'll knew it would be something really easy. Cheers, -- Ian gpg key: http://home.swiftdsl.com.au/~imoore/no-spam.asc pgpRFLxdNOSXw.pgp Description: PGP signature
RE: pine
I am able to telnet into the SMTP server on port 25 and have my way with it Why, exactly, is this a security problem? You do realize, don't you, that mailservers do not encrypt SMTP mail when they send it to each other. I would be more interested, if I were you, in what banners I got by telnetting into the POP3 and SMTP port. Those should tell you what the ISP is using to host e-mail, obviously if it's Microsoft Exchange I'd run in the opposite direction. Ted -Original Message- From: caleb [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 14, 2005 10:44 PM To: Ted Mittelstaedt Cc: gwen; RW; freebsd-questions@freebsd.org; caleb Subject: RE: pine Hi everyone, Thanks Gwen and Ted for your feedback. I am using an ADSL modem, basically a POTS network terminal. I am thinkng of switching ISP's, registering a domain and setting up my own mail server. The ISP I am using (according to thier 'technical support') does not use any encryption with the POP server and I am able to telnet into the SMTP server on port 25 and have my way with it. I have installed ipgrab so I can see for myself the information transmitted on rl0 and tun0. I also plan to try thunderbird (*sigh* I have to use X), to see if there is any difference between it's connection and pine's Thanks again, caleb. P.S - as for hollywood movies, 'Takedown' - enough said :) -- There is no spoon -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.13.13/200 - Release Date: 12/14/2005 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: argh with freebsd's networking!
I've been a big fan of FreeBSD for a few years now, expect for the fact that getting a NIC is always a gamble. Since time is limtied (and most costly) I can't afford to spend another minute trying to get my new laptop up and running with FreeBSD. trying to have modern laptop running anything other than windows is always a gamble. it's not FreeBSD specific :) I've recently purchased a laptop (sager 3880 -- very nice so far) and have had no success getting either the rj-45 network interface ot the wireless interface (Intel 2915abg) to work. When I run the install, it does detect a without dmesg output i (and others) can't tell you much. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: argh with freebsd's networking!
Well, after a bit of searching it seems you have Marvell Yukon Gigabit ethernet. I have a similar controller on my Asus motherboard, and it works with: device sk in the kernel config. However, I am not positive this driver will work for you, as the chipset is slightly different. it is compiled in GENERIC kernel and nothing was detected. if it's similar chip but has different PCI ID adding it to driver may be enough. or may be not. today - i can't see ANY new portable computer on market that have normal, compatible hardware. my friend recently bought ACER notebook and there is no OS that supports everything except windows XP. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song)
-Original Message- From: Sasa Stupar [mailto:[EMAIL PROTECTED] Sent: Thursday, December 15, 2005 12:34 AM To: Ted Mittelstaedt; [EMAIL PROTECTED]; Drew Tomlinson Cc: freebsd-questions@freebsd.org Subject: RE: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song) Ted Hmmm, here is test with iperf what I have done with and without polling: ** Client connecting to 192.168.1.200, TCP port 5001 TCP window size: 8.00 KByte (default) [1816] local 192.168.10.249 port 1088 connected with 192.168.1.200 port 5001 [ ID] Interval Transfer Bandwidth [1816] 0.0-10.0 sec 108 MBytes 90.1 Mbits/sec This is when I use Device polling option on m0n0. If I disable this option then my transfer is worse: Client connecting to 192.168.1.200, TCP port 5001 TCP window size: 8.00 KByte (default) [1816] local 192.168.10.249 port 1086 connected with 192.168.1.200 port 5001 [ ID] Interval Transfer Bandwidth [1816] 0.0-10.0 sec 69.7 MBytes 58.4 Mbits/sec *** BTW: my router is m0n0wall (FBSD 4.11). what are the cpu speeds and operating systems of all devices in the packet path, what is the make and model of switchs in use, provide dmesg output of the bsd box, a network diagram of the setup, etc. etc. etc. The above test results are not replicatable and thus, worthless. Useful test results would allow a reader to build an exact duplicate of your setup, config it identically, and get identical results. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pam_mysql problem
Hi, I have an issue when using pam_mysql. I'm using it with ssh and it is unable to find the library after a reboot. After my machine reboots, I have to manually restart sshd in order for it to find the library. This leads me to believe it's related to when ldconfig is run, but I'm pretty stumped and can't figure out exactly what needs to be done to fix it. I initially had an entry for the library in my pam config as pam_mysql.so which didn't work, so I tried copying it to /usr/lib. That didn't work, so I tried using the full path to pam_mysql.so. This still isn't working. Here is part of my pam config and a syslog entry: /etc/pam.d/sshd: authsufficient /usr/local/lib/pam_mysql.so config_file=/usr/local/etc/pam-unix.conf Dec 16 06:29:07 tinker sshd[1008]: in openpam_load_module(): no /usr/local/lib/pam_mysql.so found So does anyone have some suggestions as to why this is happening? I found something from 2003 about it but the guy asked for an offline response :( Thanks, Scott -- [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
PAM and OPIE and su
Hey all, this is sort of a wierd question, but bear with me. I notice that pam_securetty has a function that allows people to have to be secure before it will let them do something (for example, use login as root). I've recently enabled telnetd on my system because of people trapped behind library terminals at school, or behind retarded proxies on computer labs where ssh apps are not installed. The issue, of course, is that there's still technically the possibility of someone using su(1) as a wheel user, over a session which is now insecure. What I'd like to be able to do is be able to know which sessions are ssh'd, and which sessions are telnet'd, and either require OTP for the ones which HAVE been used for telnet -- or allow normal passwords for the SSHable ones. This would probably require modifications to either telnetd or sshd, as most of the playing I've done with PS to make a proof-of-concept shows both daemons as listing their terminals as ??, as opposed to showing the terminalid's being used. If nothing else, a PAM module that can tell what method a user is in via would be useful. Any ideas? -Dan -- She's NOT my girlfriend! -Dan Mahoney, Quite a bit recently. 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]
Order of rc file execution
Hello, I use a GBDE-encrypted /var partition which i attach and mount during boot in rc.local. Now this has worked flawlessly until my last portmanager -u run, after which the following happens during the boot sequence: - /etc/rc.d/ldconfig writes /var/run/ld.so.hints and /var/run/ld-elf.so.hints - /etc/rc.d/local attaches and mounts my encrypted /var partition - every subsequent program fails to start up because it cannot find any dynamic library it needs due to the hidden /var/run/ld*.so.hints As an ugly workaround i copied the ld*.so.hints to the encrypted /var/run, but obviously it is better to run /etc/rc.d/local before /etc/rc.d/ldconfig. I understand I can achieve this by changing the line # BEFORE: LOGIN in local to # BEFORE: ldconfig and change the REQUIRE line too to avoid a circular dependency. I'd just like to ask the list whether there is a way which does not require changing system-supplied scripts. I'd prefer making my edits in a centralized way (for instance, editing something like /etc/rc.local) instead of something under rc.d. Thanks Helge -- Helge Preuss Freelance Software Developer +49 177 2262 484 [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: Order of rc file execution
Helge Preuss wrote: I use a GBDE-encrypted /var partition which i attach and mount during boot in rc.local. why don't you use /etc/rc.d/gbde? (btw, which version of FBSD?). As an ugly workaround i copied the ld*.so.hints to the encrypted /var/run, but obviously it is better to run /etc/rc.d/local before /etc/rc.d/ldconfig. I understand I can achieve this by changing the line # BEFORE: LOGIN in local to # BEFORE: ldconfig and change the REQUIRE line too to avoid a circular dependency. I'd just like to ask the list whether there is a way which does not require changing system-supplied scripts. I'd prefer making my edits in a centralized way (for instance, editing something like /etc/rc.local) instead of something under rc.d. Option 1: seems to be use /etc/rc.d/gbde to mount your /var Option 2: seems to be create your script under /etc/rc.d with the desired BEFORE line. This doesn't change system supplied scripts, but when you do mergemaster then you will be asked if you want to delete this stale script. Cheers, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt Subject ID: 9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72 Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Ebay Auction Win
Ebay Item #6574118600 From: [EMAIL PROTECTED] Date: 2005/12/15 Thu PM 11:28:35 EST To: freebsd-questions@freebsd.org Subject: Ebay Auction Win Dear CatBecca, I won you Ebay Auction for a Jolly N- Bank. I paid and would like to receive this item. Sincerely, George Varshock geological1 The mind boggles how you managed to screw up this email :) Kris more to the point, WHAT IS a ' jolly N- Bank ' ??? Ought we all to have one...? Off-Post AGAIN !!! Deej ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
swap - 2 HDs
Hi list, I have a machine with: dual processor AMD 64 bits, 4 GB RAM and 2 HDs SCSI 73 GB. How can I configure the swap area ? Is It recommended to configure swap area in both HDs ?? How large ?? Aguiar ___ Yahoo! doce lar. Faça do Yahoo! sua homepage. http://br.yahoo.com/homepageset.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Order of rc file execution
I use a GBDE-encrypted /var partition which i attach and mount during boot in rc.local. why don't you use /etc/rc.d/gbde? (btw, which version of FBSD?). Heh, because I didn't know about it! Thanks, this looks like the cleanest solution. How do I use this script? If I interpret the source correctly, I should just set gbde_devices-auto=AUTO in /etc/rc.conf and enter my encrypted partition in the fstab? Dummy question: Where should I look to find documentation about scripts like this? I haven't found it mentioned in either the handbook or the manpages. BTW, I use 5.4. As an ugly workaround i copied the ld*.so.hints to the encrypted /var/run, but obviously it is better to run /etc/rc.d/local before /etc/rc.d/ldconfig. I understand I can achieve this by changing the line # BEFORE: LOGIN in local to # BEFORE: ldconfig and change the REQUIRE line too to avoid a circular dependency. I'd just like to ask the list whether there is a way which does not require changing system-supplied scripts. I'd prefer making my edits in a centralized way (for instance, editing something like /etc/rc.local) instead of something under rc.d. Option 1: seems to be use /etc/rc.d/gbde to mount your /var Option 2: seems to be create your script under /etc/rc.d with the desired BEFORE line. This doesn't change system supplied scripts, but when you do mergemaster then you will be asked if you want to delete this stale script. Cheers, Erik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PAM and OPIE and su
This would probably require modifications to either telnetd or sshd, as most of the playing I've done with PS to make a proof-of-concept shows both daemons as listing their terminals as ??, as opposed to showing the terminalid's being used. If I am not wrong, ssh do not use the same library as telnet to authentify on the password. I used to have OPIE installed with telnet and ssh, one time passwords were valid only for telnet, ssh never heard of it. In fact, I think that OPIE hooks in telnetd before the test for the password. Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: swap - 2 HDs
On Fri, Dec 16, 2005 at 09:33:57AM -0300, Aguiar Magalhaes wrote: I have a machine with: dual processor AMD 64 bits, 4 GB RAM and 2 HDs SCSI 73 GB. How can I configure the swap area ? If you haven't completed the install, make the swap during the install when you configure the disks. If you've already finished the install, the Handbook has a section[0] describing methods for adding swap. Is It recommended to configure swap area in both HDs ?? I don't see the point -- swap is where pages that don't fit in your real memory go. It's less optimal than real memory in terms of latency, but I don't see how two disks would make swap performance much better. How large ?? I'd suggest 1-4G of swap depending on whether you need to read full dumps of the kernel/memory for debugging. If you don't, you'll probably be fine with a lesser amount of swap, unless you'll be running applications which will overload the memory. [0] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-space.html -- o--{ Will Maier }--o | jabber:[EMAIL PROTECTED] | email:[EMAIL PROTECTED] | | [EMAIL PROTECTED] | [EMAIL PROTECTED] | *--[ BSD Unix: Live Free or Die ]--* ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song)
--On 16. december 2005 3:36 -0800 Ted Mittelstaedt [EMAIL PROTECTED] wrote: -Original Message- From: Sasa Stupar [mailto:[EMAIL PROTECTED] Sent: Thursday, December 15, 2005 12:34 AM To: Ted Mittelstaedt; [EMAIL PROTECTED]; Drew Tomlinson Cc: freebsd-questions@freebsd.org Subject: RE: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song) Ted Hmmm, here is test with iperf what I have done with and without polling: ** Client connecting to 192.168.1.200, TCP port 5001 TCP window size: 8.00 KByte (default) [1816] local 192.168.10.249 port 1088 connected with 192.168.1.200 port 5001 [ ID] Interval Transfer Bandwidth [1816] 0.0-10.0 sec 108 MBytes 90.1 Mbits/sec This is when I use Device polling option on m0n0. If I disable this option then my transfer is worse: Client connecting to 192.168.1.200, TCP port 5001 TCP window size: 8.00 KByte (default) [1816] local 192.168.10.249 port 1086 connected with 192.168.1.200 port 5001 [ ID] Interval Transfer Bandwidth [1816] 0.0-10.0 sec 69.7 MBytes 58.4 Mbits/sec *** BTW: my router is m0n0wall (FBSD 4.11). what are the cpu speeds and operating systems of all devices in the packet path, what is the make and model of switchs in use, provide dmesg output of the bsd box, a network diagram of the setup, etc. etc. etc. The above test results are not replicatable and thus, worthless. Useful test results would allow a reader to build an exact duplicate of your setup, config it identically, and get identical results. Ted OK. The server (192.168.1.200) is FreeBSD 5.4 with Duron 900 and 3C905C NIC; router is m0n0wall (FreeBSD 4.11) with three Intel Pro/100S Nics and Celeron 433; The user computer (192.168.10.249) is Celeron 2400 with winxp and integrated NIC Realtek 8139 series. Switch is CNET CNSH-1600. Diagram: http://me.homelinux.net/network.pdf dmesg from the router: $ dmesg Copyright (c) 1992-2005 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.11-RELEASE-p11 #0: Wed Sep 7 13:49:09 CEST 2005 [EMAIL PROTECTED]:/usr/src/sys/compile/M0N0WALL_GENERIC Timecounter i8254 frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (434.32-MHz 686-class CPU) Origin = GenuineIntel Id = 0x665 Stepping = 5 Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR real memory = 201326592 (196608K bytes) avail memory = 179142656 (174944K bytes) Preloaded elf kernel kernel at 0xc1006000. Preloaded mfs_root /mfsroot at 0xc100609c. Pentium Pro MTRR support enabled md0: Preloaded image /mfsroot 11534336 bytes at 0xc0504d9c md1: Malloc disk Using $PIR table, 8 entries at 0xc00fdef0 npx0: math processor on motherboard npx0: INT 16 interface pcib0: Intel 82443BX (440 BX) host to PCI bridge on motherboard pci0: PCI bus on pcib0 pcib1: Intel 82443BX (440 BX) PCI-PCI (AGP) bridge at device 1.0 on pci0 pci1: PCI bus on pcib1 isab0: Intel 82371AB PCI to ISA bridge at device 7.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel PIIX4 ATA33 controller port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: Intel 82371AB/EB (PIIX4) USB controller port 0xd000-0xd01f irq 11 at device 7.2 on pci0 usb0: Intel 82371AB/EB (PIIX4) USB controller on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered chip1: Intel 82371AB Power management controller port 0x5000-0x500f at device 7.3 on pci0 pci0: unknown card (vendor=0x1274, dev=0x1371) at 8.0 irq 11 fxp0: Intel 82550 Pro/100 Ethernet port 0xd800-0xd83f mem 0xd040-0xd041,0xd046-0xd0460fff irq 10 at device 15.0 on pci0 fxp0: Ethernet address 00:02:b3:62:f6:06 inphy0: i82555 10/100 media interface on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp1: Intel 82550 Pro/100 Ethernet port 0xdc00-0xdc3f mem 0xd042-0xd043,0xd0462000-0xd0462fff irq 12 at device 16.0 on pci0 fxp1: Ethernet address 00:02:b3:9c:2a:16 inphy1: i82555 10/100 media interface on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp2: Intel 82550 Pro/100 Ethernet port 0xe000-0xe03f mem 0xd044-0xd045,0xd0461000-0xd0461fff irq 7 at device 19.0 on pci0 fxp2: Ethernet address 00:02:b3:8c:e4:f6 inphy2: i82555 10/100 media interface on miibus2 inphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pmtimer0 on isa0 fdc0: NEC 72065B or clone at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: 1440-KB 3.5 drive on fdc0 drive 0
Re: Order of rc file execution
Helge Preuss wrote: I use a GBDE-encrypted /var partition which i attach and mount during boot in rc.local. why don't you use /etc/rc.d/gbde? (btw, which version of FBSD?). Heh, because I didn't know about it! Thanks, this looks like the cleanest solution. How do I use this script? If I interpret the source correctly, I should just set gbde_devices-auto=AUTO in /etc/rc.conf and enter my encrypted partition in the fstab? Dummy question: Where should I look to find documentation about scripts like this? I haven't found it mentioned in either the handbook or the manpages. I don't know. It might not be documented so well yet, but there's an rc mailing list, try search the archive: http://lists.freebsd.org/pipermail/freebsd-rc/ Cheers, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt Subject ID: 9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72 Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
SA-LEARN Keeps crashing at DBM.pm Line 624
Posted this on the MailScanner Forum. I was told to post this also on the FreeBSD Questions Forum or SpamAssassin Forum. Hope this is the right forum Brief History on OS I'm using. FreeBSD 5.4 Perl 5.8.6 Installed MailScanner 4.44.6 and everything else using Install-Clam-SA.tar.gz from http://www.sng.ecs.soton.ac.uk/mailscanner/downloads.shtml MailScanner, SpamAssassin and Sendmail all working fine. The only problem I am having is with SA-LEARN. Problem: Since my installation of MailScanner I have always been able to use sa-learn --spam --force-expire --mbox /var/mail/spammail with no issues. Over the last couple of days, when I try to run sa-learn against my spam mailbox, I receive the following error: sa-learn --spam --force-expire --mbox /var/mail/spammail bayes: expire_old_tokens: Out of memory during ridiculously large request at /usr/local/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/BayesStore/DBM.pm line 624. I have tried everything to resolve this issue. As my last resort, I installed Portmanager on FreeBSD to manage my ports tree. When I ran Portmanager, it upgraded Perl to 5.8.7. After the upgrade, I had to run the perl-after-upgrade utility to ensure all of my apps see the new version of Perl. This is the commands I used: perl-after-upgrade perl-after-upgrade -f Even after the upgrade and I verified that MailScanner, SA and sendmail were working, I ran sa-learn --spam --force-expire --mbox /var/mail/spammail again. I still received the same error. I also have tried to separate the commands as follows: sa-learn --force-expire sa-learn --spam --mbox /var/mail/spammail It crashes with the same error after I execute the --force-expire command. Here are my stats for sa-learn --dump magic 0.000 0 3 0 non-token data: bayes db version 0.000 0 3016 0 non-token data: nspam 0.000 0 11613 0 non-token data: nham 0.000 0 309357 0 non-token data: ntokens 0.000 0 1133683248 0 non-token data: oldest atime 0.000 0 1134569167 0 non-token data: newest atime 0.000 0 0 0 non-token data: last journal sync atime 0.000 0 1134029107 0 non-token data: last expiry atime 0.000 0 345600 0 non-token data: last expire atime delta 0.000 0 90997 0 non-token data: last expire reduction count Right now, I'm using Portmanager -u -l upgrade all ports again and to verify all ports are installed correctly. I don't want to re-install Perl 5.8.7 again, since individuals have said it might fail. Any ideas on what I can do from here Marc Dufresne, Corporate IT Officer St. Lawrence Parks Commission 13740 County Road 2 Morrisburg, ON K0C 1X0 E-mail: [EMAIL PROTECTED] Voice: 613-543-3704 Ext#2455 Fax: 613-543-2847 Corporate website: www.parks.on.ca BEGIN:VCARD VERSION:2.1 X-GWTYPE:USER FN:Marc Dufresne TEL;WORK:613-543-3704 ORG:;Information Technology TEL;PREF;FAX:613-543-2847 EMAIL;WORK;PREF;NGW:[EMAIL PROTECTED] N:Dufresne;Marc TITLE:Corporate IT Officer END:VCARD ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: swap - 2 HDs
Will Maier wrote: On Fri, Dec 16, 2005 at 09:33:57AM -0300, Aguiar Magalhaes wrote: Is It recommended to configure swap area in both HDs ?? I don't see the point -- swap is where pages that don't fit in your real memory go. It's less optimal than real memory in terms of latency, but I don't see how two disks would make swap performance much better. This is contrary to the usual advice which is to split swap across disks AFAIK. I've never done any benchmarks, but my gut feeling would be that if the disks were on separate controllers, and if the machine did swap regularly then two swap partitions would be beneficial. Even on the same controller it could easily make a difference since individual IDE/SATA disks can't actually reach the performance of the channel as a whole. Given that these are large hard disks, what's 2 or 4Gb in the grand scheme? A drop in the ocean, so I would (and do) put swap on both. Of course, if the machine actually swaps regularly then investing in more RAM would give the best performance! --Alex PS If the two disks are larger than your actual needs, then you might want to consider emergency scenarios like one of your disks dieing. If, for example, you put a spare, bootable version of FreeBSD on the 2nd disk to aid recovery then that OS will need a swap partition anyway and you might as well use it regularly. $0.02 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem installing devel/pear
On Thu, Dec 15, 2005 at 02:29:06PM +1300, Tom Munro Glass wrote: Uwe, I've seen the thread on the ports@ mailing list but there doesn't seem to It seems nobody else has this problem and nobody else cares. be any mention of a solution there yet. Have you managed to fix the problem on your machines yet? Sorry, I've no solution so far. I get devel/pear installed with brute force, when I install it before php4-extensions: # pkg_delete php4-* pecl-* pear-* # portinstall lang/php4 # portinstall devel/pear # cd /usr/ports/lang/php4-extensions # make rmconfig # portinstall lang/php4-extensions But this does not really help, because as soon as I start to install other pear-ports (pear-File_Passwd, pear-Auth...), I get: === Installing tests in /usr/local/share/pear/tests/File_Passwd. install ok: channel://pear.php.net/File_Passwd-1.1.5 Segmentation fault (core dumped) *** Error code 139 I've wasted several hours now, I give up. :-( Uwe ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Order of rc file execution [solved]
Erik Norgaard wrote: Helge Preuss wrote: I use a GBDE-encrypted /var partition which i attach and mount during boot in rc.local. why don't you use /etc/rc.d/gbde? (btw, which version of FBSD?). Heh, because I didn't know about it! Thanks, this looks like the cleanest solution. How do I use this script? If I interpret the source correctly, I should just set gbde_devices-auto=AUTO in /etc/rc.conf and enter my encrypted partition in the fstab? Actually, the variable ${gbde_devices-auto} in /etc/rc.d/gdbe is almost certainly a typo. I changed it to ${gbde_devices_auto}. Additionally, one has to set gbde_lock_[device]=/path/to/lockfileor gbde_lockdir=/path/to/lockdir [where the lockfile(s) must have the encrypted slice's name and a '.lock' extension in /etc/rc.conf. Having done this, i have a solution for mounting encrypted partition at boot, which seems perfectly clean to me. Wonderful. Dummy question: Where should I look to find documentation about scripts like this? I haven't found it mentioned in either the handbook or the manpages. I don't know. It might not be documented so well yet, but there's an rc mailing list, try search the archive: http://lists.freebsd.org/pipermail/freebsd-rc/ Cheers, Erik -- Helge Preuss Freelance Software Developer +49 177 2262 484 [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Applying short cable fix (reg=ee)
Hi, I'm from Brazil. My ethernet interface is a sis. During boot it sends the message: sis0: Applying short cable fix (reg=ee) What's it ? Help me ! --- -- sis - || || The sis(4) driver supports Silicon Integrated Systems SiS 900 and SiS 7016 based Fast Ethernet adapters and embedded controllers, as well as Fast Ethernet adapters based on the National Semiconductor DP83815 (MacPhyter) chip. Supported adapters include: @Nifty FNECHARD IFC USUP-TX MELCO LGY-PCI-TXC Netgear FA311-TX (DP83815) Netgear FA312-TX (DP83815) SiS 630, 635, and 735 motherboard chipsets - Yahoo! doce lar. Faça do Yahoo! sua homepage. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: swap - 2 HDs
Will Maier wrote: On Fri, Dec 16, 2005 at 09:33:57AM -0300, Aguiar Magalhaes wrote: Is It recommended to configure swap area in both HDs ?? I don't see the point -- swap is where pages that don't fit in your real memory go. It's less optimal than real memory in terms of latency, but I don't see how two disks would make swap performance much better. This is contrary to the usual advice which is to split swap across disks AFAIK. I've never done any benchmarks, but my gut feeling would be that if the disks were on separate controllers, and if the machine did swap regularly then two swap partitions would be beneficial. Even on the same controller it could easily make a difference since individual IDE/SATA disks can't actually reach the performance of the channel as a whole. From observation one can see that freebsd use the swap-partitions equally. You probarly do want to make swap-partitions on all disks, but you may later want to swapoff what is on the most busy disk if the disks are unequally busy. -- Lars Given that these are large hard disks, what's 2 or 4Gb in the grand scheme? A drop in the ocean, so I would (and do) put swap on both. Of course, if the machine actually swaps regularly then investing in more RAM would give the best performance! --Alex PS If the two disks are larger than your actual needs, then you might want to consider emergency scenarios like one of your disks dieing. If, for example, you put a spare, bootable version of FreeBSD on the 2nd disk to aid recovery then that OS will need a swap partition anyway and you might as well use it regularly. $0.02 ___ 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: good nic for server??? 3com 3C2000-T driver support in freebsd 5.4 ????
kyr wrote: I want to ask if 3com 3C2000-T network adapter is suported by freebsd 5.4 (i know that it is suported by release 6 but our server has 5.4). Anyway does anybody have any suggestion for a good network card for a server? We DONT need gigabit but if it worth the money ... ok thanks Kyriakos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] As someone as already replied: HANDS-DOWN, best 100mbit card I've ever used (regardless of O/S) and best supported by various O/S's for that matter is the Intel EtherExpress Pro 100 cards, specifically the older Pro 100/B's if you can get them - used to buy them in bulk lots on ebay for like $5-$10 / each, retail/new they run about $45/each but are worth every cent. Stability and performance from these cards are rock solid. They make use of the fxp driver, and a few versions back (quite a few actually) FreeBSD moved over from an fxp driver that ran 'standalone', to a newer fxp driver which now requires the mIIbus driver too - I don't know what ramifications if any this has had on performance - but as far as the hardware goes I still trust these cards explicitly. Not know the differences in the code well enough to tell you what/why and can't even remember when that changed actually... but I've been using these intel boards and the fxp driver on FreeBSD since 2.2.1-release without a single hitch, including used boards from ebay ;) lol - come to think of it, still have a couple little 486 running 2.2.x branch around here with these intel cards in them :) - for what it's worth, they're still running (uh, not anything critical mind you, the rest of the machine/software's fairly dated for that). I have however had horrible experiences with d-link, nvidia, admtek, and various realtek chipsets on 'generic' cheap cards... bottom line, you generally pay for what you get - and if you want solid 100mbps performance, you can bank on Intel net cards. I don't know about 3Com, some cards I've had great luck with, others a pain in the ass... specifically the 3C905 series, rev 'A' was ok, 'C' too - but if ya had a revision 'B' - watch out kinda thing... gave up on using 3Com cards way back because of that - wait till you know the product's solid and complete before you release it, re-releasing stuff or fixing it after you sold it is a micrsoft thing, not something I'd expect from my hardware manufacturer. Just my two cents, but hope it helps. -- 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: Applying short cable fix (reg=ee)
Thiago Esteves [EMAIL PROTECTED] wrote: Hi, I'm from Brazil. My ethernet interface is a sis. During boot it sends the message: sis0: Applying short cable fix (reg=ee) What's it ? Help me ! Excerpt from /usr/src/sys/pci/if_sis.c: /* * Some DP83815s experience problems when used with short * ( 30m/100ft) Ethernet cables in 100BaseTX mode. This * sequence adjusts the DSP's signal attenuation to fix the * problem. */ Fabian -- http://www.fabiankeil.de/ signature.asc Description: PGP signature
C++ compile error
Dear list, I try to compile a hello world C++ program in FreeBSD 6.0, but get an error as below: [EMAIL PROTECTED] ~/cpp]% CC -o hello hello.C hello.C: In function `int main()': hello.C:5: error: `cout' undeclared (first use this function) hello.C:5: error: (Each undeclared identifier is reported only once for each function it appears in.) hello.C:5: error: `endl' undeclared (first use this function) I noticed that iostream file is located in /usr/include/c++/3.4/iostream, I guess my CC compiler cannot find this head file. Is it true? And how can I fix this problem? Your advice is appreciated. Thanks in advance. ==quote of hello world code== #include iostream int main() { cout Hello World! endl; return 0; } == end of quote== Regards, David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Newbie problems with svscan and arp
Hi, I am trying my hand at FreeBSD administration and would greatly appreciate assistance with some problems I am facing with setting up mail services and the network properly. My system has 2 network cards (rl0 and dc0). rl0 has been assigned a local IP (192.168.10.37/255.255.255.0) and dc0 has been assigned a real IP (202.54.195.85/255.255.255.240). The gateway is 202.54.195.81 and the name server 202.54.1.30. After booting my console starts getting the following message : 192.168.10.1 is on rl0 but got reply from dc0. What is the error I might be committing ? The local router is located at 192.168.10.55, but I don't know where to put this information. Despite the message, I am able to access the internet smoothly. Further, I am trying to set up qmail as the MTA. Qmail apparantly needs svscan from the daemontools port to be running. My rc.local calls /usr/local/bin/svscanboot at system startup, but when I do 'ps -waux | grep svscan', I get nothing. A few qmail processes are however running. How do I get svscan to start ? My rc.conf, inetd.conf, hosts and /usr/local/etc/rc.d/svscan.sh files are attached. Thanks for any help. Manish Jain __ 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]
Re: Re[4]: Polling For 100 mbps Connections? (Was Re: Freebsd ThemeSong)
--- Cezar Fistik [EMAIL PROTECTED] wrote: Hello all, Or maybe FreeBSD just sucks wind? I promise you that no machine known to man can pass 150Mb/s and be 99% idle. Get a god-damned clue for pete's sake. All polling does is screw up accounting so the timings are wrong. At best there's a marginal difference in performance. You still have to process the packets. Lets see, this Test would mean that his box could handle 100 x 150Mb/s, or 15Gb/s. Thats quite a little router you have there! lol. I have to recognize that I didn't follow the thread very carefuly and I propbably missed some posts. I just wanted to say that when using freebsd as a pure router using intel cards, polling realy helps. I've noticed 10-20% CPU utilization decrease with polling enabled. Second, I didn't mean 150Megabytes/sec, rather Megabits/sec. Third the actual CPU load is ranging from 0-4% (according to top), but with an average of 1%. And finally I just did a test and enabled polling on that box. The CPU idle state immediately dropped to 88% while interrupts increased to 10-12%. P.S Danial, have a look at this http://www.webopedia.com/TERM/M/Mbps.html With all due respect, you haven't a clue. Do you know math? 99% idle implies 1% utilization. So 150 Mega Bits per second X 100 is 15gigaBITS per seconds is the capacity of your system, using match. Which is stupid. Anyone who thinks that is accurate is just plain stupid. THE MEASUREMENTS DON'T WORK WITH POLLING ENABLED. Are you able to understand that? DT __ 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]
Re: C++ compile error
David Miao wrote: Dear list, I try to compile a hello world C++ program in FreeBSD 6.0, but get an error as below: [EMAIL PROTECTED] ~/cpp]% CC -o hello hello.C hello.C: In function `int main()': hello.C:5: error: `cout' undeclared (first use this function) hello.C:5: error: (Each undeclared identifier is reported only once for each function it appears in.) hello.C:5: error: `endl' undeclared (first use this function) I noticed that iostream file is located in /usr/include/c++/3.4/iostream, I guess my CC compiler cannot find this head file. Is it true? And how can I fix this problem? Your advice is appreciated. Thanks in advance. ==quote of hello world code== #include iostream int main() { cout Hello World! endl; return 0; } == end of quote== Regards, David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] gcc assumes a '.C' file is ANSI C, not C++, try: mv hello.C hello.cpp gcc -o hello.exe hello.cpp simple hellow world: #include iostream.h using namespace std; int main(int argc,char* argv[]) { cout Hello World! endl; return 0; } // end of file Should work - reply if not :) -- 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: C++ compile error
David Miao wrote: Dear list, I try to compile a hello world C++ program in FreeBSD 6.0, but get an error as below: [EMAIL PROTECTED] ~/cpp]% CC -o hello hello.C hello.C: In function `int main()': hello.C:5: error: `cout' undeclared (first use this function) hello.C:5: error: (Each undeclared identifier is reported only once for each function it appears in.) hello.C:5: error: `endl' undeclared (first use this function) I noticed that iostream file is located in /usr/include/c++/3.4/iostream, I guess my CC compiler cannot find this head file. Is it true? And how can I fix this problem? Your advice is appreciated. Thanks in advance. ==quote of hello world code== #include iostream int main() { cout Hello World! endl; return 0; } == end of quote== Regards, David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Also, noticed your code is flawed, you never used a namespace, nor explicitly stated one. cout is part of the 'std' namespace, so either ' using namespace std;' for global/local use of namespace, OR do 'std::cout ' instead. Try the hello.cpp I sent you in the last email, that one should work for ya :) -- 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: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song)
--- Sasa Stupar [EMAIL PROTECTED] wrote: --On 15. december 2005 6:33 -0800 Drew Tomlinson [EMAIL PROTECTED] wrote: On 12/15/2005 12:33 AM Sasa Stupar wrote: --On 14. december 2005 20:01 -0800 Ted Mittelstaedt [EMAIL PROTECTED] wrote: -Original Message- From: Danial Thom [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 14, 2005 11:14 AM To: Ted Mittelstaedt; Drew Tomlinson Cc: freebsd-questions@freebsd.org Subject: RE: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song) Well, if polling does no good for fxp, due to the hardware doing controlled interrupts, then why does the fxp driver even let you set it as an option? And why have many people who have enabled it on fxp seen an improvement? They haven't, freebsd accounting doesn't work properly with polling enabled, and they don't have the ability to know if they are getting better performance, because they, like you, have no clue what they're doing. How about all the idiots running MP with FreeBSD 4.x, when we know its just a waste of time? they all think they're getting worthwhile performance, because they are clueless. I would call them idiots if they are running MP under FreeBSD and assuming that they are getting better performance without actually testing for it. But if they are just running MP because they happen to be using an MP server, and they want to see if it will work or not, who cares? Maybe its tunable because they guy who wrote the driver made it a tunable? duh. I've yet to see one credible, controlled test that shows polling vs properly tuned interrupt-driven. Hm, OK I believe that. As I recall I asked you earlier to post the test setup you used for your own tests proving that polling is worse, and you haven't done so yet. Now you are saying you have never seen a credible controlled test that shows polling vs interrupt-driven. So I guess either you were blind when you ran your own tests, or your own tests are not credible, controlled polling vs properly tuned interrupt-driven. As I have been saying all along. Now your agreeing with me. The only advantage of polling is that it will drop packets instead of going into livelock. The disadvantage is that it will drop packets when you have momentary bursts that would harmlessly put the machine into livelock. Thats about it. Ah, now I think suddenly I see what the chip on your shoulder is. You would rather have your router based on FreeBSD go into livelock while packets stack up, than drop anything. You tested the polling code and found that yipes, it drops packets. What may I ask do you think that a Cisco or other router does when you shove 10Mbt of traffic into it's Ethernet interface destined for a host behind a T1 that is plugged into the other end? (and no, source-quench is not the correct answer) I think the scenario of it being better to momentary go into livelock during an overload is only applicable to one scenario, where the 2 interfaces in the router are the same capacity. As in ethernet-to-ethernet routers. Most certainly not Ethernet-to-serial routers, like what most routers are that aren't on DSL lines. If you have a different understanding then please explain. I've read those datasheets as well and the thing I don't understand is that if you are pumping 100Mbt into an Etherexpress Pro/100 then if the card will not interrupt more than this throttled rate you keep talking about, then the card's interrupt throttling is going to limit the inbound bandwidth to below 100Mbt. Wrong again, Ted. It scares me that you consider yourself knowlegable about this. You can process # interrupts X ring_size packets; not one per interrupt. You're only polling 1000x per second (or whatever you have hz set to), so why do you think that you have to interrupt for every packet to do 100Mb/s? I never said anything about interrupting for every packet, did I? Of course not since I know what your talking about. However, it is you who are throwing around the numbers - or were in your prior post - regarding the fxp driver and hardware. Why should I have to do the work digging around in the datasheets and doing the math? Since you seem to be wanting to argue this from a theory standpoint, then your only option is to === message truncated === message too large for stupid Yahoo mailer Unfortunately your test is not controlled, which is pretty typical of most OS testers. Firstly, efficiency is the goal. How many packets you can pump through a socket interface is not an efficiency measurement. What was the load on the machine during your test? how many polls per second were being used? What was the interrupt rate for the non-polling test? You can't
Re: C++ compile error
On Fri, December 16, 2005 10:33 am, Nathan Vidican wrote: David Miao wrote: Dear list, I try to compile a hello world C++ program in FreeBSD 6.0, but get an error as below: [EMAIL PROTECTED] ~/cpp]% CC -o hello hello.C hello.C: In function `int main()': hello.C:5: error: `cout' undeclared (first use this function) hello.C:5: error: (Each undeclared identifier is reported only once for each function it appears in.) hello.C:5: error: `endl' undeclared (first use this function) I noticed that iostream file is located in /usr/include/c++/3.4/iostream, I guess my CC compiler cannot find this head file. Is it true? And how can I fix this problem? Your advice is appreciated. Thanks in advance. ==quote of hello world code== #include iostream int main() { cout Hello World! endl; return 0; } == end of quote== Regards, David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Also, noticed your code is flawed, you never used a namespace, nor explicitly stated one. cout is part of the 'std' namespace, so either ' using namespace std;' for global/local use of namespace, OR do 'std::cout ' instead. Try the hello.cpp I sent you in the last email, that one should work for ya :) I'm not nearly as adept with C++ as I am with C, Perl, and a few other geek tools, but doesn't C++ default to the std namespace if none is specified? Perhaps this is a compiler specific behavior? Just curious. Lou -- Louis LeBlanc [EMAIL PROTECTED] Fully Funded Hobbyist, KeySlapper Extrordinaire :þ http://www.keyslapper.net Ô¿Ô¬ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SA-LEARN Keeps crashing at DBM.pm Line 624
Since my installation of MailScanner I have always been able to use sa-learn --spam --force-expire --mbox /var/mail/spammail with no issues. Over the last couple of days, when I try to run sa-learn against my spam mailbox, I receive the following error: sa-learn --spam --force-expire --mbox /var/mail/spammail bayes: expire_old_tokens: Out of memory during ridiculously large request at /usr/local/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/BayesStore/DBM.pm line 624. uname -a - how much memory it allows? anyway - something is wrong in spamassassin so it needs so much memory - and that's question for spamassassin authors. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: C++ compile error
On 12/16/05, Nathan Vidican [EMAIL PROTECTED] wrote: David Miao wrote: Dear list, I try to compile a hello world C++ program in FreeBSD 6.0, but get an error as below: [EMAIL PROTECTED] ~/cpp]% CC -o hello hello.C hello.C: In function `int main()': hello.C:5: error: `cout' undeclared (first use this function) hello.C:5: error: (Each undeclared identifier is reported only once for each function it appears in.) hello.C:5: error: `endl' undeclared (first use this function) I noticed that iostream file is located in /usr/include/c++/3.4/iostream, I guess my CC compiler cannot find this head file. Is it true? And how can I fix this problem? Your advice is appreciated. Thanks in advance. ==quote of hello world code== #include iostream int main() { cout Hello World! endl; return 0; } == end of quote== Regards, David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Also, noticed your code is flawed, you never used a namespace, nor explicitly stated one. cout is part of the 'std' namespace, so either ' using namespace std;' for global/local use of namespace, OR do 'std::cout ' instead. Try the hello.cpp I sent you in the last email, that one should work for ya :) -- Nathan Vidican [EMAIL PROTECTED] Windsor Match Plate Tool Ltd. http://www.wmptl.com/ Nathan, I'm learning c++ programming language by using The complete c++ training course - second edition (Harvey Deitel Paul Deitel), hello world is the first program in this book. I'm totally puzzled by this complex language when I compile my first program. Is this book out of date? This post may off topic of FreeBSD, sorry to other people... Regards, David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SA-LEARN Keeps crashing at DBM.pm Line 624
On Fri, 16 Dec 2005, Wojciech Puchar wrote: Since my installation of MailScanner I have always been able to use sa-learn --spam --force-expire --mbox /var/mail/spammail with no issues. Over the last couple of days, when I try to run sa-learn against my spam mailbox, I receive the following error: sa-learn --spam --force-expire --mbox /var/mail/spammail bayes: expire_old_tokens: Out of memory during ridiculously large request at /usr/local/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/BayesStore/DBM.pm line 624. uname -a - how much memory it allows? anyway - something is wrong in spamassassin so it needs so much memory - and that's question for spamassassin authors. Is this an assumption or fact? If fact, please point us to the data. Best regards, Chris Never create a problem for which you do not have the answer. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SA-LEARN Keeps crashing at DBM.pm Line 624
On Fri, 16 Dec 2005 08:24:19 -0500 Marc Dufresne [EMAIL PROTECTED] wrote: Over the last couple of days, when I try to run sa-learn against my spam mailbox, I receive the following error: sa-learn --spam --force-expire --mbox /var/mail/spammail bayes: expire_old_tokens: Out of memory during ridiculously large request at /usr/local/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/BayesStore/DBM.pm line 624. Try to run sa-learn with same arguments on other mbox(es) (e.g. from spamarchive.org). Do you still get the error? -- Adi Pircalabu (PGP Key ID 0x04329F5E) -- This message was scanned for spam and viruses by BitDefender. For more information please visit http://www.bitdefender.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: atheros wireless setup
On 2005-12-15 22:34, Jim Pazarena [EMAIL PROTECTED] wrote: I can't believe how incredibly easy it was to get the wireless going in my laptop. add: if_ath_load=YES to /boot/loader.conf and: ifconfig_ath0=dhcp to /etc/rc.conf and it works ! please tell me where I can read up on how to control the wireless link. Such as how to enter the SSID, and connect speed etc. I started by reading this Handbook section: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html One thing that you may want to note, if you are not *ALWAYS* around a known wireless network, is that making changes to /etc/rc.conf may cause the startup process to print harmless, but annoying nevertheless, warnings when ath0 is down. This is especially true if your wireless NIC is not on-board, but a PC-CARD that you sometimes use (like mine). In this case, you can 'override' the /etc/rc.conf settings by making a small shell script like this (almost identical to the one I use to bring up ath0 on my laptop): 1 | export ifconfig_ath0=inet DHCP ssid 'XX' \ 2 | wepmode on weptxkey 1 wepkey '1:0xXX' 3 | 4 | /etc/rc.d/netif stop # Stop all other interfaces. 5 | /etc/rc.d/netif start ath0# Bring up ath0. 6 | if test $? -eq 0 ; then 7 | echo 2 ath0: ERROR: Could not bring up interface. 8 | exit 1 9 | fi 10 | 11 | echo -n Waiting for ath0 to associate 12 | _timeout=0 13 | _associated=NO 14 | while [ $_timeout -lt 30 ]; do 15 | status=$( ifconfig ath0 21 | grep status: |\ 16 | awk '{print $2}' ) 17 | if [ X${status} = Xassociated ]; then 18 | _associated=YES 19 | break 20 | fi 21 | echo -n '.' 22 | sleep 1 23 | _timeout=$(( $_timeout + 1 )) 24 | done 25 | if [ X${_associated} = XYES ]; then 26 | echo ok 27 | else 28 | echo '' 29 | echo 2 ath0: ERROR: Timed out while waiting to associate. 30 | /etc/rc.d/netif stop ath0 31 | exit 1 32 | fi By setting ifconfig_ath0 in the script itself (see lines 1-2), you don't have to modify `/etc/rc.conf'. The /etc/rc.d/netif script will be happy by simply finding the appropriate stuff in its running environment :-) I hope this helps, - Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: C++ compile error
On 2005-12-16 23:09, David Miao [EMAIL PROTECTED] wrote: Dear list, I try to compile a hello world C++ program in FreeBSD 6.0, but get an error as below: [EMAIL PROTECTED] ~/cpp]% CC -o hello hello.C hello.C: In function `int main()': hello.C:5: error: `cout' undeclared (first use this function) hello.C:5: error: (Each undeclared identifier is reported only once for each function it appears in.) hello.C:5: error: `endl' undeclared (first use this function) ==quote of hello world code== #include iostream int main() { cout Hello World! endl; return 0; } == end of quote== You have to add a line like this: using namespace std; at the toplevel of your sources. The example then works: [EMAIL PROTECTED]:51]/tmp$ CC hello.C [EMAIL PROTECTED]:52]/tmp$ ./a.out Hello World! [EMAIL PROTECTED]:52]/tmp$ diff -u hello.C.orig hello.C --- hello.C.origFri Dec 16 18:51:26 2005 +++ hello.C Fri Dec 16 18:51:58 2005 @@ -1,5 +1,7 @@ #include iostream +using namespace std; + int main() { cout Hello World! endl; [EMAIL PROTECTED]:52]/tmp$ On 2005-12-16 10:31, Nathan Vidican [EMAIL PROTECTED] wrote: gcc assumes a '.C' file is ANSI C, not C++, try: mv hello.C hello.cpp gcc -o hello.exe hello.cpp Not really. But it's a very good idea to use something that doesn't only differ in the case of the name from plain ANCI C, because transferring the files from Unix to other operating systems (i.e. Windows) may lose the case of the names some times :-) On 2005-12-16 10:41, Louis J. LeBlanc [EMAIL PROTECTED] wrote: I'm not nearly as adept with C++ as I am with C, Perl, and a few other geek tools, but doesn't C++ default to the std namespace if none is specified? It doesn't :-( On 2005-12-17 00:13, David Miao [EMAIL PROTECTED] wrote: Nathan, I'm learning c++ programming language by using The complete c++ training course - second edition (Harvey Deitel Paul Deitel), hello world is the first program in this book. I'm totally puzzled by this complex language when I compile my first program. Is this book out of date? That's a pretty old book. Judging from the sheer number of books these authors have listed in Amazon, I think it's pretty safe to consider it very out of date :( This post may off topic of FreeBSD, sorry to other people... That's ok. The list is, after all, for general FreeBSD questions :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to get best results from FreeBSD-questions
How to get the best results from FreeBSD questions. === Last update $Date: 2005/08/10 02:21:44 $ This is a regular posting to the FreeBSD questions mailing list. If you got it in answer to a message you sent, it means that the sender thinks that at least one of the following things was wrong with your message: - You left out a subject line, or the subject line was not appropriate. - You formatted it in such a way that it was difficult to read. - You asked more than one unrelated question in one message. - You sent out a message with an incorrect date, time or time zone. - You sent out the same message more than once. - You sent an 'unsubscribe' message to FreeBSD-questions. If you have done any of these things, there is a good chance that you will get more than one copy of this message from different people. Read on, and your next message will be more successful. This document is also available on the web at http://www.lemis.com/questions.html. = Contents: I:Introduction II: How to unsubscribe from FreeBSD-questions III: Should I ask -questions or -hackers? IV: How to submit a question to FreeBSD-questions V:How to answer a question to FreeBSD-questions I: Introduction === This is a regular posting aimed to help both those seeking advice from FreeBSD-questions (the newcomers), and also those who answer the questions (the hackers). Note that the term hacker has nothing to do with breaking into other people's computers. The correct term for the latter activity is cracker, but the popular press hasn't found out yet. The FreeBSD hackers disapprove strongly of cracking security, and have nothing to do with it. In the past, there has been some friction which stems from the different viewpoints of the two groups. The newcomers accused the hackers of being arrogant, stuck-up, and unhelpful, while the hackers accused the newcomers of being stupid, unable to read plain English, and expecting everything to be handed to them on a silver platter. Of course, there's an element of truth in both these claims, but for the most part these viewpoints come from a sense of frustration. In this document, I'd like to do something to relieve this frustration and help everybody get better results from FreeBSD-questions. In the following section, I recommend how to submit a question; after that, we'll look at how to answer one. II: How to unsubscribe from FreeBSD-questions == When you subscribed to FreeBSD-questions, you got a welcome message from [EMAIL PROTECTED] In this message, amongst other things, it told you how to unsubscribe. Here's a typical message: Welcome to the freebsd-questions@freebsd.org mailing list! If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page at: http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED] (obviously, substitute your mail address for [EMAIL PROTECTED]). You can also make such adjustments via email by sending a message to: [EMAIL PROTECTED] with the word 'help' in the subject or body (don't include the quotes), and you will get back a message with instructions. You must know your password to change your options (including changing the password, itself) or to unsubscribe. Normally, Mailman will remind you of your freebsd.org mailing list passwords once every month, although you can disable this if you prefer. This reminder will also include instructions on how to unsubscribe or change your account options. There is also a button on your options page that will email your current password to you. Here's the general information for the list you've subscribed to, in case you don't already have it: FREEBSD-QUESTIONS User questions This is the mailing list for questions about FreeBSD. You should not send how to questions to the technical lists unless you consider the question to be pretty technical. Normally, unsubscribing is even simpler than the message suggests: you don't need to specify your mail ID unless it is different from the one which you specified when you subscribed. If Majordomo replies and tells you (incorrectly) that you're not on the list, this may mean one of two things: 1. You have changed your mail ID since you subscribed. That's where keeping the original message from majordomo comes in handy. For example, the sample message above shows my mail ID as [EMAIL PROTECTED] Since then, I have changed it to [EMAIL PROTECTED] If I were to try to remove [EMAIL PROTECTED] from the list, it would fail: I would have to specify the name with which I joined. 2. You're subscribed to a mailing list which is subscribed to
The Complete FreeBSD: errata and addenda
The trouble with books is that you can't update them the way you can a web page or any other online documentation. The result is that most leading edge computer books are out of date almost before they are printed. Unfortunately, The Complete FreeBSD, published by O'Reilly, is no exception. Inevitably, a number of bugs and changes have surfaced. The Complete FreeBSD has been through a total of five editions, including its predecessor Installing and Running FreeBSD. Two of these have been reprinted with corrections. I maintain a series of errata pages. Start at http://www.lemis.com/errata-4.html to find out how to get the errata information. Have you found a problem with the book, or maybe something confusing? Please let me know: I'm constantly updating it. Greg ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Adding lines to /etc/rc.conf during sysinstall wihout being REMOVED
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does anyone know the correct way to add lines to rc.conf without sysinstall commenting them out and prepending REMOVED to them, during an automated install.cfg routine? Currently I have a pkg I made that adds stuff like ntp.conf and rc.conf, but all the lines in my custom rc.conf are removed after the script finishes. I looked through the code for sysinstall but didn't see any way to disable this behavior (my C isn't very good). What would be the correct way to do this? I'm now having my pkg install a rc.d script which cat's /etc/rc.conf... Thanks, Josh -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDovfOV/+PyAj2L+IRAjzcAJ4lJm+8vIP3QLy/DmuxTB0b4APp1gCfbhI1 waoWrsCORg3CiQMVToAFEaI= =RlT3 -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: C++ compile error
On Fri, 2005-12-16 at 10:41 -0500, Louis J. LeBlanc wrote: On Fri, December 16, 2005 10:33 am, Nathan Vidican wrote: David Miao wrote: Dear list, I try to compile a hello world C++ program in FreeBSD 6.0, but get an error as below: [EMAIL PROTECTED] ~/cpp]% CC -o hello hello.C hello.C: In function `int main()': hello.C:5: error: `cout' undeclared (first use this function) hello.C:5: error: (Each undeclared identifier is reported only once for each function it appears in.) hello.C:5: error: `endl' undeclared (first use this function) I noticed that iostream file is located in /usr/include/c++/3.4/iostream, I guess my CC compiler cannot find this head file. Is it true? And how can I fix this problem? Your advice is appreciated. Thanks in advance. ==quote of hello world code== #include iostream int main() { cout Hello World! endl; return 0; } == end of quote== Regards, David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Also, noticed your code is flawed, you never used a namespace, nor explicitly stated one. cout is part of the 'std' namespace, so either ' using namespace std;' for global/local use of namespace, OR do 'std::cout ' instead. Try the hello.cpp I sent you in the last email, that one should work for ya :) I'm not nearly as adept with C++ as I am with C, Perl, and a few other geek tools, but doesn't C++ default to the std namespace if none is specified? Perhaps this is a compiler specific behavior? No, you have to either tell the compiler by using std::METHOD or say using namespace std; to annouce you are using std as your primary namespace. -- Harley -BEGIN GEEK CODE BLOCK- G: GCS-- d- a? C B- E+++ W+++ N++ w--- X+++ b++ G e* r x+ z+ --END GEEK CODE BLOCK-- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie problems with svscan and arp
* On 16/12/05 07:23 -0800, manish jain wrote: Hi, I am trying my hand at FreeBSD administration and would greatly appreciate assistance with some problems I am facing with setting up mail services and the network properly. My system has 2 network cards (rl0 and dc0). rl0 has been assigned a local IP (192.168.10.37/255.255.255.0) and dc0 has been assigned a real IP (202.54.195.85/255.255.255.240). The gateway is 202.54.195.81 and the name server 202.54.1.30. After booting my console starts getting the following message : 192.168.10.1 is on rl0 but got reply from dc0. What is the error I might be committing ? The local router is located at 192.168.10.55, but I don't know where to put this information. Despite the message, I am able to access the internet smoothly. The cables connecting to dc0 and rl0 are both connected to the same switch/hub, yes? Why? I think you have a connection to the Internet also connected to the switch, yes? Further, I am trying to set up qmail as the MTA. Qmail apparantly needs svscan from the daemontools port to be running. My rc.local calls /usr/local/bin/svscanboot at system startup, but when I do 'ps -waux | grep svscan', I get nothing. A few qmail processes are however running. How do I get svscan to start ? RTFM for qmail, I guess. I only know about Exim - http://www.exim.org ;) Seriously though, if you look at /usr/local/etc/rc.d/svscan.sh, you'll probably see that you need to add the following to /etc/rc.conf: svscan_enable=YES If you do that, you need to edit rc.local and remove that svscan entry. It's my guess, sir. My rc.conf, inetd.conf, hosts and /usr/local/etc/rc.d/svscan.sh files are attached. They did not get attached, as is protocol on most lists. You need to include them in-line in the message body. -Wash http://www.netmeister.org/news/learn2quote.html -- +==+ |\ _,,,---,,_ | Odhiambo Washington[EMAIL PROTECTED] Zzz /,`.-'`'-. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 +==+ Goldenstern's Rules: (1) Always hire a rich attorney (2) Never buy from a rich salesman. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SA-LEARN Keeps crashing at DBM.pm Line 624
On Friday 16 December 2005 08:18 am, Adi Pircalabu wrote: On Fri, 16 Dec 2005 08:24:19 -0500 Marc Dufresne [EMAIL PROTECTED] wrote: Over the last couple of days, when I try to run sa-learn against my spam mailbox, I receive the following error: sa-learn --spam --force-expire --mbox /var/mail/spammail bayes: expire_old_tokens: Out of memory during ridiculously large request at /usr/local/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/BayesStore/D BM.pm line 624. Try to run sa-learn with same arguments on other mbox(es) (e.g. from spamarchive.org). Do you still get the error? They updated spam assassin yesterday to fix a problem with a missing dependancy for sa-update. I would cvsup and update it. Your problem may be part of the problem. Even if it doesn't help, you need to be using what eveyone is now using. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: C++ compile error
Giorgos Keramidas wrote: On 2005-12-16 23:09, David Miao [EMAIL PROTECTED] wrote: Dear list, I try to compile a hello world C++ program in FreeBSD 6.0, but get an error as below: [EMAIL PROTECTED] ~/cpp]% CC -o hello hello.C hello.C: In function `int main()': hello.C:5: error: `cout' undeclared (first use this function) hello.C:5: error: (Each undeclared identifier is reported only once for each function it appears in.) hello.C:5: error: `endl' undeclared (first use this function) ==quote of hello world code== #include iostream int main() { cout Hello World! endl; return 0; } == end of quote== You have to add a line like this: using namespace std; at the toplevel of your sources. The example then works: [EMAIL PROTECTED]:51]/tmp$ CC hello.C [EMAIL PROTECTED]:52]/tmp$ ./a.out Hello World! [EMAIL PROTECTED]:52]/tmp$ diff -u hello.C.orig hello.C --- hello.C.origFri Dec 16 18:51:26 2005 +++ hello.C Fri Dec 16 18:51:58 2005 @@ -1,5 +1,7 @@ #include iostream +using namespace std; + int main() { cout Hello World! endl; [EMAIL PROTECTED]:52]/tmp$ On 2005-12-16 10:31, Nathan Vidican [EMAIL PROTECTED] wrote: gcc assumes a '.C' file is ANSI C, not C++, try: mv hello.C hello.cpp gcc -o hello.exe hello.cpp Not really. But it's a very good idea to use something that doesn't only differ in the case of the name from plain ANCI C, because transferring the files from Unix to other operating systems (i.e. Windows) may lose the case of the names some times :-) On 2005-12-16 10:41, Louis J. LeBlanc [EMAIL PROTECTED] wrote: I'm not nearly as adept with C++ as I am with C, Perl, and a few other geek tools, but doesn't C++ default to the std namespace if none is specified? It doesn't :-( On 2005-12-17 00:13, David Miao [EMAIL PROTECTED] wrote: Nathan, I'm learning c++ programming language by using The complete c++ training course - second edition (Harvey Deitel Paul Deitel), hello world is the first program in this book. I'm totally puzzled by this complex language when I compile my first program. Is this book out of date? That's a pretty old book. Judging from the sheer number of books these authors have listed in Amazon, I think it's pretty safe to consider it very out of date :( This post may off topic of FreeBSD, sorry to other people... That's ok. The list is, after all, for general FreeBSD questions :) If you want a GOOD book to start self-teaching C++, grab yourself 'C++ in 21 Days' it's a classic, but GREAT starter book. -- 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]
Closing some open ports
Greetings, I've finished installing a FreeBSD RELENG_6_0 which carries DNS/Apache/DHCP/SAMBA/TFTP Chrooted Bind9 / chrooted DHCP and tftp port is listening on the int_if only thru inetd. Apache is only serving intranet site for docs. I know too many services on one machine, but it's not my call. My problem is with SAMBA and SNMP for mrtg graph I want them to bind to specific IPs instead of listening on *:portmy sockstat -4l shows: snip root snmpd 717 6 udp4 *:161 *:* root smbd 709 21 tcp4 *:445 *:* root smbd 709 22 tcp4 *:139 *:* root nmbd 705 6 udp4 *:137 *:* root nmbd 705 7 udp4 *:138 *:* root nmbd 705 8 udp4 10.99.99.254:137 *:* root nmbd 705 9 udp4 10.99.99.254:138 *:* root nmbd 705 10 udp4 10.98.98.254:137 *:* root nmbd 705 11 udp4 10.98.98.254:138 *:* snip My general practice is always to bind each and every service to a specific IP for containing it. unless it's needed such as DHCP. I looked on samba's website first on how to make samba run as non-root unfortuantely looks that is not possible as far as I'm aware of, which is insance. Although I have hosts allow and interfaces statement in smb.conflistening only on the internal LAN. I can still scan my network with nmap from another network and get this: PORTSTATE SERVICE 139/tcp open netbios-ssn 445/tcp open microsoft-ds I can install samba inside a jail(8) but it will be still running as root and the ports will show up. Or I can put some rules in pf.conf to restrict access to whatever I want from outside. But maybe there is another way to do that, I'm all ears. All I want is to get rid of this: root smbd 709 21 tcp4 *:445 *:* root smbd 709 22 tcp4 *:139 *:* root nmbd 705 6 udp4 *:137 *:* root nmbd 705 7 udp4 *:138 *:* I can live with it running as root in my LAN, as long it doesn't show on the external interface when port scanning. Thanks in advance, -- BSDMail ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Adding lines to /etc/rc.conf during sysinstall wihout being REMOVED
Josh Endries wrote: Does anyone know the correct way to add lines to rc.conf without sysinstall commenting them out and prepending REMOVED to them, during an automated install.cfg routine? Currently I have a pkg I made that adds stuff like ntp.conf and rc.conf, but all the lines in my custom rc.conf are removed after the script finishes. I looked through the code for sysinstall but didn't see any way to disable this behavior (my C isn't very good). What would be the correct way to do this? I'm now having my pkg install a rc.d script which cat's /etc/rc.conf... could you post your install.cfg? Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pine
* caleb ([EMAIL PROTECTED]) [051215 01:39]: Thanks Gwen and Ted for your feedback. I am using an ADSL modem, basically a POTS network terminal. I am thinkng of You're welcome, and good luck. I run my own mail server myself, for very similar reasons. P.S - as for hollywood movies, 'Takedown' - enough said :) Response: Freedom Downtime. :) gwen. gamergothgeekgrrl. http://www.gw3n.com/ mtoups right now i'm thinking of going to asheville and being an old washed +up ex-activist for the rest of my days ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: swap - 2 HDs
This is contrary to the usual advice which is to split swap across disks AFAIK. I've never done any benchmarks, but my gut feeling would be that if the disks were on separate controllers, and if the machine did swap regularly then two swap partitions would be beneficial. Even on the same controller it it would be beneficial when at least two processes doing pagein/pageout. which is normal on loaded machine which needs swapping. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Adding lines to /etc/rc.conf during sysinstall wihout being REMOVED
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Erik Nørgaard wrote: Josh Endries wrote: Does anyone know the correct way to add lines to rc.conf without sysinstall commenting them out and prepending REMOVED to them, during an automated install.cfg routine? Currently I have a pkg I made that adds stuff like ntp.conf and rc.conf, but all the lines in my custom rc.conf are removed after the script finishes. could you post your install.cfg? Here is my install.cfg: debug=YES #nonInteractive=YES #noWarn=YES disk=ad0 partition=all bootManager=standard diskPartitionEditor #diskPartitionWrite ad0s1-2=swap 4194304 none ad0s1-1=ufs 524288 / ad0s1-3=ufs 19531250 /home 1 ad0s1-4=ufs 2097152 /tmp 1 ad0s1-5=ufs 19531250 /usr 1 ad0s1-6=ufs 0 /var 1 diskLabelEditor diskLabelCommit hostname=test netDev=vr0 nfs=192.168.0.3:/var/export/6.0-RELEASE/ tryDHCP=YES mediaSetNFS #nameserver=192.168.0.7 dists=base distSetCustom installCommit package=portupgrade packageAdd package=sudo packageAdd package=stunnel packageAdd package=syslog-ng packageAdd command=cp /dist/pkgtools.conf /usr/local/etc system command=sed -i '' 's/md5/blf/' /etc/login.conf system command=cap_mkdb /etc/login.conf system command=pkg_add /dist/packages/All/my_base.tgz system shutdown This is the plist for my_base.tgz (warning, it's my first package attempt :)): @name my_base @cwd /etc @srcdir /tmp/my_base ntp.conf rc.conf @cwd /usr/local @srcdir /tmp/my_base etc/syslog-ng/syslog-ng.conf etc/stunnel/stunnel.conf @exec ln /usr/local/etc/rc.d/syslog-ng.sh.sample /usr/local/etc/rc.d/syslog-ng.sh /tmp/my_base/etc/rc.conf: sshd_enable=YES sshd_flags=-p ntpd_enable=YES stunnel_enable=YES syslogd_enable=NO After sysinstall's shutdown and reboot, it comments out these lines (using #REMOVED: %s). Converting them to something like this in install.cfg didn't help, regardless of quotes: command=echo sshd_enable=YES /etc/rc.conf system Thanks, Josh -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDow6wV/+PyAj2L+IRAt/xAKCLUjw7cn9CXjyo23aOsVewSQoc5QCgquKL UCf3w0TzJx115E4f2aCKve0= =biMR -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: Adding lines to /etc/rc.conf during sysinstall wihout being REMOVED
Josh Endries wrote: Here is my install.cfg: debug=YES #nonInteractive=YES #noWarn=YES disk=ad0 partition=all bootManager=standard diskPartitionEditor #diskPartitionWrite ad0s1-2=swap 4194304 none ad0s1-1=ufs 524288 / ad0s1-3=ufs 19531250 /home 1 ad0s1-4=ufs 2097152 /tmp 1 ad0s1-5=ufs 19531250 /usr 1 ad0s1-6=ufs 0 /var 1 diskLabelEditor diskLabelCommit hostname=test netDev=vr0 nfs=192.168.0.3:/var/export/6.0-RELEASE/ tryDHCP=YES mediaSetNFS #nameserver=192.168.0.7 dists=base distSetCustom installCommit ... command=cp /dist/pkgtools.conf /usr/local/etc system command=sed -i '' 's/md5/blf/' /etc/login.conf system command=cap_mkdb /etc/login.conf system command=pkg_add /dist/packages/All/my_base.tgz system shutdown have you considered command=shutdown system ? it may not be the nicest way to do things though. After sysinstall's shutdown and reboot, it comments out these lines (using #REMOVED: %s). Converting them to something like this in install.cfg didn't help, regardless of quotes: command=echo sshd_enable=YES /etc/rc.conf system two things: try this before shutdown: command=cp /etc/rc.conf /tmp/rc.conf system and also try to echo like this: command=echo 'sshd_enable=YES' /etc/rc.conf I don't know how sysinstall treats quotes. Well, honestly, I don't _know_ the answer to your question, but I hope this helps. Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pine
* Igor Robul ([EMAIL PROTECTED]) [051215 10:50]: On Wed, Dec 14, 2005 at 12:21:19PM -0800, Ted Mittelstaedt wrote: The first thing you can do is go out and shoo the crackers off the telephone pole who are tapped into your phone line and sniffing your passwords. By the way, is there any relative cheap solution to do this? I mean we can record phone conversation, but how can we decode all this V.90, PPP, IP, TCP out of recorded audio? This is what modems are for. :) gwen. gamergothgeekgrrl. http://www.gw3n.com/ * martygreene shivvers martygreene why is it so damn cold? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Ebay Auction Win- Item 6574118600
* Kris Kennaway ([EMAIL PROTECTED]) [051215 23:51]: The mind boggles how you managed to screw up this email :) A great story from another SysAdmin friend of mine: Mojo_Jojo PERFECT EXAMPLE OF WHY TAB-COMPLETION IS NOT ALWAYS A GOOD THING Mojo_Jojo Wookie has an email alias of lunchbox@ Mojo_Jojo jeff went to send a nakie picture of brittney spears to Wookie Mojo_Jojo and tab-completed lun[TAB] to lunch-orders@ Mojo_Jojo and sent nakie brittney spears to half of the office Perhaps this tamer mav is a symptom of the same disorder? :) gwen. gamergothgeekgrrl. http://www.gw3n.com/ ___Do you run fsck and just say yes to everything? ___--Do you conduct your personal relationships in the same way? -- BOFH.net SysAdmin Purity Test ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Ebay Auction Win- Item 6574118600
On Fri, December 16, 2005 2:18 pm, gwen wrote: * Kris Kennaway ([EMAIL PROTECTED]) [051215 23:51]: The mind boggles how you managed to screw up this email :) A great story from another SysAdmin friend of mine: Mojo_Jojo PERFECT EXAMPLE OF WHY TAB-COMPLETION IS NOT ALWAYS A GOOD THING Mojo_Jojo Wookie has an email alias of lunchbox@ Mojo_Jojo jeff went to send a nakie picture of brittney spears to Wookie Mojo_Jojo and tab-completed lun[TAB] to lunch-orders@ Mojo_Jojo and sent nakie brittney spears to half of the office Excellent conclusion. Very insightful to come up with such an explaination. And how does one get on the lunch_orders list? Sorry, couldn't resist. :P L -- Louis LeBlanc [EMAIL PROTECTED] Fully Funded Hobbyist, KeySlapper Extrordinaire :þ http://www.keyslapper.net Ô¿Ô¬ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
how to dual boot
I'm trying to get a dual boot system set up with FBSD 5.3 and Win XP sp1. First I installed FBSD using 15GB of the HD, then installed XP on the remaining 5GB. However now it boots up XP automatically. I can get back to the FBSD installer by booting from the 5.3 CD but what do I do to provide a choice of which to boot right on the HD? ___ 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 dual boot
On Fri, 2005-12-16 at 16:31 -0500, Marty Landman wrote: I'm trying to get a dual boot system set up with FBSD 5.3 and Win XP sp1. First I installed FBSD using 15GB of the HD, then installed XP on the remaining 5GB. However now it boots up XP automatically. I can get back to the FBSD installer by booting from the 5.3 CD but what do I do to provide a choice of which to boot right on the HD? If you can get to freebsd use the freebsd bootloader and renable it via fdisk -B -b /boot/boot0 device, or you could install grub and use it. see: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/boot-blocks.html and http://www.pl.freebsd.org/doc/en_US.ISO8859-1/articles/multi-os/article.html Cheers _GOOD_LUCK_ -- Harley -BEGIN GEEK CODE BLOCK- G: GCS-- d- a? C B- E+++ W+++ N++ w--- X+++ b++ G e* r x+ z+ --END GEEK CODE BLOCK-- ___ 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 dual boot
On Fri, 16 Dec 2005 16:31:11 -0500 Marty Landman [EMAIL PROTECTED] wrote: I'm trying to get a dual boot system set up with FBSD 5.3 and Win XP sp1. First I installed FBSD using 15GB of the HD, then installed XP on the remaining 5GB. However now it boots up XP automatically. I can get back to the FBSD installer by booting from the 5.3 CD but what do I do to provide a choice of which to boot right on the HD? ___ You could try the following: 0. Understand that life is risk management; and that I offer no guarantees/warranties regarding the following advice. Continue at your own risk. 1. Boot from the installation CD. 2. When you get to the sysinstall Main Menu, select Index. 3. Select the Partition module. 4. DO NOT delete any partitions. 5. Set the FreeBSD and NTFS partitions as bootable. 6. Write your changes. 7. When given the option, install the FreeBSD boot loader (which Windows erased during installation). 8. Back out of the sysinstall menus and quit. 9. Reboot, remove the CD and see what happens. Good luck, Andrew Gould ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD starter machine
Pietro Cerutti wrote: On 12/13/05, Chris Whitehouse [EMAIL PROTECTED] wrote: A way to use your current machine for both operating systems without dual booting is to install a second hard disk, install FreeBSD and select which to boot from in the bios. It's a slight faff changing boot disk but works fine and keeps the OS's completely separate. Could you please tell me the problems which could rise using dual boot? I really can't imagine any, since the two (or more) OSes are on different slices, and can't interfere which each other in any way. Decide to redo the play machine when too tired, fdisk the wrong slice... As a newbie not understand which slice to fdisk... It was really in response to OP being 'not keen about running dual OS's' I have to run windows for work and sharing a play machine with a must be working machine doesn't seem as safe on a dual boot setup as two separate disks. You can even unplug the other disk to avoid mistakes. Just my choice. Chris Thanx, -- Pietro Cerutti [EMAIL PROTECTED] Beansidhe - SwiSS Death / Thrash Metal www.beansidhe.ch Windows: Where do you want to go today? Linux: Where do you want to go tomorrow? FreeBSD: Are you guys coming or what? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Using S/MIME with KMail
FreeBSD 5.4 I have been unable to get S/MIME to work in KMail. In the configuration section for KMail, the S/MIME section is grayed out. I have two valid certificates that I can view using FireFox installed on this system. I was told that I would need to install gpgme in order to use gpgsm to get the certificates installed correctly. I am just trying to confirm if this is correct. I really do no want to go installing a lot of programs that I really do not need, nor know how to use. If anyone has a better idea, I would appreciate hearing about it. -- Gerard Seibert [EMAIL PROTECTED] It is impossible to make anything foolproof, because fools are so ingenious. ___ 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 dual boot
On Friday 16 December 2005 01:31 pm, Marty Landman wrote: I'm trying to get a dual boot system set up with FBSD 5.3 and Win XP sp1. First I installed FBSD using 15GB of the HD, then installed XP on the remaining 5GB. However now it boots up XP automatically. I can get back to the FBSD installer by booting from the 5.3 CD but what do I do to provide a choice of which to boot right on the HD? I use the ntldr to boot my dual boots. You just have to copy boot1 onto your c-drive and then add it to your boot.ini. You can do that from the system applet. I renamed boot1 to bootsect.bsd and my boot.ini is as follows: [boot loader] timeout=4 default=multi(0)disk(0)rdisk(0)partition(4)\WINXP [operating systems] multi(0)disk(0)rdisk(0)partition(4)\WINXP=Microsoft Windows XP Professional /f c:\bootsect.bsd=FreeBSD The line should be XP Professional but all I added was the FreeBSD. Ntldr lets you choose which one is primary and then, with a pop-down menu, easily change it to something else. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Courier and postfix
Hello freebsd-questions, How i can install subj? Or i need use Exim? I have LDAP server and userlist within. What better for auth via LDAP and good work? Postfix + ... (cyrus?) or Exim + ... (courier?) ? Where i can read about pluses and minuses these MTAs? FreeBSD 5.3 -- Best regards, Playnet ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ejabberd + Bandersnatch?
I have ejabberd (version 0.9.8 from ports) running inside a jail on my FreeBSD 6-STABLE server. I'm trying to get Bandersnatch to run inside the same jail, but logging to a MySQL database inside a different jail. I've verified that I can use the mysql command line client to connect to the server, and triple-checked Bandersnatch's config.xml, but when I try to run it, I get some rather unhelpful error messages: # ./bandersnatch2.pl config.xml 2 - _start (from /usr/local/lib/perl5/site_perl/5.8.7/POE/Kernel.pm at 1246) 2 - _child (from /usr/local/lib/perl5/site_perl/5.8.7/POE/Kernel.pm at 1256) DBI::db=HASH(0x87c3524) trace level set to 0x0/2 (DBI @ 0x0/0) in DBI 1.49-nothread (pid 40431) Server Error: read: 0 - 2 - error_event (from /usr/local/lib/perl5/site_perl/5.8.7/POE/Component/Jabber/Client/J2.pm at 447) Connected to MySQL database ([EMAIL PROTECTED]) ...Socket error: read, 0, 2 - error_event (from /usr/local/lib/perl5/site_perl/5.8.7/POE/Component/Jabber/Client/J2.pm at 194) We got disconneted 2 - _child (from /usr/local/lib/perl5/site_perl/5.8.7/POE/Resource/Sessions.pm at 493) 2 - _stop (from /usr/local/lib/perl5/site_perl/5.8.7/POE/Resource/Sessions.pm at 483) ! - DESTROY for DBD::mysql::db (DBI::db=HASH(0x87c3524)~INNER) imp_dbh-mysql: 806e060 ! - DESTROY= undef during global destruction I can't make heads or tails of this. Is that a MySQL error? A ejabberd error? A Bandersnatch bug? My next step is to hit the Bandersnatch mailing list, but I thought I'd see if anyone else running FreeBSD had worked through this error already. Thanks, -- Kirk Strauser pgpzgbiCVNKsr.pgp Description: PGP signature
Random password generation
When creating user accounts with adduser you can have the system generate a random password. Can you use a tool included in FreeBSD to change specific existing users passwords with a random one such as the one in adduser? it would also be usefull to do this from a input file to do multiple users. The passwords I would need on the screen to give to the users. If not is there an open source one to do this? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Passing make options to portmanager
I want to switch from portupgrade to portmanager, but I have a few questions. First of all, how do I pass make options to portmanager? (like the -m option for portupgrade). I often pass selected make options to multimedia players to choose what formats will be supported. Can someone verify that portmanager reads pkgtools.conf? Thanks for your time ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
test
Hello FreeBSD, Subj... -- Best regards, Playnet 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]
Re: how to dual boot
I'm trying to get a dual boot system set up with FBSD 5.3 and Win XP sp1. First I installed FBSD using 15GB of the HD, then installed XP on the remaining 5GB. However now it boots up XP automatically. I can get back to the FBSD installer by booting from the 5.3 CD but what do I do to provide a choice of which to boot right on the HD? You need to read the documentation better. It tells you that you should install Microsloth first and then FreeBSD. That is because MS doesn't play nicely and assumes it is the only thing in the world and overwrites your MBR without asking and their MBR will only boot MS (slightly different in recent MS, but essentially the same is true). But, FreeBSD is more sophisticated and also more friendly to the rest of the world and, first of all, asks if you want an MBR installed in the sector 0 and then if you go ahead and write FreeBSD's MBR, it will give you a choice of bootable slices to boot, including MS if present. The only odd thing is if the FreeBSD MBR detects a bootable slice with a filesystem type it does not know such as NTFS, it identifies it in the menu as '???' rather than with a name. It will still boot just fine.It does recognize FATxx filesystems, FreeBSD, of course and some others. But, it doesn't have room to store names for lots of others because it is a true MBR and only uses the one sector allocated rather than using some of the space that is typically (but not officially) not used in the first cylindar. Since you have already let MS wipe out the FreeBSD MBR, you can just put the install CD back in and tell it to write the FreeBSD MBR or even just reinstall FreeBSD from scratch, though that shouldn't actually be necessary. jerry ___ 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]
HP ScanJet 4100c?
Guys, is this my big opportunity or what! :-) A friend bought an HP ScanJet 4100c for $15. For unknoen reason, it does not work wsith W-XP, but might this work with FBSD? Otherwise, I'm looking for a scanner with OCR-ware. For either my W2K box or FBSD. I finally do have the book I'm aiming to scan; I don;t know what happened to my friend with the microfiche of this text. Zero reply. Is there anybody in the Western WA locale who'd be willing to lend me scanner with OCR software or tell me what to buy that works with FBSD. For $15, it's worth asking about. gary -- Gary Kline [EMAIL PROTECTED] www.thought.org Public service Unix ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ntp problems (strata too high)
Svein Halvor Halvorsen wrote: On 12/8/05, Michael Wynne [EMAIL PROTECTED] wrote: The information contained in this e-mail and its attachments ('the information) is intended only for the use of the individual or entity to whom it is addressed, is private and confidential, may be privileged or otherwise protected by work product immunity or other legal rules. Access to the information by anyone else is unauthorized. [...] Then why would you send it to a public mailinglist, that's archived and propagated throughout the internet, and made available to anyone through search engines and the like? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I hate to reopen a dead thread, however, I'm having a very strange problem I have 2 machines running ntpd. I just set this up and it is not working. I don't think the ntpd servers are syncing properly and ntpdate -b 192.168.1.2 doesn't work, it gives me a strata too high with the -d flag. Here is my current config/output, this network is not actually nat'd private ips so I changed the ips for security reasons: server1(192.168.1.2) /etc/ntp.conf server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org server pool.ntp.org peer 192.168.1.3 restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap logconfig =syncall +clockall +sysall ntpq -p output remote refid st t when poll reach delay offset jitter == +195.216.80.207 195.216.80.206 2 u 283 512 37 109.803 -230.38 62.815 *ipd50ad048.spee 130.149.17.8 2 u 285 512 37 101.458 -190.45 85.706 +antares.speedne 217.11.227.683 u 285 512 37 137.773 -192.71 85.431 +cheddar.halon.o 129.240.64.3 3 u 282 512 37 76.770 -276.95 62.389 192.168.1.3.STEP. 16 u1 12800.0000.000 4000.00 server2 (192.168.1.3) /etc/ntp.conf server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org server pool.ntp.org peer 192.168.1.2 restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap logconfig =syncall +clockall +sysall ntpq -p output remote refid st t when poll reach delay offset jitter == zirkon.biophys. 134.99.128.802 u 71 1287 94.189 -77.270 27.511 oubliette.mctav .MSF.1 u 70 1287 98.417 -38.531 16.505 antares.speedne 217.11.227.683 u 70 1287 136.851 -53.314 27.989 cteha.ulp.co.il 192.114.62.249 3 u5 1287 170.650 -52.706 17.982 192.168.1.2.DROP. 16 u- 6400.0000.000 4000.00 Any help getting this to work will be appreciated. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: HP ScanJet 4100c?
On Friday 16 December 2005 08:02 pm, Gary Kline wrote: Guys, is this my big opportunity or what! :-) A friend bought an HP ScanJet 4100c for $15. For unknoen reason, it does not work wsith W-XP, but might this work with FBSD? Otherwise, I'm looking for a scanner with OCR-ware. For either my W2K box or FBSD. I finally do have the book I'm aiming to scan; I don;t know what happened to my friend with the microfiche of this text. Zero reply. Is there anybody in the Western WA locale who'd be willing to lend me scanner with OCR software or tell me what to buy that works with FBSD. For $15, it's worth asking about. Check out if sane supports it. I'm in a similar situation with a HP Scanjet 6200C. The driver on the HP isn't actually a driver so the scanner is useless in Windows. I booted into FreeBSD, kldload uscanner, and started xsane, it worked perfectly. I haven't tried the OCR part of xsane, but it should work. -- Anish Mistry pgpw2e1wIr2G8.pgp Description: PGP signature
Re: how to dual boot
The only odd thing is if the FreeBSD MBR detects a bootable slice with a filesystem type it does not know such as NTFS, it identifies it in the menu as '???' rather than with a name. I'm triple-booting FreeBSD, NetBSD and that penguin thingy. NetBSD's fdisk(8) allows setting the menu labels to whatever string you want. (limited to ~8 chars due to limited space in the MBR) NetBSD's fdisk also automatically figures out how much space you have left as you add partitions (er, slices in FreeBSD-speak). On the other hand, if you want/need overlapping partitions/slices for some reason, FreeBSD's fdisk will do it and NetBSD's will not. (according to the man pages, I didn't try it) For even more user-programablilty, grub has some nice features. But doesn't fit in the MBR. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Passing make options to portmanager
On Friday 16 December 2005 16:31, Dimitris Tsamis wrote: I want to switch from portupgrade to portmanager, but I have a few questions. First of all, how do I pass make options to portmanager? (like the -m option for portupgrade). I often pass selected make options to multimedia players to choose what formats will be supported. Place make options in either pkgtools.conf, pm-020.conf or /etc/make.conf, man portmanager explains how. There isn't a way to pass make options from portmanager's command line. Can someone verify that portmanager reads pkgtools.conf? You can see for yourself, run portmanager -u -ui, it will stop before upgrading the first port. As it collects initial information any make options found in either pm-020.conf or pkgtools.conf will be shown to the right of the port name. One caveat, you must have ruby and portupgrade installed or portmanager will ignore pkgtools.conf. Thanks for your time welcome -Mike ___ 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 dual boot
Jerry McAllister wrote: I'm trying to get a dual boot system set up with FBSD 5.3 and Win XP sp1. First I installed FBSD using 15GB of the HD, then installed XP on the remaining 5GB. However now it boots up XP automatically. I can get back to the FBSD installer by booting from the 5.3 CD but what do I do to provide a choice of which to boot right on the HD? Well, you could try grub, but if you want a fact way of doing, it will cost. OS Selector from Acronis, or Boot Manager from PartitionMagic. OS Selector What you have to do is create a partition, about 100mb or 50mb and it must be FAT16/32, so if your windows partitions is fats, then you don't have to create the partition, but way it doesn't have to be first partition, just visible to OS Selector. Once you install it will read what OS'es you have install. It not a bad program because I have remove freebsd, for dragonfly and PC-BSD, and didn't have to anything just select the partition it was install on. Boot Manager is I remember install on the master boot record and has to be install from the windows partions. I don't like it because I have kill a computer or two with it. Grub has come a long way and there mail list and docs. But if you are newbie you might want to go the route of OS Selector. Just remember that when you install freebsd you not to select a boot manager. Now before I get flame, I have use the freebsd boot manager BUT only with freebsd. Payne ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ntp problems (strata too high)
Christopher McGee wrote: Svein Halvor Halvorsen wrote: On 12/8/05, Michael Wynne [EMAIL PROTECTED] wrote: The information contained in this e-mail and its attachments ('the information) is intended only for the use of the individual or entity to whom it is addressed, is private and confidential, may be privileged or otherwise protected by work product immunity or other legal rules. Access to the information by anyone else is unauthorized. [...] Then why would you send it to a public mailinglist, that's archived and propagated throughout the internet, and made available to anyone through search engines and the like? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I hate to reopen a dead thread, however, I'm having a very strange problem I have 2 machines running ntpd. I just set this up and it is not working. I don't think the ntpd servers are syncing properly and ntpdate -b 192.168.1.2 doesn't work, it gives me a strata too high with the -d flag. Here is my current config/output, this network is not actually nat'd private ips so I changed the ips for security reasons: server1(192.168.1.2) /etc/ntp.conf server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org server pool.ntp.org peer 192.168.1.3 restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap logconfig =syncall +clockall +sysall ntpq -p output remote refid st t when poll reach delay offset jitter == +195.216.80.207 195.216.80.206 2 u 283 512 37 109.803 -230.38 62.815 *ipd50ad048.spee 130.149.17.8 2 u 285 512 37 101.458 -190.45 85.706 +antares.speedne 217.11.227.683 u 285 512 37 137.773 -192.71 85.431 +cheddar.halon.o 129.240.64.3 3 u 282 512 37 76.770 -276.95 62.389 192.168.1.3.STEP. 16 u1 12800.0000.000 4000.00 server2 (192.168.1.3) /etc/ntp.conf server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org server pool.ntp.org peer 192.168.1.2 restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap logconfig =syncall +clockall +sysall ntpq -p output remote refid st t when poll reach delay offset jitter == zirkon.biophys. 134.99.128.802 u 71 1287 94.189 -77.270 27.511 oubliette.mctav .MSF.1 u 70 1287 98.417 -38.531 16.505 antares.speedne 217.11.227.683 u 70 1287 136.851 -53.314 27.989 cteha.ulp.co.il 192.114.62.249 3 u5 1287 170.650 -52.706 17.982 192.168.1.2.DROP. 16 u- 6400.0000.000 4000.00 Any help getting this to work will be appreciated. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This has been resolved. I waslked away for about 7 hours and suddenly it works. It just resolved itself. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: test
On Friday 16 December 2005 03:37 pm, Playnet wrote: Hello FreeBSD, Subj... Please don't use this list to test. It's a waste of bandwidth and results in thousands of unnecessary emails being sent worldwide. The proper list for this is: [EMAIL PROTECTED] Beech -- --- Beech Rintoul - System Administrator - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | NorthWind Communications \ / - NO HTML/RTF in e-mail | 201 East 9th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - Please visit Alaska Paradise - http://akparadise.byethost33.com --- pgpZ74KwrpTfp.pgp Description: PGP signature
Re: HP ScanJet 4100c?
On Fri, Dec 16, 2005 at 08:19:21PM -0500, Anish Mistry wrote: On Friday 16 December 2005 08:02 pm, Gary Kline wrote: Guys, is this my big opportunity or what! :-) A friend bought an HP ScanJet 4100c for $15. For unknoen reason, it does not work wsith W-XP, but might this work with FBSD? Otherwise, I'm looking for a scanner with OCR-ware. For either my W2K box or FBSD. I finally do have the book I'm aiming to scan; I don;t know what happened to my friend with the microfiche of this text. Zero reply. Is there anybody in the Western WA locale who'd be willing to lend me scanner with OCR software or tell me what to buy that works with FBSD. For $15, it's worth asking about. Check out if sane supports it. I'm in a similar situation with a HP Scanjet 6200C. The driver on the HP isn't actually a driver so the scanner is useless in Windows. I booted into FreeBSD, kldload uscanner, and started xsane, it worked perfectly. I haven't tried the OCR part of xsane, but it should work. Whoa, the online sane docs say that 4100C is supported. The next obstacle is the USB jack. Even my 1999 test e-machine has a usb thing hidden somewhere in front. This box, tao, is a barebones box I built in 08/2001; so I'm sure it's got a usb port somewhere. Do I have to build it into the kernel or what? IOW, what's the deal with USB stuff? I've had enough headbanging with ye olden COM[1234] ports. But it's time to get my fingers wet. thanks! gary PS: FWIW: my friend said that something-OCR was built-in. -- Gary Kline [EMAIL PROTECTED] www.thought.org Public service Unix ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song)
-Original Message- From: Danial Thom [mailto:[EMAIL PROTECTED] Sent: Thursday, December 15, 2005 11:42 AM To: Ted Mittelstaedt Cc: freebsd-questions@freebsd.org Subject: RE: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song) --- Ted Mittelstaedt [EMAIL PROTECTED] wrote: -Original Message- From: Danial Thom [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 14, 2005 11:14 AM To: Ted Mittelstaedt; Drew Tomlinson Cc: freebsd-questions@freebsd.org Subject: RE: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song) Well, if polling does no good for fxp, due to the hardware doing controlled interrupts, then why does the fxp driver even let you set it as an option? And why have many people who have enabled it on fxp seen an improvement? They haven't, freebsd accounting doesn't work properly with polling enabled, and they don't have the ability to know if they are getting better performance, because they, like you, have no clue what they're doing. How about all the idiots running MP with FreeBSD 4.x, when we know its just a waste of time? they all think they're getting worthwhile performance, because they are clueless. I would call them idiots if they are running MP under FreeBSD and assuming that they are getting better performance without actually testing for it. But if they are just running MP because they happen to be using an MP server, and they want to see if it will work or not, who cares? Maybe its tunable because they guy who wrote the driver made it a tunable? duh. I've yet to see one credible, controlled test that shows polling vs properly tuned interrupt-driven. Hm, OK I believe that. As I recall I asked you earlier to post the test setup you used for your own tests proving that polling is worse, and you haven't done so yet. Now you are saying you have never seen a credible controlled test that shows polling vs interrupt-driven. So I guess either you were blind when you ran your own tests, or your own tests are not credible, controlled polling vs properly tuned interrupt-driven. As I have been saying all along. Now your agreeing with me. The only advantage of polling is that it will drop packets instead of going into livelock. The disadvantage is that it will drop packets when you have momentary bursts that would harmlessly put the machine into livelock. Thats about it. Ah, now I think suddenly I see what the chip on your shoulder is. You would rather have your router based on FreeBSD go into livelock while packets stack up, than drop anything. You tested the polling code and found that yipes, it drops packets. What may I ask do you think that a Cisco or other router does when you shove 10Mbt of traffic into it's Ethernet interface destined for a host behind a T1 that is plugged into the other end? (and no, source-quench is not the correct answer) I think the scenario of it being better to momentary go into livelock during an overload is only applicable to one scenario, where the 2 interfaces in the router are the same capacity. As in ethernet-to-ethernet routers. Most certainly not Ethernet-to-serial routers, like what most routers are that aren't on DSL lines. If you have a different understanding then please explain. Yes, going into livelock for a moment is better than dropping a bucket of packets. If your machine is in constant livelock, then its too slow and it doesn't matter whether you run polling or interrupts; you need a new machine. Duh, but that wasn't what I asked. You claim that dropping packets is terrible and routers shouldn't do it, and should go into momentary livelock to avoid it. I asked you what then about the scenario where one interface is slower than the other? How are you going to avoid dropping some packets then? You also can't grasp the point that clock ticks do more than just poll, you're forcing a LOT of other stuff to get done a lot more often than necessary. You also don't understand that polling occurs MILLIONS of times per second on machines that aren't loaded. The HZ setting is the minimum number of polls per second. Its a perfect example of using a setting without having any idea how it works just because some idiot falsely claimed it was better without really testing it. Well, your the idiot that's falsely claiming it's worse without really testing it so what's the difference? As I said before, your arguing theory. And the theory sometimes gets tripped up by what you think is a minor variable that shouldn't matter. You keep claiming the pro-polling people haven't tested, well you haven't tested either. It's just a big air-battle. I've read those datasheets as well and the thing I don't understand is that if you are pumping 100Mbt into an Etherexpress Pro/100 then if the card will not interrupt more than this throttled rate you keep
Re: Download the whole ports tree
Message: 20 Date: Fri, 16 Dec 2005 02:01:37 -0500 From: Kris Kennaway [EMAIL PROTECTED] Subject: Re: Download the whole ports tree To: Simon Maginnity [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii On Fri, Dec 16, 2005 at 03:32:33PM +1100, Simon Maginnity wrote: Hi everyone, I have unlimited bandwidth for the next month or so and will not have access to the net again for a few month?s after January. What I would like to do is grab a copy of the whole freeBSD ports tree while I can, so I can just play with different programs and things at will on a test server. Really just for my own amusement. Is it possible to get a copy of the whole ports tree down if I have enough free space etc etc, or just a copy of one branch like www??? The ports tree is not all that large..are you asking about fetching every port distfile? Kris Well, portupgrade -FRaN sounded promising, but upon further reflection, I suspect that would fetch only distfiles for those ports which are already installed, plus any new dependencies that are not yet installed. Perhaps we need a meta-port which includes _everything_ as a build dependency. Then you just fetch that. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: shell script doesnot executing
Message: 24 Date: Fri, 16 Dec 2005 01:51:22 -0600 From: Harley D. Eades III [EMAIL PROTECTED] Subject: Re: shell script doesnot executing To: Anirban Adhikary [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain On Fri, 2005-12-16 at 11:23 +0530, Anirban Adhikary wrote: Hi guys This is Anirban here. I have the problem again with the previous shell script.Which was Write a shell script that will check whether a server is up or not(on ping) log the report to a file. I have tried to write the program in the following way #! /bin/sh echo -n Enter the IP or Hostname of the Server read host #echo $host ping -c2 $host file2 if [ $? = 0 ];then The problem is you're checking the exit status of ping, even if the host is down ping is exiting with a successful status. You need to use sed or awk or something similiar to test for replys. That is false. ping exits with a true result code if at least one ICMP reply is received, false otherwise. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: HP ScanJet 4100c?
Gary Kline wrote: On Fri, Dec 16, 2005 at 08:19:21PM -0500, Anish Mistry wrote: Check out if sane supports it. I'm in a similar situation with a HP Scanjet 6200C. The driver on the HP isn't actually a driver so the scanner is useless in Windows. I booted into FreeBSD, kldload uscanner, and started xsane, it worked perfectly. I haven't tried the OCR part of xsane, but it should work. Whoa, the online sane docs say that 4100C is supported. The next obstacle is the USB jack. Even my 1999 test e-machine has a usb thing hidden somewhere in front. This box, tao, is a barebones box I built in 08/2001; so I'm sure it's got a usb port somewhere. If it doesn't have USB, you can buy a four-port USB 2.0 PCI card for a few bucks. We did this on all our PCs and the Mac, because it's just so much more convenient than messing about with USB hubs and a rat's nest of cables. Do I have to build it into the kernel or what? IOW, what's the deal with USB stuff? I've had enough headbanging with ye olden COM[1234] ports. But it's time to get my fingers wet. USB Just Works in my experience. (And if you add a USB card, I've yet to have one that didn't Just Work either.) PS: FWIW: my friend said that something-OCR was built-in. That I don't know about. There's a program called gocr, but I've never managed to beat it into working properly ... still, being able to do the scan itself is an excellent start, because in the worst case you can get the TIFFs to a machine that does have good OCR. - d. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: HP ScanJet 4100c?
On Friday 16 December 2005 11:31 pm, you wrote: On Fri, Dec 16, 2005 at 08:19:21PM -0500, Anish Mistry wrote: On Friday 16 December 2005 08:02 pm, Gary Kline wrote: Guys, is this my big opportunity or what! :-) A friend bought an HP ScanJet 4100c for $15. For unknoen reason, it does not work wsith W-XP, but might this work with FBSD? Otherwise, I'm looking for a scanner with OCR-ware. For either my W2K box or FBSD. I finally do have the book I'm aiming to scan; I don;t know what happened to my friend with the microfiche of this text. Zero reply. Is there anybody in the Western WA locale who'd be willing to lend me scanner with OCR software or tell me what to buy that works with FBSD. For $15, it's worth asking about. Check out if sane supports it. I'm in a similar situation with a HP Scanjet 6200C. The driver on the HP isn't actually a driver so the scanner is useless in Windows. I booted into FreeBSD, kldload uscanner, and started xsane, it worked perfectly. I haven't tried the OCR part of xsane, but it should work. Whoa, the online sane docs say that 4100C is supported. The next obstacle is the USB jack. Even my 1999 test e-machine has a usb thing hidden somewhere in front. This box, tao, is a barebones box I built in 08/2001; so I'm sure it's got a usb port somewhere. Do I have to build it into the kernel or what? IOW, what's the deal with USB stuff? I've had enough headbanging with ye olden COM[1234] ports. But it's time to get my fingers wet. Depending on what version of FreeBSD you're running you might want to build usb into the kernel. If you just run kldload uscanner it should automatically load the usb kernel module, if it's not already in the default kernel, which I think it may be. The usb stuff should work fine as long as you don't have some funky chipset. 6.0-RELEASE should have pretty good support for usb. -- Anish Mistry pgpkZNNhPK30E.pgp Description: PGP signature
Re: Download the whole ports tree
On Fri, Dec 16, 2005 at 11:12:39PM -0800, James Long wrote: Message: 20 Date: Fri, 16 Dec 2005 02:01:37 -0500 From: Kris Kennaway [EMAIL PROTECTED] Subject: Re: Download the whole ports tree To: Simon Maginnity [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii On Fri, Dec 16, 2005 at 03:32:33PM +1100, Simon Maginnity wrote: Hi everyone, I have unlimited bandwidth for the next month or so and will not have access to the net again for a few month?s after January. What I would like to do is grab a copy of the whole freeBSD ports tree while I can, so I can just play with different programs and things at will on a test server. Really just for my own amusement. Is it possible to get a copy of the whole ports tree down if I have enough free space etc etc, or just a copy of one branch like www??? The ports tree is not all that large..are you asking about fetching every port distfile? Kris Well, portupgrade -FRaN sounded promising, but upon further reflection, I suspect that would fetch only distfiles for those ports which are already installed, plus any new dependencies that are not yet installed. Perhaps we need a meta-port which includes _everything_ as a build dependency. Then you just fetch that. Well, if you really think you want this, then just: cd /usr/ports make fetch Kris pgpC54hRN1YzS.pgp Description: PGP signature