Re: PPPoE Download Performance Woes
Rod.. Whitworth wrote: On Tue, 7 Jun 2005 12:50:40 -0500, Kevin wrote: On 5/26/05, Rod.. Whitworth [EMAIL PROTECTED] wrote: When you have a modem that will do all the connection stuff I am amazed that anyone feels the need to do PPPoE. I prefer to have control over (and visibility into) the PPP connection and NAT, to this end I'm seriously considering getting rid of the external ADSL modem entirely, migrating to a Sangoma S518 ADSL PCI card. You are either a keen student or a masochist. ;) Dealing with those two issues in reverse order: I have perfect control over NAT because it is done in my OpenBSD firewall and it is way more complex than a modem could do anyway - routing a /29 without wasting a public IP on the $ext_if. So you don't need to move to a card to get NAT control, just turn it off in the modem or, as I do for simple client sites with only one static IP, use double NAT with the firewall $ext_if set as the default DMZ host (or something the same with a different name - depends on modem brand) and then the WAN IP will appear to be the firewall address. NAT too often tends to break new technology, especially where security is a concern... and double (or triple) NAT is sheer masochism--especially when debugging larger networks. I have control over PPP in the modem so that I have PPPoA running where it is common knowledge (wrong) that PPPoE is needed, the modem logs connections in detail and gives me lots of statistics without consuming firewall resources. At least one brand logs to syslog on the firewall. I'll admit, the statistics of the PPPoE/PPPoA connection is nice, but no where near as nice as having a public IP address on your OpenBSD box--many consumer-class large DSL providers in the US dislike providing public IPs to a consumer's own hardware (as opposed to the DSL router/modem provider by the provider). Finally I have several modems with saved configuration files so the death of a modem is not a drama. With a modem that is working fine an OpenBSD upgrade at the firewall doesn't mean that I need to pray that whatever code I would have been using to drive the modem would work with the latest OS. I used to dream of getting an internal ADSL modem. I'm now very glad I ccouldn't. My nightmare is not have a public IP assigned to my OpenBSD box.
Re: PPPoE Download Performance Woes
Kevin wrote: On 6/7/05, Can Erkin Acar [EMAIL PROTECTED] wrote: Melameth, Daniel D. wrote: Prior to migrating to DSL, this same card was used for a cable connection and doing more than 1.5Mb/s. This really does not mean much. It could be a negotiation problem. Was your old cable modem ethernet connection 10BaseT ? 100baseTX full-duplex from a previous post ... xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 address: 00:04:75:ac:05:48 media: Ethernet autoselect (100baseTX full-duplex) Perhaps your ADSL modem/switch has problems negotiating with your card, or your cable might have problems. The same cable was used with the Windows box. It'd help if the OP can provide the output of 'netstat -in' after the PPPoE has been up for a while. Here is the output from the time I rebooted the OpenBSD box this morning till the time I got home from work (which means it didn't get used much): $ netstat -in NameMtu Network Address Ipkts IerrsOpkts Oerrs Colls lo0 33224 Link 0 00 0 0 lo0 33224 127/8 127.0.0.10 00 0 0 lo0 33224 ::1/128 ::1 0 00 0 0 lo0 33224 fe80::%lo0/ fe80::1%lo0 0 00 0 0 pflog0 33224 Link 0 00 0 0 pfsync0 2020 Link 0 00 0 0 enc0* 1536 Link 0 00 0 0 wi0 1500 Link 00:02:6f:09:58:b210227 011042 0 519 wi0 1500 192.168.255 192.168.255.254 10227 011042 0 519 wi0 1500 fe80::%wi0/ fe80::202:6fff:fe10227 011042 0 519 xl0 1500 Link 00:04:75:ac:05:4865278 048429 0 0 xl0 1500 192.168.255 192.168.255.221 65278 048429 0 0 xl0 1500 fe80::%xl0/ fe80::204:75ff:fe65278 048429 0 0 pppoe0 1492 Link 65275 048425 3 0 pppoe0 1492 0.0.0.0/32 70.x.x.x 65275 048425 3 0 pppoe0 1492 fe80::%pppo fe80::202:6fff:fe65275 048425 3 0 Full-duplex does not detect transmission errors, so you would not see them on netstat -i output. You could try setting media to 10BaseT half-duplex this usually helps you notice if there is a problem, and can sometimes solve it. ifconfig takes xl0 media 10baseT, but adding half-duplex yields: $ sudo ifconfig xl0 media 10baseT half-duplex ifconfig: half-duplex: bad value Regardless, with ifconfig xl0 media 10baseT, both the modem and OpenBSD box show the connection at 10Mb/s, but the issue persists. And do try another ethernet card if possible. Seconded on both points. This is a CardBus card and I only have other 3Coms--I tried another identical 3Com card with the same poor results. One thing I've found very helpful in debugging PPPoE has been to use either the - (time between packets) or -tt (absolute epoch time) options on tpcdump, watching the packets on both the real Ethernet interface and the tunnel (pppoe0) interface, in two side-by-side windows. I was about to give this tcpdump timing a shot, but decided to spend a few more hours trying some other tests. Here is the results of my findings (all devices connected to the DSL modem were directly connected): * Reconfiguring the modem to handle the PPPoE connection, instead of the OpenBSD box, and reconfiguring the OpenBSD box as a workstation (meaning no hostname.pppoe0) yields the same 1.5Mb/s Internet download speed--which would suggest the issue is not with 3.7's kernel pppoe but, perhaps, related to xl * Removing the xl card from the OpenBSD box and putting it into a Windows box yields a 5.5Mb/s Internet download speed--which would suggest the card performs fine * Putting the xl card back into the OpenBSD box and performing an ftp transfer between the OpenBSD box and another box connected via crossover cable yields a 40Mb/s download speed--I'm not sure what this suggests, but it seems, in some way, there is some kind of interoperability issue between xl, OpenBSD and my DSL modem I'm interested in hearing some feedback on the above tests. Also, since it seems xl hardware is not well touted by those in the know, what Ethernet CardBus cards are recommended? I'll assume ne and rl are not one of these and I'll gladly pickup a recommended CardBus card to address this issue--particularly if the price is right (thinking eBay). Thanks again to those who've taken the time to read and respond to this thread, Danny
pc enters unwanted sleep mode
My ports test machine exposes interesting new behaviour since about two weeks: It enters some sort of power safe mode when it is idle for some time: power led slowly blinks, screen goes into powersafe, and off course the network no longer works. APM is diabled in the bios, the machine never did this before, so it might be related to some recent changes? Any clues? - Marc Balmer dmesg: OpenBSD 3.7-current (GENERIC) #4: Tue Jun 7 07:34:21 CEST 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) 4 CPU 1.50GHz (GenuineIntel 686-class) 1.50 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM real mem = 804036608 (785192K) avail mem = 726454272 (709428K) using 4278 buffers containing 40304640 bytes (39360K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(c3) BIOS, date 11/19/01, BIOS32 rev. 0 @ 0xfd72a pcibios0 at bios0: rev 2.1 @ 0xfd6c0/0x940 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/288 (16 entries) pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00) pcibios0: PCI bus #2 is the last bus bios0: ROM list: 0xc/0xf400 0xcf800/0x9c00 0xe/0x1! cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82845 Host rev 0x03 ppb0 at pci0 dev 1 function 0 Intel 82845 AGP rev 0x03 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 Nvidia GeForce4 MX 440 rev 0xa3 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb1 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0x12 pci2 at ppb1 bus 2 fxp0 at pci2 dev 8 function 0 Intel 82562 rev 0x03: irq 11, address 00:02:55:2b:13:17 inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0 xl0 at pci2 dev 12 function 0 3Com 3c905B 100Base-TX rev 0x30: irq 5, address 00:04:76:98:f2:77 exphy0 at xl0 phy 24: 3Com internal media interface ahd0 at pci2 dev 14 function 0 Adaptec AHA-29320LP U320 rev 0x10: irq 11 aic7901: U320 Wide Channel A, SCSI Id=7, PCI 33 or 66Mhz, 512 SCBs scsibus0 at ahd0: 16 targets sd0 at scsibus0 targ 0 lun 0: IBM, IC35L036UWDY10-0, S23C SCSI3 0/direct fixed sd0: 35003MB, 36703 cyl, 3 head, 651 sec, 512 bytes/sec, 71687340 sec total ichpcib0 at pci0 dev 31 function 0 Intel 82801BA LPC rev 0x12 pciide0 at pci0 dev 31 function 1 Intel 82801BA IDE rev 0x12: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility pciide0: channel 0 ignored (disabled) atapiscsi0 at pciide0 channel 1 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: PLEXTOR, CD-R PX-W4824A, 1.02 SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 uhci0 at pci0 dev 31 function 2 Intel 82801BA USB rev 0x12: irq 11 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered Intel 82801BA SMBus rev 0x12 at pci0 dev 31 function 3 not configured uhci1 at pci0 dev 31 function 4 Intel 82801BA USB rev 0x12: irq 10 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered auich0 at pci0 dev 31 function 5 Intel 82801BA AC97 rev 0x12: irq 11, ICH2 AC97 ac97: codec id 0x41445362 (Analog Devices 62) ac97: codec features headphone, No 3D Stereo audio0 at aisa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 sysbeep0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec biomask ff45 netmask ff65 ttymask ffe7 pctr: user-level cycle counter enabled ulpt0 at uhub0 port 2 configuration 1 interface 0 ulpt0: vendor 0x06bc product 0x1001, rev 1.00/1.04, addr 2, iclass 7/1 ulpt0: using bi-directional mode uhidev0 at uhub1 port 1 configuration 1 interface 0 uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.00, addr 2, iclass 3/1 ums0 at uhidev0: 3 buttons and Z dir. wsmouse0 at ums0 mux 0 ahd0: target 0 synchronous with period = 0x8, offset = 0x7f(RDSTRM|DT|IU|RTI|QAS) dkcsum: sd0 matched BIOS disk 80 root on sd0a rootdev=0x400 rrootdev=0xd00 rawdev=0xd02 uich0
Re: serial console weirdness after kernel recompile
Olivier Mehani wrote: On Tue, 07 Jun 2005 23:02:32 +0100 Stuart Henderson [EMAIL PROTECTED] wrote: Now that I'm booting my new kernel, I can see the bootloader output correctly (stty com0 19200 AND set tty com0 in boot.conf) but then I only get garbage (as if the terminal speed wasn't correct) while the kernel boots. I get back to readable messages when init takes control. option PCCOMCONSOLE option CONSPEED=19200 This doesn't change anything... :-/ -- It's like soup. You get a GENERIC recipy for soup which tastes well. Then you change the recipy and the soup tastes awful. The you come and complain to the cook. Use GENERIC for soekris net4511. And read the famous http://www.openbsd.org/faq/faq5.html#Why
cvs patch on 3.7
Just had a quick question on the patch for CVS. After I applied the patch to CVS I checked the version on a server with the patch and one with out the patch. In both cases, the versions were the same (1.11.1p1). When I checked the hash values of the file (/usr/bin/cvs) the two binaries did not match. My question is whether this is normal for the patches? I have never checked in the past. Thanks, Michael Calvi
Eric Raymond about GPL and BSD
original article were in portuguese... http://translate.google.com/translate?u=http%3A%2F%2Fwww.myfreebsd.com.br%2Fmodules.php%3Fname%3DNews%26file%3Darticle%26sid%3D1262langpair=pt%7Cenhl=ensafe=offie=UTF-8oe=UTF-8prev=%2Flanguage_tools' very interesting :) Alexey.
Re: Eric Raymond about GPL and BSD
Alexey E. Suslikov wrote: original article were in portuguese... http://translate.google.com/translate?u=http%3A%2F%2Fwww.myfreebsd.com.b r%2Fmodules.php%3Fname%3DNews%26file%3Darticle%26sid%3D1262langpair=pt% 7Cenhl=ensafe=offie=UTF-8oe=UTF-8prev=%2Flanguage_tools' And what language is that translation in?
relationship passwd file - homedir(s)
Is there anything similar to Linux's pwck available ? (No need to tell me that we're in OpenBSD, please !) What I'd want, is to check the passwd file and delete all home dirs that have no user account any longer. Then, I'd also create home dirs for all users in the passwd without home dir yet. Since this is a migration of 100 users from Linux, I don't feel like doing it manually and the FAQ stops at importing the accounts. Getting the list of the users on Linux doesn't help, there are about 100 home dirs for archive reasons; without valid accounts. So I'd actually need an auto-creation of home dirs for active accounts from an OpenBSD passwd file. Plus, I don't need the _ and 1000. I searched Google and in here, but so far without success. Did I overlook anything ? Uwe
pf and rdr pass nat
The man page says; If the pass modifier is given, packets matching the translation rule are passed without inspecting the filter rules: I like this as it will reduce the size of my rules file, however, how can I rdr pass and have it honour (for want of a better word) altq ? Cheers, Brian.
Question about OpenBSD start up
What source file contains the start up code for OpenBSD? OpenBSD keep it real by keeping it free! Said Outgajjouft
Correct Values - Sysctl Variables
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello. What is the correct values for a high load firewall: net.inet.tcp.rfc1323 net.inet.tcp.rfc3390 The default values is: net.inet.tcp.rfc1323=1 net.inet.tcp.rfc3390=0 []'s Nadal - -- +---+ |Anderson Nadal [EMAIL PROTECTED] | |RHCE - Red Hat Certified Engineer | |Coordenador Tecnico| | Onda Provedor de Servigos S/A http://www.onda.com.br | | Registered Linux User: 56841 | | PGP KEY: www.keyserver.net KEY ID 6ABB668D| | There are 10 types of people in the world: Those who | |understand binary, and those who don't| +---+ Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCptuYLQAusHT90XQRAr2kAJwPEuRV8Gqdpi6HvMdJ84kVQdsw/QCfQvL/ g7pggYAw7xXqOGm0YNumlm4= =x1o+ -END PGP SIGNATURE-
Re: Question about OpenBSD start up
On Wed, 08 Jun 2005 14:02:35 +0200 Said Outgajjouft [EMAIL PROTECTED] wrote: What source file contains the start up code for OpenBSD? /etc/rc --- Lars Hansson
Re: relationship passwd file - homedir(s)
Hello! On Wed, Jun 08, 2005 at 07:31:29PM +0800, Uwe Dippel wrote: [...] What I'd want, is to check the passwd file and delete all home dirs that have no user account any longer. Then, I'd also create home dirs for all users in the passwd without home dir yet. Since this is a migration of 100 users from Linux, I don't feel like doing it manually and the FAQ stops at importing the accounts. Getting the list of the users on Linux doesn't help, there are about 100 home dirs for archive reasons; without valid accounts. So I'd actually need an auto-creation of home dirs for active accounts from an OpenBSD passwd file. Plus, I don't need the _ and 1000. I searched Google and in here, but so far without success. Did I overlook anything ? Normal tools should help. awk to extract the list of directories: awk -F: '($3 = 1000 $1 !~ /^_/) { print $6 }' /etc/passwd grep the result for the pattern '^/home/' (or whatever your base of home is), sed that away 's,^/home/,,', sort it. Compare (e.g. using diff) with the output of ls /home/ | sort. The lines with + are the directories that shouldn't be there (if you use the ls output as the second input to diff), the lines with - are the directories that should be there but aren't. Act upon them properly. Kind regards, Hannah. -- Hannah SchrvterEntwicklung [EMAIL PROTECTED] Bei Schlund + Partner AG Brauerstra_e 48 D-76135 Karlsruhe This specification allows any of these approaches. Solving the Halting Problem is considered extra credit. (RFC 3028)
Re: relationship passwd file - homedir(s)
On Jun 8, 2005, at 7:31 AM, Uwe Dippel wrote: What I'd want, is to check the passwd file and delete all home dirs that have no user account any longer. Then, I'd also create home dirs for all users in the passwd without home dir yet. Since this is a migration of 100 users from Linux, I don't feel like doing it manually and the FAQ stops at importing the accounts. Getting the list of the users on Linux doesn't help, there are about 100 home dirs for archive reasons; without valid accounts. So I'd actually need an auto-creation of home dirs for active accounts from an OpenBSD passwd file. Plus, I don't need the _ and 1000. The simple answer: Create your user accounts (there is a FAQ for migrating SysV/Linux to master.passwd/BSD). I also have a very poorly written Perl script which will generate the useradds for you: Clean up your source password list (from the Linux box) before generating the useradds, so only active accounts will be added to the new system. http://bda.mirrorshades.net/code/scripts/openbsd/bin/migrate_users.pl cd /home for i in * ; do rsync $source:/home/$i . ; chown -R $i:$i $i ; done Go go gadget shell. If you've already added the users, but there were no original accounts on the new host, you can just rsync /home with the --delete option and it'll clean the tree for you. If you're merging systems, and have overlapping usernames, or homedirs that existed on the other system or are otherwise desync'd, you'll have to write some conditions or whatever. I've migrated probably half a dozen boxes since I started using OpenBSD heavily (moving away from Linux) last year. I have yet to run into any major problems. I haven't been sleeping well lately, so the world has gone a bit sideways. Take the above with a shaker or two of salt. As for maintaining state between the password files and /home (and conceivably the mailspools) I can think of a few simple ways to do it with Perl, but never bothered. I always archived and moved the user's homedir off (or deleted it) when the user's status was changed. Cheers. -- bda cyberpunk is dead. long live cyberpunk.
Re: relationship passwd file - homedir(s)
On 6/8/05, Uwe Dippel [EMAIL PROTECTED] wrote: What I'd want, is to check the passwd file and delete all home dirs that have no user account any longer. You can use find(1) -nouser for this. Then, I'd also create home dirs for all users in the passwd without home dir yet. Use awk that parses out the home directory from /etc/passwd and creates if it is missing. Something like this perhaps: cat /etc/passwd | awk -F: '{ if($3 1000) { print $6 } }' cheers, Nickus
more file descriptors for user www
hi there, i have processes running as www, eating up file descriptors. after a while i get errors because i need more. this is not about serving pages, this is about processes which run as www. so how can i raise the number of file descriptors for www? can be this done from /etc/login.conf ? i am bit confused, because www never logs in, or does it? -f -- if code was meant to be portable, it'd have wheels...
i don't *mean* to be stupid. it just happens. need a refresher...
I've obviously spent too much time away from the console lately. I am looking for a package and can't, for the life of me, remember how to find them. I know there is a search key option to a command, but I can't remember which command. make? pkg_info? I've tried searching the archives, but I can't seem to find it. I've looked for 'find package' and 'find port'. I found a package finder at http://ports.puffy.nu/?f=s, but this doesn't really help me remember the proper command. Also, it says ethereal is in /usr/ports/net/ethereal, but I can't find it. Like the subject says, 'i don't *mean* to be stupid. it just happens. need a refresher...' Any help is appreciated, rvb
Re: i don't *mean* to be stupid. it just happens. need a refresher...
Hello! On Wed, Jun 08, 2005 at 08:19:58AM -0400, Rick Barter wrote: I've obviously spent too much time away from the console lately. I am looking for a package and can't, for the life of me, remember how to find them. I know there is a search key option to a command, but I can't remember which command. make? pkg_info? I've tried searching the archives, but I can't seem to find it. I've looked for 'find package' and 'find port'. I found a package finder at http://ports.puffy.nu/?f=s, but this doesn't really help me remember the proper command. If you have the ports tree installed, cd /usr/ports make search key=foobar Also, it says ethereal is in /usr/ports/net/ethereal, but I can't find it. ethereal has been removed due to many many security problems in the code, IIRC. [...] Kind regards, Hannah.
Re: i don't *mean* to be stupid. it just happens. need a refresher...
cd /usr/ports make search name=package_name make search key=package_keyword you can reindex with 'make index' ick Barter wrote: I've obviously spent too much time away from the console lately. I am looking for a package and can't, for the life of me, remember how to find them. I know there is a search key option to a command, but I can't remember which command. make? pkg_info? I've tried searching the archives, but I can't seem to find it. I've looked for 'find package' and 'find port'. I found a package finder at http://ports.puffy.nu/?f=s, but this doesn't really help me remember the proper command. Also, it says ethereal is in /usr/ports/net/ethereal, but I can't find it. Like the subject says, 'i don't *mean* to be stupid. it just happens. need a refresher...' Any help is appreciated, rvb
Re: i don't *mean* to be stupid. it just happens. need a refresher...
On Jun 8, 2005, at 7:19 AM, Rick Barter wrote: I know there is a search key option to a command, but I can't remember which command. make? pkg_info? I've tried searching the archives, but I can't seem to find it. I've looked for 'find package' and 'find port'. I found a package finder at http://ports.puffy.nu/?f=s, but this doesn't really help me remember the proper command. cd /usr/ports make search key=whatever
Re: i don't *mean* to be stupid. it just happens. need a refresher...
On Wed, Jun 08, 2005 at 08:19:58AM -0400, Rick Barter wrote: I've obviously spent too much time away from the console lately. I am looking for a package and can't, for the life of me, remember how to find them. I know there is a search key option to a command, but I can't remember which command. make? pkg_info? I've tried searching the archives, but I can't seem to find it. I've looked for 'find package' and 'find port'. I found a package finder at http://ports.puffy.nu/?f=s, but this doesn't really help me remember the proper command. Also, it says ethereal is in /usr/ports/net/ethereal, but I can't find it. Like the subject says, 'i don't *mean* to be stupid. it just happens. need a refresher...' Any help is appreciated, rvb I'm not sure i understand your question completely. pkg_info tells you what is currently installed. What version are you running? I have a 3.5 box and a 3.6 box, still haven't loaded 3.7 yet :(, and the command find /usr/ports/ -type d -name ethereal finds /usr/ports/net/ethereal on the 3.5 box but not on the 3.6 box. -- There's an art to planning your day. There's a bigger art to sticking with your plan. --Terry
Re: i don't *mean* to be stupid. it just happens. need a refresher...
On Wednesday 08 June 2005 08:59 am, Terry wrote: On Wed, Jun 08, 2005 at 08:19:58AM -0400, Rick Barter wrote: Also, it says ethereal is in /usr/ports/net/ethereal, but I can't find [snip] What version are you running? I have a 3.5 box and a 3.6 box, still haven't loaded 3.7 yet :(, and the command find /usr/ports/ -type d -name ethereal finds /usr/ports/net/ethereal on the 3.5 box but not on the 3.6 box. The cvsweb repository is always a good place to try and figure out why something doesn't seem to be in the repository anymore. http://www.openbsd.org/cgi-bin/cvsweb/ports/net/ethereal/Attic/Makefile?hideattic=0 Tim Donahue
Re: i don't *mean* to be stupid. it just happens. need a refresher...
Well, you could have looked at the Makefile inside /usr/ports :) make search key='something' On 6/8/05, Rick Barter [EMAIL PROTECTED] wrote: I've obviously spent too much time away from the console lately. I am looking for a package and can't, for the life of me, remember how to find them. I know there is a search key option to a command, but I can't remember which command. make? pkg_info? I've tried searching the archives, but I can't seem to find it. I've looked for 'find package' and 'find port'. I found a package finder at http://ports.puffy.nu/?f=s, but this doesn't really help me remember the proper command. Also, it says ethereal is in /usr/ports/net/ethereal, but I can't find it. Like the subject says, 'i don't *mean* to be stupid. it just happens. need a refresher...' Any help is appreciated, rvb -- Gerardo Santana Gsmez Garrido http://www.openbsd.org.mx/santana/ Entre los individuos, como entre las naciones, el respeto al derecho ajeno es la paz -Don Benito Juarez
Re: i don't *mean* to be stupid. it just happens. need a refresher...
On Wed, Jun 08, 2005 at 09:24:41AM -0400, Timothy Donahue wrote: The cvsweb repository is always a good place to try and figure out why something doesn't seem to be in the repository anymore. http://www.openbsd.org/cgi-bin/cvsweb/ports/net/ethereal/Attic/Makefile?hideattic=0 Oh, duh. Thanks Tim, looks like I needed a wake up call too. ;D -- Terry
php4 ports build error
I got these errors trying to compile php4 on OpenBSD 3.6 (Will upgrade to 3.7 soon). My ports collection was upto date. I tried again with the REFETCH=true args and I got the same error. No sha1 checksum recorded for php-4.3.11.tar.gz. No rmd160 checksum recorded for php-4.3.11.tar.gz. No md5 checksum recorded for php-4.3.11.tar.gz. No checksum recorded for php-4.3.11.tar.gz. Make sure the Makefile and checksum file (/usr/ports/www/php4/core/distinfo) are up to date. If you want to fetch a good copy of this file from the OpenBSD main archive, type make REFETCH=true [other args]. *** Error code 1 Stop in /usr/ports/www/php4/core (line 1481 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php4/core (line 1490 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php4/core (line 1481 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php4/core (line 1556 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php4 (line 103 of /usr/ports/infrastructure/mk/bsd.port.subdir.mk). -- John Rockstar Tate Mobile: 0413 348 815 (Yep, old number, but I have a new phone) New Personal Website: http://kintaro.noobify.com
Re: A Business Case for integrating OpenBSD into IT Infrastructures
On Mon, June 6, 2005 9:48 am, Mark Uemura wrote: Thanks for taking the time to provide me with your feedback. I'm not adverse to getting or taking criticism if I'm wrong and/or if I learn something. As my very close father-like friend says to me, Mark, if you're not careful, you'll learn something everyday! :) Just so you know, aside from my criticisms (which were misdirected since I completely misunderstood the purpose of your talk) I thought you put together an excellent presentation. That probably didn't come through in my email. Please keep up the good work.
Re: php4 ports build error
I know php4, both core and extentions builds fine for me in 3.6. Is there any reason why you're not just using packages? They're all on the FTP site, including the latest ones for 3.6. Otherwise, my guess is that something is out of sync with your ports tree (you're at least missing the distinfo file for php4), and possibly your base. Jason On 6/8/05, John Tate [EMAIL PROTECTED] wrote: I got these errors trying to compile php4 on OpenBSD 3.6 (Will upgrade to 3.7 soon). My ports collection was upto date. I tried again with the REFETCH=true args and I got the same error. No sha1 checksum recorded for php-4.3.11.tar.gz. No rmd160 checksum recorded for php-4.3.11.tar.gz. No md5 checksum recorded for php-4.3.11.tar.gz. No checksum recorded for php-4.3.11.tar.gz. Make sure the Makefile and checksum file (/usr/ports/www/php4/core/distinfo) are up to date. If you want to fetch a good copy of this file from the OpenBSD main archive, type make REFETCH=true [other args]. *** Error code 1 Stop in /usr/ports/www/php4/core (line 1481 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php4/core (line 1490 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php4/core (line 1481 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php4/core (line 1556 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php4 (line 103 of /usr/ports/infrastructure/mk/bsd.port.subdir.mk). -- John Rockstar Tate Mobile: 0413 348 815 (Yep, old number, but I have a new phone) New Personal Website: http://kintaro.noobify.com
Re: php4 ports build error
--On 09 June 2005 01:03 +1000, John Tate wrote: I got these errors trying to compile php4 on OpenBSD 3.6 (Will upgrade to 3.7 soon). My ports collection was upto date. I tried again with the REFETCH=true args and I got the same error. My ports collection was up to date: you mean, you're trying to mix -current ports with 3.6 system? If so, read this: http://www.openbsd.org/faq/faq8.html#Ports
Re: php4 ports build error
Your right the distinfo file is missing, hell ill just grab the packages. On 6/9/05, Jason Crawford [EMAIL PROTECTED] wrote: I know php4, both core and extentions builds fine for me in 3.6. Is there any reason why you're not just using packages? They're all on the FTP site, including the latest ones for 3.6. Otherwise, my guess is that something is out of sync with your ports tree (you're at least missing the distinfo file for php4), and possibly your base. Jason On 6/8/05, John Tate [EMAIL PROTECTED] wrote: I got these errors trying to compile php4 on OpenBSD 3.6 (Will upgrade to 3.7 soon). My ports collection was upto date. I tried again with the REFETCH=true args and I got the same error. No sha1 checksum recorded for php-4.3.11.tar.gz. No rmd160 checksum recorded for php-4.3.11.tar.gz. No md5 checksum recorded for php-4.3.11.tar.gz. No checksum recorded for php-4.3.11.tar.gz. Make sure the Makefile and checksum file (/usr/ports/www/php4/core/distinfo) are up to date. If you want to fetch a good copy of this file from the OpenBSD main archive, type make REFETCH=true [other args]. *** Error code 1 Stop in /usr/ports/www/php4/core (line 1481 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php4/core (line 1490 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php4/core (line 1481 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php4/core (line 1556 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php4 (line 103 of /usr/ports/infrastructure/mk/bsd.port.subdir.mk). -- John Rockstar Tate Mobile: 0413 348 815 (Yep, old number, but I have a new phone) New Personal Website: http://kintaro.noobify.com -- John Rockstar Tate Mobile: 0413 348 815 (Yep, old number, but I have a new phone) New Personal Website: http://kintaro.noobify.com
Re: i don't *mean* to be stupid. it just happens. need a refresher...
make search key=keyword On Wed, 2005-06-08 at 08:19 -0400, Rick Barter wrote: I've obviously spent too much time away from the console lately. I am looking for a package and can't, for the life of me, remember how to find them. I know there is a search key option to a command, but I can't remember which command. make? pkg_info? I've tried searching the archives, but I can't seem to find it. I've looked for 'find package' and 'find port'. I found a package finder at http://ports.puffy.nu/?f=s, but this doesn't really help me remember the proper command. Also, it says ethereal is in /usr/ports/net/ethereal, but I can't find it. Like the subject says, 'i don't *mean* to be stupid. it just happens. need a refresher...' Any help is appreciated, rvb
Re: PPPoE Download Performance Woes
Melameth, Daniel D. wrote: Kevin wrote: On 6/7/05, Can Erkin Acar [EMAIL PROTECTED] wrote: Melameth, Daniel D. wrote: Prior to migrating to DSL, this same card was used for a cable connection and doing more than 1.5Mb/s. This really does not mean much. It could be a negotiation problem. Was your old cable modem ethernet connection 10BaseT ? 100baseTX full-duplex from a previous post ... xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 address: 00:04:75:ac:05:48 media: Ethernet autoselect (100baseTX full-duplex) Perhaps your ADSL modem/switch has problems negotiating with your card, or your cable might have problems. The same cable was used with the Windows box. It'd help if the OP can provide the output of 'netstat -in' after the PPPoE has been up for a while. Here is the output from the time I rebooted the OpenBSD box this morning till the time I got home from work (which means it didn't get used much): $ netstat -in NameMtu Network Address Ipkts IerrsOpkts Oerrs Colls lo0 33224 Link 0 00 0 0 lo0 33224 127/8 127.0.0.10 00 0 0 lo0 33224 ::1/128 ::1 0 00 0 0 lo0 33224 fe80::%lo0/ fe80::1%lo0 0 00 0 0 pflog0 33224 Link 0 00 0 0 pfsync0 2020 Link 0 00 0 0 enc0* 1536 Link 0 00 0 0 wi0 1500 Link 00:02:6f:09:58:b210227 011042 0 519 wi0 1500 192.168.255 192.168.255.254 10227 011042 0 519 wi0 1500 fe80::%wi0/ fe80::202:6fff:fe10227 011042 0 519 xl0 1500 Link 00:04:75:ac:05:4865278 048429 0 0 xl0 1500 192.168.255 192.168.255.221 65278 048429 0 0 xl0 1500 fe80::%xl0/ fe80::204:75ff:fe65278 048429 0 0 pppoe0 1492 Link 65275 048425 3 0 pppoe0 1492 0.0.0.0/32 70.x.x.x 65275 048425 3 0 pppoe0 1492 fe80::%pppo fe80::202:6fff:fe65275 048425 3 0 Full-duplex does not detect transmission errors, so you would not see them on netstat -i output. You could try setting media to 10BaseT half-duplex this usually helps you notice if there is a problem, and can sometimes solve it. ifconfig takes xl0 media 10baseT, but adding half-duplex yields: $ sudo ifconfig xl0 media 10baseT half-duplex ifconfig: half-duplex: bad value Regardless, with ifconfig xl0 media 10baseT, both the modem and OpenBSD box show the connection at 10Mb/s, but the issue persists. And do try another ethernet card if possible. Seconded on both points. This is a CardBus card and I only have other 3Coms--I tried another identical 3Com card with the same poor results. One thing I've found very helpful in debugging PPPoE has been to use either the - (time between packets) or -tt (absolute epoch time) options on tpcdump, watching the packets on both the real Ethernet interface and the tunnel (pppoe0) interface, in two side-by-side windows. I was about to give this tcpdump timing a shot, but decided to spend a few more hours trying some other tests. Here is the results of my findings (all devices connected to the DSL modem were directly connected): * Reconfiguring the modem to handle the PPPoE connection, instead of the OpenBSD box, and reconfiguring the OpenBSD box as a workstation (meaning no hostname.pppoe0) yields the same 1.5Mb/s Internet download speed--which would suggest the issue is not with 3.7's kernel pppoe but, perhaps, related to xl * Removing the xl card from the OpenBSD box and putting it into a Windows box yields a 5.5Mb/s Internet download speed--which would suggest the card performs fine * Putting the xl card back into the OpenBSD box and performing an ftp transfer between the OpenBSD box and another box connected via crossover cable yields a 40Mb/s download speed--I'm not sure what this suggests, but it seems, in some way, there is some kind of interoperability issue between xl, OpenBSD and my DSL modem I have exactly this setup (xl0 connected to DSL modem on a high speed DSL line, it's a 3c905c card), The modem is an Arescom NetDSL 800 (shitty). The whole thing won't pass over 50kb/s if the xl0 card is 100baseTX full-duplex or even 10baseT full duplex. I have to configure xl0 this way: # cat /etc/hostname.xl0 inet 192.168.0.254 0xff00 NONE media 10baseT for pppoe to work with *this* ADSL modem. Meanwhile xl0 in a crossover cable works up to 60Mbps using media 100baseTX mediaopt full-duplex. The address of xl0 is just there cos I can connect to the modem's local ip address 192.168.0.1 via Arescom's NetDSL remote manager just to watch the speed the ADSL line have in cloudy days, it drops to 2200Kbps
Re: i don't *mean* to be stupid. it just happens. need a refresher...
I really like to use this. make search key=keyword | grep Path: | grep keyword That output should tell you exactly where to cd to. -Blake -Original Message- From: alain [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 5:51 AM To: Rick Barter Cc: OpenBSD-Misc Subject: Re: i don't *mean* to be stupid. it just happens. need a refresher... make search key=keyword On Wed, 2005-06-08 at 08:19 -0400, Rick Barter wrote: I've obviously spent too much time away from the console lately. I am looking for a package and can't, for the life of me, remember how to find them. I know there is a search key option to a command, but I can't remember which command. make? pkg_info? I've tried searching the archives, but I can't seem to find it. I've looked for 'find package' and 'find port'. I found a package finder at http://ports.puffy.nu/?f=s, but this doesn't really help me remember the proper command. Also, it says ethereal is in /usr/ports/net/ethereal, but I can't find it. Like the subject says, 'i don't *mean* to be stupid. it just happens. need a refresher...' Any help is appreciated, rvb
Re: Eric Raymond about GPL and BSD
On Wed, 2005-06-08 at 10:53 +0300, Alexey E. Suslikov wrote: original article were in portuguese... http://translate.google.com/translate?u=http%3A%2F%2Fwww.myfreebsd.com.br%2Fmodules.php%3Fname%3DNews%26file%3Darticle%26sid%3D1262langpair=pt%7Cenhl=ensafe=offie=UTF-8oe=UTF-8prev=%2Flanguage_tools' very interesting :) This kept dumping me to the original page. I had to yank out the URL and paste it into Altavista Babelfish to get a translation, which still wasn't all that clear. -- Shawn K. Quinn [EMAIL PROTECTED]
Problems with X AGP and mouse copy-paste
I keep having some very annoying problems with X on a month old current binary snapshot (but I have experienced these problems also on 3.6-release and 3.7-release). 1) When I exit the window manager I some times (maybe every 15-20 logouts) find that xdm won't start but instead X dies and doesn't start anymore, and running startx from console gives the following error: X Window System Version 6.8.2 Release Date: 9 February 2005 X Protocol Version 11, Revision 0, Release 6.8.2 Build Operating System: OpenBSD 3.7 i386 [ELF] Current Operating System: OpenBSD giedi.pc.lut.fi 3.7 GENERIC#63 i386 Build Date: 16 March 2005 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: /var/log/Xorg.0.log, Time: Wed Jun 8 19:01:03 2005 (==) Using config file: /etc/X11/xorg.conf (EE) I810(0): Cannot read int vect (EE) I810(0): Less than 6MB of AGP memory is available. Cannot proceed. (EE) Screen(s) found, but none have a usable configuration. Fatal server error: no screens found Please consult the The X.Org Foundation support at http://wiki.X.Org for help. Please also check the log file at /var/log/Xorg.0.log for additional information. -- After reboot everything works again until the next time xdm halts. 2) Another X-related problem with the same machine is that the mouse copy-paste stops working every few hours. It just refuses to paste anything anymore. I have to restart X to get it working again. I changed my Logitech ps/2 mouse for usb mouse, but the problem remains. The mouse device is /dev/wsmouse. I did some googling for this problem but I couldn't find any solution, so please forgive me if this some stupidly obvious thing or already answered somewhere. Any help would be appreciated! Here are my Xorg.0.log, xorg.conf and dmesg. - /var/log/Xorg.0.log - (--) checkDevMem: using aperture driver /dev/xf86 (--) Using wscons driver in pcvt compatibility mode (version 3.32) (WW) xf86AcquireGART: AGPIOC_ACQUIRE failed (Device busy) X Window System Version 6.8.2 Release Date: 9 February 2005 X Protocol Version 11, Revision 0, Release 6.8.2 Build Operating System: OpenBSD 3.7 i386 [ELF] Current Operating System: OpenBSD giedi.pc.lut.fi 3.7 GENERIC#63 i386 Build Date: 16 March 2005 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: /var/log/Xorg.0.log, Time: Wed Jun 8 19:01:03 2005 (==) Using config file: /etc/X11/xorg.conf (==) ServerLayout Simple Layout (**) |--Screen Screen 1 (0) (**) | |--Monitor mon0 (**) | |--Device ** Intel i810 (generic) [i810] (**) |--Input Device Mouse1 (**) |--Input Device Keyboard0 (WW) The directory /usr/X11R6/lib/X11/fonts/TrueType/ does not exist. Entry deleted from font path. (WW) The directory /usr/X11R6/lib/X11/fonts/freefont/ does not exist. Entry deleted from font path. (**) FontPath set to /usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11 /fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/,/usr/local/lib/X11/font s/terminus/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75 dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/local/lib /X11/fonts/ghostscript/,/usr/X11R6/lib/X11/fonts/Type1/,/home/alhonen/ fonts/ (**) RgbPath set to /usr/X11R6/lib/X11/rgb (==) ModulePath set to /usr/X11R6/lib/modules (II) Module ABI versions: X.Org ANSI C Emulation: 0.2 X.Org Video Driver: 0.7 X.Org XInput driver : 0.4 X.Org Server Extension : 0.2 X.Org Font Renderer : 0.4 (II) Loader running on openbsd (II) LoadModule: bitmap (II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a (II) Module bitmap: vendor=X.Org Foundation compiled for 6.8.2, module version = 1.0.0 Module class: X.Org Font Renderer ABI class: X.Org Font Renderer, version 0.4 (II) Loading font Bitmap (II) LoadModule: pcidata (II) Loading /usr/X11R6/lib/modules/libpcidata.a (II) Module pcidata: vendor=X.Org Foundation compiled for 6.8.2, module version = 1.0.0 ABI class: X.Org Video Driver, version 0.7 (II) PCI: Probing config type using method 1 (II) PCI: Config type is 1 (II) PCI: stages = 0x03, oldVal1 = 0x, mode1Res1 = 0x8000 (II) PCI: PCI scan (all values are in hex) (II) PCI: 00:00:0: chip 8086,1130 card 147b,0402 rev 02 class 06,00,00 hdr 00 (II) PCI: 00:02:0: chip 8086,1132 card 8086,1132 rev 02 class 03,00,00 hdr 00 (II) PCI: 00:1e:0: chip 8086,244e card , rev 01 class 06,04,00 hdr 01 (II)
Re: i don't *mean* to be stupid. it just happens. need a refresher...
On Wed, Jun 08, 2005 at 08:19:58AM -0400, Rick Barter wrote: I've obviously spent too much time away from the console lately. I am looking for a package and can't, for the life of me, remember how to find them. For packages, you'll usually find the file 'index.txt' in the appropriate package directory on your mirror listing the available packages. Download it and use grep. It isn't hard to write a wrapper script for pkg_add which downloads this file (if your local copy is too old), searches for the name or pattern you specify on the command line, offers you a choice if there's more than one match (possibly using pkg_info to retrieve a detailed descripton), and then installs your chosen package from the site you specify in PKG_PATH with sudo pkg_add. In fact, you could probably knock up a patch pkg_add to provide such a feature itself. If anyone does this, be sure to post it here :) -- [EMAIL PROTECTED]
pthreads question
For a threaded network application I'm developping, I have to watch the number of concurrent connections. I currently use this code: if (curconns maxconns) { curconns++; } else { pthread_cond_wait(conns_is_at_max, useless_mutex); continue; } curconns is decremented by other threads each time a connection is finished and is only incremented in the main thread. I use a condition variable to know when it is decremented so that I can restart the loop and accept the connection. I don't need a mutex but it seem the pthread code requires one. The manpages on pthreads are very scarce. Is there a better/simpler way to do this? Help is apreciated (pointers to documentation, plain answers, or just anything useful) -- They allowed us to set up a separate division almost, that is physically, geographically, psychologically and spiritually different from what Bill himself calls the Borg - Peter Moore, V.P. in charge of Xbox 360 marketing at Microsoft.
Re: ntpd: negative delay (zaurus - i386)
Funny you should mention this - I've been poking at my zaurus to see about keeping track of time across power loss. It seems that the RTC is powered from the battery/wall and if there is no power, we lose the RTC. Why oh why couldn't they have stuck in a little wristwatch timer, BACKED BY AN INDEPENDENT watch battery...? ya ya, cost and size... Anyway, I made friends with the processor manual: www.intel.com/design/pca/applicationsprocessors/manuals/28.htm On 6/8/05, Matthias Kilian [EMAIL PROTECTED] wrote: Running ntpd -s on my zaurus, I sometimes (not allways) get log messages like reply from ...: negative delay -0.22 IMHO, potential candidates are (in decreasing order): Don't forget about a possibly off-kilter realtime clock. TFM says that there are two 1Hz clocks, one 100Hz clock and one 1kHz clock all accurate to one part in 32768. obRTFM: page 935-937 of the PXA27x processor family manual. OpenBSD 3.7-current (GENERIC) #0: Sun Jun 5 13:30:53 CEST 2005 ... saost0 at pxaip0 addr 0x40a0 saost0: SA-11x0 OS Timer ... clock: hz=100 stathz=64 10ms clock, +/- 30.5usec. Not exactly the best thing in the world if you're looking for sub-millisecond timing. 1/32768 = .305 .305 fabs(-0.22) In short, the delay error is within the error limits of the onboard clocks. -- GDB has a 'break' feature; why doesn't it have 'fix' too?
Re: ral(4) not associating with AP on latest snapshot (06.04)
Paulius Bulotas [EMAIL PROTECTED] wrote: I was able to install 3.7 using wireless without any problems, although running it after that was quite bumpy experience (panic's because of ral). It seems, there were some fixes to ral(4), so I installed latest snapshot. What's strange, that I managed to install it through wireless too ;), but now I'm unable to connect to my access point ;( I've run into this as well. Dan Harnett [EMAIL PROTECTED] has traced this to the changes in sys/dev/ic/ral.c, rev 1.52 and the incomplete backout in rev 1.53. If you go back to rev 1.51, all should be fine again. We're waiting for Damien to okay this... Index: ral.c === RCS file: /cvs/src/sys/dev/ic/ral.c,v retrieving revision 1.53 diff -u -r1.53 ral.c --- ral.c 18 May 2005 20:10:07 - 1.53 +++ ral.c 4 Jun 2005 11:12:42 - @@ -2650,9 +2650,6 @@ /* set supported basic rates (1, 2, 6, 12, 24) */ RAL_WRITE(sc, RAL_ARSP_PLCP_1, 0x153); - /* set default sensitivity */ - ral_bbp_write(sc, 17, 0x48); - ral_set_txantenna(sc, 1); ral_set_rxantenna(sc, 1); ral_update_slot(sc); -- Christian naddy Weisgerber [EMAIL PROTECTED]
Best options for a boot CD without union mounting?
Ted Unangst wrote at Thu, 26 May 2005 01:16:55 -0400 (EDT) notice layered mounts are gone. I have understood from all sides the union mount implementation was bad and buggy, so no problem with that. My question is: What are the options for a pretty complete OpenBSD boot-cd without layered mounts? (My question is not about an incomplete OpenBSD system with just firewall or other router functionality.) +++chefren Return-path: [EMAIL PROTECTED] Received: from smtp17.wxs.nl ([195.121.5.205]) by po09.wxs.nl (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTP id [EMAIL PROTECTED] for [EMAIL PROTECTED]; Thu, 26 May 2005 07:28:59 +0200 (MEST) Received: from shear.ucar.edu (shear.ucar.edu [192.43.244.163]) by smtp17.wxs.nl (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id [EMAIL PROTECTED] for [EMAIL PROTECTED]; Thu, 26 May 2005 07:28:59 +0200 (CEST) Received: from openbsd.org (localhost.ucar.edu [127.0.0.1]) by shear.ucar.edu (8.13.3/8.13.4) with ESMTP id j4Q5Bk3p022048 for [EMAIL PROTECTED]; Wed, 25 May 2005 23:23:26 -0600 (MDT) Received: from mail.codefusionis.com (ns.codefusionis.com [208.33.29.188]) by shear.ucar.edu (8.13.3/8.13.3) with SMTP id j4Q5AW5e012924 for misc@openbsd.org; Wed, 25 May 2005 23:10:32 -0600 (MDT) Received: (qmail 2506 invoked by uid 1049); Thu, 26 May 2005 05:16:55 + Received: from localhost ([EMAIL PROTECTED]) by localhost with SMTP; Thu, 26 May 2005 05:16:55 + Date: Thu, 26 May 2005 01:16:55 -0400 (EDT) From: Ted Unangst [EMAIL PROTECTED] Subject: notice: layered mounts are gone Sender: [EMAIL PROTECTED] X-X-Sender: [EMAIL PROTECTED] To: misc@openbsd.org Message-id: [EMAIL PROTECTED] MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Precedence: list X-Loop: misc@openbsd.org Original-recipient: rfc822;[EMAIL PROTECTED] null and union mounts have been deleted. if you are using them and tracking current, you will have pain when you reboot. -- quit whining you haven't done anything wrong because frankly you haven't done much of anything Return-path: [EMAIL PROTECTED] Received: from smtp18.wxs.nl ([195.121.5.206]) by po09.wxs.nl (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTP id [EMAIL PROTECTED] for [EMAIL PROTECTED]; Fri, 27 May 2005 02:00:26 +0200 (MEST) Received: from shear.ucar.edu (shear.ucar.edu [192.43.244.163]) by smtp18.wxs.nl (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id [EMAIL PROTECTED] for [EMAIL PROTECTED]; Fri, 27 May 2005 02:00:26 +0200 (CEST) Received: from openbsd.org (localhost.ucar.edu [127.0.0.1]) by shear.ucar.edu (8.13.3/8.13.4) with ESMTP id j4QNaGu8010794; Thu, 26 May 2005 17:36:16 -0600 (MDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by shear.ucar.edu (8.13.3/8.13.3) with ESMTP id j4QNWojL001469 for misc@openbsd.org; Thu, 26 May 2005 17:32:50 -0600 (MDT) Received: by wproxy.gmail.com with SMTP id 57so1234677wri for misc@openbsd.org; Thu, 26 May 2005 16:32:45 -0700 (PDT) Received: by 10.54.37.8 with SMTP id k8mr1244865wrk; Thu, 26 May 2005 16:32:45 -0700 (PDT) Received: by 10.54.72.4 with HTTP; Thu, 26 May 2005 16:32:45 -0700 (PDT) Date: Thu, 26 May 2005 17:32:45 -0600 From: Chris Kuethe [EMAIL PROTECTED] Subject: Re: notice: layered mounts are gone In-reply-to: [EMAIL PROTECTED] Sender: [EMAIL PROTECTED] To: kami petersen [EMAIL PROTECTED] Cc: misc@openbsd.org Reply-to: Chris Kuethe [EMAIL PROTECTED] Message-id: [EMAIL PROTECTED] MIME-version: 1.0 X-MIME-Autoconverted: from quoted-printable to 8bit by shear.ucar.edu id j4QNWpjL012057 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit Precedence: list X-Loop: misc@openbsd.org DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UhuFoEuMc4vvzCt92sSyhEMeeWnKvT6lER95CVU/kcuW0ZP3QvoGWPSWYJHWOMUg1PJCbRFicTqVdUCdfGHIoilqkmo/ELWdaqLDBzo+UjGqC6q7/bojKhBE2vlcugoXgxu+YAyfx0tHmx7P4/h9gmuonwswgj7OewGaD5FMMuI= References: [EMAIL PROTECTED] [EMAIL PROTECTED] Original-recipient: rfc822;[EMAIL PROTECTED] On 5/26/05, kami petersen [EMAIL PROTECTED] wrote: null and union mounts have been deleted. cool. why? Theo says: union mounting is now officially unsupported. we give up. in 15 years of hacking, noone has gotten it working bug free. it is time we gave up and mark it unuseable. http://marc.theaimsgroup.com/?l=openbsd-miscm=110226865110477w=2 This moment in time was brought to you by the very-handy-if-you-ever-use-them archives at marc.theaimsgroup.com -- GDB has a 'break' feature; why doesn't it have 'fix' too?
3.7 briefly...
Well I installed 3.7 last week on an old laptop Friday night to finally check it out. Unfortunately my house got broken into the laptop was stolen on Sunday. I got to spend about 3 hours with it. Thankfully I had removed the CD from the drive before I left so I still have that. I'd love to see the look on the persons face when they boot up their new windows laptop Oh well, it was time to change all my passwords anyways. -Healy
Sad boot problem (boot.conf: invalid argument)
Hi to all. I have been interested in BSD for about a year and have tried all of the three most popular free ones. I would like to start by saying something good: OpenBSD was a very pleasant surprise to me. After trying FreeBSD and NetBSD, I left OpenBSD to the end of the queue because of so many bad things I had heard about it, like it's slow or it's too difficult. I didn't find any of this while testing it. Instead, this is my favorite BSD so far and I actually think I could use it every day instead of Linux. I also want to build a server, BTW. Now, the bad thing. Contrasting with the very good experience I had in my tests, I have already installed it three times because of a problem that beats the heck out of me. You certainly have heard about it before: disk: fd0 hd0+ OpenBSD/i386 BOOT 2.02 open(hd0a:/etc/boot.conf: Invalid argument boot booting hd0a:/bsd: open hd0a:/bsd: Invalid argument failed(22). will try /obsd boot booting hd0a:/obsd: open hd0a:/obsd: Invalid argument failed(22). will try /bsd.old My first line is different from disk: fd0 hd0+ because I have three hard disks. And I guess it's not BOOT 2.02 anymore. I have OpenBSD 3.7. Actually, I copied the block above from the archives: http://archives.neohapsis.com/archives/openbsd/2003-11/0143.html It was very sad. In the first time, I could boot with the cd: boot boot hd0a:/bsd But I couldn't find out how to fix the system and boot without the CD. Reinstalling didn't work either. Neither did deleting and recreating the disk labels. Actually, even if I format the slice with another file system, the disk labels are still there when I try to reinstall. The only method that worked for me was the following: - Format the slice with another file system. In my case, ext2. - Boot into Linux and copy an awful lot of data to that slice until no space is left. - Boot with the CD and reinstall everything all over again. Yes, this method actually worked twice and had me piloting OpenBSD again. That's when I tested OpenBSD and found it so good. But it only survives about 4 or 5 reboots until that nasty problem bites me again. And in the last two times, booting with boot hd0a:/bsd didn't work either. Then I just gave up. What I have now is an unbootable slice. If I had actual data in there, I wouldn't know what to do to have it back. But what is also a very bad consequence is that now I am afraid of OpenBSD. All the time during my tests, I stared nervously at the boot sequence waiting for the strange problem to happen again. And, sure enough, it's happened three times already in less than two days. I really liked all the rest of the experience, but I don't think I'll have the courage to actually use it. I almost formatted the slice to install something else and left OpenBSD behind, but decided to take a shot and ask for a little enlightenment here. Back to that message I found in the archives, it seems that the person that signs as herk solved the problem with a BIOS update. Actually, I found another case in Google of someone who had the same problem and also solved the problem with a BIOS update. But I don't want to go that way. I do not feel comfortable at all updating my BIOS. Lots of things can go wrong and trash my motherboard. Besides, I really would like someone to tell me why that has to be the only way if: - I never had that problem with FreeBSD; - I never had that problem with NetBSD; - I never had that problem with Windows 95, 98 or 2000 (this machine never saw and never will see XP); - I never had that problem with any of the 10 or more Linux distros I have tried, over 30 if we count multiple versions of these 10 distros as individual distros. In light of these facts, what would the technical explanation be for such a discouraging flaw not to be viewed and addressed as a bug or, at least, a shortcoming of OpenBSD? Of course, alternative and effective solutions to my problem would be greatly appreciated, but for now I only beg that you gentlemen at least tell me, in very clear wording, why it is not considered a bug if it only seems to happen with OpenBSD. Many thanks in advance for your time and attention. -- Luciano Espirito Santo Santos, SP - Brasil
Sad boot problem (boot.conf: invalid argument)
I am sorry, I forgot to say that my motherboard is an Asus A7N 266 VM. I am sure that someone will want to know. -- Luciano Espirito Santo Santos, SP - Brasil
Re: Correct Values - Sysctl Variables
Anderson Nadal wrote: Hello. What is the correct values for a high load firewall: net.inet.tcp.rfc1323 net.inet.tcp.rfc3390 The default values is: net.inet.tcp.rfc1323=1 net.inet.tcp.rfc3390=0 Generally, use the defaults, unless you have a problem you are trying to fix. You described no problem, so leave 'em alone. Nick.
How do I restart sendmail?
I changed some options in the .mc file and rebuilt the /etc/mail/sendmail.cf file. How do I restart sendmail?
Re: How do I restart sendmail?
In message [EMAIL PROTECTED] so spake Timothy Horie (tak): I changed some options in the .mc file and rebuilt the /etc/mail/sendmail.cf file. How do I restart sendmail? This is what I do (as root): kill -HUP `sed q /var/run/sendmail.pid` Sending SIGHUP to sendmail causes it to re-exec itself. - todd
Re: How do I restart sendmail?
+++ Timothy Horie [Wed, Jun 08, 2005 at 05:38:58PM -0700]: I changed some options in the .mc file and rebuilt the /etc/mail/sendmail.cf file. How do I restart sendmail? easily: sudo kill -HUP `sudo head -1 /var/run/sendmail.pid` -- byr0n
Re: How do I restart sendmail?
--On 09 June 2005 02:04 +0100, Timothy Horie, misc@openbsd.org wrote: --On 08 June 2005 17:38 -0700, Timothy Horie wrote: I changed some options in the .mc file and rebuilt the /etc/mail/sendmail.cf file. How do I restart sendmail? Standard unix: kill -HUP `cat /var/run/sendmail.pid` ha, and end up with a load of 'illegal process id'. Jason has a better answer.
Re: Sad boot problem (boot.conf: invalid argument)
--On 08 June 2005 21:22 -0300, Luciano ES wrote: Now, the bad thing. Contrasting with the very good experience I had in my tests, I have already installed it three times because of a problem that beats the heck out of me. You certainly have heard about it before: disk: fd0 hd0+ OpenBSD/i386 BOOT 2.02 open(hd0a:/etc/boot.conf: Invalid argument boot booting hd0a:/bsd: open hd0a:/bsd: Invalid argument failed(22). will try /obsd boot booting hd0a:/obsd: open hd0a:/obsd: Invalid argument failed(22). will try /bsd.old My first line is different from disk: fd0 hd0+ because I have three hard disks. And I guess it's not BOOT 2.02 anymore. I have OpenBSD 3.7. Actually, I copied the block above from the archives: Well, you want help with your problem, not someone else's problem from 2003, with a very different bootloader... Copy the exact message from your system. Either type it from the screen, being very careful that you don't miss any punctuation characters etc., or use a serial console as described on http://www.openbsd.org/faq/faq4.html#getdmesg Output from disklabel might be useful, and you should include dmesg too. But I couldn't find out how to fix the system and boot without the CD. Reinstalling didn't work either. Neither did deleting and recreating the disk labels. Actually, even if I format the slice with another file system, the disk labels are still there when I try to reinstall. The only method that worked for me was the following: You can usually clear a disklabel by overwriting the start of the partition by dd'ing /dev/zero over it.
Re: pthreads question
On Wed, 8 Jun 2005, Arnaud Bergeron wrote: For a threaded network application I'm developping, I have to watch the number of concurrent connections. I currently use this code: if (curconns maxconns) { curconns++; } else { pthread_cond_wait(conns_is_at_max, useless_mutex); continue; } curconns is decremented by other threads each time a connection is finished and is only incremented in the main thread. I use a condition variable to know when it is decremented so that I can restart the loop and accept the connection. I don't need a mutex but it seem the pthread code requires one. The manpages on pthreads are very scarce. Is there a better/simpler way to do this? i don't know how you came to that conclusion, but hello race condition. yes, you need a mutex. use one. -- And that's why Yahoo is Morbo's Vermin of the Week.
Re: Weird MAC Address Problem with 3.7 on Dell 600 series
--- Quoting eric on 2005/06/07 at 00:18 -0500: fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 address: 00:02:b3:b1:a8:9a description: ipv6_if media: Ethernet 100baseTX full-duplex status: active inet6 2001:x:y:z::133 prefixlen 96 inet6 fe80::202:b3ff:feb1:a89a%fxp0 prefixlen 64 scopeid 0x1 fxp1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 address: 00:02:b3:b1:a8:9b description: public_if media: Ethernet 100baseTX full-duplex status: active inet x.y.z.135 netmask 0x8cc01580 broadcast 140.192.21.255 inet6 fe80::202:b3ff:feb1:a89b%fxp1 prefixlen 64 scopeid 0x2 Both these interfaces are plugged into something and both are admin up. When I look at my switch cam table, I see the following... swt sh mac-address-table 10002.b3b1.a89aDYNAMIC Gi1/0/7 10002.b3b1.a89bSTATIC Gi1/0/7 Note the second one is a static entry. .joel
MySQL issues
Hey, I am having trouble with phpBB2 running on my OpenBSD 3.6 machine, it cannot connect to the database (Mysql). I am guessing this is because Apache and phpBB2 are running in a chroot environment and cannot connect to the Mysql Server's socket. What is the best way around this (preferably) without taking apache out of chroot? Yours, John. -- John Rockstar Tate Mobile: 0413 348 815 (Yep, old number, but I have a new phone) New Personal Website: http://kintaro.noobify.com
Re: MySQL issues
On Jun 8, 2005, at 10:10 PM, John Tate wrote: Hey, I am having trouble with phpBB2 running on my OpenBSD 3.6 machine, it cannot connect to the database (Mysql). I am guessing this is because Apache and phpBB2 are running in a chroot environment and cannot connect to the Mysql Server's socket. What is the best way around this (preferably) without taking apache out of chroot? Move the socket somewhere into the apache chroot. -- Jason Dixon DixonGroup Consulting http://www.dixongroup.net
Re: MySQL issues
Well, as long as where ever the mysql unix socket is located is on the same partition as apache, you can just create a hard link for it inside the apache chroot. Another option is to make the mysql server listen on localhost, and have phpBB2 connect via localhost. The benefit to that is that it doesn't matter where the mysql server is located, as apposed to the hard link which would require it to be located on the same partition. Jason On 6/8/05, John Tate [EMAIL PROTECTED] wrote: Hey, I am having trouble with phpBB2 running on my OpenBSD 3.6 machine, it cannot connect to the database (Mysql). I am guessing this is because Apache and phpBB2 are running in a chroot environment and cannot connect to the Mysql Server's socket. What is the best way around this (preferably) without taking apache out of chroot? Yours, John. -- John Rockstar Tate Mobile: 0413 348 815 (Yep, old number, but I have a new phone) New Personal Website: http://kintaro.noobify.com
Re: MySQL issues
The answer is in the archives ;) Trust me, I'm the one who caused it to be so. Hint: You'll want to create datadir and socket directives in /etc/my.cnf John Tate wrote: Hey, I am having trouble with phpBB2 running on my OpenBSD 3.6 machine, it cannot connect to the database (Mysql). I am guessing this is because Apache and phpBB2 are running in a chroot environment and cannot connect to the Mysql Server's socket. What is the best way around this (preferably) without taking apache out of chroot? Yours, John.
Re: compat_any - Question because the neede files (e.g. for HP-UX copatibility)
On Thu, 9 Jun 2005 [EMAIL PROTECTED] wrote: Or is that already a license-violation (e.g. if it deals with HP-UX)? The compat-modes are nice to migrate but useless if you've just an old application and no e.g. HP-UX to get the needed files. ask hp to put the files up for download. compat_linux and compat_freebsd are certainly not useless. -- And that's why they have the ceremonies and why they need a mammalian form with the human harmonics in order to access higher levels of awareness.
Re: When will halt -p at AMD64 be supported..? ;)
On Sun, 5 Jun 2005 [EMAIL PROTECTED] wrote: Does somebody know if OpenBSD 3.8 will support halt -p on AMD-64? depends how many people help with acpi... Yes I could use OpenBSD i386 but why do we need a AMD64-Version if we use 64Bit just to support more then 4GB of RAM (even it's not possible with AMD64 now, but soon I hope). there are other advantages. -- And that's why he's going to win the nomination.
MTU Problem / OpenBSD Newbie
Hello, it's my first time OpenBSD problem: I setup a network configuration with IPsec and a GRE tunnel. There is an IPsec connection between a local loopback interface (lo1) and a remote loopback interface (dummy0 on a Linux box). The gre interface uses these loopbacks as tunnel src/dest. Following output shows OpenBSD config: [EMAIL PROTECTED]:~# ifconfig -A lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224 inet 127.0.0.1 netmask 0xff00 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 le1: flags=8863UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST mtu 1500 address: 00:60:b0:fb:a4:f8 inet6 fe80::260:b0ff:fefb:a4f8%le1 prefixlen 64 scopeid 0x1 inet 213.xx.xx.xx netmask 0xff80 broadcast 213.xx.xx.127 le2: flags=8863UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST mtu 1500 address: 00:60:b0:cd:3d:15 inet 193.xx.xx.xx netmask 0xff80 broadcast 193.xx.xx.127 inet6 fe80::260:b0ff:fecd:3d15%le2 prefixlen 64 scopeid 0x2 pflog0: flags=0 mtu 33224 pfsync0: flags=0 mtu 2020 enc0: flags=0 mtu 1536 lo1: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224 inet 192.168.254.7 netmask 0x gre0: flags=9011UP,POINTOPOINT,LINK0,MULTICAST mtu 1450 physical address inet 192.168.254.7 -- 192.168.254.1 inet 192.168.253.18 -- 192.168.253.17 netmask 0xfffc [EMAIL PROTECTED]:~# uname -a OpenBSD openbsd.my.domain 3.7 GENERIC#50 i386 My problem is to change MTU of gre tunnel. I tried several values, but everytimes the same result :-( The tunnel works until less then 1376 bytes have to be transferred. A MTU of 1376 works between a Cisco router an that Linux box, so I would think, 1376 bytes should also work for OpenBSD / Linux connection. [EMAIL PROTECTED]:~# ifconfig gre0 mtu 1376 ifconfig: SIOCSIFMTU: Invalid argument [EMAIL PROTECTED]:~# ifconfig gre0 mtu 1400 ifconfig: SIOCSIFMTU: Invalid argument [EMAIL PROTECTED]:~# ifconfig gre0 mtu 1450 ifconfig: SIOCSIFMTU: Invalid argument Any ideas ? Neither FAQ nor mailing list archives / Google showed a solution. best regards Christian Felsing - Powered by http://www.taunusstein.net