RE: questions about Fatal Trap 12
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Ray Sent: Saturday, 4 April 2009 01:45 To: freebsd general questions Subject: questions about Fatal Trap 12 Hello, I have received a kernel Trap 12 error several times now and am trying to figure it out. the error occurred today, and the previous time was about two weeks ago. last time I had to run fsck manually if that proves anything. uname -a gives the following: FreeBSD wserver..com 7.0-RELEASE-p3 FreeBSD 7.0-RELEASE-p3 #0: Wed Sep 17 13:30:46 MDT 2008 r...@wserver.*.com:/usr/obj/usr/src/sys/MOD amd64 Google returns results mostly for versions 4.x and 5.x, but it suggest 2 main things: test ram, and kernel panic troubleshooting. (http://www.freebsd.org/doc/en/books/faq/advanced.html#KERNEL-PANIC- TROUBLESHOOTING) Is there a way to test the ram without removing it from the machine and leave the machine functioning. I've used memtest 86 before, but obviously the machine has to be offline for this test. However, I'm a little unsure of the instructions in the handbook on troubleshooting. namely, it talks about using the nm command, put I can't figure out the data file to give it as an argument, and second I'm unsure about using a debugging Kernel on a production server. I have heard that It will significantly slow down a machine. Any help or suggestions would be greatly appreciated. Ray ___ snip Hi Ray, I have had a few of the Trap 12 errors over the last 10 years of using FreeBSD. From memory, mine where due to faulty motherboard/CPU. I just moved the hard drive to another PC, and all was ok. The last time I received the error, was when I tried recompiling world. I put it down to CPU heat, as it was running a LOT harder than normal day to day use. This was on a server that had been in place for two years running with out problem! Cheers, PaulH ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
burning DVD's on a robotic burner. Running a central iso repository
Hi, Just at the idea phase at the moment. I have played with various command line tests, but would like to make sure I am not re-inventing the wheel before I progress further. Therefore: 1. Just wondering if anyone knows of a robotic DVD burner/printer that can be integrated with FreeBSD. Ideally I would like it to be able to run 'growisofs' and have it burn the DVD on the networked robotic CD/DVD burner. The burner would have a built in CD/DVD printer. I am thinking the software package would have a web page to allow people to upload a graphic, and/or just a CD/DVD text title, that would be printed onto the CD/DVD. Having one central burner would save me having to issue out DVD burners to multiple users. 2. Conversely, I am looking into having a central DVD reader, that staff would insert a DVD, type some meta-data into a webpage, and then click on the convert button. FreeBSD would then read the CD/DVD and create an iso image of it. The iso image would be placed into a repository, from where they could be mounted as needed, and shared out via samba. An email would be sent out once the CD/DVD has been converted detailing how to access the iso file. This all becomes important when a site moves to using thin clients and Terminal Servers. Any thoughts and ideas are welcome. Regards, Paul Hamilton Busselton, 6280 Australia -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: (postfix) SPAM filter?
Hi Sten, I ran /usr/ports/security/amavisd-new for a year or so. I must admit, I didn't update it so more and more spam made it's way through. A mate tipped me off on trying: /usr/ports/mail/mailscanner Much easier to install than amavisd-new. I found it easier to understand the config file too. If you really get keen, there is a book you can purchase and it has great online help. There is also a nice optional webpage stats port/package: /usr/ports/mail/mailscanner-mrtg Now I only have 1 spam getting through every 3 days or so out of 350+ daily spam emails. I now have it running on 4 different sites. Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sten Daniel Soersdal Sent: Thursday, 13 December 2007 10:12 AM To: freebsd-questions Subject: (postfix) SPAM filter? We have a need for a relatively painless anti-spam solution that would reduce the amount of incoming spam (via postfix mail router). The problem is that i have little knowledge on what this actually means. Googling reveals a whole universe of interesting ways but what should i pursue? The things that are important to me is: * Once it is setup then it would require no additional maintenance. * Potential spam messages are marked with a special header that can be filtered on user discretion on their local mail client software. Neither performance, scalability, license nor cost is of much importance to me at this point. Any hints? -- Sten Daniel Soersdal ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: FreeBSD on IDE Flash disk drive
Hi, I have played around with using an EPIA 600-PD (Fanless Dual NICS), with 256MB RAM. Works well, however, a buildworld takes around 4 hours ;-) I am booting from a 512MB CF card, and run /var and /tmp from a RAM drive. Upon startup, the CF card /var and /tmp dir. are copied into the ram drives, the rest is Read Only. When it shuts down (not very often), the ram drive contents are copied back to the CF card. You could backup the ram drive to CF more frequently if required. I run off of 12V battery, so power failures don't affect me all that much. You could monitor the Battery/UPS for power failure conditions if needed etc. Running FreeBSD 6.0. Cheers, Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nejc Škoberne Sent: Saturday, 10 March 2007 5:10 AM To: User Questions Subject: FreeBSD on IDE Flash disk drive Hello, I plan to install a FreeBSD 6.2 router/gateway/DHCP server on a EPIA box with 1GB Transcend IDE Flash drive. Since Transcend says that this device is capable of 10,000 insertion/removal cycles I assume that I must minimize the number of writes to the drive. It is okay with me if I have to configure syslog to log to another machine. Any suggestions/instructions how to achieve this? Any experienced users regarding this matter? Thanks for ideas and help. Nejc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: How does my computer work with an empty arp table?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, 4 December 2006 2:15 PM To: freebsd-questions@freebsd.org Subject: Re: How does my computer work with an empty arp table? On Sun, Dec 03, 2006 at 02:53:44PM -0800, Atom Powers wrote: On 12/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: My computer is connected to ISP via ADSL and works properly. I typed arp -a and saw an empty table, although I pinged successfully an Internet host one second ago. The ARP table is a cache of known ARP-IP addresses. If there are no addresses in the ARP table then the system will send out an ARP broadcast to discover the ARP address that belongs to the IP address. Of course only the Ethernet hosts on your local network will be in your ARP table. -- -- Perfection is just a word I use occasionally with mustard. --Atom Ray Powers-- Thank you for response. But why there is no MAC address of my ADSL modem connected via Ethernet? Does my host send broadcast frames to communicate with modem everytime? Furthermore, when I ping the modem, a proper entry appears in table: -- -- $arp -a $ping -c 1 rt # It is my modem PING rt.my.domain (192.168.1.1): 56 data bytes 64 bytes from 192.168.1.1: icmp_seq=0 ttl=254 time=1.298 ms --- rt.my.domain ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.298/1.298/1.298/0.000 ms $arp -a rt.my.domain (192.168.1.1) at 00:13:49:61:f9:b2 on rl0 [ethernet] -- -- But no entry appears when I communicate trough the modem. How can I watch what is going on? You can see what's going on by su'ing to root, and typeing: tcpdump -ni rl0 then try pinging, or sending your traffic. You will then see the ADSL modem reply (or the PPoE traffic etc). Cheers, Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
how to change the root user's name on FreeBSD 6.1 running postfix
Hi, I am running postfix on FreeBSD 4.11 and 6.1 servers. In FreeBSD 4.11, you can run 'chsh root' and edit the name to what you want. However, on my FreeBSD 6.1 servers, I still receive email addressed from 'root unix'. I would like to be able to differentiate the root mail according to server the mail came from :-) Any idea's? Regards, Paul Hamilton Busselton, 6280 Australia ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: using fping to monitor internet connection status
-Original Message- From: Greg Barniskis [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 July 2006 11:32 PM To: Paul Hamilton Cc: freebsd-questions@freebsd.org Subject: Re: using fping to monitor internet connection status Paul Hamilton wrote: Hi, I need to monitor a number of IP addresses, so that if they ALL go down (say three IP's), then that is a pretty good indication that my server has lost internet connectivity. [snip] Any idea's on a ping tool or simple script? Your test would be a little simpler if you just test one IP address: your ISP's upstream router. Its reachability is quite definitive re: whether your ISP link is up or down. Even it it's assigned dynamically by DHCP, you should be able to write a script that pulls that IP, pings it a few times, and checks the result. No special tools necessarily required. -- Greg Barniskis, Computer Systems Integrator South Central Library System (SCLS) Library Interchange Network (LINK) gregb at scls.lib.wi.us, (608) 266-6348 Hi All, Thanks for your input. I was hoping there was another cmd/util out there similar to fping that I could elegantly use. I like the above idea though, so I ended up using this to isolate the upstream ISP gateway IP: traceroute -nm 2 close-by Internet IP | tail -1 | awk '{ print $2 }' Integrated that into the fping Perl script and we are away! Thanks once again :-) Cheers, Paul Hamilton While the cats away - the mice do play! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
using fping to monitor internet connection status
Hi, I need to monitor a number of IP addresses, so that if they ALL go down (say three IP's), then that is a pretty good indication that my server has lost internet connectivity. The most probable cause is usually the ADSL router, and therefore needs a reboot. I was hoping to use the 'fping' program, but looking through the man file, there doesn't seem to be an exit status on loosing ALL the pings. If one goes down, I don't care, maybe that server is down, so keep pinging the other two etc. I was hoping to write this in Perl (the first fping example looked ok, until I realised that it would activate when any one IP address became unreachable, which means that I am still connected to the Internet). Any idea's on a ping tool or simple script? Regards, Paul Hamilton Busselton, 6280 Australia ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Automating a FreeBSD 6.0 boot menu selection
Hi all, I have a HP DL-140 G2 server, that will only boot when I select FreeBSD Safe mode, option 3 on the boot loader menu. I have read through 'man loader' and 'man loader.conf' I have also had a read through the /boot/defaults/loader.conf file, but don't really see an option for this. Is there a way to auto select a menu option upon boot up? I am running FreeBSD 6.1-PRERELEASE, and have tried 6.0 RELEASE as well. Obviously it would be nice to have it start up normally, but there seems to be a problem reading the SATA drive in normal boot mode. Regards, Paul Hamilton Busselton, 6280 Australia ___ 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 know that make buildworld finished
Hi Olivier, You could create a simple 'buildworld' script that logs the date and time before and after into a simple /var/log/buildworld.log file. Cheers, Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Olivier Nicole Sent: Monday, 6 March 2006 11:25 AM To: freebsd-questions@freebsd.org Subject: How to know that make buildworld finished Hi, For testing purposes, I am trying to build a quite old (read slow) machine. It happens that every time I start a buildworld, I will have to leave before the end. And next morning the shell I was using to run the buildworld will have terminated for some reason. So I cannot see if the make did finished successfully or not. Is there a way to check that make buildworld did finished successfully? TIA. Olivier ___ 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: auth.log intruder prevention
Hi Daniel, On your web site, you show how easy it is to convert to IPTABLES. I presume then it would be quite easy to reconfigure to use IPFW as well? Cheers, Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Gerzo Sent: Wednesday, 25 January 2006 7:58 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: auth.log intruder prevention On Tue, Jan 24, 2006 at 10:02:26PM +0100, Ilias Sachpazidis wrote: Hi Everyone, hello, In auth.log of my FreeBSD boxes I got many requests to port 22, as you can see below. begin of snippet Jan 22 11:21:50 zeus sshd[92900]: Failed password for illegal user cracking from 65.208.188.105 port 58344 ssh2 Jan 22 11:21:53 zeus sshd[92902]: Failed password for illegal user hacking from 65.208.188.105 port 58443 ssh2 end of snippet I am wondering if any script is available to prevent hundreds of attempts on port 22 from external IPs that constantly checking user passwords on my FreeBSD PCs. What I am looking for is a deamon application/script that receives the recorded data from auth.log and detects if any remote client (IP address) is checking user and passwords (Detection pattern: 5 missing attempts in 1 min). On a successful detection, the script should add an ipfw rule rejecting further IP packets from the specific remote address. Is any script or something similar available so far? I've written a BruteForceBlocer, you can install it from ports as well, check security/bruteforceblocker. Hope you will like it. -- Sincerely, Daniel Gerzo ___ 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]
Adding 4 port HP NC150T NIC into FreeBSD 4.11
Hi, I have an internal HP DL-140 running FreeBSD 4.11p13. The two internal NIC's (bge1 bge2) and a HP NC150T PCI NIC (bge0), are all running fine. I have just pulled out the 1 port PCI NIC, and installed a HP 4 port NIC. Interestingly, I found that only the first port on the NIC (BCM5705K - bge0), is recognised by FreeBSD. Surely, if it recognises one, it would recognise them all? Here is the dmesg NIC portion: snip pcib1: ServerWorks host to PCI bridge(unknown chipset) on motherboard pci1: PCI bus on pcib1 bge0: Broadcom BCM5705K Gigabit Ethernet, ASIC rev. 0x3003 mem 0xfeaf-0xfeaf irq 3 at device 6.0 on pci1 bge0: Ethernet address: 00:11:85:12:ea:a9 miibus0: MII bus on bge0 brgphy0: BCM5705 10/100/1000baseTX PHY on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto pcib2: Host to PCI bridge on motherboard pci2: PCI bus on pcib2 bge1: Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2002 mem 0xfebb-0xfebb,0xfebc-0xfebc irq 5 at device 0.0 on pci2 bge1: Ethernet address: 00:12:79:3d:73:de miibus1: MII bus on bge1 brgphy1: BCM5704 10/100/1000baseTX PHY on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge2: Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2002 mem 0xfebe-0xfebe,0xfebf-0xfebf irq 11 at device 0.1 on pci2 bge2: Ethernet address: 00:12:79:3d:73:df miibus2: MII bus on bge2 brgphy2: BCM5704 10/100/1000baseTX PHY on miibus2 brgphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto snip Any idea why it doesn't recognise the other 3 ports of the PCI HP NC150T NIC Cheers, Paul Hamilton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Serial Port Logging
You might want to check out the minicom port: ports/comms/minicom/ Regards, Paul Hamilton Busselton, 6280 Australia -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, 5 January 2006 10:17 AM To: freebsd-questions@freebsd.org Subject: Serial Port Logging Ladies and Gentlemen, The organization I work for has a need to log information from the phone system. The phone system has a serial port output. Since I already have a FreeBSD server in place at this location, I was wondering if it is possible to send the information from the phone system, to the FreeBSD server, have the information saved via the serial port? I'm thinking something like cu -l /dev/cuua0 outputfile.txt Thanks, Jay ___ 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]
Using ifconfig to change channels using FreeBSD 6.0 on a Netgear WG311v3 wireless NIC
Hi, I have compiled the FreeBSD driver from the Windows 2000 files by running: ndisgen WG311v3.INF WG311v3.sys After working through the simple wizard and selecting the defaults, I ended up with a kernel module called: WG311v3_sys.ko Then I loaded it by running: kldload ndis kldload WG311v3_sys.ko I could then run: wicontrol -i ndis0 to see the following: NIC serial number: [ ] Station name: [ asc1 ] SSID for IBSS creation: [ my_net ] Current netname (SSID): [ ] Desired netname (SSID): [ my_net ] Current BSSID: [ 00:00:00:00:00:00 ] Channel list: [ 3fff ] IBSS channel: [ 3 ] Current channel:[ 1 ] Comms quality/signal/noise: [ 0 0 0 ] Promiscuous mode: [ Off ] Intersil-Prism2 based card: [ 1 ] Port type (1=BSS, 3=ad-hoc):[ 1 ] MAC address:[ 00:0f:b5:85:87:f0 ] TX rate (selection):[ 0 ] TX rate (actual speed): [ 1 ] RTS/CTS handshake threshold:[ 2346 ] Create IBSS:[ Off ] Access point density: [ 1 ] Power Mgmt (1=on, 0=off): [ 0 ] Max sleep time: [ 100 ] WEP encryption: [ Off ] TX encryption key: [ 0 ] Encryption keys:[ ][ ][ ][ ] Now, if I try changing the current channel by using this command: ifconfig ndis0 channel 11 All this does is change the IBSS channel to 11, not the current channel. What am I missing here? Cheers, Paul Hamilton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Can FreeBSD 4.11 and 5.4 run on a HP DL-140 G2 server?
Hi Dinesh, Ah, the ML-110 G2. I have ordered one of those. I thought I would have a go at installing FreeBSD on it before I have to install Windows 2003 on it for a client. I am thinking about purchasing one next year, along with the new 3ware raid 5 card. Try my hand at building a 1.5TB raid :-) Where did you get the patch from? Cheers, Paul -Original Message- From: Dinesh Nair [mailto:[EMAIL PROTECTED] Sent: Friday, 28 October 2005 10:04 PM To: Paul Hamilton Cc: freebsd-questions@freebsd.org Subject: Re: Can FreeBSD 4.11 and 5.4 run on a HP DL-140 G2 server? On 10/26/05 21:28 Paul Hamilton said the following: Hi, I have FreeBSD 4.11 running nicely on a HP DL-140 (80GB Parallel ATA HD), but is anyone running FreeBSD on a HP DL-140 *G2* (80GB SATA HD)? works with the HP ML110 G2 with the ICH7 SATA RAID controller. i've had to patch sys/dev/ata-pci.c to get it to recognize it but it's a short and simple patch. -- Regards, /\_/\ All dogs go to heaven. [EMAIL PROTECTED](0 0)http://www.alphaque.com/ +==oOO--(_)--OOo== == +==+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo The opinions here in no way reflect the opinions of my $a $b. | | done; done | += == +==+ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Can FreeBSD 4.11 and 5.4 run on a HP DL-140 G2 server?
Hi Andrew, Thanks for that. Yes, I can't wait to have a crack at 6.0. I downloaded the first beta, but it refused to install. I read recently on the list, a thread talking about this. I just haven't had time to test out the fix. Going on holidays shortly, so I hope 6.0 will be released by the time I get back :-) Cheers, Paul -Original Message- From: Andrew P. [mailto:[EMAIL PROTECTED] Sent: Saturday, 29 October 2005 7:08 PM To: Dinesh Nair Cc: Paul Hamilton; freebsd-questions@freebsd.org Subject: Re: Can FreeBSD 4.11 and 5.4 run on a HP DL-140 G2 server? On 10/28/05, Dinesh Nair [EMAIL PROTECTED] wrote: On 10/26/05 21:28 Paul Hamilton said the following: Hi, I have FreeBSD 4.11 running nicely on a HP DL-140 (80GB Parallel ATA HD), but is anyone running FreeBSD on a HP DL-140 *G2* (80GB SATA HD)? works with the HP ML110 G2 with the ICH7 SATA RAID controller. i've had to patch sys/dev/ata-pci.c to get it to recognize it but it's a short and simple patch. -- Regards, /\_/\ All dogs go to heaven. [EMAIL PROTECTED](0 0)http://www.alphaque.com/ +==oOO--(_)--OOo== ++ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo The opinions here in no way reflect the opinions of my $a $b. | | done; done | += ++ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Yes, 6.0 handles ICH7 in a much better way. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Enumerating a Windows based PC from a FreeBSD based server
Hi, I am trying to document which managed switch port (HP 4000m), a users PC is plugged into. I had thought to use a login script to dump some info into a MySQL DB, but I am now leaning on scanning the switch, and build up the data backwards from there. The info will all end up on a PHP searchable web page. I should then be able to track admin logins (does anyone know the passwd?), have some users given their username and passwd to someone else to use? Etc. I have found the SNMP OID's of the IP and MAC addresses and the switch port number the computer is plugged into. From a DNS lookup, I can find the PC name, but how do I find out the current logged in user name on the PC, remotely from a FreeBSD server? The GFI LanGuard network scanner is a very informative tool: http://www.gfi.com/lannetscan/ so having something similar to this on a FreeBSD server would be great. The utility must of course be scriptable. Cheers, Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Enumerating a Windows based PC from a FreeBSD based server - Resolved
Hi, OK, after a lot more searching of the ports system - nothing found so far. Something joggled a neuron to have a look at what samba utils could tell me. By running: nmblookup -A IP Number or PC name it quickly returns a nice list of info. All I need to do then is grep for '03' and exclude the PC name to have a list of users logged into that PC or Server. I have only done hand testing. I will whip up a script, and test it out during a work day to see how it goes ;-) Cool. Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Hamilton Sent: Sunday, 30 October 2005 9:28 AM To: freebsd-questions@freebsd.org Subject: Enumerating a Windows based PC from a FreeBSD based server Hi, I am trying to document which managed switch port (HP 4000m), a users PC is plugged into. I had thought to use a login script to dump some info into a MySQL DB, but I am now leaning on scanning the switch, and build up the data backwards from there. The info will all end up on a PHP searchable web page. I should then be able to track admin logins (does anyone know the passwd?), have some users given their username and passwd to someone else to use? Etc. I have found the SNMP OID's of the IP and MAC addresses and the switch port number the computer is plugged into. From a DNS lookup, I can find the PC name, but how do I find out the current logged in user name on the PC, remotely from a FreeBSD server? The GFI LanGuard network scanner is a very informative tool: http://www.gfi.com/lannetscan/ so having something similar to this on a FreeBSD server would be great. The utility must of course be scriptable. Cheers, Paul ___ 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]
Can FreeBSD 4.11 and 5.4 run on a HP DL-140 G2 server?
Hi, I have FreeBSD 4.11 running nicely on a HP DL-140 (80GB Parallel ATA HD), but is anyone running FreeBSD on a HP DL-140 *G2* (80GB SATA HD)? It's the SATA controller I am worried about. The Hardware notes on the 5.4 i386 page don't list the E7520 chipset. Regards, Paul Hamilton Information Technology Officer Shire of Busselton Ph: 08 9781-0391 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Accessing the Digital IO pins on a VIA EPIA-PD motherboard - Second question
Ok, so it doesn't look like anyone knows anything about how to access the DIO pins on this MB. Next question, How does one go about analysing the hardware to find out what the io and interrupt addresses might be? The only command I can find is the 'pciconf' cmd. What if the DIO ports are hanging off the ISA bus? Here is what the EPIA-PD motherboard reports as:- # pciconf -lv [EMAIL PROTECTED]:0:0: class=0x06 card=0xaa011106 chip=0x31231106 rev=0x00 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT8623 Apollo CLE266 CastleRock CPU to PCI Bridge' class= bridge subclass = HOST-PCI [EMAIL PROTECTED]:1:0: class=0x060400 card=0x0080 chip=0xb0911106 rev=0x00 hdr=0x01 vendor = 'VIA Technologies Inc' device = 'VT8633 Apollo Pro 266 CPU to AGP Controller' class= bridge subclass = PCI-PCI [EMAIL PROTECTED]:15:0: class=0x02 card=0x01061106 chip=0x31061106 rev=0x8b hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT6105M/LOM Rhine III PCI Fast Ethernet Controller' class= network subclass = ethernet [EMAIL PROTECTED]:16:0:class=0x0c0300 card=0xaa011106 chip=0x30381106 rev=0x80 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT82x UHCI USB 1.1 Controller (All VIA Chipsets)' class= serial bus subclass = USB [EMAIL PROTECTED]:16:1:class=0x0c0300 card=0xaa011106 chip=0x30381106 rev=0x80 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT82x UHCI USB 1.1 Controller (All VIA Chipsets)' class= serial bus subclass = USB [EMAIL PROTECTED]:16:2:class=0x0c0300 card=0xaa011106 chip=0x30381106 rev=0x80 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT82x UHCI USB 1.1 Controller (All VIA Chipsets)' class= serial bus subclass = USB [EMAIL PROTECTED]:16:3:class=0x0c0320 card=0x31041106 chip=0x31041106 rev=0x82 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT6202 USB 2.0 Enhanced Host Controller' class= serial bus subclass = USB [EMAIL PROTECTED]:17:0:class=0x060100 card=0xaa011106 chip=0x31771106 rev=0x00 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT8235 PCI to ISA Bridge' class= bridge subclass = PCI-ISA [EMAIL PROTECTED]:17:1: class=0x01018a card=0xaa011106 chip=0x05711106 rev=0x06 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT82 EIDE Controller (All VIA Chipsets)' class= mass storage subclass = ATA [EMAIL PROTECTED]:17:5:class=0x040100 card=0xaa011106 chip=0x30591106 rev=0x50 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT8233/33A/8235/8237 AC97 Enhanced Audio Controller' class= multimedia subclass = audio [EMAIL PROTECTED]:18:0: class=0x02 card=0x01021106 chip=0x30651106 rev=0x74 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT6102 Rhine II PCI Fast Ethernet Controller' class= network subclass = ethernet [EMAIL PROTECTED]:0:0: class=0x03 card=0x31221106 chip=0x31221106 rev=0x03 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT8623 Apollo CLE266 CastleRock AGP 8X Controller' class= display subclass = VGA Any other ideas on how to aproach this? Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Hamilton Sent: Monday, 5 September 2005 4:17 PM To: freebsd-questions@freebsd.org Subject: Accessing the Digital IO pins on a VIA EPIA-PD motherboard Hi, Anyone know the interrupts and addresses of the 8 Digital IO pins of the EPIA-PD motherboard? Cheers, Paul Hamilton ___ 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: Accessing the Digital IO pins on a VIA EPIA-PD motherboard - Second question
Hi Roland, Thanks for the VIA Forum tip. I will see what they have to say. Cheers, Paul Hamilton -Original Message- From: Roland Smith [mailto:[EMAIL PROTECTED] Sent: Saturday, 10 September 2005 9:52 PM To: Paul Hamilton Cc: freebsd-questions@freebsd.org Subject: Re: Accessing the Digital IO pins on a VIA EPIA-PD motherboard - Second question On Sat, Sep 10, 2005 at 09:13:20PM +0800, Paul Hamilton wrote: Ok, so it doesn't look like anyone knows anything about how to access the DIO pins on this MB. Next question, How does one go about analysing the hardware to find out what the io and interrupt addresses might be? Looking at page 5 of the manual for this mobo (http://www.viaembedded.com/product/Download.jsp?motherboardId =241), it looks like there is a VT1211 super I/O chip connected to the VT8235 southbridge. The GPI/O is nowhere to be to been seen on this drawing, but the webpage for the VT1211 (http://www.via.com.tw/en/products/peripherals/super-io/) lists 56 General Purpose I/O Pins My guess would be that that's what you're looking for. You'd have to talk to VIA how the 8 pins on the mobo are connected to the VT1211. VIA has released an IrDA driver for the VT1211, but it is Linux-only and binary-only. You could write VIA and ask them to release enough documentation to allow a driver for the digital I/O pins to be written. Good luck. Roland -- R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text. public key: http://www.xs4all.nl/~rsmith/pubkey.txt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Re: C program to write to the com port - RESOLVED
Hi vittorio, Hey I am just a beginner myself, but this is a C program, not a C++ program. My gcc is version 3.4.2 too. Hmm, did you cut and paste ALL of the source code, including the #include statements? I also see that it's mentioning code on lines 62, 66 and 69. My testssc.c only has around 57 lines of code. What else have you included? Cheers, Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of vittorio Sent: Friday, 9 September 2005 7:54 PM To: freebsd-questions@freebsd.org Subject: Fwd: Re: C program to write to the com port - RESOLVED As a C++ absolute beginner I'm trying to compile your testssc.c file with g++ testssc.c -o testssc (under freebsd 5.4, gcc version 3.4.2) But... I only get: SerialPort.C: In function `int main(int, char*)': SerialPort.C:62: error: invalid conversion from `unsigned char*' to `char*' SerialPort.C:62: error: initializing argument 1 of `int snprintf(char*, size_t, const char*, ...)' SerialPort.C:66: error: `err' undeclared (first use this function) SerialPort.C:66: error: (Each undeclared identifier is reported only once for each function it appears in.) SerialPort.C:69:3: warning: no newline at end of file Could you please help to straighten things up? Vittorio -- Messaggio inoltrato -- Subject: Re: C program to write to the com port - RESOLVED Date: 02:23, venerdì 09 settembre 2005 From: Paul Hamilton [EMAIL PROTECTED] To: freebsd-questions@freebsd.org . -- -- /* Name: testssc.c * compile with: gcc testssc.c -o testssc * * Your serial cable should be plugged into com port 1. * You only need the pin 3 and pin 5 (DB9) plugged into the controller. * The servo should be plugged into the first servo channel/port. * This test program when run will move the servo from midrange, * to position 01. This is for demonstrational use only. * Tested with FreeBSD 5.4 * Paul Hamilton 8th Aug 2005 */ #include sys/time.h #include sys/ioctl.h #include errno.h #include fcntl.h #include termios.h /*Originally it was termio.h*/ #include stdio.h #include unistd.h // Use serial port 0 (com port 1) static char *opt_comport=/dev/cuaa0; int main(int argc, char **argv) { int fd; struct termios options; unsigned char buf[4]; // ok, lets try opening the com port printf(Opening Com port: %s\n\n, opt_comport); if((fd = open(opt_comport, O_RDWR | O_NOCTTY )) 0) { printf(Problems opening %s\n, opt_comport); return (-1); } // set the required com port parrameters options.c_cflag = ~CSIZE; /* Mask the character size bits */ options.c_cflag |= CS8; /* Select 8 data bits */ options.c_cflag = ~PARENB; // set no parity options.c_cflag = ~CSTOPB; // set 1 stop bit options.c_oflag = ~OPOST; // Raw output tcgetattr(fd, options); /* * Set the baud rates to 9600... */ cfsetispeed(options, B9600); cfsetospeed(options, B9600); /* * Enable the receiver and set local mode... */ options.c_cflag |= (CLOCAL | CREAD); /* * Set the new options for the port... */ tcsetattr(fd, TCSANOW, options); // ok, lets transmit our 3 bytes through com port 1 snprintf(buf,4,%c%c%c%c,0xff,0x00,0x01,0); printf(buf=%x,%x,%x,%x\n, buf[0],buf[1],buf[2],buf[3]); if (write(fd, buf, 3) != 3) err(1, write); close(fd); }; -- -- Cheers, Paul Hamilton PS. I have three books on programming in C winging their way to Australia. I have a lot to learn :-) ___ 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] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Serial Port data dumping program
Hi Ian, -Original Message- From: Ian Smith [mailto:[EMAIL PROTECTED] Sent: Saturday, 10 September 2005 3:16 AM To: Paul Hamilton Cc: Glenn Dawson; freebsd-questions@freebsd.org Subject: RE: Serial Port data dumping program Hi Paul, catching up on a week's digests .. and seeig no further messages on this topic so far, I don't know whether you've sorted this out yet. Anyway.. Snip I have been using the 'minicom' port to dump the received data. I guess you mean the _transmitted_ data, right? I just grabbed the manual at http://www.seetron.com/pdf/ssc2_mnl.pdf and note that the board only _receives_ command data packets. Yes that's correct However, it doesn't seem to collect the data properly. Data coming in should be in accordance with the SSC protocol, ie: byte 1:0xFF// sync byte byte 2: 0x01 - 0x25f//servo address How do you fit 0x25f into a single byte? (I count 10 bits required) Yep, a typo, should have been: 0xff Well, it should be 0-7 (for 1 board, 8-15 for a second board, etc) Yes I was confused about what the starting address was. After looking at the bytes being sent from the Windows program, I could see the correct starting address was 0. byte 3: 0x00 - 0x255 // servo position Same question as above. Brain thinking in hex, fingers working in decimal ;-) Actually it's 0-254 (0x00 - 0xfe) .. 0xff would be another sync byte. True. Here is a dump of the collected data (via minicom): #hexdump minicom.cap 000 45ff 49ff 4cff 50ff 53ff 57ff 5aff 57ff 010 53ff 50ff 4cff 49ff 45ff 45ff 01ff ff82 020 8101 01ff ff80 8202 02ff ff81 8002 03ff 030 ff83 8203 03ff ff81 8003 7fff 7fff 7eff 040 01ff ff7f 7f02 03ff ff7f ff7f 8001 02ff 050 ff80 8003 04ff ff80 ff80 8006 07ff 0080 Looking at the first row of data, it is only showing two bytes, sync and servo position. Rows 020 and 030, shows some servo addresses, but sometimes, together! Both the mini-ssc.exe and minicom program are using 9600 8n1, so why is it showing this? Is there something I have missed in the setup of minicom? Looks like this is a serial buffer problem. Maybe flow control? Is the serial port's UART programmed to ignore CTS/RTS, and/or DTR/DSR? You say you've only wired signal ground, and TxD to RxD, but you 'normally' can't transmit unless CTS is asserted (say, by RTS), may need DTR/DSR too, and perhaps expect DCD to receive? I don't really get what you're doing with minicom - are you receiving the data on another port, or just echoing your transmitted data back? This is what I thought as well. I had a serial port breakout box wired inline and configured pretty well as you mention. Once I had found the Windows mini-ssc program, I then 'just for a lark' pulled one jumper wire at a time, until I found that it was working as a straight through cable! snip paqi% hexdump fgjdg kj ^D 000 6766 646a 2067 6a6b 000a 009 paqi% hd fgjdg kj ^D 66 67 6a 64 67 20 6b 6a 0a |fgjdg kj.| 0009 Is there a better program I could use to display the incoming serial data in hex? hd :) Again, you mean a reflection of your outgoing data, don't you? NOTE: I only use two wires, signal ground and Tx Data (connected to the Rx Data). The servo does respond correctly, so I know the serial data must be in the correct 3 byte format. You could try 2 stop bits - they say one or more. In the second example program in (good grief!) QBASIC in the above PDF manual, they begin by initialising the serial port thus: OPEN com1:9600,N,8,1,CD0,CS0,DS0,OP0 FOR OUTPUT AS #1; I gather CD0 means ignore DCD, CS0 ignore CTS, DS0 ignore DSR; don't know about OP0. Seems you need no flow control, or null-modem wiring? Cheers, Ian Ah, hd! Yes this is a nice program. No byte re-ordering I have noted it down :-) I don't know if you saw one of my other threads C program to write to the com port which is now resolved. I started this thread to help with the troubleshooting of the serial data coming from the C Program. It's interesting that minicom seems to skip recording the 0x00 servo address byte! Thanks for your help. Cheers, Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: C program to write to the com port - RESOLVED
Hi, Thanks to the patience and persistens of Giorgos, Garret and David, I now have a *sample* program that will transmit 3 bytes of data (mini-ssc protocol), via a serial port to a 8 channel servo controller board. I will continue to develop this as needed. DISCLAIMER: This is being posted for archival purposes, and no doubt can use a lot of improvement! /* Name: testssc.c * compile with: gcc testssc.c -o testssc * * Your serial cable should be plugged into com port 1. * You only need the pin 3 and pin 5 (DB9) plugged into the controller. * The servo should be plugged into the first servo channel/port. * This test program when run will move the servo from midrange, * to position 01. This is for demonstrational use only. * Tested with FreeBSD 5.4 * Paul Hamilton 8th Aug 2005 */ #include sys/time.h #include sys/ioctl.h #include errno.h #include fcntl.h #include termios.h /*Originally it was termio.h*/ #include stdio.h #include unistd.h // Use serial port 0 (com port 1) static char *opt_comport=/dev/cuaa0; int main(int argc, char **argv) { int fd; struct termios options; unsigned char buf[4]; // ok, lets try opening the com port printf(Opening Com port: %s\n\n, opt_comport); if((fd = open(opt_comport, O_RDWR | O_NOCTTY )) 0) { printf(Problems opening %s\n, opt_comport); return (-1); } // set the required com port parrameters options.c_cflag = ~CSIZE; /* Mask the character size bits */ options.c_cflag |= CS8; /* Select 8 data bits */ options.c_cflag = ~PARENB; // set no parity options.c_cflag = ~CSTOPB; // set 1 stop bit options.c_oflag = ~OPOST; // Raw output tcgetattr(fd, options); /* * Set the baud rates to 9600... */ cfsetispeed(options, B9600); cfsetospeed(options, B9600); /* * Enable the receiver and set local mode... */ options.c_cflag |= (CLOCAL | CREAD); /* * Set the new options for the port... */ tcsetattr(fd, TCSANOW, options); // ok, lets transmit our 3 bytes through com port 1 snprintf(buf,4,%c%c%c%c,0xff,0x00,0x01,0); printf(buf=%x,%x,%x,%x\n, buf[0],buf[1],buf[2],buf[3]); if (write(fd, buf, 3) != 3) err(1, write); close(fd); }; Cheers, Paul Hamilton PS. I have three books on programming in C winging their way to Australia. I have a lot to learn :-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Serial Port data dumping program
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glenn Dawson Sent: Monday, 5 September 2005 5:19 PM To: Paul Hamilton; freebsd-questions@freebsd.org Subject: Re: Serial Port data dumping program At 01:08 AM 9/5/2005, Paul Hamilton wrote: Hi, I am trying to debug a Mini SSC FreeBSD program that I am trying to write. It would be nice to be able to be able to see what is being transmitted. It would help in the debugging of my program. Here is a link to a Windows based Mini SSC program: http://www.rentron.com/Mini-ssc.htm Using this, I can control the servo, so I know the hardware and cables work etc. I have been using the 'minicom' port to dump the received data. However, it doesn't seem to collect the data properly. Data coming in should be in accordance with the SSC protocol, ie: byte 1:0xFF// sync byte byte 2: 0x01 - 0x25f//servo address How do you fit 0x25f into a single byte? (I count 10 bits required) Yep, a typo, should have been: 0xff byte 3: 0x00 - 0x255 // servo position Same question as above. Brain thinking in hex, fingers working in decimal ;-) Here is a dump of the collected data (via minicom): #hexdump minicom.cap 000 45ff 49ff 4cff 50ff 53ff 57ff 5aff 57ff 010 53ff 50ff 4cff 49ff 45ff 45ff 01ff ff82 020 8101 01ff ff80 8202 02ff ff81 8002 03ff 030 ff83 8203 03ff ff81 8003 7fff 7fff 7eff 040 01ff ff7f 7f02 03ff ff7f ff7f 8001 02ff 050 ff80 8003 04ff ff80 ff80 8006 07ff 0080 Looking at the first row of data, it is only showing two bytes, sync and servo position. Rows 020 and 030, shows some servo addresses, but sometimes, together! Both the mini-ssc.exe and minicom program are using 9600 8n1, so why is it showing this? Is there something I have missed in the setup of minicom? Looks like this is a serial buffer problem. You probably have byte ordering issues. Does something like this look more reasonable? 000 ff45 ff49 ff4c ff50 ff53 ff57 ff5a ff57 010 ff53 ff50 ff4c ff49 ff45 ff45 ff01 82ff 020 0181 ff01 80ff 0282 ff02 81ff 0280 ff03 030 83ff 0382 ff03 81ff 0380 ff7f ff7f ff7e 040 ff01 7fff 027f ff03 7fff 7fff 0180 ff02 050 80ff 0380 ff04 80ff 80ff 0680 ff07 8000 -Glenn Yes, somewhat better, but still missing bytes here and there, ie. First line, all the servo address bytes etc. Why would the bytes be swapped around? Cheers, Paul Is there a better program I could use to display the incoming serial data in hex? NOTE: I only use two wires, signal ground and Tx Data (connected to the Rx Data). The servo does respond correctly, so I know the serial data must be in the correct 3 byte format. Looking fwd to your thoughts. Cheers, Paul Hamilton ___ 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] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Pulsar ADSL Drivers for FreeBSD 4.11 and 5.4
Hi, I have found this site: http://sourceforge.net/projects/openadsl/ There is a driver for OpenBSD, but the file names are slightly different to FreeBSD. Reading through the mailing list archives, there were some people working on a FreeBSD 5.4 driver patch. Does anyone know what the status is on this? Has anyone got the OpenBSD drivers going on FreeBSD 4.x or 5.4? I would be interested in giving this a go. Cheers, Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Directory permissions issue taring directories onto a Compact Flashcard
Well, I never really resolved this. I later tried taring at a sh prompt. Same deal. I had tried manually chmoding the /mnt dir. To 777, but that didn't help either. In the end I gave up, and did a fresh install straight onto the CF drive from the CD. I did try a 6.0 beta3 install, but it kept crashing early in the install process, so 5.4 it is (for the time being). Cheers, Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Hamilton Sent: Saturday, 27 August 2005 10:28 PM To: freebsd-questions@freebsd.org Subject: Directory permissions issue taring directories onto a Compact Flashcard Hi, I have done a minimal FreeBSD 5.4 install onto single partition ad0s1a I then mounted my 512MB Compact Flash ide drive on ad2s1. When I run this command su'ed as root: tar --one-file-system cf - -C / . | tar xpvf - -C /mnt I find that all the directories end up with permissions of: drwx-- Even running: dump 0af - / | restore xf - gives the same result. If I manually create a directory on the CF /mnt I get the correct permissions! Files copied over via tar and dump are ok. I have used tar to copy HD contents to larger HD,s before with out a problem. Umask is set to 22, and this is being done in a tcsh shell. Any clue on whats going on? Cheers, Paul Hamilton. ___ 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]
Directory permissions issue taring directories onto a Compact Flash card
Hi, I have done a minimal FreeBSD 5.4 install onto single partition ad0s1a I then mounted my 512MB Compact Flash ide drive on ad2s1. When I run this command su'ed as root: tar --one-file-system cf - -C / . | tar xpvf - -C /mnt I find that all the directories end up with permissions of: drwx-- Even running: dump 0af - / | restore xf - gives the same result. If I manually create a directory on the CF /mnt I get the correct permissions! Files copied over via tar and dump are ok. I have used tar to copy HD contents to larger HD,s before with out a problem. Umask is set to 22, and this is being done in a tcsh shell. Any clue on whats going on? Cheers, Paul Hamilton. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
C program to write to the com port
Hi, I am trying to write a C program that will send 3 bytes to the cuaa0 com port at 9600 baud, 8n1. I am trying to control a Northlight 8 Channel Servo motor controller: http://home.att.net/~northlightsystems/DMX512toRCservo.htm Most of the code came from this page: http://www.easysw.com/~mike/serial/serial.html Here is what I have so far:- --- #include sys/time.h #include sys/ioctl.h #include errno.h #include fcntl.h #include termios.h /*Originally it was termio.h*/ #include stdio.h #include unistd.h static char *opt_comport=/dev/cuaa0; int main(int argc, char **argv) { int n; int dcf_dev; int sdata = 0xFF0090; // sync byte, address, servo value to be sent to the Servo Controller struct termios options; // ok, lets try opening the com port printf(Opening Com port: %s\n\n, opt_comport); if((dcf_dev = open(opt_comport, O_RDWR | O_NOCTTY | O_NDELAY)) 0) { printf(Problems opening %s\n, opt_comport); return (-1); } // set the required com port parrameters options.c_cflag = ~CSIZE; /* Mask the character size bits */ options.c_cflag |= CS8; /* Select 8 data bits */ options.c_cflag = ~PARENB; // set no parity options.c_cflag = ~CSTOPB; // set 1 stop bit options.c_oflag = ~OPOST; // Raw output tcgetattr(dcf_dev, options); /* * Set the baud rates to 9600... */ cfsetispeed(options, B9600); cfsetospeed(options, B9600); /* * Enable the receiver and set local mode... */ options.c_cflag |= (CLOCAL | CREAD); /* * Set the new options for the port... */ tcsetattr(dcf_dev, TCSANOW, options); // ok, lets transmit our 3 bytes to com port 1 n = write(dcf_dev, sdata, 3); if (n 0) fputs(write() of 3 bytes failed!\n, stderr); printf(Output status: %d bytes written out\n, n); exit(1); }; --- Now I am just a beginner at C code, so I feel pretty good getting this far (hey, it compiles :-) However, a miss is as good as a mile, and so it doesn't work :-( Having said that, I have a serial port LED breakout device watching, and I can see a blip on the TX line when I run the compiled program. This is just meant to be test code, i.e.. Get it working before cleaning it up etc :-) I have tried connecting the computers serial port to another one, running: 'cu -s 9600 -l cuaa0' but I don't see anything. Having said that, I don't see anything if I run the same on the other PC (yes, the TX-RX lines are swapped over), so maybe that is a problem with my serial cable between the two computers. The Servo Controller only needs two wires: signal ground and TX so not much to go wrong there, and as I said above, I do see a blip on the TX LED when I run the program. Questions: 1. Am I really sending the data correctly at 9600baud, 8n1? 2. Am I really sending the hex bytes: FF 00 90 out (or am I sending an pointer address)? 3. What am I missing? Thanks. Cheers, Paul Hamilton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: DHCP Server Offline.
The du command is your friend. Have a look at 'man du' Maybe something like: du -d2 /var Cheers, Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephan Weaver Sent: Friday, 15 July 2005 10:25 PM To: [EMAIL PROTECTED]; freebsd-questions@freebsd.org Subject: Re: DHCP Server Offline. I Found out the Problem, The /var partation is full. How do i find out where is taking up all the space? Thanks From: Ean Kingston [EMAIL PROTECTED] To: freebsd-questions@freebsd.org CC: [EMAIL PROTECTED] Subject: Re: DHCP Server Offline. Date: Fri, 15 Jul 2005 10:18:09 -0400 On July 15, 2005 10:11 am, Stephan Weaver wrote: Hello folks, I have a Stand Alone FreeBSD Firewall / Nat / Dhcp Server. Everything seems to work fine, up until this morning. Users seem to complain they could not get on the network anymore. Further investigation revealed the dhcp server could not be contacted. Further more, only some of the users were online. I am guessing that these clients who were online had an ip address from the dhcp server at a previous time and the lease didnt expire as yet. And users who were not online, the lease expired and attempted to contact the dhcp server and failed. I Would appreciate any help or suggestions. Set the lease expire time to at least 5 days (7 to 10 is better) and the renewal time to between 4 and 12 hours. Then setup a dhcp monitoring process that will alert you if it fails to get an address or renewal. Make sure you have more addresses available than you ever expect to give out. I go with 50% more. I've known some admins that want at least double. Like what to do in the future incase this happens again. Setup 2 dhcp servers on the network. If one fails, the other will hopefully continue to serve addresses. Monitor this one as well. I Would like to find out what had happened. Start reading logs. The last thing that i had done to the server was setup, configure and install 'ntop'; dont know if this would cause a problem. Thank you in advance. Stephan Weaver P.S. Please reply to my Directly at @ [EMAIL PROTECTED] -- Ean Kingston E-Mail: ean AT hedron DOT org URL: http://www.hedron.org/ I am currently looking for work. If you need competent system/network administration please feel free to contact me directly. _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ ___ 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]
Anyone running FreeBSD 4.x or 5.x on a 'VIA EPIA PD' mini-ITX
Hi, Anyone running FreeBSD 4.x or 5.x on a 'VIA EPIA PD' mini-ITX I would be interested to see if you get the full chipset functionality, ie. both NIC's, IDE HD, VGA (X-Windows or just CLI), Audio, USB? How about the Digital IO section? They look very nice :-) http://www.viaembedded.com/product/4/8/epia_pdh.jpg Cheers, Paul Hamilton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Anyone running FreeBSD 4.x or 5.x on a 'VIA EPIA PD' mini-ITX
Cool! Thanks Andreas. I am thinking of using one for the same thing. Cheers, Paul -Original Message- From: Andreas Rudisch [mailto:cyb.@gmx.net] Sent: Sunday, 3 July 2005 3:29 AM To: Paul Hamilton Cc: 'Freebsd-Questions' Subject: Re: Anyone running FreeBSD 4.x or 5.x on a 'VIA EPIA PD' mini-ITX On Sat, 2005-07-02 at 18:24 +0800, Paul Hamilton wrote: Hi, Anyone running FreeBSD 4.x or 5.x on a 'VIA EPIA PD' mini-ITX I would be interested to see if you get the full chipset functionality, ie. both NIC's, IDE HD, VGA (X-Windows or just CLI), Audio, USB? How about the Digital IO section? They look very nice :-) http://www.viaembedded.com/product/4/8/epia_pdh.jpg Cheers, Paul Hamilton Hi Paul, I use a VIA EPIA PD-1 as a small dsl- router / ftp / print / whatever-server for my LAN here at home running FreeBSD 5.4. The NICs, HDD, USB, CLI work fine. Audio and X-Windows should work too. (I have only tested this on an EPIA M-1, but there it worked without any problems. The onboard graphic chip is fast enough for most 2D application, but it was to slow for me to playback xvid/divx, but an additional PCI graphic card should solve this problem.) When transfering data via ftp I get about 10MB/s up/down. Make buildworld takes about two hours. All in all, it is a nice system and fits my needs. I like it. Andreas -- GnuPG key : 0xD25FCC81 | http://cyb.websimplex.de/pubkey.asc Fingerprint: D182 6F22 7EEC DD4C 0F6E 564C 691B 0372 D25F CC81 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Detailed logging of ssh sessions
Hi Bill, Just as a side note, to help with people guessing a password, how about having a script that monitors the auth.log file and when you get more than X number of entries of username/password tries coming from one IP, it then writes a firewall entry that blocks the IP. You could have a counter/timer, that would release the IP after Y number of minutes (24 hours?). Of course, you could exclude your usual admin IP's from being monitored. Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Moran Sent: Sunday, 19 June 2005 11:39 PM To: [EMAIL PROTECTED] Subject: Detailed logging of ssh sessions I've been researching this, and so far haven't found a way to do what I want to do. I have servers here and there, that should only be accessible by a limited number of administrators via ssh (i.e. mail and web servers, firewalls). As an added security measure, I'd like to start logging everything that happens during any ssh login (since all our work on these machines is via ssh). I understand, and frequently use script(1), but I want this to be required. I have two goals: 1) If someone manages to guess a password and break in, I want a log of what they're doing. 2) I want 100% guarantee that everything we do is recorded, to make future debugging of configuration mistakes easier. I've been researching sshd, and it doesn't seem as if it has this capability. Web searches have not yet turned up anything ... I'm guessing I'm not searching for the right phrases, since I can't believe I'm the only one doing this. Any advice or pointers are welcome. -- Bill Moran Potential Technologies http://www.potentialtech.com ___ 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]
Error compiling ipfw2 on FreeBSD 4.11-RELEASE and 4.11-p10
Hi, I have upgraded from FreeBSD 4.7 to 4.11-RELEASE via booting from CD 1. I have IPFW2 options already set in my kernel config file, and in /etc/make.conf Next, I recompile the kernel, and install it. Then I went to the /usr/src/sbin/ipfw dir:- /usr/src/sbin/ipfw-121 mailto:[EMAIL PROTECTED]:19pm]/usr/src/sbin/ipfw-121 # make clean rm -f ipfw ipfw2.o ipfw.8.gz ipfw.8.cat.gz /usr/src/sbin/ipfw-122 mailto:[EMAIL PROTECTED]:19pm]/usr/src/sbin/ipfw-122 # make -DIPFW2 cc -O -pipe -Wall -DIPFW2-c /usr/src/sbin/ipfw/ipfw2.c /usr/src/sbin/ipfw/ipfw2.c: In function `list': /usr/src/sbin/ipfw/ipfw2.c:1698: warning: `last' might be used uninitialized in this function cc -O -pipe -Wall -DIPFW2 -static -o ipfw ipfw2.o gzip -cn /usr/src/sbin/ipfw/ipfw.8 ipfw.8.gz /usr/src/sbin/ipfw-123 mailto:[EMAIL PROTECTED]:19pm]/usr/src/sbin/ipfw-123 # l total 226 2 drwxr-xr-x 2 root wheel512 Apr 10 17:32 ./ 2 drwxr-xr-x 82 root wheel 1536 Apr 10 17:20 ../ 2 -rw-r--r-- 1 root wheel196 Jul 24 2002 Makefile 64 -rw-r--r-- 1 root wheel 65358 Jun 16 2004 ipfw.8 62 -rw-r--r-- 1 root wheel 62391 Apr 10 17:20 ipfw.c 94 -rw-r--r-- 1 root wheel 95621 Nov 9 2004 ipfw2.c I have also tried running 'make' by itself (with out the -DIPFW2 switch) So just as a test, I tried doing the same thing from another FreeBSD 4.11-p10 server (IPFW2 was installed during the buildworld-installworld process). I got the same error when manually trying to compile IPFW2! I have never had a problem before. What am I doing wrong here? Any clues? Cheers, Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Error compiling ipfw2 on FreeBSD 4.11-RELEASE and 4.11-p10
Hi, Thanks. Hmm, I am pretty sure you still need to re-compile IPFW etc. After a bit of a panic, and a dig around, I found that things have changed, and the compiled ipfw file is now located in: /usr/obj/usr/src/sbin/ipfw/ipfw this can then be copied to /sbin/ipfw same for the libalias.so.4 file. Whew! I don't think it was it was like this in 4.10. Must be a 4.11 thing. Cheers, Paul -Original Message- From: fbsd_user [mailto:[EMAIL PROTECTED] Sent: Monday, 13 June 2005 7:45 PM To: Paul Hamilton Subject: RE: Error compiling ipfw2 on FreeBSD 4.11-RELEASE and 4.11-p10 I think ipfw2 has replaced ipfw in the base release by 4.11. You nolonger have to do anything after compiling the kernel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul Hamilton Sent: Monday, June 13, 2005 7:31 AM To: Freebsd-Questions Subject: Error compiling ipfw2 on FreeBSD 4.11-RELEASE and 4.11-p10 Hi, I have upgraded from FreeBSD 4.7 to 4.11-RELEASE via booting from CD 1. I have IPFW2 options already set in my kernel config file, and in /etc/make.conf Next, I recompile the kernel, and install it. Then I went to the /usr/src/sbin/ipfw dir:- /usr/src/sbin/ipfw-121 mailto:[EMAIL PROTECTED]:19pm]/usr/src/sbin/ipfw-121 # make clean rm -f ipfw ipfw2.o ipfw.8.gz ipfw.8.cat.gz /usr/src/sbin/ipfw-122 mailto:[EMAIL PROTECTED]:19pm]/usr/src/sbin/ipfw-122 # make -DIPFW2 cc -O -pipe -Wall -DIPFW2-c /usr/src/sbin/ipfw/ipfw2.c /usr/src/sbin/ipfw/ipfw2.c: In function `list': /usr/src/sbin/ipfw/ipfw2.c:1698: warning: `last' might be used uninitialized in this function cc -O -pipe -Wall -DIPFW2 -static -o ipfw ipfw2.o gzip -cn /usr/src/sbin/ipfw/ipfw.8 ipfw.8.gz /usr/src/sbin/ipfw-123 mailto:[EMAIL PROTECTED]:19pm]/usr/src/sbin/ipfw-123 # l total 226 2 drwxr-xr-x 2 root wheel512 Apr 10 17:32 ./ 2 drwxr-xr-x 82 root wheel 1536 Apr 10 17:20 ../ 2 -rw-r--r-- 1 root wheel196 Jul 24 2002 Makefile 64 -rw-r--r-- 1 root wheel 65358 Jun 16 2004 ipfw.8 62 -rw-r--r-- 1 root wheel 62391 Apr 10 17:20 ipfw.c 94 -rw-r--r-- 1 root wheel 95621 Nov 9 2004 ipfw2.c I have also tried running 'make' by itself (with out the -DIPFW2 switch) So just as a test, I tried doing the same thing from another FreeBSD 4.11-p10 server (IPFW2 was installed during the buildworld-installworld process). I got the same error when manually trying to compile IPFW2! I have never had a problem before. What am I doing wrong here? Any clues? Cheers, Paul ___ 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]
running FreeBSD 4.11 or 5.4 on a SBC
Hi, I have a need for a Single Board Computer (SBC), something like the TS-5600 http://www.embeddedarm.com/epc/ts5600-spec-p.php My requirements are: +100MHz CPU Wireless 802.11b 3 or 4 Serial ports boot from a CF card 8 ch. A/D 2 ch. D/A less than 5 watts of power! is this do-able in FreeBSD? Since I am on this subject, I was going to use an old P-120 motherboard running with a hard drive for development. Does any one know of a cheep A/D - D/A and DIO PCI card that can be used with FreeBSD? I am hoping to most of the development in C (little as possible, as I am just learning C), and shell scripts. Thanks. Cheers, Paul Hamilton. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: different passwords for local and remote login?
Hi Geert, Couldn't you just login remotely as someone different, and then (if needed), su to the correct user? That's what I do. Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Hendrickx Sent: Wednesday, 8 December 2004 4:17 PM To: [EMAIL PROTECTED] Subject: different passwords for local and remote login? Hi, is it possible to have a different password for local (console, xdm) and remote (ssh) logins? I have a separate password database for my imap-server (dovecot), and I was wondering whether this is possible with OpenSSH, too. GH ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Anyone running FreeBSD on a HP DL140 server?
Hi, I would like to run FreeBSD on a cheep HP server, and the DL140 looks great from a price point of view. Has anyone tried installing FreeBSD 4.10 or 5.3 on one of these? Anyone know of a current dual port NIC that is supported under FreeBSD, and will fit into the above server? I would like to use it as a web and mail server and firewall. Cheers, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
problems starting mpd
Hi, I had mpd running fine, then for some reason it now refuses to start properly. I now get this in my mpd.log:- Dec 7 07:29:36 abc1 mpd: [pptp] ppp node is mpd68948-pptp Dec 7 07:29:36 abc1 mpd: [pptp] can't connect iface and inet: File exists Dec 7 07:29:36 abc1 mpd: [pptp] netgraph initialization failed Dec 7 07:29:36 abc1 mpd: mpd: no bundles defined Dec 7 07:29:36 abc1 last message repeated 17 times The key statement I think is: can't connect iface and inet: File exists What file is this refering too? When I stop mpd, the mpd.pid is removed. Google shows up a Portuguese thread, but running them threw Babelfish didn't show up much. FreeBSD mailing lists didn't show much either my mpd.conf file:- -- default: load pptp1 pptp1: new -i ng0 pptp pptp set iface disable on-demand set iface enable proxy-arp set iface idle 1800 set bundle enable multilink set link yes acfcomp protocomp set link no pap chap set link enable chap set link keep-alive 10 60 set link mtu 1460 set ipcp yes vjcomp set ipcp ranges 192.168.0.10/24 192.168.0.65/24 set ipcp dns 192.168.1.3 set ipcp nbns 192.168.1.4 log -phys -lcp -ccp -console -fsm -radius -ipcp -link -iface set bundle enable compression set ccp yes mppc set ccp yes mpp-e40 set ccp yes mpp-e128 set ccp yes mpp-stateless. -- Any ideas? Cheers, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: downloadable location of old FreeBSD packages
Thanks for the link Kris. I had a bit of a hunt around, looking for a 4.6 release, but none to be found :-( I have just finished trying a ports upgrade (current), but ran out of HD space! I guess, that's one nice reason to have a packages solution! Cheers, Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Kris Kennaway Sent: Thursday, 22 July 2004 12:31 AM To: Paul Hamilton Cc: Freebsd-Questions Subject: Re: downloadable location of old FreeBSD packages On Wed, Jul 21, 2004 at 11:53:51PM +0800, Paul Hamilton wrote: Hi, I am hunting around for mpd package for FreeBSD 4.6 I have tried version mpd-3.14 for FreeBSD 4.7, but get this error when trying to run it: /usr/libexec/ld-elf.so.1: Undefined symbol _shadow_DES_check_key referenced from COPY relocation in /usr/local/sbin/mpd I have also tried version mpd-3.15 as well, but get the same results. This is a remote server, running on a busy modem, so I don't really want to try and upgrade to the latest ports tree. Also the latest apparently requires OpenSSL, and hence OpenSSH, and buy, I don't want to stuff that upgrade up. I can't afford the drive. See http://mirrorlist.freebsd.org/FBSDsites.php Note that old versions of openssl have multiple security vulnerabilities, so it's not advisable to use them. Kris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
downloadable location of old FreeBSD packages
Hi, I am hunting around for mpd package for FreeBSD 4.6 I have tried version mpd-3.14 for FreeBSD 4.7, but get this error when trying to run it: /usr/libexec/ld-elf.so.1: Undefined symbol _shadow_DES_check_key referenced from COPY relocation in /usr/local/sbin/mpd I have also tried version mpd-3.15 as well, but get the same results. This is a remote server, running on a busy modem, so I don't really want to try and upgrade to the latest ports tree. Also the latest apparently requires OpenSSL, and hence OpenSSH, and buy, I don't want to stuff that upgrade up. I can't afford the drive. So, does any one have mpd-3.13 (I presume it came with FreeBSD 4.6) or a URL where I can download. Oh, yes, I tried the FreeBSD 4.6 CD 1, but it's not on there. Thanks, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: script entry to finding the version after a cvsup
Hi Kent, Thanks for that tip off. After lots of digging around in google, I found this site: http://simon.nitro.dk/freebsd-tips.php that mentions how to use script: newvers.sh grep -E 'BRANCH|REVISION' /usr/src/sys/conf/newvers.sh Cool. Cheers, paul -Original Message- From: Kent Stewart [mailto:[EMAIL PROTECTED] Sent: Wednesday, 2 June 2004 1:09 AM To: [EMAIL PROTECTED] Cc: Paul Hamilton Subject: Re: script entry to finding the version after a cvsup On Tuesday 01 June 2004 06:55 am, Paul Hamilton wrote: Hi, I have written a basic script to cvsup, buildworld and install the new kernel-world etc. I have introduced some basic logging, so I can track the time taken. Now I would like to track the version it was before the upgrade (ie. uname -r ), and what it is after the upgrade. Now, I can't use uname -r, because the server has to be restarted so it can pick up the new kernel etc. So my question is, where can I find a entry in the downloaded kernel/world source files that says that it is FreeBSD 4.9 p9 etc. I can't use stable-supfile, because it only records the 'branch' that is being upgraded, not the full version. Any clues? Look at /usr/src/sys/conf/newvers.sh Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
script entry to finding the version after a cvsup
Hi, I have written a basic script to cvsup, buildworld and install the new kernel-world etc. I have introduced some basic logging, so I can track the time taken. Now I would like to track the version it was before the upgrade (ie. uname -r ), and what it is after the upgrade. Now, I can't use uname -r, because the server has to be restarted so it can pick up the new kernel etc. So my question is, where can I find a entry in the downloaded kernel/world source files that says that it is FreeBSD 4.9 p9 etc. I can't use stable-supfile, because it only records the 'branch' that is being upgraded, not the full version. Any clues? Cheers, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
error compiling kdegraphics3 (openmotif-2.2.2/clients) port
Hi, I am trying to compile the latest KDE-3.2.1 I grabed via cvsup for FreeBSD 4.9 I have had a few problems portupgrading from KDE 3.1 to the current KDE. I magaged to get around the other problems, using 'pkgdb -F' etc. This one has me though, as it seems to be a syntax error. Here is the last few lines, whilst doing a 'make install clean' in 'kdegraphics3': gmake[3]: Entering directory `/usr/ports/x11-toolkits/open-motif/work/openmotif-2.2.2/clients/mwm/WmWsmLi b' cc -DHAVE_CONFIG_H -I. -I. -I../../../include -I/usr/X11R6/include -I./../.. /../lib -DCSRG_BASED -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI -O -pipe -Wall -Wno-unused -Wno-comment -c send.c In file included from /usr/X11R6/include/Xm/DragC.h:29, from /usr/X11R6/include/Xm/DragDrop.h:29, from /usr/X11R6/include/Xm/Transfer.h:29, from send.c:42: /usr/X11R6/include/Xm/Xm.h:1655: syntax error before `XmConvertCallbackStruct' send.c: In function `WSMSendMessage': send.c:92: warning: implicit declaration of function `GetTimestamp' gmake[3]: *** [send.o] Error 1 gmake[3]: Leaving directory `/usr/ports/x11-toolkits/open-motif/work/openmotif-2.2.2/clients/mwm/WmWsmLi b' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/x11-toolkits/open-motif/work/openmotif-2.2.2/clients/mwm' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/x11-toolkits/open-motif/work/openmotif-2.2.2/clients' gmake: *** [all-recursive] Error 1 *** Error code 2 Stop in /usr/ports/x11-toolkits/open-motif. *** Error code 1 Stop in /usr/ports/graphics/xpdf. *** Error code 1 Stop in /usr/ports/graphics/kdegraphics3. Hmmm, so lets have a look at line 1655 in: '/usr/X11R6/include/Xm/Xm.h' / Direction.c */ Boolean XmDirectionMatch(XmDirection dir1, XmDirection dir2); Boolean XmDirectionMatchPartial(XmDirection dir1, XmDirection dir2, XmDirection dir_mask); XmStringDirection XmDirectionToStringDirection(XmDirection dir); XmDirection XmStringDirectionToDirection(XmStringDirection sdir); /*** Xme.c / void XmeConvertMerge(XtPointer data, Atom type, int format, unsigned long length, XmConvertCallbackStruct *call_data);- Line 1655. Syntax error on this line? #ifdef __cplusplus } #endif Or is the real error in send.c, any clues on how to fix this? Cheers, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: PPTP client LCP errors
How about using mpd, as your VPN server? Nice and easy to install and configure. See the mpd port. Cheers, Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Martin Tsachev Sent: Monday, 22 March 2004 6:46 AM To: [EMAIL PROTECTED] Subject: PPTP client LCP errors -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi guys, I'm having a problem connection to a PPTP server using FreeBSD 5.2 and pptp linux 1.3.1. It works fine from a Debian box that's behind the FreeBSD gateway that I want to connect to the VPN but since FreeBSD's ppp is different than the one in Linux I cannot simply copy my config. The server doesn't use mppe, on windows you have to disable LCP extensions to connect. The linux config is pretty straightforward but if you need that I can copy it too. Here's what I have on FreeBSD: /etc/ppp/ppp.conf vpn: # down lcp # disable vjcomp # disable MSCHAPv2 # disable mppe # enable deflate pred1 # close lcp # lcp-echo-interval 30 # lcp-echo-request 0 # open lcp # set openmode passive # set openmode passive # set stopped 3 # disable lqr set authname username set authkey password set timeout 0 set ifaddr 0 0 add 192.168.0.0/16 HISADDR # set log Phase LCP Connect tun Warning Alert set log phase chat lcp ipcp ccp tun command # alias enable yes # noauth I start it by doing ppp ip vpn. and in /var/log/ppp.log when trying to connect I get: The following part is repeated a few times and I think it's failing: Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP: ACFCOMP[2] Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP: PROTOCOMP[2] Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP: ACCMAP[6] 0x Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP: MRU[4] 1500 Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP: MAGICNUM[6] 0xda445afa Mar 22 00:34:52 mtb ppp[9415]: Phase: Using interface: tun0 Mar 22 00:34:52 mtb ppp[9415]: Phase: deflink: Created in closed state Mar 22 00:34:52 mtb ppp[9415]: tun0: Phase: PPP Started (direct mode). Mar 22 00:34:52 mtb ppp[9415]: tun0: Phase: bundle: Establish Mar 22 00:34:52 mtb ppp[9415]: tun0: Phase: deflink: closed - opening Mar 22 00:34:52 mtb ppp[9415]: tun0: Phase: deflink: Connected! Mar 22 00:34:52 mtb ppp[9415]: tun0: Phase: deflink: opening - carrier Mar 22 00:34:53 mtb ppp[9415]: tun0: Phase: deflink: carrier - lcp Mar 22 00:34:53 mtb ppp[9415]: tun0: LCP: FSM: Using deflink as a transport Mar 22 00:34:53 mtb ppp[9415]: tun0: LCP: deflink: State change Initial -- Closed Mar 22 00:34:53 mtb ppp[9415]: tun0: LCP: deflink: State change Closed -- Stopped Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP: deflink: LayerStart Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP: ACFCOMP[2] Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP: PROTOCOMP[2] Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP: ACCMAP[6] 0x Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP: MRU[4] 1500 Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP: MAGICNUM[6] 0xda445afa Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP: deflink: State change Stopped -- Req-Sent Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP: ACFCOMP[2] Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP: PROTOCOMP[2] Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP: ACCMAP[6] 0x Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP: MRU[4] 1500 Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP: MAGICNUM[6] 0xda445afa Mar 22 00:35:00 mtb ppp[9415]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent Mar 22 00:35:00 mtb ppp[9415]: tun0: LCP: ACFCOMP[2] Mar 22 00:35:00 mtb ppp[9415]: tun0: LCP: PROTOCOMP[2] Mar 22 00:35:00 mtb ppp[9415]: tun0: LCP: ACCMAP[6] 0x Mar 22 00:35:00 mtb ppp[9415]: tun0: LCP: MRU[4] 1500 Mar 22 00:35:00 mtb ppp[9415]: tun0: LCP: MAGICNUM[6] 0xda445afa Mar 22 00:35:03 mtb ppp[9415]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent Mar 22 00:35:03 mtb ppp[9415]: tun0: LCP: ACFCOMP[2] Mar 22 00:35:03 mtb ppp[9415]: tun0: LCP: PROTOCOMP[2] Mar 22 00:35:03 mtb ppp[9415]: tun0: LCP: ACCMAP[6] 0x Mar 22 00:35:03 mtb ppp[9415]: tun0: LCP: MRU[4] 1500 Mar 22 00:35:03 mtb ppp[9415]: tun0: LCP: MAGICNUM[6] 0xda445afa Mar 22 00:35:06 mtb ppp[9415]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent Mar 22 00:35:06 mtb ppp[9415]: tun0: LCP: ACFCOMP[2] Mar 22 00:35:06 mtb ppp[9415]: tun0: LCP: PROTOCOMP[2] Mar 22 00:35:06 mtb ppp[9415]: tun0: LCP: ACCMAP[6] 0x Mar 22 00:35:06 mtb ppp[9415]: tun0: LCP: MRU[4] 1500 Mar 22 00:35:06 mtb ppp[9415]: tun0: LCP: MAGICNUM[6] 0xda445afa Mar 22 00:35:09 mtb ppp[9415]: tun0: LCP: deflink: LayerFinish Mar 22 00:35:09 mtb ppp[9415]: tun0: LCP: deflink: State change Req-Sent -- Stopped Mar 22 00:35:09 mtb ppp[9415]: tun0: LCP: deflink: State change Stopped -- Closed Mar 22 00:35:09 mtb ppp[9415]: tun0: LCP: deflink: State change Closed --
RE: line-in recorder
Hi Brian, You can use ecasound from ports. Here's a few notes I have made on using and playing around with audio: NOTES http://eca.cx/ ; ECASOUND Web site Add to kernel: device pcm cd /dev ./MAKEDEV snd0 cat /dev/sndstat;to see if its configured properly pkg_add ecasound-1.8.5d15 pkg_add nmixer-2.0b17 pkg_add mpg123-x.x.x pkg_add festival-x.x.x : text to voice sythasizer Sound Recording:- Set nmixer Set Mic to 3 Set rec to 3 Run:ecasound I:/dev/dsp0 o test.wav Or: ecasound t:time -f:s16_1e,1,11000,i I:/dev/dsp0 o filename.mp3 You can use the at command to automate a future recording: at 12:05 Apr 27th /root/bin/recsnd.sh 3600 sat_science_show ^d ; to terminate the at job. See Pluto @ /root/bin/recsnd.sh for script to automate the recording of the line in /root/bin/recsnd.sh length of time to record output_file_name ; no extension! /root/bin/recsnd.sh 1800 sun_1600_news # cat /root/bin/recsnd.sh #! /bin/sh # This will record audio input from the Line Input channel of the sound card, and save it into # a mp3 file in the /home/music/ dir. # # Usage: recsnd.sh no of sec to record filename # TERM=vt100 export TERM CMDFILEPATH=/usr/local/bin OUTFILEPATH=/home/music # Test to see if there are two cmd line arguments # First set the mixer to the correct values echo date echo echo # echo Setting nmixer settings # $CMDFILEPATH/nmixer -q vol=100 pcm=100 rec=50 # Now record the sound into a mp3 file echo Now recording the program $CMDFILEPATH/ecasound -t:$1 -f:s16_le,1,11000,i -i:/dev/dsp0 -o $OUTFILEPATH/$2.mp3 #list the contents of the output dir. ls -la $OUTFILEPATH echo echo date echo --- To Play:- The nmixer can be autoset via: nmixer q vol=100 pcm=100 rec=50 Run:mpg123 b 1024 filename.mp3 Festival You can have festival read text files and convert them to spoken voice (male or female): festival tts /etc/rc.conf ; to output the contents of rc.conf! /NOTES Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Brian H Sent: Friday, 30 January 2004 2:35 AM To: [EMAIL PROTECTED] Subject: line-in recorder is there some software for freebsd that I could use to record what i have coming in on the line-in on my sound card? _ There are now three new levels of MSN Hotmail Extra Storage! Learn more. http://join.msn.com/?pgmarket=en-uspage=hotmail/es2ST=1 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Taking a snapshot of a UFS filesystem
Hi All, In the December 2003, Sys Admin magazine (www.sysadminmag.com), there was an article (pg 17), about doing Oracle DB Backups using UFS Snapshots. This was implemented using a facility built into Solaris. I have read about other snapshot products for MS Windows NTFS etc. Is there a way to do snapshot backups using FreeBSD's UFS? Hmm, after writing the above, I thought I should at least google for 'freebsd snapshot backup'. Well, low and behold, there it is in 5.0+ Cool! OK, I will remod my question, is there any talk of having the snapshot feature being retro fitted to 4.x stable? (or is there some other util/port out there that does this?) Cheers, Paul PS. FreeBSD never ceases to amaze me ;-) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Anyone used the RocketRaid 1640 SATA Raid 5 card?
Hi All, Still scouting around for a raid 5 card, and found this little beauty! http://www.highpoint-tech.com/rr1640.htm Looking through their web site, and it looks impressive, in that they actually actively support FreeBSD! Anyone tried out the 154x, 1640 or 1820 products with FreeBSD 4.x running raid 5? Have seen feedback from people running raid 1, but how about raid 5! Cheers, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Automatically encrypting data files in a partition.
Thanks for that Lowell! Looks like it might work. I will have a play with it! Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Lowell Gilbert Sent: Saturday, 22 November 2003 9:28 AM To: Paul Hamilton Cc: Freebsd-Questions Subject: Re: Automatically encrypting data files in a partition. Paul Hamilton [EMAIL PROTECTED] writes: I need a way to store different directory trees and files with different encryption keys, i.e.. /data/mars /data/mars/one /data/mars/two etc all are encrypted with one key and /data/venus /data/venus/one /data/venus/two etc, would have a different key. Ideally, the directory structure, and file names wouldn't be encrypted. /data is an independent partition. Some of these files, could be MS Office data files, others might be MS program *.exe files etc. It would be nice if this happened at the filesystem level, i.e., I would enter a key and the root dir name for each 'data tree' into the config file, reload the config file into the 'encryption filesystem program' and all would be sweet ;-) The closest thing I know of is cfs (in the ports). It encrypts some of the directory structures as well, which is usually desirable because they can contain secret information as well (think of a file named CompanyX_Merge_Plans.doc). I don't know if it's capable of handling passphrases centrally as opposed to on a user-session basis, but if so, you would need someone with the password present every time you booted the machine. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
PCI Raid 5 cards for FreeBSD
Hi, I have seen both the Promise and 3ware raid cards mentioned over time in this mailing list. I would like to be able to run a 1-2TB raid 5 SATA on FreeBSD 4.9. Is anyone using a card from these suppliers? Will FreeBSD install on a Raid 5 array (after it has been configured in the Array BIOS)? Does FreeBSD have any in built driver/mechanism to monitor the array's health? Is there another SATA Raid controller company out there I have missed, that covers FreeBSD? Cheers, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Automatically encrypting data files in a partition.
Hi, I need a way to store different directory trees and files with different encryption keys, i.e.. /data/mars /data/mars/one /data/mars/two etc all are encrypted with one key and /data/venus /data/venus/one /data/venus/two etc, would have a different key. Ideally, the directory structure, and file names wouldn't be encrypted. /data is an independent partition. Some of these files, could be MS Office data files, others might be MS program *.exe files etc. It would be nice if this happened at the filesystem level, i.e., I would enter a key and the root dir name for each 'data tree' into the config file, reload the config file into the 'encryption filesystem program' and all would be sweet ;-) Ponderingly yours, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: How to find our what version of ports your running?
Hmmm... Thanks for that Lowell. Yes I knew about the pkg_version cmd. I was just hoping that I had missed a command or file that explain it all. I started digging around, and found that the /usr/ports/LEGAL file has the following: # $FreeBSD: ports/LEGAL,v 1.274 2003/02/19 04:24:53 marcus Exp $ as one of the headers, so I guess, that is a rough indication of when it was compiled. Perhaps it might even roughly tie in with the FTP site iso Hmmm, just checked, and they only show 4.8 as the oldest: April 2003 So I guess, that ports version came with 4.7. Anyway, thanks everyone. Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Lowell Gilbert Sent: Wednesday, 12 November 2003 11:26 PM To: Paul Hamilton Cc: horio shoichi; Freebsd-Questions Subject: Re: How to find our what version of ports your running? Paul Hamilton [EMAIL PROTECTED] writes: Is there a way to find out the ports version, from a CD upgrade? i.e.. initial install was 4.2 then a 4.6 upgrade, then a 4.7 and then a 4.8 upgrade. Hmm, was the ports tree upgraded along with main upgrades or not? Ports are not updated along with the base system. You can do that separately, but usually don't need to. You can determine the versions of the ports installed on your system with the pkg_version(1) command. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: How to find our what version of ports your running?
Thanks, Horio and Kris for the CVS solution. Is there a way to find out the ports version, from a CD upgrade? i.e.. initial install was 4.2 then a 4.6 upgrade, then a 4.7 and then a 4.8 upgrade. Hmm, was the ports tree upgraded along with main upgrades or not? Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of horio shoichi Sent: Wednesday, 12 November 2003 10:47 AM To: Paul Hamilton Cc: Freebsd-Questions Subject: Re: How to find our what version of ports your running? On Tue, 11 Nov 2003 21:14:23 +0800 Paul Hamilton [EMAIL PROTECTED] wrote: Hi, Is it possible to print out the base version of when you last installed the ports base, or cvs'ed it? cheers, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] If $PORTSDIR/CVS/Tag exists cat $PORTSDIR/CVS/Tag will give you the idea. If it doesn't exist you have current. horio shoichi ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to find our what version of ports your running?
Hi, Is it possible to print out the base version of when you last installed the ports base, or cvs'ed it? cheers, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
tip on using mount_smbfs with the nsmb.conf config file
Hi All, After spending 1-2 fruitless hours trying to track down why I couldn't automate my script to log into the local W2K server, I found that the mount_smbfs man file is incorrect. At least with FreeBSD 4.7 anyway. Maybe it just needs updating. The default global location for the nsmb.conf file should be the /etc directory, not the /usr/local/etc directory, as stated in the man file, and a few web pages I googled. ~.nsmbrc worked ok. One for the archives. Cheers, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FW: Transparent Proxy going astray - Help!
Hi all, Has no-one seen this problem? If so, wow, what have I done wrong here? Do you need more info? Cheers, Paul Hamilton -Original Message- From: Paul Hamilton [mailto:[EMAIL PROTECTED] Sent: Saturday, 21 June 2003 1:34 PM To: Freebsd-Questions Subject: Transparent Proxy going astray Hi all, I have watched/lurked on this list for sometime now, and see a Transparent Proxy question every now or then. None of them have answered my problem. I give it a bash every now and then to see if I will trip over the answer. It hasn't worked, so I will try this list again. I run FreeBSD 4.8 on the gateway, Squid Cache: Version 2.4.STABLE4 Squid.conf has the required lines: http_port 8080 httpd_accel_port 80 httpd_accel_host virtual httpd_accel_with_proxy on httpd_accel_uses_host_header on and the required ipfw2 firewall rules: 00050271 27520 allow tcp from 192.168.0.10 to any 00060 3144 fwd 127.0.0.1,8080 tcp from any to any dst-port 80 Interestingly enough when watching the ip traffic on the gateway, I see this on my inside NIC: 08:27:18.735861 192.168.0.2.3276 203.10.1.17.53: 1093+ A? www.google.com.au. (35) 08:27:18.922217 203.10.1.17.53 192.168.0.2.3276: 1093 2/4/4 CNAME[|domain] 08:27:18.923667 192.168.0.2.3277 216.239.39.99.80: S 813553086:813553086(0) win 16384 mss 1460,nop,nop,sackOK (DF) 08:27:18.923722 216.239.39.99.80 192.168.0.2.3277: R 0:0(0) ack 813553087 win 0 08:27:19.397657 192.168.0.2.3277 216.239.39.99.80: S 813553086:813553086(0) win 16384 mss 1460,nop,nop,sackOK (DF) 08:27:19.397697 216.239.39.99.80 192.168.0.2.3277: R 0:0(0) ack 1 win 0 08:27:19.906095 192.168.0.2.3277 216.239.39.99.80: S 813553086:813553086(0) win 16384 mss 1460,nop,nop,sackOK (DF) 08:27:19.906153 216.239.39.99.80 192.168.0.2.3277: R 0:0(0) ack 1 win 0 and this on my outside NIC: 08:27:18.736970 202.72.147.43.3276 203.10.1.17.53: 1093+ A? www.google.com.au. (35) 08:27:18.922026 203.10.1.17.53 202.72.147.43.3276: 1093 2/4/4 CNAME www.google.com., (215) The cache_access.log doesn't show any traffic, yet (something) is pretending to be the google website, as there is a reply from 216.239.39.99.80. I have tried to run tcpdump -ni lo0 but there isn't any traffic. Should I be able to see traffic on lo0? Any thoughts on what I am missing? Cheers, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: adding a quirk for a USB memory device
Thanks for the help Roland. I was getting ready to edit and recompile scsi_da.c via doing a kernel re-compile, when I noticed in archives the 'sysctl kern.cam.da.no_6_byte=1' hack. I tried it out on the command line and found it worked! I didn't have to recompile after all! I added the command to /etc/sysctl.conf, and all is well in USB land ;-) I can now plug-unplug the USB memory stick. Just thought I would mention it for the archives. Cheers, Paul Hamilton -Original Message- From: Paul Hamilton [mailto:[EMAIL PROTECTED] Sent: Wednesday, 18 June 2003 10:48 PM To: Freebsd-Questions Subject: adding a quirk for a USB memory device Hi all, So many questions... I can mount/access (mount -t msdos /dev/da0s1 /mnt) my 'Apacer 16MB HandySteno 1.1' USB memory key stick as long as it's connected when I power up my FreeBSD 4.8 server. It does give an error msg on the console saying: (da0:umass-sim0:0:0): READ(6)/WRITE(6) not supported, increasing minimum_cmd_size to 10. I take it that it has done the increasing by it's self using the Apacer quirk in /usr/src/sys/cam/scsi/scsi_da.c I found a bit of info on this at: http://www.root.org/~nate/freebsd/quirks.html but it neglects to say how to recompile scsi_da after it has been edited. It also doesn't go into much detail on how to get the info needed to add a quirk. 'camcontrol devlist -v' reports: # camcontrol devlist -v scbus0 on umass-sim0 bus 0: USB DISK 2.08 at scbus0 target 0 lun 0 (da0) scbus-1 on xpt0 bus 0: at scbus-1 target -1 lun -1 (xpt0) If I unmount it (umount /mnt), disconnect it, and later remount it I get: umass0: detached umass0: USB Disk, rev 1.10/1.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: USB DISK 2.08 Removable Direct Access SCSI-0 device da0: 650KB/s transfers da0: 15MB (32000 512 byte sectors: 64H 32S/T 15C) umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT da0: reading primary partition table: error reading fsbn 0 umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 etc it's then lost, until I next reboot the PC. Qu: is my Apacer device the same one that is mentioned in the scsi_da.c quirk i.e., {T_DIRECT, SIP_MEDIA_REMOVABLE, Apacer, HandyDrive, *}, /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE Qu: Do I need another quirk added to the above Apacer quirk, or a whole new quirk, as I have a Apacer Handy Steno, not a HandyDrive? Qu: Since 'camcontrol devlist -v' reports that my USB device as a ' USB DISK 2.08' do I need to set that name up as a quirk instead? Qu: If I do need to edit/create a new quirk, what method do I use to compile the file etc? NOTE: *Any* info I appear to be lacking would be appreciated! :-) Cheers, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Transparent Proxy going astray
Hi all, I have watched/lurked on this list for sometime now, and see a Transparent Proxy question every now or then. None of them have answered my problem. I give it a bash every now and then to see if I will trip over the answer. It hasn't worked, so I will try this list again. I run FreeBSD 4.8 on the gateway, Squid Cache: Version 2.4.STABLE4 Squid.conf has the required lines: http_port 8080 httpd_accel_port 80 httpd_accel_host virtual httpd_accel_with_proxy on httpd_accel_uses_host_header on and the required ipfw2 firewall rules: 00050271 27520 allow tcp from 192.168.0.10 to any 00060 3144 fwd 127.0.0.1,8080 tcp from any to any dst-port 80 Interestingly enough when watching the ip traffic on the gateway, I see this on my inside NIC: 08:27:18.735861 192.168.0.2.3276 203.10.1.17.53: 1093+ A? www.google.com.au. (35) 08:27:18.922217 203.10.1.17.53 192.168.0.2.3276: 1093 2/4/4 CNAME[|domain] 08:27:18.923667 192.168.0.2.3277 216.239.39.99.80: S 813553086:813553086(0) win 16384 mss 1460,nop,nop,sackOK (DF) 08:27:18.923722 216.239.39.99.80 192.168.0.2.3277: R 0:0(0) ack 813553087 win 0 08:27:19.397657 192.168.0.2.3277 216.239.39.99.80: S 813553086:813553086(0) win 16384 mss 1460,nop,nop,sackOK (DF) 08:27:19.397697 216.239.39.99.80 192.168.0.2.3277: R 0:0(0) ack 1 win 0 08:27:19.906095 192.168.0.2.3277 216.239.39.99.80: S 813553086:813553086(0) win 16384 mss 1460,nop,nop,sackOK (DF) 08:27:19.906153 216.239.39.99.80 192.168.0.2.3277: R 0:0(0) ack 1 win 0 and this on my outside NIC: 08:27:18.736970 202.72.147.43.3276 203.10.1.17.53: 1093+ A? www.google.com.au. (35) 08:27:18.922026 203.10.1.17.53 202.72.147.43.3276: 1093 2/4/4 CNAME www.google.com., (215) The cache_access.log doesn't show any traffic, yet (something) is pretending to be the google website, as there is a reply from 216.239.39.99.80. I have tried to run tcpdump -ni lo0 but there isn't any traffic. Should I be able to see traffic on lo0? Any thoughts on what I am missing? Cheers, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
adding a quirk for a USB memory device
Hi all, So many questions... I can mount/access (mount -t msdos /dev/da0s1 /mnt) my 'Apacer 16MB HandySteno 1.1' USB memory key stick as long as it's connected when I power up my FreeBSD 4.8 server. It does give an error msg on the console saying: (da0:umass-sim0:0:0): READ(6)/WRITE(6) not supported, increasing minimum_cmd_size to 10. I take it that it has done the increasing by it's self using the Apacer quirk in /usr/src/sys/cam/scsi/scsi_da.c I found a bit of info on this at: http://www.root.org/~nate/freebsd/quirks.html but it neglects to say how to recompile scsi_da after it has been edited. It also doesn't go into much detail on how to get the info needed to add a quirk. 'camcontrol devlist -v' reports: # camcontrol devlist -v scbus0 on umass-sim0 bus 0: USB DISK 2.08 at scbus0 target 0 lun 0 (da0) scbus-1 on xpt0 bus 0: at scbus-1 target -1 lun -1 (xpt0) If I unmount it (umount /mnt), disconnect it, and later remount it I get: umass0: detached umass0: USB Disk, rev 1.10/1.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: USB DISK 2.08 Removable Direct Access SCSI-0 device da0: 650KB/s transfers da0: 15MB (32000 512 byte sectors: 64H 32S/T 15C) umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT da0: reading primary partition table: error reading fsbn 0 umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 etc it's then lost, until I next reboot the PC. Qu: is my Apacer device the same one that is mentioned in the scsi_da.c quirk i.e., {T_DIRECT, SIP_MEDIA_REMOVABLE, Apacer, HandyDrive, *}, /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE Qu: Do I need another quirk added to the above Apacer quirk, or a whole new quirk, as I have a Apacer Handy Steno, not a HandyDrive? Qu: Since 'camcontrol devlist -v' reports that my USB device as a ' USB DISK 2.08' do I need to set that name up as a quirk instead? Qu: If I do need to edit/create a new quirk, what method do I use to compile the file etc? NOTE: *Any* info I appear to be lacking would be appreciated! :-) Cheers, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
cmd to run after installing a new FreeBSD package
Hi all, I read this here in the list, and (I think), read it somewhere in Urban-TieMann's FreeBSD Unleashed, great book. There is a FreeBSD command that you should run after installing a package, which will 'refresh' the path. After running this command, you will have access to the new package command (ie. lynx). It saves you having to logout and relog back in. I have used it once, but it was some time ago and have forgotten it :-( Any Hints... Cheers, Paul Hamilton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: cmd to run after installing a new FreeBSD package
Thanks Dirk-Willem and Markie, That was the command I was after. Thanks for that! Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dirk-Willem van Gulik Sent: Wednesday, 18 June 2003 11:23 PM To: Fox Cc: Paul Hamilton; Freebsd-Questions Subject: Re: cmd to run after installing a new FreeBSD package On Wed, 18 Jun 2003, Fox wrote: There is a FreeBSD command that you should run after installing a package, which will 'refresh' the path. After running this command, you will have access to the new package command (ie. lynx). It saves you having to logout and relog back in. This depends on your shell. Some require the use of the command rehash csh and bash I think are guilty of this. The real shell /bin/sh is fine and will pick it up itself. From man csh rehash Causes the internal hash table of the contents of the directories in the path variable to be recomputed. This is needed if new commands are added to directories in the path while you are logged in. This should only be necessary if you add commands to one of your own directories, or if a systems programmer changes the contents of a system direc- tory. Dw ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Converting Linux passwd to FreeBSD
If your users use pop3, you could record their pop3 user name and passwords, since they are transmitted in clear text. Some pop3 servers can even log the username-password. That would get you most of the users, depending on the time frame (as some users will be away-dormant etc). Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Benjamin Mayer Sent: Tuesday, 10 June 2003 5:41 AM To: [EMAIL PROTECTED] Subject: Re: Converting Linux passwd to FreeBSD On Tue, 10 Jun 2003 08:25:27 +0700 (ICT) Olivier Nicole [EMAIL PROTECTED] wrote: Is anyone familiar with a tool to convert my Linux passwd files to FreeBSD so I don't have to manually recreate the accounts? I'd say, as the passwords are cripted with a non reversible function, either both systems use the same function and you don't have to convert anything, else you're dead. There is no way to get the clear text password knowing the crypted one, so there is no way to convert. If they are not the same function you could always dictionary and brute force attack the passwords. In my experience this should get you most of the passwords. The ones you dont get you may have to have people assign a new password for themselves. I know it is not pretty, but if worst comes to worst. Ben ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Disk copy -- WAS: Re: Can you copy FreeBSD from one of mypresent machine and load itto a new
Ghost 7.5 works for me. It doesn't like auto-resizing a partition, so the HD should be the same size or larger! Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Sent: Saturday, 7 June 2003 2:45 PM To: [EMAIL PROTECTED] Cc: Jez Hancock Subject: Disk copy -- WAS: Re: Can you copy freebsd from one of my presentmachine and load itto a new Actually, I have a similar problem. I would like to take my current FreeBSD system, and essentially IMAGE the entire disk (MBR and all), as a backup, as well as to a new disk. I'd like to upgrade my mail/web/db/imap/webmail/etc. server from a PPro200, to a 933, but I want to keep the drives in the 200 as they are, for quick and easy backout-plan purposes. In Windoze, you can use Drive Image, Ghost, various other utils for this. In Linux, you can use PartImage, or other utils for this. Only problem, none of these work for UFS?!? Can someone point me in the right direction? I don't care to spend the half day to a weekend necessary to backup the entire server to the network, reinstall Free on the new drives, and then restore everything.. I'm a lazy admin! :) Can someone point me to doc on the easy way? Thoughts? Thanks, John - Original Message - From: Jez Hancock [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 10:41 AM Subject: Re: Can you copy freebsd from one of my present machine and load itto a new On Tue, Jun 03, 2003 at 11:52:56AM +0100, Matt Heath wrote: DanB wrote: Can you copy freebsd and its configuration from one of my present machine and load it to a new machine so I can do some repairs on it. Maybe copy to a CDR and boot from that. Dan sure, for $500 lol Why not just take the disks out and put them in the new machine. If the partitioning isn't too fancy the system should work without too much problem. Try doing *that* with a windows system :) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FW: Dummynet/Traffic Shaping problem
I would use trafshow (in ports/packages). It has a command line ncurser display, and will show each connection, and the speed. Run this in one window, and in the other you can play with the pipes. Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of abdul Sent: Wednesday, 21 May 2003 12:00 AM To: [EMAIL PROTECTED] Subject: Dummynet/Traffic Shaping problem Hi all, Sorry I am repeating this message again. I am still coiled up in it. IS IT POSSIBLE TO ENABLE A FASTER CONNECTION TO SOME SITES USED FOR OFFICIAL DUTIES? MY PROBLEM? I have a 128kb Internet access which gets very slow during peak hours. I want to reserve/dedicate a protion (say 64kb) of this link to to some urls which we use for official duties (eg 193.114.79.76) OR limit general Internet usage to just a portion (say 64kb), hence making the remainder exclusively available for such official duties. This is what I did: ipfw pipe 10 config bw 64kbit/s queue 15kbytes ipfw queue 10 config weight 60 pipe 10 ipfw queue 10 ip from any to 193.114.79.76 I did not notice any change. Is this configuration okay for my problem? Or can anyone help me with a better one? How can I confirm if a configuration is working properly? Thanks Abdul ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FW: simple way to mount a ramdisk?
Well done Malcolm, and well written! Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Malcolm Kay Sent: Sunday, 25 May 2003 12:00 PM To: Neo; [EMAIL PROTECTED] Subject: Re: simple way to mount a ramdisk? On Sat, 24 May 2003 13:32, Neo wrote: Hi, can anyone tell me please, how to mount a mfs-filesystem for dummies? My hdd is /dev/ad0 with two slices /dev/ad0s1a as / and /dev/ad0s1b as Does this mean you have the trees /usr, /var and /tmp all resident on /dev/ad0s1a ? swap, the ramdisk (for example 8 megs in size) should become /ram. Assuming you're running FBSD 4.x then: If /dev/md0c does not exist then # cd /dev # MAKEDEV md0 Next: # mkdir /ram Now follow the man page md(4): # disklabel -r -w md0 auto # newfs /dev/md0c # mount /dev/md0c /ram # chmod 1777 /ram Now: # df should show md0c mounted on /ram The capacity is set up when the kernel is compiled and is 2 sectors of 512 bytes or about 10Mb. But empty sectors and sectors of uniform data don't consume real memory space. For automated installation on boot: The devices /dev/md0 and/dev/md0c should be permanent once created and so should /ram directory. You need to add somewhere in the start sequence: if [ -e /dev/md0 -a -e /dev/md0c ]; then disklabel -r -w md0 auto \ newfs /dev/md0c \ mount /dev/md0c /ram \ chmod 1777 /ram fi This might be for example added to /etc/rc.local or created as such if it does not exist. Or better create a file /usr/local/etc/rc.d/ram.sh with the lines: #!/bin/sh if [ -e /dev/md0 -a -e /dev/md0c ]; then disklabel -r -w md0 auto \ newfs /dev/md0c \ mount /dev/md0c /ram \ chmod 1777 /ram fi Make sure the file is set to executable: # chmod +x /usr/local/etc/rc.d/ram.sh (The file name must terminate in .sh) Malcolm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: 'top' showing high interrupt rate
Thanks for the reply's. I didn't see them on the list. Maybe I missed them, so I have pasted them back in here. By any chance, have you altered the system quantum (HZ), or enabled kern.polling? -Chuck Run systat and then type :vmstat (without quotes) to get the vmstat screen. The lower right will have interrupts broken down by device ... this should help. -Bill Moran Try `top -S` instead. This will show system processes as well. Also, use `systat -v` as previously mentioned to see interrupt counts. My guess is this box is a gateway/firewall and may be getting pounded on the network interfaces. Are you running ipfw as well? - Andy Farkas Thanks guys! I tried: sysctl kern.polling and got:- sysctl: unknown oid 'kern.polling' I haven't played around with the system quantum. I like the systat -- :vmstat and the systat -v command. Very nice! Here is a dump of what is going on. As you can see, it doesn't show very much:- -- 1 usersLoad 0.21 0.17 0.20 May 25 10:32 Mem:KBREALVIRTUAL VN PAGER SWAP PAGER Tot Share TotShareFree in out in out Act6320 78413460 9447616 count All 248001880 2328768 3408 pages zfod Interrupts Proc:r p d s wCsw Trp Sys Int Sof Fltcow 241 total 172099 241 112 7600 wireata0 irq14 8568 act ata1 irq15 0.2%Sys 59.7%Intr 0.6%User 0.0%Nice 39.5%Idl 5284 inact 4 dc0 irq10 |||||||||| 3348 cache fdc0 irq6 ++ 4268 free 9 sio1 irq3 daefr 100 clk irq0 Namei Name-cacheDir-cache prcfr 128 rtc irq8 Calls hits% hits% react 33 100 pdwake pdpgs Disks ad0 ad1 acd0 fd0 md0 intrn KB/t 0.00 0.00 0.00 0.00 0.00 6480 buf tps 0 0 0 0 0 3 dirtybuf MB/s 0.00 0.00 0.00 0.00 0.00 2348 desiredvnodes % busy0 0 0 0 0 2374 numvnodes 1160 freevnodes -- Yes, this PC is a gateway to the internet via a modem (see dc0 and sio1 showing activity). I have tried the ststat -v on 3 or 4 servers, and they all pretty much show that clk and rtc use 100/128. However, most of them run at ~15% interupt activity. Hmm, maybe it's 60% on this server, because it's only a Pentium 166. Anyone else have an insight on this? Hmm, I then tried killing natd, and lo-and-behold, interrupts fell to 0.5%!! Restarted natd and interrupts are still 0.5%! Here is the natd via top before and after:- 108 root2 0 464K 152K select 96:45 0.00% 0.00% natd 15462 root2 0 420K 272K select 0:00 0.00% 0.00% natd The only difference is the size and res. Anyone know of problems with natd? The server was acting ok, just reporting that the interrupt usage was running at 60%. I will keep an eye on this over the next few days. Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul Hamilton Sent: Wednesday, 21 May 2003 10:38 PM To: Freebsd-Questions Subject: 'top' showing high interrupt rate Hi, I noticed that top shows a rather high interrupt rate, usually hovering around 60%! Here is a sample:- last pid: 2879; load averages: 0.34, 0.24, 0.18 up 1+17:26:56 17:18:10 36 processes: 2 running, 33 sleeping, 1 zombie CPU states: 0.6% user, 0.0% nice, 0.0% system, 59.8% interrupt, 39.6% idle Mem: 11M Active, 5072K Inact, 7988K Wired, 3552K Cache, 6480K Buf, 960K Free Swap: 128M Total, 4608K Used, 123M Free, 3% Inuse PID USERNAME PRI NICE SIZERES STATETIME WCPUCPU COMMAND 135 root 10 0 980K 528K nanslp 11:38 0.00% 0.00% cron 201 root2 0 2824K 1132K select 3:46 0.00% 0.00% ppp 108 root2 0 452K 208K select 0:29 0.00% 0.00% natd 127 root2 0 2760K 1704K select 0:14 0.00% 0.00% named 223 root2 0 2068K 908K select 0:10 0.00% 0.00% sshd 212 root2 0 2044K 876K select 0:10 0.00% 0.00% sshd snip pstat -T
Problems patching kdevelop port
Hi All, I am trying to build kdevelop via ports on FreeBSD 4.8 When I try and run 'make', it asks for 'File to patch' I have tried typing in kdevelop-2.1.5, kdevelop, patch-af (see below). I thought this was meant to be automatic? The same happens when I try and build 'gimp' (in that it asks for 'File to patch). I am logged in as root. Sample build run:- - pluto[9:20am]/usr/ports/devel/kdevelop-105# make === Patching for kdevelop-2.1.5 === Applying FreeBSD patches for kdevelop-2.1.5 File to patch: patch-af 1 out of 1 hunks failed--saving rejects to patch-af.rej Patch patch-af failed to apply cleanly. *** Error code 1 Stop in /usr/ports/devel/kdevelop. pluto[9:20am]/usr/ports/devel/kdevelop-106# ls files/ patch-afpatch-af.rejpatch-processesend.pl patch-af.orig patch-az - ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problems running wget on FreeBSD 4.7
Just out of interest to anyone trawling the archives, I have found a work-around. Instead of using: ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe; Use this instead: ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4*.exe; Test ok on Wget 1.8.2_1! Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul Hamilton Sent: Monday, 24 March 2003 9:31 PM To: Freebsd-Questions Subject: Problems running wget on FreeBSD 4.7 Hi all, I have two different versions of wget on different FreeBSD 4.7 (upgraded) servers. They all run, but one of them: # pkg_info -r wget-1.8.2_1 Information for wget-1.8.2_1: Depends on: Dependency: libiconv-1.8_1 Dependency: expat-1.95.5 Dependency: gettext-0.11.5_1 has problems with the '--glob=on' option. I use a script to download McAfee files, the relevant line is: /usr/local/bin/wget -nr --glob=on -N --passive-ftp ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe; Which when run gives: - --21:19:27-- ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe = `.listing' Resolving ftp.nai.com... done. Connecting to ftp.nai.com[161.69.201.238]:21... connected. Logging in as anonymous ... Logged in! == SYST ... done.== PWD ... done. == TYPE I ... done. == CWD /pub/antivirus/superdat/intel ... done. == PASV ... done.== LIST ... done. [ = ] 157 153.32K/s 21:19:31 (153.32 KB/s) - `.listing' saved [157] --21:19:31-- ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe = `sdat4???.exe' == CWD not required. == PASV ... done.== RETR sdat4 ... No such file `sdat4'. - Which when run using wget-1.7_3 I get: - --21:21:39-- ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe = `.listing' Connecting to ftp.nai.com:21... connected! Logging in as anonymous ... Logged in! == SYST ... done.== PWD ... done. == TYPE I ... done. == CWD /pub/antivirus/superdat/intel ... done. == EPSV ... Cannot initiate EPSV transfer. == PASV ... done.== LIST ... done. 0K@ 153.32 KB/s 21:21:45 (76.66 KB/s) - `.listing' saved [157] Removed `.listing'. Remote file no newer than local file `sdat4253.exe' -- not retrieving. - Which is ok, as I already have downloaded it. My question is (eventually), has the globing function changed between the different versions, or is the globing function broken? Or am I missing something deeper? Cheers, Paul Hamilton To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problems running wget on FreeBSD 4.7
Hi all, I have two different versions of wget on different FreeBSD 4.7 (upgraded) servers. They all run, but one of them: # pkg_info -r wget-1.8.2_1 Information for wget-1.8.2_1: Depends on: Dependency: libiconv-1.8_1 Dependency: expat-1.95.5 Dependency: gettext-0.11.5_1 has problems with the '--glob=on' option. I use a script to download McAfee files, the relevant line is: /usr/local/bin/wget -nr --glob=on -N --passive-ftp ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe; Which when run gives: - --21:19:27-- ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe = `.listing' Resolving ftp.nai.com... done. Connecting to ftp.nai.com[161.69.201.238]:21... connected. Logging in as anonymous ... Logged in! == SYST ... done.== PWD ... done. == TYPE I ... done. == CWD /pub/antivirus/superdat/intel ... done. == PASV ... done.== LIST ... done. [ = ] 157 153.32K/s 21:19:31 (153.32 KB/s) - `.listing' saved [157] --21:19:31-- ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe = `sdat4???.exe' == CWD not required. == PASV ... done.== RETR sdat4 ... No such file `sdat4'. - Which when run using wget-1.7_3 I get: - --21:21:39-- ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe = `.listing' Connecting to ftp.nai.com:21... connected! Logging in as anonymous ... Logged in! == SYST ... done.== PWD ... done. == TYPE I ... done. == CWD /pub/antivirus/superdat/intel ... done. == EPSV ... Cannot initiate EPSV transfer. == PASV ... done.== LIST ... done. 0K@ 153.32 KB/s 21:21:45 (76.66 KB/s) - `.listing' saved [157] Removed `.listing'. Remote file no newer than local file `sdat4253.exe' -- not retrieving. - Which is ok, as I already have downloaded it. My question is (eventually), has the globing function changed between the different versions, or is the globing function broken? Or am I missing something deeper? Cheers, Paul Hamilton To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
script runs ok, however cron job stalls with wget
Hi, I have the following simple test script:- #! /bin/sh cd /root/bin/ /usr/local/bin/wget --glob=on -N --passive-ftp ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe; This should download the latest McAfee superdat file, ie: sdat4250.exe into the /root/bin dir. When I run this script manually, it runs fine. When I have it run via a cron job, it stalls. This is what I see in 'ps -ax' 7673 ?? I 0:00.00 cron: running job (cron) 7674 ?? Is 0:00.00 /bin/sh -c /root/bin/test.sh 7675 ?? I 0:00.00 /bin/sh /root/bin/test.sh 7676 ?? I 0:00.01 /usr/local/bin/wget --glob=on -N --passive-ftp ftp://ftp.nai.com/pub/antivirus/sup Any idea why this might be so? I have tried using an ftp command, but the same thing happens. I have tried exporting a path that includes the /usr/local/bin and the /root/bin directories, however, that didn't help. Any ideas? Cheers, Paul Hamilton To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
using Dummynet to rate limit ftp
Hi, I have played around with dummynet a bit. Very nice! However, it would be nice to be able to rate limit ftp. The control channel port 21 is easy, and not really necessary to rate limit it, but as fas as I can see there would be no way to rate limit the data channel, as it could be different every time, even in passive mode. Am I missing something? Cheers, Paul Hamilton To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Configuring FreeBSD 4.7 for IPFW2
Hi All, I have upgraded FreeBSD from 4.3 to 4.7 - no problems. I now want to run with IPFW, so as the man file says, I compiled my new kernel for 'options IPFW2' I then ran 'make -DIPFW2 ipfw2' in the /usr/srs/sbin/ipfw dir. This compiled ok, and I manually copied it to the /sbin dir. I tried that same with /usr/lib/libalias and got the following: root@fred[5:46pm]/usr/src/lib/libalias-107# make -DIPFW2 alias cc -O -pipe -Wall -Wmissing-prototypes -DIPFW2 /usr/src/lib/libalias/alias.c -o alias /usr/lib/crt1.o: In function `_start': /usr/lib/crt1.o(.text+0x79): undefined reference to `main' /var/tmp/cctpxMD2.o: In function `TcpMonitorIn': /var/tmp/cctpxMD2.o(.text+0x1c): undefined reference to `GetStateIn' /var/tmp/cctpxMD2.o(.text+0x4d): undefined reference to `SetStateIn' /var/tmp/cctpxMD2.o(.text+0x61): undefined reference to `SetStateIn' snip /var/tmp/cctpxMD2.o: In function `PacketUnaliasOut': /var/tmp/cctpxMD2.o(.text+0x1788): undefined reference to `FindUdpTcpIn' /var/tmp/cctpxMD2.o(.text+0x17a8): undefined reference to `FindIcmpIn' /var/tmp/cctpxMD2.o(.text+0x17d3): undefined reference to `GetOriginalAddress' /var/tmp/cctpxMD2.o(.text+0x17df): undefined reference to `GetOriginalPort' /var/tmp/cctpxMD2.o(.text+0x18bf): undefined reference to `DifferentialChecksum' /var/tmp/cctpxMD2.o(.text+0x1917): undefined reference to `GetOriginalAddress' /var/tmp/cctpxMD2.o(.text+0x1923): undefined reference to `GetOriginalPort' /var/tmp/cctpxMD2.o(.text+0x197f): undefined reference to `DifferentialChecksum' *** Error code 1 Stop in /usr/src/lib/libalias. Any idea on what is going wrong? Is there a way to compile all the files in the libalias/ dir? PS. I got it compiled in the end by doing a 'make buildworld', slow, but IPFW2 runs. I would like to know to get alias's compiled, so I don't have to go around running buildworld. Cheers, Paul Hamilton To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
How do I monitor the serial CTS line via C programmatically?
Hi, I have been trying to monitor the serial CTS line. I would like to log the fact that the CTS has changed state (active/non-active). I have been trying to adapt some Linux programs, but am having problems with adapting the POSIX TIOCMGET function. Is there a FreeBSD way? Cheers, Paul Hamilton To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: How do I monitor the serial CTS line via C programmatically?
Thanks Giorgos! I needed to know the function used to access the Serial ports under FreeBSD. Your program compiles, but generates the following error msg when run: test_prog: ioctl: Inappropriate ioctl for device Thanks to the ioctl 'tip', I researched around, and found that the serial port needed opening, so this is the finished code (just in case someone else needs it): #include sys/ioctl.h #include errno.h #include fcntl.h #include termios.h /*Originally it was termio.h*/ #include stdio.h #include unistd.h int main(void) { int bits; int last; int dcf_dev; if((dcf_dev = open(/dev/cuaa1, O_RDWR|O_NOCTTY)) 0) { perror(open /dev/cuaa0); return (-1); } if (ioctl(dcf_dev, TIOCMGET, bits) == -1) err(1, ioctl); last = bits TIOCM_CTS; printf(CTS %s.\n, last ? on : off); while (1) { if (ioctl(dcf_dev, TIOCMGET, bits) == -1) err(1, ioctl); if ((last ^ (bits TIOCM_CTS)) != 0) { last = bits TIOCM_CTS; printf(CTS %s.\n, last ? on : off); } usleep(10); } return (0); } Brilliant!! :-) Thanks for that! Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Giorgos Keramidas Sent: Wednesday, 15 January 2003 7:21 PM To: Paul Hamilton Cc: [EMAIL PROTECTED] Subject: Re: How do I monitor the serial CTS line via C programmatically? On 2003-01-15 18:26, [EMAIL PROTECTED] (Paul Hamilton) wrote: I have been trying to monitor the serial CTS line. I would like to log the fact that the CTS has changed state (active/non-active). I have been trying to adapt some Linux programs, but am having problems with adapting the POSIX TIOCMGET function. Is there a FreeBSD way? You'd have to poll using ioctl(fd, TIOCMGET, int) and detect CTS changes by checking the TIOCM_CTS bit in the returned value. The following (untested) sample program should be easy to adapt to your needs. When TIOCM_CTS changes from on to off or vice versa, the program should print the change. #include sys/ioctl.h #include stdio.h #include unistd.h int main(void) { int bits; int last; if (ioctl(0, TIOCMGET, bits) == -1) err(1, ioctl); last = bits TIOCM_CTS; printf(CTS %s.\n, last ? on : off); while (1) { if (ioctl(0, TIOCMGET, bits) == -1) err(1, ioctl); if ((last ^ (bits TIOCM_CTS)) != 0) { last = bits TIOCM_CTS; printf(CTS %s.\n, last ? on : off); } usleep(10); } return (0); } To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
How can data be inserted into a MySQL DB using C code?
Hi All, Step one was collecting the data, Step two is to somehow get the info into a MySQL DB. I am monitoring a serial port's CTS line, and need to get the fact that it's changed state logged into the DB. I can use C and/or PHP. Perl is beyond me :-( (I have trouble enough just trying to add Perl modules). The C program runs continuously, monitoring the CTS bit, so I thought it would be nice to dump the info straight into the MySQL DB. As a backup, I suppose, I could dump the 'date/time' and 'CTS-Open-Closed' into a text file, then once a day, run a PHP script to import the files contents into the MySQL DB. However, that means I wouldn't get any live data. I know there is the MySQL++ project, but I had problems trying to get that to function, and my C++ knowledge is negligible. Any help, or tips would be grateful. Cheers, Paul Hamilton To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message