Re: Missing route for localhost
Hello here is the dmesg: OpenBSD 4.4 (GENERIC) #1021: Tue Aug 12 17:16:55 MDT 2008 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: VIA Esther processor 1000MHz (CentaurHauls 686-class) 1.01 GHz cpu0: FPU ,V86 ,DE ,PSE ,TSC ,MSR ,PAE ,MCE ,CX8 ,APIC ,SEP,MTRR,PGE,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,SSE3,EST,TM2 cpu0: RNG AES AES-CTR SHA1 SHA256 RSA real mem = 468152320 (446MB) avail mem = 444112896 (423MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 10/27/06, BIOS32 rev. 0 @ 0xf9ee0, SMBIOS rev. 2.3 @ 0xf0800 (33 entries) bios0: vendor Phoenix Technologies, LTD version 6.00 PG date 10/27/2006 apm0 at bios0: Power Management spec V1.2 (slowidle) apm0: AC on, battery charge unknown acpi at bios0 function 0x0 not configured pcibios0 at bios0: rev 2.1 @ 0xf/0xd964 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfd860/240 (13 entries) pcibios0: bad IRQ table checksum pcibios0: PCI BIOS has 14 Interrupt Routing table entries pcibios0: PCI Exclusive IRQs: 5 10 11 pcibios0: PCI Interrupt Router at 000:17:0 (VIA VT8237 ISA rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0xfe00 cpu0 at mainbus0 cpu0: unknown Enhanced SpeedStep CPU, msr 0x08100a1308000a13 cpu0: using only highest and lowest power states cpu0: Enhanced SpeedStep 1000 MHz (1004 mV): speeds: 1000, 800 MHz pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 VIA CN700 Host rev 0x00 pchb1 at pci0 dev 0 function 1 VIA CN700 Host rev 0x00 pchb2 at pci0 dev 0 function 2 VIA CN700 Host rev 0x00 pchb3 at pci0 dev 0 function 3 VIA PT890 Host rev 0x00 pchb4 at pci0 dev 0 function 4 VIA CN700 Host rev 0x00 pchb5 at pci0 dev 0 function 7 VIA CN700 Host rev 0x00 ppb0 at pci0 dev 1 function 0 VIA VT8377 AGP rev 0x00 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 VIA S3 Unichrome PRO IGP rev 0x01 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) agp0 at vga1: v3, aperture at 0xe800, size 0x1000 drm at vga1 unsupported rl0 at pci0 dev 5 function 0 Realtek 8139 rev 0x10: irq 5, address 00:30:18:49:ff:29 rlphy0 at rl0 phy 0: RTL internal PHY rl1 at pci0 dev 6 function 0 Realtek 8139 rev 0x10: irq 11, address 00:30:18:49:ff:28 rlphy1 at rl1 phy 0: RTL internal PHY rl2 at pci0 dev 7 function 0 Realtek 8139 rev 0x10: irq 10, address 00:30:18:49:ff:27 rlphy2 at rl2 phy 0: RTL internal PHY pciide0 at pci0 dev 15 function 0 VIA VT6420 SATA rev 0x80: DMA pciide0: using irq 11 for native-PCI interrupt pciide1 at pci0 dev 15 function 1 VIA VT82C571 IDE rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility pciide1: channel 0 disabled (no drives) wd0 at pciide1 channel 1 drive 0: SanDisk SDCFX3-1024 wd0: 4-sector PIO, LBA, 977MB, 2001888 sectors wd0(pciide1:1:0): using PIO mode 4, DMA mode 2 uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x81: irq 5 uhci1 at pci0 dev 16 function 1 VIA VT83C572 USB rev 0x81: irq 5 uhci2 at pci0 dev 16 function 2 VIA VT83C572 USB rev 0x81: irq 11 uhci3 at pci0 dev 16 function 3 VIA VT83C572 USB rev 0x81: irq 11 ehci0 at pci0 dev 16 function 4 VIA VT6202 USB rev 0x86: irq 10 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 VIA EHCI root hub rev 2.00/1.00 addr 1 viapm0 at pci0 dev 17 function 0 VIA VT8237 ISA rev 0x00 iic0 at viapm0 spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-5300CL5 auvia0 at pci0 dev 17 function 5 VIA VT8233 AC97 rev 0x60: irq 10 ac97: codec id 0x56494161 (VIA Technologies VT1612A) ac97: codec features headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D audio0 at auvia0 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 VIA UHCI root hub rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 VIA UHCI root hub rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 VIA UHCI root hub rev 1.00/1.00 addr 1 usb4 at uhci3: USB revision 1.0 uhub4 at usb4 VIA UHCI root hub rev 1.00/1.00 addr 1 isa0 at mainbus0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo 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 lpt0 at isa0 port 0x378/4 irq 7 viasio0 at isa0 port 0x2e/2: VT1211 rev 0x02, HM, WDG not activated npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 biomask ff65 netmask ff65 ttymask umass0 at uhub0 port 7 configuration 1 interface 0 Freecom Freecom Hard Drive rev 2.00/0.00 addr 2 umass0: using SCSI over Bulk-Only scsibus0 at umass0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: SAMSUNG, HD250HJ, SCSI2 0/direct fixed sd0: 238475MB, 30401 cyl, 255 head, 63 sec, 512 bytes/sec, 488397168 sec total softraid0 at root root on wd0a swap on wd0b dump on wd0b Cheers Michael Am 17.01.2009 um 22:57
Re: OpenLDAP w/o bdb okay?
* dan-openbsd-m...@ourbrains.org dan-openbsd-m...@ourbrains.org [2009-01-16 19:38]: Henning Brauer(lists-open...@bsws.de)@2009.01.06 14:42:09 +0100: I am not aware of any. Lack of options doesn't make openldap better. There is an option for people who have very basic LDAP needs - tinyldap from fefe.de. It's high quality but lacks many features at the time. fefe code is never an option. don't get me started on the quality argument... -- Henning Brauer, h...@bsws.de, henn...@openbsd.org BS Web Services, http://bsws.de Full-Service ISP - Secure Hosting, Mail and DNS Services Dedicated Servers, Rootservers, Application Hosting - Hamburg Amsterdam
Re: Port ZFS to OpenBSD
Jason Dixon wrote: As marco already stated, it could be a kernel module. But it won't. Why? Because nobody will write it. Who is nobody anyway? I see he has an account on quite a lot of computers, but I've never met the guy himself. He must be extremely lazy if you're already saying that it won't be done *because* nobody is writing it; this sounds like it should offend nobody very much, possibly to the degree that he will write ZFS support into OpenBSD simply to despite you. Where does nobody live? I'd love to buy him a beer!
Re: Port ZFS to OpenBSD
On Sun, Jan 18, 2009 at 04:29:37AM -0800, Mike Swanson wrote: As marco already stated, it could be a kernel module. But it won't. Why? Because nobody will write it. Who is nobody anyway? He's a french guy. I've seen him during p2k8 in Budapest ;-) (did anyone take a picture of him?) Ciao, Kili
Re: Port ZFS to OpenBSD
On Sun, Jan 18, 2009 at 02:28:16PM +0100, Matthias Kilian wrote: On Sun, Jan 18, 2009 at 04:29:37AM -0800, Mike Swanson wrote: As marco already stated, it could be a kernel module. But it won't. Why? Because nobody will write it. Who is nobody anyway? He's a french guy. I've seen him during p2k8 in Budapest ;-) (did anyone take a picture of him?) I doubt that nobody is french ;) -- Gilles Chehade http://www.poolp.org/~gilles/ Please, contribute to my happiness ;) http://www.openbsd.org/want.html
Re: Port ZFS to OpenBSD
Mike Swanson wrote: Jason Dixon wrote: As marco already stated, it could be a kernel module. But it won't. Why? Because nobody will write it. Who is nobody anyway? I see he has an account on quite a lot of [] Where does nobody live? I'd love to buy him a beer! I refer you to http://www.sing365.com/music/lyric.nsf/Nowhere-Man-lyrics-The-Beatles/A47D370E54FB65B348256BC200138D54 and http://uk.youtube.com/watch?v=dHLjYBsl2zA Anyway, we've already had a fairly conclusive ZFS answer. It can't be integrated into base OpenBSD because the license is incompatible. The license is unlikely to change. Implementing it from the specifications has licence issues, is hard and bug prone. A kernel module can use the code - all it needs is someone to volunteer (sorry, not me : not interested). There's then nothing stopping someone creating a minor OpenBSD fork with the integrated module ZFS support, if they need it from installation time that badly. PK
SSH and ProxyCommand (was Re: rdr and authpf)
Juan Miscaro wrote: 2009/1/17 Lars NoodC)n larsnoo...@openoffice.org: [snip] +--E | AB--+--C | +--D [snip] This is standard SSH duty. Configure A to pass through B to get to E, C, D. Research the 'ProxyCommand' setting. Thanks. There are not words for how tremendously OpenSSH rocks. I've been a casual user since autumn 99 or so, but lately finding that was just the tip of the iceberg. There's a wealth of tricks in ssh_config(5) Using ~/.ssh/config on the client to connect to .118.10 and then from there use netcat to connect to .124.25: Host sound Protocol 2 HostName 192.168.118.10 ProxyCommand ssh %h /usr/bin/nc 192.168.124.25 22 using -v (or -vv or -vvv) this is what happens: debug1: Executing proxy command: exec ssh 192.168.118.10 \ /usr/bin/nc 192.168.124.25 22 The obstacle I find now is that since the host keys for 192.168.118.10 and 192.168.124.25 are not the same, the illusion of two keys for a single host causes the client to choke on the connection to the second host. Is there a way to configure ssh_config to allow two host keys for the same host, or ignore the first host's key? Putting the same key on both doesn't seem quite right as I don't want the same groups that are working behind the gateway to be accessing gateway itself. Regards, -Lars
Hard drive load cycle count
Hi misc@ Inspired by http://it.slashdot.org/article.pl?sid=09/01/17/2127254 and https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 I've looked into the hard drive load cycle count on my 5-6 months old Asus Eee PC1000H laptop. The launchpad link recommends that a disk has no more than ~15 load cycles per hour, which indicates that my disk might be in danger: $ sudo smartctl -a /dev/wd0c | grep Load_Cycle_Count 193 Load_Cycle_Count0x0032 065 065 000Old_age Always - 71198 $ sudo smartctl -a /dev/wd0c | grep Power_On_Hours 9 Power_On_Hours 0x0032 100 100 000Old_age Always - 823 $ calc 71198/823 ~86.51032806804374240583 Does anyone have some suggestions for how to tune this? I've looked in the FAQ, smartctl(8) and atactl(8). The apmset option of atactl looks promising, but the power management levels are not explained in enough detail to be useful (IMHO). If somebody can argue why I shouldn't be concerned about the load cycle count, I'm also very interested :-) The controller and disk in my machine: pciide0 at pci0 dev 31 function 2 Intel 82801GBM SATA rev 0x02: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: ST980811AS wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 $ sudo smartctl -a /dev/wd0c | grep -A 11 INFO === START OF INFORMATION SECTION === Model Family: Seagate Momentus 5400.3 Device Model: ST980811AS Serial Number:5LYB0R9F Firmware Version: 3.ALC User Capacity:80,026,361,856 bytes Device is:In smartctl database [for details use: -P show] ATA Version is: 7 ATA Standard is: Exact ATA specification draft version not indicated Local Time is:Sun Jan 18 16:24:14 2009 CET SMART support is: Available - device has SMART capability. SMART support is: Enabled Martin
Re: SSH and ProxyCommand (was Re: rdr and authpf)
Lars NoodC)n wrote: +--E | AB--+--C | +--D Ok. To record my own answer one solution, it was to use HostKeyAlias, to specify which host key to record. Host sound Protocol 2 HostKeyAlias 192.168.124.25 HostName 192.168.118.10 ProxyCommand ssh %h /usr/bin/nc 192.168.124.25 22 I can see some drawbacks with that, but it works for now. -Lars
Re: Hard drive load cycle count
On Sun, Jan 18, 2009 at 10:25 AM, Martin Toft m...@martintoft.dk wrote: Inspired by http://it.slashdot.org/article.pl?sid=09/01/17/2127254 and https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 I've looked into the hard drive load cycle count on my 5-6 months old Asus Eee PC1000H laptop. The launchpad link recommends that a disk has no more than ~15 load cycles per hour, which indicates that my disk might be in danger: Does anyone have some suggestions for how to tune this? I've looked in the FAQ, smartctl(8) and atactl(8). The apmset option of atactl looks promising, but the power management levels are not explained in enough detail to be useful (IMHO). rodin:~ grep ata /etc/rc.local atactl sd0 apmdisable
Re: Hard drive load cycle count
On Sun, Jan 18, 2009 at 11:47:30AM -0500, Ted Unangst wrote: rodin:~ grep ata /etc/rc.local atactl sd0 apmdisable Thanks. Don't know why I didn't think of that.
Re: Port ZFS to OpenBSD
On Sun, 2009-01-18 at 14:28 +0100, Matthias Kilian wrote: On Sun, Jan 18, 2009 at 04:29:37AM -0800, Mike Swanson wrote: As marco already stated, it could be a kernel module. But it won't. Why? Because nobody will write it. Who is nobody anyway? He's a french guy. I've seen him during p2k8 in Budapest ;-) (did anyone take a picture of him?) *sigh* -- Antoine Jacoutot ajacou...@bsdfrog.org
unable to set up ad-hoc wifi network
hi folks, I'd like to set up adhoc wireless on my -current laptop to provide network access to my linux laptop. Using man pages and mailing list archives, I came up with this command : ifconfig iwi0 mediaopt ibss nwid home-bridge chan 10 192.168.11.1 up I must have been missing some clue because nothing shows up when I'm scanning from the linux laptop, and I can't ping the -current laptop either. Of course, both cards works perfectly fine with Managed networks, and nothing shows up in dmesg. Thanks for your suggestions. -- Vincent Gross So, the essence of XML is this: the problem it solves is not hard, and it does not solve the problem well. -- Jerome Simeon Phil Wadler
Re: Hard drive load cycle count
Related to the topic: Owners of Western Digital Green Power drives might find this forum thread interesting: http://www.silentpcreview.com/forums/viewtopic.php?t=51401 WARNING: WD Green Power drives may kill themselves Martin
hard disk issues + how to mount
hi my primary openBSD 4.4 (dell) machine stopped working... Some issue with mother board or power supply (don't know - don't care) .. however - I have another machine available 2 questions 1. can I replace my dell primary openBSD disk on a HP/IBM machines and expect everything to work fine ? I have basic install only... and added packages for http (php etc). Meaning swapping of the disks ? will that work ? I know I can try and see (and I will) but if you know - that will help. 1.1 - if that won't work - will it work if I do an upgrade and install the same version - to get the right drivers for nic cards, videos etc ? 2. If that won't work - cool. I will re-install OpenBSD on another machine and I have a kit to make the orig disks as a USB disk - now how do I mount that... and how can I read that.. I am a BSD fan - but pretty much non-UNIX person. So I would appriciate the command - to mount the disks on /mnt or /new_disk and how to read. I have data that I need to recover (websites content and configurations etc)_ tx Jon
Empty /usr/src, is the box broken in?
Hello to everyone, I noticed strange thing on one of my OpenBSD 4.4 box. The directory /usr/src is empty except two patches I downloaded today and a file called Oops.rje. The content of this file is at the end. I tried to apply security fix 007 and it ended with bFile to patch:b Then I noticed that the /usr/src is empty. Is it at all possible or someone broke in? I receive daily output and did not notice any unknown or strange changes. Thank you for your help, Ivo Oops.rej @@ -1486,7 +1486,7 @@ { ret=RSA_verify(NID_md5_sha1, buf,36, buf2, rsa_num, rsa_key[j]); - if (ret == 0) + if (ret = 0) { BIO_printf(bio_err, RSA verify failure\n); dmesg: /usr/src $ dmesg OpenBSD 4.4-stable (GENERIC) #9: Sun Nov 16 17:31:26 CET 2008 r...@i386.openbsd-stable.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Celeron(R) CPU 2.13GHz (GenuineIntel 686-class) 2.15 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,CNXT-ID,xTPR real mem = 1073246208 (1023MB) avail mem = 1029353472 (981MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 04/26/05, BIOS32 rev. 0 @ 0xfb260, SMBIOS rev. 2.3 @ 0xf0100 (42 entries) bios0: vendor Award Software International, Inc. version F3 date 04/26/2005 bios0: Gigabyte Technology Co., Ltd. 8IPE1000-G/L apm0 at bios0: Power Management spec V1.2 (slowidle) apm0: AC on, battery charge unknown acpi at bios0 function 0x0 not configured pcibios0 at bios0: rev 2.1 @ 0xf/0xdc04 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdb30/192 (10 entries) pcibios0: PCI Exclusive IRQs: 5 7 9 10 11 12 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371SB ISA rev 0x00) pcibios0: PCI bus #2 is the last bus bios0: ROM list: 0xc/0x9400 0xcc000/0x800 0xcd000/0x800 0xce000/0x800 0xcf000/0x800 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82865G Host rev 0x02 ppb0 at pci0 dev 1 function 0 Intel 82865G AGP rev 0x02 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 NVIDIA Vanta rev 0x15 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) agp0 at vga1: aperture at 0xe800, size 0x800 drm at vga1 unsupported ppb1 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xc2 pci2 at ppb1 bus 2 fxp0 at pci2 dev 1 function 0 Intel 8255x rev 0x05, i82558: irq 12, address 00:08:c7:da:8b:8d inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 0 fxp1 at pci2 dev 2 function 0 Intel 8255x rev 0x05, i82558: irq 10, address 00:50:8b:02:22:21 inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 0 fxp2 at pci2 dev 3 function 0 Intel 8255x rev 0x05, i82558: irq 11, address 00:08:c7:f3:f7:07 inphy2 at fxp2 phy 1: i82555 10/100 PHY, rev. 0 fxp3 at pci2 dev 4 function 0 Intel 8255x rev 0x05, i82558: irq 5, address 00:50:8b:0b:49:e2 inphy3 at fxp3 phy 1: i82555 10/100 PHY, rev. 0 ichpcib0 at pci0 dev 31 function 0 Intel 82801EB/ER LPC rev 0x02: 24-bit timer at 3579545Hz pciide0 at pci0 dev 31 function 1 Intel 82801EB/ER IDE rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: TRANSCEND wd0: 1-sector PIO, LBA, 3882MB, 7952112 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 pciide0: channel 1 disabled (no drives) ichiic0 at pci0 dev 31 function 3 Intel 82801EB/ER SMBus rev 0x02: irq 7 iic0 at ichiic0 admtm0 at iic0 addr 0x2d: 47m192 spdmem0 at iic0 addr 0x50: 1GB DDR SDRAM non-parity PC3200CL2.5 isa0 at ichpcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo 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 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 biomask e3c5 netmask ffe5 ttymask mtrr: Pentium Pro MTRR support softraid0 at root root on wd0a swap on wd0b dump on wd0b
Re: hard disk issues + how to mount
On Sun, Jan 18, 2009 at 7:08 PM, Jon hyperma...@gmail.com wrote: 1. can I replace my dell primary openBSD disk on a HP/IBM machines and expect everything to work fine ? I have basic install only... and added packages for http (php etc). Meaning swapping of the disks ? will that work ? I know I can try and see (and I will) but if you know - that will help. Hello, my previous experience has shown that swapping a HDD onto another machine is no sweat as long as the arch is similar. There will be some networking configuration involved to get the new NIC running (if different) but that's about it really. Steph
Re: Empty /usr/src, is the box broken in?
Hi Ivo, Ivo Chutkn wrote on Sun, Jan 18, 2009 at 09:43:06PM +0200: I noticed strange thing on one of my OpenBSD 4.4 box. The directory /usr/src is empty except two patches I downloaded today and a file called Oops.rje. This is very funny, thanks for the good laugh! In German, the phrase Herrje! means Oh my god!. When you try to pronounce rje, it sounds exactly like Herrje. Thus, Oops.rje is really nice. =:c) But, no more kidding, Oops.rej is a reject file written by patch(1) when it cannot find the file to patch. For more details, search the patch(1) manual page for the string .rej. The content of this file is at the end. I tried to apply security fix 007 and it ended with File to patch: Then I noticed that the /usr/src is empty. Well, patching source code you never installed will not work. You should first extract the source tarball into /usr/src before you start patching... Try to at least roughly understand the commands you are typing. Otherwise, you will never have have a secure and very rarely a working system... ;-( Is it at all possible or someone broke in? Nobody can exclude that the box was broken in. But the above does not contain any hint that there might have been a break-in, so _probably_, the box is not compromised. I receive daily output and did not notice any unknown or strange changes. Very probably, your attempt to patch non-existent source code broke nothing. Just remove the contents of /usr/src, install the sources from your CD set, and retry. Also, have a look at http://www.openbsd.org/faq/faq10.html#Patches Yours, Ingo
Re: Empty /usr/src, is the box broken in?
Hi Ingo, It was definitely bOh my god!b :) I was shocked because I usually extract the source code. Than, thanks to you I got my mind and realized that I did not extract the source code when I installed the box. It is one of my border routers, and I installed it during a bdisasterb period, the old one is just R.I.P. sob :) I have to be more careful when doing this. Thanks a lot, :) Best regards, Ivo Hi Ivo, Ivo Chutkn wrote on Sun, Jan 18, 2009 at 09:43:06PM +0200: I noticed strange thing on one of my OpenBSD 4.4 box. The directory /usr/src is empty except two patches I downloaded today and a file called Oops.rje. This is very funny, thanks for the good laugh! In German, the phrase Herrje! means Oh my god!. When you try to pronounce rje, it sounds exactly like Herrje. Thus, Oops.rje is really nice. =:c) But, no more kidding, Oops.rej is a reject file written by patch(1) when it cannot find the file to patch. For more details, search the patch(1) manual page for the string .rej. The content of this file is at the end. I tried to apply security fix 007 and it ended with File to patch: Then I noticed that the /usr/src is empty. Well, patching source code you never installed will not work. You should first extract the source tarball into /usr/src before you start patching... Try to at least roughly understand the commands you are typing. Otherwise, you will never have have a secure and very rarely a working system... ;-( Is it at all possible or someone broke in? Nobody can exclude that the box was broken in. But the above does not contain any hint that there might have been a break-in, so _probably_, the box is not compromised. I receive daily output and did not notice any unknown or strange changes. Very probably, your attempt to patch non-existent source code broke nothing. Just remove the contents of /usr/src, install the sources from your CD set, and retry. Also, have a look at http://www.openbsd.org/faq/faq10.html#Patches Yours, Ingo
Re: bsd.mp hangs with acpi enabled
hi so far i've upgraded the bios. it does not solve the problem but the system does not hang anymore but prompts for the root device. below there 2 dmesg versions with a current i386 mp kernel. one where acpi is disabled an another with acpi enabled. cheers dmesg: acpi enabled --- OpenBSD 4.4-current (GENERIC.MP) #38: Fri Jan 16 14:54:04 MST 2009 t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Core(TM)2 CPU 4400 @ 2.00GHz (GenuineIntel 686-class) 2 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR real mem = 2138599424 (2039MB) avail mem = 2059649024 (1964MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 05/28/07, BIOS32 rev. 0 @ 0xfa8f0, SMBIOS rev. 2.4 @ 0xf0100 (39 entries) bios0: vendor Award Software International, Inc. version F6 date 05/28/2007 bios0: Gigabyte Technology Co., Ltd. 945GM-S2 acpi0 at bios0: rev 0 acpi0: tables DSDT FACP HPET MCFG APIC SSDT SSDT acpi0: wakeup devices PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5) PEX5(S5) HUB0(S5) UAR1(S1) UAR2(S1) USB0(S1) USB1(S1) USB2(S1) USB3(S1) USBE(S1) AZAL(S5) PCI0(S5) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: counter not incrementing acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 199MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 CPU 4400 @ 2.00GHz (GenuineIntel 686-class) 2 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 2 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (PEX0) acpiprt2 at acpi0: bus 2 (PEX1) acpiprt3 at acpi0: bus -1 (PEX2) acpiprt4 at acpi0: bus -1 (PEX3) acpiprt5 at acpi0: bus -1 (PEX4) acpiprt6 at acpi0: bus -1 (PEX5) acpiprt7 at acpi0: bus 3 (HUB0) acpicpu0 at acpi0: FVS, 2000, 1600, 1200 MHz acpicpu1 at acpi0 acpibtn0 at acpi0: PWRB bios0: ROM list: 0xc/0xa800! pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82945G Host rev 0x02 vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0xd000, size 0x1000 inteldrm0 at vga1: apic 2 int 16 (irq 5) drm0 at inteldrm0 azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x01: apic 2 int 16 (irq 5) azalia0: codecs: Realtek ALC883 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: apic 2 int 16 (irq 5) pci1 at ppb0 bus 1 ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: apic 2 int 17 (irq 10) pci2 at ppb1 bus 2 re0 at pci2 dev 0 function 0 Realtek 8168 rev 0x01: RTL8168 2 (0x3800), apic 2 int 17 (irq 10), address 00:0f:ea:5f:c4:ca rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2 int 23 (irq 9) uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 2 int 19 (irq 11) uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: apic 2 int 18 (irq 11) uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x01: apic 2 int 16 (irq 5) ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x01: apic 2 int 23 (irq 9) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb2 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xe1 pci3 at ppb2 bus 3 ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM disabled pciide0 at pci0 dev 31 function 2 Intel 82801GB SATA rev 0x01: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI pciide0: using apic 2 int 19 (irq 0) for native-PCI interrupt pciide0: couldn't map channel 0 cmd regs pciide0: couldn't map channel 1 cmd regs ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01: apic 2 int 19 (irq 11) iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5 spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-5300CL5 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1 usb4 at uhci3: USB revision 1.0 uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0: console com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo 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 pms0 at
Re: bsd.mp hangs with acpi enabled
looks like acpi is unmapping the pciide controllers registers/ On 19/01/2009, at 7:28 AM, llx wrote: hi so far i've upgraded the bios. it does not solve the problem but the system does not hang anymore but prompts for the root device. below there 2 dmesg versions with a current i386 mp kernel. one where acpi is disabled an another with acpi enabled. cheers dmesg: acpi enabled --- OpenBSD 4.4-current (GENERIC.MP) #38: Fri Jan 16 14:54:04 MST 2009 t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Core(TM)2 CPU 4400 @ 2.00GHz (GenuineIntel 686- class) 2 GHz cpu0: FPU ,V86 ,DE ,PSE ,TSC ,MSR ,PAE ,MCE ,CX8 ,APIC ,SEP ,MTRR ,PGE ,MCA ,CMOV ,PAT ,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS- CPL,EST,TM2,CX16,xTPR real mem = 2138599424 (2039MB) avail mem = 2059649024 (1964MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 05/28/07, BIOS32 rev. 0 @ 0xfa8f0, SMBIOS rev. 2.4 @ 0xf0100 (39 entries) bios0: vendor Award Software International, Inc. version F6 date 05/28/2007 bios0: Gigabyte Technology Co., Ltd. 945GM-S2 acpi0 at bios0: rev 0 acpi0: tables DSDT FACP HPET MCFG APIC SSDT SSDT acpi0: wakeup devices PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5) PEX5(S5) HUB0(S5) UAR1(S1) UAR2(S1) USB0(S1) USB1(S1) USB2(S1) USB3(S1) USBE(S1) AZAL(S5) PCI0(S5) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: counter not incrementing acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 199MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 CPU 4400 @ 2.00GHz (GenuineIntel 686- class) 2 GHz cpu1: FPU ,V86 ,DE ,PSE ,TSC ,MSR ,PAE ,MCE ,CX8 ,APIC ,SEP ,MTRR ,PGE ,MCA ,CMOV ,PAT ,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS- CPL,EST,TM2,CX16,xTPR ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 2 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (PEX0) acpiprt2 at acpi0: bus 2 (PEX1) acpiprt3 at acpi0: bus -1 (PEX2) acpiprt4 at acpi0: bus -1 (PEX3) acpiprt5 at acpi0: bus -1 (PEX4) acpiprt6 at acpi0: bus -1 (PEX5) acpiprt7 at acpi0: bus 3 (HUB0) acpicpu0 at acpi0: FVS, 2000, 1600, 1200 MHz acpicpu1 at acpi0 acpibtn0 at acpi0: PWRB bios0: ROM list: 0xc/0xa800! pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82945G Host rev 0x02 vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0xd000, size 0x1000 inteldrm0 at vga1: apic 2 int 16 (irq 5) drm0 at inteldrm0 azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x01: apic 2 int 16 (irq 5) azalia0: codecs: Realtek ALC883 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: apic 2 int 16 (irq 5) pci1 at ppb0 bus 1 ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: apic 2 int 17 (irq 10) pci2 at ppb1 bus 2 re0 at pci2 dev 0 function 0 Realtek 8168 rev 0x01: RTL8168 2 (0x3800), apic 2 int 17 (irq 10), address 00:0f:ea:5f:c4:ca rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2 int 23 (irq 9) uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 2 int 19 (irq 11) uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: apic 2 int 18 (irq 11) uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x01: apic 2 int 16 (irq 5) ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x01: apic 2 int 23 (irq 9) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb2 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xe1 pci3 at ppb2 bus 3 ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM disabled pciide0 at pci0 dev 31 function 2 Intel 82801GB SATA rev 0x01: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI pciide0: using apic 2 int 19 (irq 0) for native-PCI interrupt pciide0: couldn't map channel 0 cmd regs pciide0: couldn't map channel 1 cmd regs ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01: apic 2 int 19 (irq 11) iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5 spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-5300CL5 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1 usb4 at uhci3: USB revision 1.0 uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0:
Re: Missing route for localhost
On Sun, Jan 18, 2009 at 2:05 AM, Michael Mdder m...@moik.org wrote: here is the dmesg: OpenBSD 4.4 (GENERIC) #1021: Tue Aug 12 17:16:55 MDT 2008 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC ... Okay, so you're using a stock 4.4 kernel. Good! But we still don't know: 1) what your route table looks like. What's the output of netstat -nr -finet ? 2) what the state of the loopback interface is. On a correctly operating system, bringing up lo0 with the 127.0.0.1 IP gives you the correct route. So what's the output of ifconfig lo0 ? For comparison, booting my laptop into single-user mode I see this: # fsck -p ... # mount /usr # ifconfig lo0 lo0: flags=8008LOOPBACK,MULTICAST mtu 33204 priority: 0 groups: lo # netstat -nrfinet Routing tables # ifconfig lo0 inet 127.0.0.1 # netstat -nrfinet Routing tables Internet: DestinationGatewayFlags Refs Use Mtu Prio Iface 127.0.0.1 127.0.0.1 UH 00 33204 4 lo0 # ifconfig lo0 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33204 priority: 0 groups: lo inet 127.0.0.1 netmask 0xff00 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 Note that the route added by bringing up lo0 is *NOT* the same as one generated by the 'route' command you mentioned: the flags are different. That suggests item #3 for you to try: 3) boot your box into single-user mode, do the same steps above and compare the output. If you see similar output when you boot single-user, but the route vanishes when you go multiuser, then you need to check your network config files and start scripts for a possible guilty 'route' invocation or anything else that could be dropping that route: /etc/hostname.*, /etc/bridgename.*, and /etc/rc*.local. You don't happen to run bgpd or ospfd or some other routing daemon, do you? Philip Guenther
Re: emul.linux not playing well with bsd.mp
On 17-Jan-2009 Predrag Punosevac wrote: kernel emulator for linux binaries is not playing well with bsd.mp kernel I've encountered precisely the same issue on Acer Aspire One netbook. Snapshot: OpenBSD 4.4-current (GENERIC.MP) #28: Sun Jan 4 13:22:13 MST 2009 Opera hangs silently, Skype is producing errors of the following type: linux_machdepioctl: invalid ioctl 80685600 linux_machdepioctl: invalid ioctl 803c7601 linux_machdepioctl: invalid ioctl 80685600 linux_machdepioctl: invalid ioctl 803c7601 [And so on, two per every run.] Opera hangs while trying to load a page (it loads about 2 out of 15 page elements before halting). P.S. I'm not subscribed to the list.
jackd clicks and pops
I've just discovered that JACK actually works reasonably on OpenBSD without very much effort, which surprised me to no end. Running straight `jackd` was very stuttery (because of xruns), but after some experimenting I have settled on: /usr/local/bin/jackd -R -d sun -r 44100 -p 4096 -n 4 (44100 because audacity and hydrogen use that as a default sample rate, 4096 because 2048 was still stuttery sometimes) Here is my audio card: azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x02: irq 7 azalia0: codec[s]: Realtek/0x0888 audio0 at azalia0 It works pretty well, but it's still not ideal, though. In playing a song with vlc+vlc-jack I noticed that it would click and pop sometimes. I looked at the song in Audacity and indeed it does get very near to +1.0 in the part where I hear the pops. However I killed jackd and ran vlc again on the same song and the pops were gone. So jackd must be overscaling, or perhaps BSD's oss underscales by default. I've been googling but no one seems to have this specific problem. Does anyone have any pointers? Another (more minor) problem is that I can't start jackd from. I can't run it from /etc/rc.local because it needs to be tied to a specific user (unless you use jackstart, appearently, but that didn't come in the package presumably because it's a linuxism). And anyway if I run jackd and the progams that use it in the wrong order or kill jackd and restart it underneath them or even sometimes (but not always). I've stuck it in a script for now, but does anyone have any clever ideas to make running jackd more convenient? Another problem is that switching windows sometimes makes the audio cut out for a moment. I was seeing this before I installed jackd too, but perhaps I can tweak jackd to avoid it? http://www.nabble.com/noise-during-playback-td9766320.html suggests you can either tweak your IRQs or run jackd with --realtime, but that you also need to increasing the mlock limit if you're not running jackd as root. I've found out how to increase the limit on Ubuntu but I can't figure it out for OpenBSD :(. -Nick p.s. By the way, what is libsndio? Is it an audio mixer in base, finally? I found a bunch of scattered posts about it and even the sio_open(3) man page in cvsweb but nothing that explains specifically what the goal is.
Re: jackd clicks and pops
On Sun, Jan 18, 2009 at 04:53:41PM -0500, Nick Guenther wrote: straight `jackd` was very stuttery (because of xruns), but after some experimenting I have settled on: /usr/local/bin/jackd -R -d sun -r 44100 -p 4096 -n 4 (44100 because audacity and hydrogen use that as a default sample rate, 4096 because 2048 was still stuttery sometimes) Here is my audio card: azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x02: irq 7 azalia0: codec[s]: Realtek/0x0888 audio0 at azalia0 -R is useless. OpenBSD doesn't have realtime support. upgrade to -current. lots of fixes in azalia. your stuttering problem is most likely because your device doesn't record properly at 44100 Hz. this has been fixed long ago in -current. alternatively, you can use -i 0 to disable recording if you you still want to use 44100 Hz. and when you upgrade to -current, you can use the sndio backend, which uses 44100 Hz by default because that's what libsndio uses by default. It works pretty well, but it's still not ideal, though. In playing a song with vlc+vlc-jack I noticed that it would click and pop sometimes. I looked at the song in Audacity and indeed it does get very near to +1.0 in the part where I hear the pops. However I killed jackd and ran vlc again on the same song and the pops were gone. So jackd must be overscaling, or perhaps BSD's oss underscales by default. I've been googling but no one seems to have this specific problem. Does anyone have any pointers? again, update to -current. this was a rounding problem in jack. (and jackd doesn't use OSS on OpenBSD) Another (more minor) problem is that I can't start jackd from. I can't run it from /etc/rc.local because it needs to be tied to a specific user (unless you use jackstart, appearently, but that didn't come in the package presumably because it's a linuxism). And anyway if I run jackd and the progams that use it in the wrong order or kill jackd and restart it underneath them or even sometimes (but not always). I've stuck it in a script for now, but does anyone have any clever ideas to make running jackd more convenient? you are supposed to run jackd as the user who will be using it. it's not really intended as a general purpose sound server, but as you noticed, if you jack up the latency, it actually works fairly well for that purpose. anyway, aucat is a much better sound server. again, you'll have to update to -current to get that. Another problem is that switching windows sometimes makes the audio cut out for a moment. I was seeing this before I installed jackd too, but perhaps I can tweak jackd to avoid it? probably not easily, but you can jack up the latency more and see what happens. http://www.nabble.com/noise-during-playback-td9766320.html suggests you can either tweak your IRQs or run jackd with --realtime, but that you also need to increasing the mlock limit if you're not running jackd as root. I've found out how to increase the limit on Ubuntu but I can't figure it out for OpenBSD :(. -R/--realtime is useless on OpenBSD. -Nick p.s. By the way, what is libsndio? Is it an audio mixer in base, finally? I found a bunch of scattered posts about it and even the sio_open(3) man page in cvsweb but nothing that explains specifically what the goal is. libsndio is a new audio API. among it's benefits is the ability to use different backends transparently, currently either audio(4) or aucat(1) in server mode. aucat can be used as a sound server in -current. unfortunately the manuals on the web don't get updated all to often, but you can snag a -current version of the manual from cvs or whatever. in my experience, it works much better than any other sound server for both general purpose and more advanced usages. the one feature of other sound servers that I miss is far out weighed by aucat's impeccable reliability compared to those other servers, which is ultimately the most important criteria for me. -- jake...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org
cwm maximized mode
What do you think about cwm(1) maximized mode? I find it rather useful on small screens. A patch is attached. -- Alexander Polakov | http://rootshell.be/~polachok/ diff -ur cwm/calmwm.h cwm.max/calmwm.h --- cwm/calmwm.hMon Jan 19 00:52:40 2009 +++ cwm.max/calmwm.hMon Jan 19 00:48:44 2009 @@ -249,6 +249,7 @@ struct mousebinding_qmousebindingq; #defineCONF_STICKY_GROUPS 0x0001 +#defineCONF_MAX_ALL 0x0010 int flags; char termpath[MAXPATHLEN]; diff -ur cwm/client.c cwm.max/client.c --- cwm/client.cMon Jan 19 00:52:40 2009 +++ cwm.max/client.cMon Jan 19 00:49:31 2009 @@ -137,9 +137,11 @@ client_gethints(cc); client_update(cc); - if (mapped) + if (mapped) { group_autogroup(cc); - + if ((Conf.flags CONF_MAX_ALL) state != IconicState) +client_maximize(cc); + } return (cc); } diff -ur cwm/cwmrc.5 cwm.max/cwmrc.5 --- cwm/cwmrc.5 Mon Jan 19 00:52:40 2009 +++ cwm.max/cwmrc.5 Mon Jan 19 00:50:08 2009 @@ -172,6 +172,13 @@ By enabling sticky group mode, .Xr cwm 1 will assign new windows to the currently selected group. +.Pp +.It Ic maximizeall Ic yes Ns \| Ns Ic no +Toggle maximize mode. +The default behavior for new windows is to not maximize them. +By enabling maximize mode, +.Xr cwm 1 +will make all new windows appear fullscreen. .El .Sh EXAMPLE CONFIGURATION .Bd -literal diff -ur cwm/parse.y cwm.max/parse.y --- cwm/parse.y Mon Jan 19 00:52:40 2009 +++ cwm.max/parse.y Mon Jan 19 00:51:25 2009 @@ -64,7 +64,7 @@ %} -%token FONTNAME STICKY GAP MOUSEBIND +%token FONTNAME STICKY GAP MOUSEBIND MAXIMIZEALL %token AUTOGROUP BIND COMMAND IGNORE %token YES NO %token ERROR @@ -107,6 +107,12 @@ else conf-flags |= CONF_STICKY_GROUPS; } + | MAXIMIZEALL yesno { + if ($2 == 0) + conf-flags = ~CONF_MAX_ALL; + else + conf-flags |= CONF_MAX_ALL; + } | COMMAND STRING string { conf_cmd_add(conf, $3, $2, 0); free($2); @@ -202,6 +208,7 @@ { fontname, FONTNAME}, { gap,GAP}, { ignore, IGNORE}, + { maximizeall,MAXIMIZEALL}, { mousebind, MOUSEBIND}, { no, NO}, { sticky, STICKY},
Re: jackd clicks and pops
On Sun, Jan 18, 2009 at 7:20 PM, Jacob Meuser jake...@sdf.lonestar.org wrote: On Sun, Jan 18, 2009 at 04:53:41PM -0500, Nick Guenther wrote: straight `jackd` was very stuttery (because of xruns), but after some experimenting I have settled on: /usr/local/bin/jackd -R -d sun -r 44100 -p 4096 -n 4 (44100 because audacity and hydrogen use that as a default sample rate, 4096 because 2048 was still stuttery sometimes) Here is my audio card: azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x02: irq 7 azalia0: codec[s]: Realtek/0x0888 audio0 at azalia0 -R is useless. OpenBSD doesn't have realtime support. I was worried about that. It works pretty well, but it's still not ideal, though. In playing a song with vlc+vlc-jack I noticed that it would click and pop sometimes. I looked at the song in Audacity and indeed it does get very near to +1.0 in the part where I hear the pops. However I killed jackd and ran vlc again on the same song and the pops were gone. So jackd must be overscaling, or perhaps BSD's oss underscales by default. I've been googling but no one seems to have this specific problem. Does anyone have any pointers? again, update to -current. this was a rounding problem in jack. Hah! (and jackd doesn't use OSS on OpenBSD) Right, it's 'sun'. I get confused because they both work by reading and writing to a device file. -Nick p.s. By the way, what is libsndio? Is it an audio mixer in base, finally? I found a bunch of scattered posts about it and even the sio_open(3) man page in cvsweb but nothing that explains specifically what the goal is. libsndio is a new audio API. among it's benefits is the ability to use different backends transparently, currently either audio(4) or aucat(1) in server mode. So it's like PortAudio? Out of curiousity, why not just write an aucat backend for portaudio? aucat can be used as a sound server in -current. unfortunately the manuals on the web don't get updated all to often, but you can snag a -current version of the manual from cvs or whatever. in my experience, it works much better than any other sound server for both general purpose and more advanced usages. the one feature of other sound servers that I miss is far out weighed by aucat's impeccable reliability compared to those other servers, which is ultimately the most important criteria for me. Yes, well that's why we're all here aren't we? Pulse and Esound are so so so flakey, and jack is not general purpose, and ALSA creates 10 devices for one sound card. Even though BSD doesn't have as many features you can point to as linux, when it actually does go and implement something it's done *so well*. Well thanks a lot for being so informative. I really appreciate it. I won't keep myself up tonight wondering about all the possible corner options I might have missed. -Nick
Re: hard disk issues + how to mount
On Sun, Jan 18, 2009 at 2:08 PM, Jon hyperma...@gmail.com wrote: hi my primary openBSD 4.4 (dell) machine stopped working... Some issue with mother board or power supply (don't know - don't care) .. however - I have another machine available 2 questions 1. can I replace my dell primary openBSD disk on a HP/IBM machines and expect everything to work fine ? I have basic install only... and added packages for http (php etc). Meaning swapping of the disks ? will that work ? I know I can try and see (and I will) but if you know - that will help. Yes. Just boot off it and go. Make sure you have a monitor and keyboard handy because, as already mentioned, if you have different NICs you will need to rename your hostname.if files. 1.1 - if that won't work - will it work if I do an upgrade and install the same version - to get the right drivers for nic cards, videos etc ? OpenBSD doesn't really have drivers that you can upgrade into. If a driver exists for your hardware it will already be there, if it doesn't exist there's nothing you can do (except for writing the driver yourself and submitting the patches, but I don't think you'd be interested in that). 2. If that won't work - cool. I will re-install OpenBSD on another machine and I have a kit to make the orig disks as a USB disk - now how do I mount that... and how can I read that.. I am a BSD fan - but pretty much non-UNIX person. So I would appriciate the command - to mount the disks on /mnt or /new_disk and how to read. I have data that I need to recover (websites content and configurations etc)_ ...? How did you get OpenBSD installed without reading the FAQ and understanding about MBR/fdisk and disklabel? The command is not difficult to figure out, it should just take your plugging of the disk in and a reading of the mount(1) manpage. -Nick
Re: jackd clicks and pops
On Sun, Jan 18, 2009 at 07:43:49PM -0500, Nick Guenther wrote: On Sun, Jan 18, 2009 at 7:20 PM, Jacob Meuser jake...@sdf.lonestar.org wrote: On Sun, Jan 18, 2009 at 04:53:41PM -0500, Nick Guenther wrote: straight `jackd` was very stuttery (because of xruns), but after some experimenting I have settled on: /usr/local/bin/jackd -R -d sun -r 44100 -p 4096 -n 4 (44100 because audacity and hydrogen use that as a default sample rate, 4096 because 2048 was still stuttery sometimes) Here is my audio card: azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x02: irq 7 azalia0: codec[s]: Realtek/0x0888 audio0 at azalia0 -R is useless. OpenBSD doesn't have realtime support. I was worried about that. bah. just use a higher latency for general purpose usage or if you want low latency use less resource hungry apps. It works pretty well, but it's still not ideal, though. In playing a song with vlc+vlc-jack I noticed that it would click and pop sometimes. I looked at the song in Audacity and indeed it does get very near to +1.0 in the part where I hear the pops. However I killed jackd and ran vlc again on the same song and the pops were gone. So jackd must be overscaling, or perhaps BSD's oss underscales by default. I've been googling but no one seems to have this specific problem. Does anyone have any pointers? again, update to -current. this was a rounding problem in jack. Hah! well, there certainly were a lot of fixes for azalia that would benefit you. (and jackd doesn't use OSS on OpenBSD) Right, it's 'sun'. I get confused because they both work by reading and writing to a device file. hehe. sndio will be the only sensible API ... eventualy. -Nick p.s. By the way, what is libsndio? Is it an audio mixer in base, finally? I found a bunch of scattered posts about it and even the sio_open(3) man page in cvsweb but nothing that explains specifically what the goal is. libsndio is a new audio API. among it's benefits is the ability to use different backends transparently, currently either audio(4) or aucat(1) in server mode. So it's like PortAudio? Out of curiousity, why not just write an aucat backend for portaudio? because PA probably isn't coming to OpenBSD base any time soon. and, possibly, in the long term, sio_open(3) will become sio_open(4). a sndio backend for PA would be nice. but it's a complex API, and actually not many ports even *can* use PAv19. -- jake...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org
Re: SSH and ProxyCommand (was Re: rdr and authpf)
2009/1/18 Lars NoodC)n larsnoo...@openoffice.org: Lars NoodC)n wrote: +--E | AB--+--C | +--D Ok. To record my own answer one solution, it was to use HostKeyAlias, to specify which host key to record. Host sound Protocol 2 HostKeyAlias 192.168.124.25 HostName 192.168.118.10 ProxyCommand ssh %h /usr/bin/nc 192.168.124.25 22 I can see some drawbacks with that, but it works for now. -Lars Host B HostName host-B User user-B IdentityFile key-B Host C HostName host-C User user-C IdentityFile key-C ProxyCommand ssh B nc %h %p Note: Investigate ssh-agent if you do not already use it. -- jm
DCBSDCon 2009 - Two weeks to register
We're got less than three weeks to DCBSDCon 2009. The entire lineup has been released and today we announced the Frack Room, a space dedicated to casual BSD gaming and hacking sessions. Attendees will be able to plug in their laptops and play from their choice of networked games on our LAN server or hang out and collaborate with other BSD hackers. http://blog.dcbsdcon.org/2009/01/introducing-the-frack-room/ Open registration is available through January 31. Onsite registration will be available the morning of February 5 at the slacker rate. http://www.dcbsdcon.org/register.html Hope to see you there! -- Jason Dixon DixonGroup Consulting http://www.dixongroup.net/
Re: DCBSDCon 2009 - Two weeks to register
Jason Dixon wrote: We're got less than three weeks to DCBSDCon 2009. The entire lineup has been released and today we announced the Frack Room, a space dedicated to casual BSD gaming and hacking sessions. Attendees will be able to plug in their laptops and play from their choice of networked games on our LAN server or hang out and collaborate with other BSD hackers. http://blog.dcbsdcon.org/2009/01/introducing-the-frack-room/ Open registration is available through January 31. Onsite registration will be available the morning of February 5 at the slacker rate. http://www.dcbsdcon.org/register.html Hope to see you there! jason, i will be attending with a business associate of mine but not as part of the dev contingency. is there anything i need to know before coming? i'll be booking accommodations only a week in advance for various reasons. cheers, jake
Re: DCBSDCon 2009 - Two weeks to register
On Sun, Jan 18, 2009 at 08:13:59PM -0600, Jacob Yocom-Piatt wrote: Jason Dixon wrote: We're got less than three weeks to DCBSDCon 2009. The entire lineup has been released and today we announced the Frack Room, a space dedicated to casual BSD gaming and hacking sessions. Attendees will be able to plug in their laptops and play from their choice of networked games on our LAN server or hang out and collaborate with other BSD hackers. http://blog.dcbsdcon.org/2009/01/introducing-the-frack-room/ Open registration is available through January 31. Onsite registration will be available the morning of February 5 at the slacker rate. http://www.dcbsdcon.org/register.html Hope to see you there! jason, i will be attending with a business associate of mine but not as part of the dev contingency. is there anything i need to know before coming? i'll be booking accommodations only a week in advance for various reasons. Not really. We've been covering everything on the blog, so you might check the archives to see if there's anything that would affect your visit. Bring your laptop (and a spare ethernet cable) if you want to join in the frack activities. :) -- Jason Dixon DixonGroup Consulting http://www.dixongroup.net/
re(4) panic on 13 Jan 2009 snap
Greetings, I am still having issues with the re(4) interface on my server. I mentioned this on the list, and was told that the re(4) fix was in. I am running the 13 Jan 2009 snapshot, and I can still reproduce the error on a regular basis. It goes like this... 1. push the power button 2. boot openbsd 3. panic panic: config_detach: forced detach of re0 failed (45) Stopped atDebugger+0x4: leave 4. issue boot sync 5. system restarts 6. re(4) starts with no issues if I shutdown, or do a warm reboot, I have to do step 4 and restart the system. I do have a picture of the error I receive when the system is going to panic. As I have no console, and puc(4) is useless for console use, the picture can be found here: http://picasaweb.google.com/lh/photo/Das3TsaFIvV1I-zKTHvaog?feat=directlink I also did a ps, and trace of the system. here is the photo of that. http://picasaweb.google.com/lh/photo/l7IN31cOVXa1y8yn74aA8w?feat=directlink If someone has any other ideas, please let me know. The dmesg below is when the server will come up after a boot sync and a warm restart. I do intend on updating to the latest snapshot (jan 18th) in the next few minutes. Regards, Bryan Brake OpenBSD 4.4-current (GENERIC.MP) #35: Tue Jan 13 10:19:47 MST 2009 t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (GenuineIntel 686-class) 2.4 1 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16, xTPR real mem = 3488833536 (3327MB) avail mem = 3384754176 (3227MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 10/23/08, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.5 @ 0xf06e0 (54 entries) bios0: vendor American Megatrends Inc. version 5.32 date 10/23/2008 bios0: HP-Pavilion FK484AV-ABA m9400t acpi0 at bios0: rev 0 acpi0: tables DSDT FACP APIC MCFG OEMB HPET GSCI SLIC SSDT acpi0: wakeup devices P0P2(S4) P0P1(S4) PS2K(S3) PS2M(S3) USB0(S3) USB1(S3) USB2 (S3) USB5(S3) EUSB(S3) USB3(S3) USB4(S3) USBE(S3) GBE_(S4) P0P4(S4) P0P5(S4) P0P 6(S4) P0P7(S4) P0P8(S4) P0P9(S4) SLPB(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 266MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (GenuineIntel 686-class) 2.4 0 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16, xTPR cpu2 at mainbus0: apid 2 (application processor) cpu2: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (GenuineIntel 686-class) 2.4 0 GHz cpu2: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16, xTPR cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (GenuineIntel 686-class) 2.4 0 GHz cpu3: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16, xTPR ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (P0P1) acpiprt2 at acpi0: bus 3 (P0P4) acpiprt3 at acpi0: bus -1 (P0P5) acpiprt4 at acpi0: bus 2 (P0P6) acpiprt5 at acpi0: bus -1 (P0P7) acpiprt6 at acpi0: bus -1 (P0P8) acpiprt7 at acpi0: bus -1 (P0P9) acpicpu0 at acpi0 acpicpu1 at acpi0 acpicpu2 at acpi0 acpicpu3 at acpi0 acpibtn0 at acpi0: SLPB acpibtn1 at acpi0: PWRB bios0: ROM list: 0xc/0xe200 0xce800/0x1000 pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 Intel 82G33 Host rev 0x02 ppb0 at pci0 dev 1 function 0 Intel 82G33 PCIE rev 0x02: apic 4 int 16 (irq 5) pci1 at ppb0 bus 5 vga1 at pci1 dev 0 function 0 NVIDIA GeForce 9300 GE rev 0xa1 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x02: apic 4 int 16 (irq 5) uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x02: apic 4 int 21 (irq 3) ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x02: apic 4 int 18 (irq 10) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb1 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x02: apic 4 int 17 (irq 11) pci2 at ppb1 bus 3 ppb2 at pci2 dev 0 function 0 vendor Creative Labs, unknown product 0x7006 rev 0x00 pci3 at ppb2 bus 4 azalia0 at pci3 dev 0 function 0 vendor Creative Labs, unknown product 0x0009 rev 0x00: apic 4 int 16 (irq 5) azalia0: codecs: Creative Labs/0x000a audio0 at azalia0 ppb3 at pci0 dev 28 function 2 Intel 82801I PCIE rev 0x02: apic 4 int 18 (irq 10) pci4 at ppb3 bus 2 re0 at pci4 dev 0 function 0 Realtek
Re: jackd clicks and pops
On Mon, Jan 19, 2009 at 01:06:38AM +, Jacob Meuser wrote: because PA probably isn't coming to OpenBSD base any time soon. and, possibly, in the long term, sio_open(3) will become sio_open(4). a sndio backend for PA would be nice. but it's a complex API, and actually not many ports even *can* use PAv19. PA is doomed; it's the second time i loose my PA port, this time a hard disk died; the last time it was a ``make clean'' that blowed it. i'll buy new disks today, i hope i'll be able to recover the PA bits once the machine boots again. -- Alexandre
Re: jackd clicks and pops
On Sun, Jan 18, 2009 at 07:43:49PM -0500, Nick Guenther wrote: libsndio is a new audio API. among it's benefits is the ability to use different backends transparently, currently either audio(4) or aucat(1) in server mode. So it's like PortAudio? Out of curiousity, why not just write an aucat backend for portaudio? portaudio is nice, but it's more a framework for audio developping and not just a hardware access API. Also because of the constraint of being portable, it uses semantics that are not the most suitable for a hardware access API for openbsd (eg. it doesn't support easilly poll(2)) the libsndio API very simple and looks like a ``hardware access API'', so in the long term we can make kernel bits converge to libsndio. -- Alexandre