Bluetooth keyboard on -current
Hi misc@, An Apple wireless keyboard has come into my possession, and i'm trying to get it working on -current. I rebuilt the kernel/userland based on cvs update on Friday with all the bluetooth devices enabled. I also installed bluetooth-tools and bluetooth-libs ports. Initially my bt dongle was claimed by aue*, so i disabled this using config -e and rebooted; it is correctly claimed by ubt*. Below are the steps i've taken to configure the keyboard, followed by a dmesg. I am able to query ubt0 and get the address of the keyboard, generate the pin to pair with it, and send sdp messages. However I'm never prompted to enter the pin on the keyboard, i.e. when i btdevctl it, which i understood was necessary, and when i issue the final command to attach, the btkbd is attached to bthidev0 and ubt0, then to wskbd, but ultimately bthidev0 is disconnecting, and the keyboard doesn't work... I've tried google, archives, and perusing the source of all the bt drivers but can't figure out why it's disconnecting, any ideas/advice/solutions would be appreciated. Cheers, John Shirley. #sdpd #pgrep sdpd = 17600 #bthcid #pgrep bthcid =15662 #btconfig ubt0 up pscan switch class 0x02010c #btconfig -vvv =ubt0: bdaddr 00:0a:3a:7c:9f:86 flags=3UP,RUNNING num_cmd = 1 num_acl = 5, acl_mtu = 1017 num_sco = 0, sco_mtu = 64 HCI version: 2.0 class: [0x00] name: BCM2045B3 Initialization Configuration Record File w/o UHE voice: [0x0060] Input Coding: Linear PCM [16-bit, pos 0], 2's complement Air Coding: CVSD pin: variable options: -iscan -pscan -auth -encrypt -switch -hold -sniff -park -rssi ptype: [0xcc18] DM1 DH1 DM3 DH3 DM5 DH5 2-DH1 3-DH1 2-DH3 3-DH3 2-DH5 3-DH5 page timeout: 20 ms #btconfig ubt0 inquiry =Device Discovery from device: ubt0 1 response 1: bdaddr 00:1e:52:6e:12:15 : name Apple Wireless Keyboard : class: [0x002540] Peripheral Keyboard Limited Discoverable : page scan rep mode 0x01 : clock offset 32614 #btpin -d ubt0 -a 00:1e:52:6e:12:15 -r =PIN: 2339 #btdevctl -a 00:1e:52:6e:12:15 -d ubt0 -s hid -qv =Performing SDP query for service 'HID'.. local bdaddr: 00:0a:3a:7c:9f:86 remote bdaddr: 00:1e:52:6e:12:15 link mode: encrypt device type: HID control psm: 0x0011 interrupt psm: 0x0013 Collection page=Generic_Desktop usage=Keyboard Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftControl Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftShift Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftAlt Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_Left_GUI Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightControl Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightShift Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightAlt Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_Right_GUI Variable, logical range 0..1 Input id=1 size=8 count=1 page=0x usage=0x Const, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Num_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Caps_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Scroll_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Compose Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Kana Variable, logical range 0..1 Output id=1 size=3 count=1 page=0x usage=0x Const, logical range 0..1 Input id=1 size=8 count=6 page=Keyboard usage=No_Event, logical range 0..255 End collection Collection page=Consumer usage=Consumer_Control Collection page=Generic_Desktop usage=Keyboard Input id=71 size=8 count=1 page=0x0006 usage=0x0020 Variable, logical range 0..255 End collection End collection Input id=17 size=1 count=3 page=0x usage=0x Const, logical range 0..1 Collection page=Consumer usage=Consumer_Control Input id=17 size=1 count=1 page=Consumer usage=Eject Variable, logical range 0..1 Input id=17 size=0 count=1 page=0x00ff usage=0x0003 Variable, logical range 0..1 Input id=17 size=1 count=3 page=0x usage=0x Const, logical range 0..1 Input id=18 size=1 count=1 page=Consumer usage=Pause/Play Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Fast_Forward Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Rewind Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Scan_Next_Track Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Scan_Previous_Track Variable, logical range 0..1
OpenNTPD configuration?
I'm a bit confused by what I am seeing in the logfiles when compared to the information found in the manpages and FAQ. I would appreciate if someone could provide some perspective. I've set up OpenNTPD on a 4.3-current server (192.168.0.4), and the time has finally reached synchronization as best I can tell: server $ sudo tail /var/log/daemon May 24 17:38:17 server ntpd[32321]: adjusting clock frequency by 12.518122 to 37.282963ppm May 24 18:06:18 server ntpd[32321]: adjusting clock frequency by -3.055956 to 34.227007ppm May 24 18:34:19 server ntpd[32321]: adjusting clock frequency by 1.532853 to 35.759861ppm May 24 19:02:20 server ntpd[32321]: adjusting clock frequency by -1.548559 to 34.211301ppm May 24 19:30:21 server ntpd[32321]: adjusting clock frequency by 27.436873 to 61.648175ppm May 24 19:58:22 server ntpd[32321]: adjusting clock frequency by -16.620842 to 45.027332ppm May 24 20:26:24 server ntpd[32321]: adjusting clock frequency by -21.159011 to 23.868321ppm May 24 20:54:25 server ntpd[32321]: adjusting clock frequency by -8.922065 to 14.946257ppm May 24 21:22:26 server ntpd[32321]: adjusting clock frequency by 19.461742 to 34.407999ppm May 24 21:50:27 server ntpd[32321]: adjusting clock frequency by -14.422098 to 19.985901ppm server $ I also have a 4.3-current client on the same subnet (192.168.0.6) switch (no firewalls involved), and see Connection refused in /var/log/daemon on the client's side: client $ sudo tail /var/log/daemon May 24 17:12:11 client dhclient[273]: DHCPACK from 192.168.0.1 May 24 17:12:11 client dhclient[273]: bound to 192.168.0.6 -- renewal in 43200 seconds. May 24 21:11:00 client ntpd[16786]: ntp engine ready May 24 21:11:00 client ntpd[16786]: recvfrom 192.168.0.4: Connection refused May 24 21:11:01 client savecore: no core dump May 24 21:29:45 client ntpd[8992]: ntp engine ready May 24 21:29:45 client ntpd[8992]: recvfrom 192.168.0.4: Connection refused May 24 21:29:46 client savecore: no core dump May 24 22:24:27 client ntpd[8992]: 0 out of 1 peers valid May 24 22:24:27 client ntpd[8992]: bad peer 192.168.0.4 (192.168.0.4) client $ The client has the following contents for its configuration files: client $ cat /etc/rc.conf.local ntpd_flags=-v client $ cat /etc/ntpd.conf # $OpenBSD: ntpd.conf,v 1.8 2007/07/13 09:05:52 henning Exp $ # sample ntpd configuration file, see ntpd.conf(5) # Addresses to listen on (ntpd does not listen by default) #listen on * # sync to a single server #server ntp.example.org server 192.168.0.4 # use a random selection of 8 public stratum 2 servers # see http://support.ntp.org/bin/view/Servers/NTPPoolServers #servers pool.ntp.org client $ I saw in the archives someone else having a similar error, but no definitive reply. It appears that the server is sending out traffic correctly on port 123: server $ netstat -f inet -na Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address(state) ip 0 0 *.**.*17 Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address(state) tcp0224 192.168.0.6.22 192.168.0.125.43307ESTABLISHED tcp0 0 192.168.0.6.48455 192.168.0.4.22 ESTABLISHED tcp0 0 192.168.0.6.22 192.168.0.125.44198ESTABLISHED tcp0 0 127.0.0.1.587 *.*LISTEN tcp0 0 127.0.0.1.25 *.*LISTEN tcp0 0 *.22 *.*LISTEN tcp0 0 *.37 *.*LISTEN tcp0 0 *.13 *.*LISTEN tcp0 0 *.113 *.*LISTEN Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address(state) udp0 0 127.0.0.1.512 *.* udp0 0 192.168.0.6.32093 192.168.0.4.123 udp0 0 *.514 *.* server $ I know that it can take some time for the client to synchronize with an NTP server, but the Connection refused message has me wondering if I have missed something else in the configuration. Any help would be appreciated. Thanks!
bluetooth keyboard on -current
Hi misc@, An Apple wireless keyboard has come into my possession, and i'm trying to get it working on -current. I rebuilt the kernel/userland based on cvs update on Friday with all the bluetooth devices enabled. I also installed bluetooth-tools and bluetooth-libs ports. Initially my bt dongle was claimed by aue*, so i disabled this using config -e and rebooted; it is correctly claimed by ubt*. Below are the steps i've taken to configure the keyboard, followed by a dmesg. I am able to query ubt0 and get the address of the keyboard, generate the pin to pair with it, and send sdp messages. However I'm never prompted to enter the pin on the keyboard, i.e. when i btdevctl it, which i understood was necessary, and when i issue the final command to attach, the btkbd is attached to bthidev0 and ubt0, then to wskbd, but ultimately bthidev0 is disconnecting, and the keyboard doesn't work... I've tried google, archives, and perusing the source of all the bt drivers but can't figure out why it's disconnecting, any ideas/advice/solutions would be appreciated. Cheers, John Shirley. #sdpd #pgrep sdpd = 17600 #bthcid #pgrep bthcid =15662 #btconfig ubt0 up pscan switch class 0x02010c #btconfig -vvv =ubt0: bdaddr 00:0a:3a:7c:9f:86 flags=3UP,RUNNING num_cmd = 1 num_acl = 5, acl_mtu = 1017 num_sco = 0, sco_mtu = 64 HCI version: 2.0 class: [0x00] name: BCM2045B3 Initialization Configuration Record File w/o UHE voice: [0x0060] Input Coding: Linear PCM [16-bit, pos 0], 2's complement Air Coding: CVSD pin: variable options: -iscan -pscan -auth -encrypt -switch -hold -sniff -park -rssi ptype: [0xcc18] DM1 DH1 DM3 DH3 DM5 DH5 2-DH1 3-DH1 2-DH3 3-DH3 2-DH5 3-DH5 page timeout: 20 ms #btconfig ubt0 inquiry =Device Discovery from device: ubt0 1 response 1: bdaddr 00:1e:52:6e:12:15 : name Apple Wireless Keyboard : class: [0x002540] Peripheral Keyboard Limited Discoverable : page scan rep mode 0x01 : clock offset 32614 #btpin -d ubt0 -a 00:1e:52:6e:12:15 -r =PIN: 2339 #btdevctl -a 00:1e:52:6e:12:15 -d ubt0 -s hid -qv =Performing SDP query for service 'HID'.. local bdaddr: 00:0a:3a:7c:9f:86 remote bdaddr: 00:1e:52:6e:12:15 link mode: encrypt device type: HID control psm: 0x0011 interrupt psm: 0x0013 Collection page=Generic_Desktop usage=Keyboard Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftControl Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftShift Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftAlt Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_Left_GUI Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightControl Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightShift Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightAlt Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_Right_GUI Variable, logical range 0..1 Input id=1 size=8 count=1 page=0x usage=0x Const, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Num_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Caps_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Scroll_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Compose Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Kana Variable, logical range 0..1 Output id=1 size=3 count=1 page=0x usage=0x Const, logical range 0..1 Input id=1 size=8 count=6 page=Keyboard usage=No_Event, logical range 0..255 End collection Collection page=Consumer usage=Consumer_Control Collection page=Generic_Desktop usage=Keyboard Input id=71 size=8 count=1 page=0x0006 usage=0x0020 Variable, logical range 0..255 End collection End collection Input id=17 size=1 count=3 page=0x usage=0x Const, logical range 0..1 Collection page=Consumer usage=Consumer_Control Input id=17 size=1 count=1 page=Consumer usage=Eject Variable, logical range 0..1 Input id=17 size=0 count=1 page=0x00ff usage=0x0003 Variable, logical range 0..1 Input id=17 size=1 count=3 page=0x usage=0x Const, logical range 0..1 Input id=18 size=1 count=1 page=Consumer usage=Pause/Play Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Fast_Forward Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Rewind Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Scan_Next_Track Variable, logical range 0..1 Input id=18 size=0 count=1 page=Consumer usage=Scan_Previous_Track Variable, logical range 0..1 Input id=18 size=0 count=1 page=0x usage=0x Const, logical range 0..1 Input
Re: OpenNTPD configuration?
Hi Fred, Currently I've an old box with a OpenBSD 4.2 and OpenNTPd as a server working on. It serves the time for my complete network (a /23 range, 512 servers) without any poblem. The clients are a lot FreeBSDs and some OpenBSDs and Debians. OpenNTPd simply rocks. It's safe, reliable and easy to manage (congratulations to Henning and others). According to symon, the old box is completely relaxed and all works fine in any client. ?Can you attach some log/info from _server_? -- Thanks, Jordi Espasa Clofent
Re: Intel D201GLY2 and OpenBSD 4.3
On Sunday 25 May 2008 05.28.41 Sergey Aikinkulov wrote: Hi, After upgrade to OpenBSD 4.3 from 4.2 my Intel D201GLY2 based gateway go to reboot on kernel initializing. Intel D201GLY2 bios was upgrated to latest but problem was not fixed. Any ideas? Just a confirm. Exactly the same here, with the same board. This is what we are talking about: http://www.intel.com/products/motherboard/D201GLY2/index.htm direct link to technical documentation: http://download.intel.com/products/motherboard/D201GLY2/tps.pdf Daniel -- LEVAI Daniel PGP key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
Re: Why Perl for pkg_* tools ?
On Sun, May 25, 2008 at 3:34 AM, Douglas A. Tutty [EMAIL PROTECTED] wrote: On Sat, May 24, 2008 at 07:39:34PM +0200, Marc Espie wrote: A final word. For all you backseat drivers: this is OpenBSD. Those who do the work get to call the shots. In reading the thread, I don't get the impression that anyone is second-guessing just that people thought it an interesting decision and couldn't find the relevant discussion in the archives to learn how that decision was made. wow, really? the answers are pretty obvious, so all this makes me wonder if the archives are some kind of substitute for a brain...
Re: OpenNTPD configuration?
Le Sat, 24 May 2008 22:41:36 -0700 (PDT), Fred Snurd [EMAIL PROTECTED] a C)crit : I'm a bit confused by what I am seeing in the logfiles when compared to the information found in the manpages and FAQ. I would appreciate if someone could provide some perspective. I've set up OpenNTPD on a 4.3-current server (192.168.0.4), and the time has finally reached synchronization as best I can tell: server $ sudo tail /var/log/daemon May 24 17:38:17 server ntpd[32321]: adjusting clock frequency by 12.518122 to 37.282963ppm May 24 18:06:18 server ntpd[32321]: adjusting clock frequency by -3.055956 to 34.227007ppm May 24 18:34:19 server ntpd[32321]: adjusting clock frequency by 1.532853 to 35.759861ppm May 24 19:02:20 server ntpd[32321]: adjusting clock frequency by -1.548559 to 34.211301ppm May 24 19:30:21 server ntpd[32321]: adjusting clock frequency by 27.436873 to 61.648175ppm May 24 19:58:22 server ntpd[32321]: adjusting clock frequency by -16.620842 to 45.027332ppm May 24 20:26:24 server ntpd[32321]: adjusting clock frequency by -21.159011 to 23.868321ppm May 24 20:54:25 server ntpd[32321]: adjusting clock frequency by -8.922065 to 14.946257ppm May 24 21:22:26 server ntpd[32321]: adjusting clock frequency by 19.461742 to 34.407999ppm May 24 21:50:27 server ntpd[32321]: adjusting clock frequency by -14.422098 to 19.985901ppm server $ I also have a 4.3-current client on the same subnet (192.168.0.6) switch (no firewalls involved), and see Connection refused in /var/log/daemon on the client's side: client $ sudo tail /var/log/daemon May 24 17:12:11 client dhclient[273]: DHCPACK from 192.168.0.1 May 24 17:12:11 client dhclient[273]: bound to 192.168.0.6 -- renewal in 43200 seconds. May 24 21:11:00 client ntpd[16786]: ntp engine ready May 24 21:11:00 client ntpd[16786]: recvfrom 192.168.0.4: Connection refused May 24 21:11:01 client savecore: no core dump May 24 21:29:45 client ntpd[8992]: ntp engine ready May 24 21:29:45 client ntpd[8992]: recvfrom 192.168.0.4: Connection refused May 24 21:29:46 client savecore: no core dump May 24 22:24:27 client ntpd[8992]: 0 out of 1 peers valid May 24 22:24:27 client ntpd[8992]: bad peer 192.168.0.4 (192.168.0.4) client $ The client has the following contents for its configuration files: client $ cat /etc/rc.conf.local ntpd_flags=-v client $ cat /etc/ntpd.conf # $OpenBSD: ntpd.conf,v 1.8 2007/07/13 09:05:52 henning Exp $ # sample ntpd configuration file, see ntpd.conf(5) # Addresses to listen on (ntpd does not listen by default) #listen on * # sync to a single server #server ntp.example.org server 192.168.0.4 # use a random selection of 8 public stratum 2 servers # see http://support.ntp.org/bin/view/Servers/NTPPoolServers #servers pool.ntp.org client $ I saw in the archives someone else having a similar error, but no definitive reply. It appears that the server is sending out traffic correctly on port 123: server $ netstat -f inet -na Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) ip 0 0 *.* *.*17 Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address(state) tcp0224 192.168.0.6.22 192.168.0.125.43307ESTABLISHED tcp0 0 192.168.0.6.48455 192.168.0.4.22 ESTABLISHED tcp 0 0 192.168.0.6.22 192.168.0.125.44198ESTABLISHED tcp0 0 127.0.0.1.587 *.* LISTEN tcp0 0 127.0.0.1.25 *.*LISTEN tcp0 0 *.22 *.*LISTEN tcp 0 0 *.37 *.*LISTEN tcp0 0 *.13 *.* LISTEN tcp0 0 *.113 *.*LISTEN Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address(state) udp0 0 127.0.0.1.512 *.* udp0 0 192.168.0.6.32093 192.168.0.4.123 udp0 0 *.514 *.* server $ I know that it can take some time for the client to synchronize with an NTP server, but the Connection refused message has me wondering if I have missed something else in the configuration. Any help would be appreciated. Thanks! Do you have in your ntpd.conf : listen on 192.168.0.4 ?
Re: OpenNTPD configuration?
Sure! I've attached a cheap USB GPS unit. The idea came from a thread back in October: http://marc.info/?l=openbsd-miscw=2r=1s=configuring+ntpd+to+use+GPSq=b server $ cat rc.conf.local nmeaattach_flags='/dev/cuaU0' ntpd_flags='-v' server $ cat ntpd.conf # $OpenBSD: ntpd.conf,v 1.8 2007/07/13 09:05:52 henning Exp $ # sample ntpd configuration file, see ntpd.conf(5) # Addresses to listen on (ntpd does not listen by default) #listen on * # sync to a single server #server ntp.example.org # use a random selection of 8 public stratum 2 servers # see http://support.ntp.org/bin/view/Servers/NTPPoolServers #servers pool.ntp.org sensor * $ ?Why do you use a USB GPS unit? Simply curiosity. ?Has do you tried with a 'classic' ntp servers pool? ?Do you get the same error in clients? Another useful outputs: * launch the OpenNTPd server with -d flag (not daemonize, log on stderr) * launch a 'tcpdump -i ntp_client_nic -n -vvv port 123' in clients -- Thanks, Jordi Espasa Clofent
Re: OpenNTPD configuration?
Jordi Espasa Clofent [EMAIL PROTECTED] write: ?Can you attach some log/info from _server_? Sure! I've attached a cheap USB GPS unit. The idea came from a thread back in October: http://marc.info/?l=openbsd-miscw=2r=1s=configuring+ntpd+to+use+GPSq=b server $ cat rc.conf.local nmeaattach_flags='/dev/cuaU0' ntpd_flags='-v' server $ cat ntpd.conf # $OpenBSD: ntpd.conf,v 1.8 2007/07/13 09:05:52 henning Exp $ # sample ntpd configuration file, see ntpd.conf(5) # Addresses to listen on (ntpd does not listen by default) #listen on * # sync to a single server #server ntp.example.org # use a random selection of 8 public stratum 2 servers # see http://support.ntp.org/bin/view/Servers/NTPPoolServers #servers pool.ntp.org sensor * $
Re: SPARC64-V support
Mark Kettenis wrote: As of yesterday, OpenBSD/sparc64 has full support for Fujitsu's SPARC64-V processor. As far as I know OpenBSD is the first free operating system that supports this processor... Congrats! That is excellent news in many ways. Regards, -Lars
Re: OpenNTPD configuration?
This confirms that your problem is in the ntpd configuration, as already pointed out by Julien Cabillot. OpenNTPD does not act as an NTP-server by default. It even says so in the config file : On Sun, May 25, 2008 at 01:03:40AM -0700, Fred Snurd wrote: | # Addresses to listen on (ntpd does not listen by default) | #listen on * What you must do, is remove the # and optionally change the * into 192.168.0.4. Read the ntpd.conf(5) manpage for more details on how to configure OpenBTPD. Cheers, Paul 'WEiRD' de Weerd -- [++-]+++.+++[---].+++[+ +++-].++[-]+.--.[-] http://www.weirdnet.nl/
Re: E450 stuff
On Sat, 24 May 2008 08:03:53 -0400 Nick Holland [EMAIL PROTECTED] wrote: Johan SANCHEZ wrote: On Fri, 23 May 2008 11:08:32 -0400 Christopher Sean Hilton [EMAIL PROTECTED] wrote: On May 23, 2008, at 11:06 AM, Christopher Sean Hilton wrote: Hi, I inherited an E450 from my old job. It booted Solaris just fine but I was never able to get any of (Free|Net|Open)BSD to install on it. I feel that this is probably more do to me than anything else. As time has passed it's become pretty obvious between the problems with the install and the cost for power to run, my chances of running this machine in my environment are NULL. I'd like to make just one more attempt at getting the machine running. But ultimately I will have it carted away. This is what I have: Sun E450 4 x 400 MHz UltraSparc II processors (Sun P/N 501-5446) 4 x DC power regulator boards (Sun P/N 300-1322) 4GB of RAM (16 x Sun P/N 501-4743) Spare E450 Mainboard 2 x 300 MHz UltraSparc II processors (Sun P/N 501-4849) 2 x DC power regulator boards (Sun P/N 300-1322) 4GB of RAM (16 x Sun P/N 501-4743) I'm going to spend an hour today working on this to see if I can get a working install but even if I do the whole things going to have to go away. If anyone is interested in any of this equipment please feel free to email or xmpp me ([EMAIL PROTECTED]) Can i ask what is the problem you are experiencing with this ? what version of OBP are you using and what OBSD version did you tried ? Johan I do believe you will find OpenBSD will Just Work, and bsd.mp should spin up all four processors. I seem to recall there was some work done relatively recently on the sensors on an E450, and one usually has to be fully functional on a system before you worry much about the sensors. :) HOWEVER... IF you have only worked with PCs, Sun systems are different. Also, the average E450 has sucked a lot of dust through its CDROM drive, and functional SCSI CDROM drives are relatively rare in most people's spare parts pile. Fortunately, Suns offer a lot of other options for bootstrapping the system, but none of the rest are something the average PC user has ever done before. But man, E450s are big. But I'm sure you have noticed that. :) Some U80 and E450 may have unusual reaction when used in this configuration 4*cpu and 4gb of memory . Just have to check OBP version DC DC state also the PN on the system board could be helpful ... You can also keep only the first cpu in the box and see the results I personnally owned an E3500 running an 4.x few monthes ago ... hth Johan SANCHEZ http://www.chatou-informatic.com
Re: Intel D201GLY2 and OpenBSD 4.3
On 2008-05-25, Sergey Aikinkulov [EMAIL PROTECTED] wrote: Hi, After upgrade to OpenBSD 4.3 from 4.2 my Intel D201GLY2 based gateway go to reboot on kernel initializing. Intel D201GLY2 bios was upgrated to latest but problem was not fixed. Any ideas? http://www.openbsd.org/faq/faq4.html#getdmesg
Re: openbsd multiboot
Op 23/05/2008 om 15:57:52 +0100, schreef Jonathan Thornburg : I would like to have more than one openbsd root filesystem on my hardrive. Could somebody please explain how to go about this? [[...]] Using openbsd I could use multiple bios-partitions each having an a: label but how do I tel the bootloader to use a specific partition? I have kept two copies of OpenBSD on my laptop for a long time (going back to 2.8, I think). I've described my scheme in this list several times, eg http://archives.neohapsis.com/archives/openbsd/2005-05/1384.html. I like it. Basically I keep a single fdisk partition containing the entire disk, but two sets of OpenBSD root, usr, and now var partitions inside that, both sharing /home and /data (where I keep my user files): wd0a rootfstab mounts root, usr, var, home, data wd0b swap wd0c entire disk wd0d root2 fstab mounts root2, usr2, var2, home, data wd0e var wd0f var2 wd0g usr wd0h usr2 wd0j home wd0k data I use the standard OpenBSD bootloader; typing boot wd0a:/bsd (or just doing nothing and waiting for the 5 second default timeout) boots the wd0[aeg] set of partitions, while boot wd0d:/bsd boots the wd0[dfh] partitions. I normally boot run from the wd0[aeg] partitions; currently these contain OpenBSD 4.3-release, while wd0[dfh] contain 4.2-stable. When I do an OS upgrade or reinstall, I only do one of the two sets of partitions, leaving the other unchanged as a backup. For example, prior to a few weeks ago, both partition sets contained 4.2-stable; when I was ready to install 4.3-release I first copied (dump|restore and then running installboot on the wd0d /boot) the wd0[aeg] partitions to the wd0[dfh] partitions, and verified that I could boot run normally from the wd0[dfh] partitions. (In fact, as a test I ran from them for 5 days or so before finally doing the 4.3-release install.) This way if anything had gone wrong with the 4.3-release install (nothing did), I could have aborted and rebooted from the wd0[dfh] ones and (still) had a working computer. This is still pretty obtrusive, i.e. making a backup, then overwrite filesystems you normally use, hoping the backup is a copy you can rely on. This would all be unnecessary if the bootloader could be informed that it should boot from wd0d:/bsd from now on, so you could leave wd0a: et. all unharmed. Is there really no way to do that, other than by typing it on the boot prompt? Alternatively, is there a way to safely switch labels in the labeleditor, so that wd0a would become wd0d and vice versa? -- Leo Baltus
Re: timezone anomalies
hmm, on Fri, May 23, 2008 at 11:56:22PM -0400, Woodchuck said that Set your camera to UTC and be happy. and have rubbish exif info in every picture? no thanks. at least that is OS independent and the only correct data no matter what. this is like saying, set your watch to UTC and when looking at the time, do the math yourself... what i am trying to say is, that at least for me it doesn't make sense by default to apply TZ to files on the disk (apart perhaps from the newly created ones). but that's just me, perhaps i'll just set the bios to my TZ and point /etc/localtime to GMT and turn off ntpd i prefer my file dates untouched--TZ agnostic, and i hate this timezone business altogether. Among your options, you forgot the whole set of variations where the BIOS does daylight/summer time corrections. Invariably, the BIOS is set up for general US rules, and wrong ones at that. with nptd -s the bios time doesnt matter at all anymore. -f -- light doesn't emit energy; it emits little dark eaters
Re: OpenBSD and VIA VT6105M RhineIII
hello wim, thanks for your intervention. the problem is that all WRAP boards worked very well. now I have installed a pcengines ALIX board (same chipset and design as soekris) with OpenBSD 4.3. everything is working fine just to that point when configuring isakmpd. to eliminte configuration failures I took the isakmpd.conf and the few neccessary files from a IPSec working WRAP system and copied them to the new ALIX with the VIA chipset. this configuration now does not establish a tunnel, so I traced the IKE traffic and discovered a difference in the IKE communication which is probably responsible for the failure that phase II of IKE does not complete and therefore no IPSec security association is generated. greetings from austria arno hechenberger citydata trace: new ALIX machine with vr interfaces No. TimeSourceDestination Protocol Info 1 0.00194.208.37.21 194.208.33.217ISAKMP Identity Protection (Main Mode) 2 0.058193194.208.33.217194.208.37.21 ISAKMP Identity Protection (Main Mode) 3 0.150492194.208.37.21 194.208.33.217ISAKMP Identity Protection (Main Mode) 4 0.208460194.208.33.217194.208.37.21 ISAKMP Identity Protection (Main Mode) 5 0.304038194.208.37.21 194.208.33.217ISAKMP Identity Protection (Main Mode) 6 0.358672194.208.33.217194.208.37.21 ISAKMP Identity Protection (Main Mode) 7 0.437001194.208.37.21 194.208.33.217ISAKMP Quick Mode 8 0.469804194.208.33.217194.208.37.21 ISAKMP Identity Protection (Main Mode) 9 0.483476194.208.33.217194.208.37.21 ISAKMP Quick Mode 10 0.494387194.208.37.21 194.208.33.217ISAKMP Quick Mode trace: old WRAP machine with sis interfaces No. TimeSourceDestination Protocol Info 1 0.00194.208.37.21 194.208.33.217ISAKMP Identity Protection (Main Mode) 2 0.055112194.208.33.217194.208.37.21 ISAKMP Identity Protection (Main Mode) 3 0.089738194.208.37.21 194.208.33.217ISAKMP Identity Protection (Main Mode) 4 0.135278194.208.33.217194.208.37.21 ISAKMP Identity Protection (Main Mode) 5 0.147892194.208.37.21 194.208.33.217ISAKMP Identity Protection (Main Mode) 6 0.199866194.208.33.217194.208.37.21 ISAKMP Identity Protection (Main Mode) 7 0.211054194.208.37.21 194.208.33.217ISAKMP Quick Mode 8 0.285228194.208.33.217194.208.37.21 ISAKMP Quick Mode 9 0.286238194.208.37.21 194.208.33.217ISAKMP Quick Mode 10 26.826381 194.208.37.21 194.208.33.217ESP ESP (SPI=0xfb95abfa) 11 26.906322 194.208.33.217194.208.37.21 ESP ESP (SPI=0x0f34b701) 12 27.836780 194.208.37.21 194.208.33.217ESP ESP (SPI=0xfb95abfa) 13 27.876157 194.208.33.217194.208.37.21 ESP ESP (SPI=0x0f34b701) 14 28.840978 194.208.37.21 194.208.33.217ESP ESP (SPI=0xfb95abfa) 15 28.886188 194.208.33.217194.208.37.21 ESP ESP (SPI=0x0f34b701) 16 29.857408 194.208.37.21 194.208.33.217ESP ESP (SPI=0xfb95abfa) 17 29.901540 194.208.33.217194.208.37.21 ESP ESP (SPI=0x0f34b701) demesg: OpenBSD 4.3 (GENERIC) #698: Wed Mar 12 11:07:05 MDT 2008 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC RTC BIOS diagnostic error 80clock_battery cpu0: Geode(TM) Integrated Processor by AMD PCS (AuthenticAMD 586-class) 432 MHz cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX real mem = 133791744 (127MB) avail mem = 121331712 (115MB) RTC BIOS diagnostic error 80clock_battery mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 12/10/07, BIOS32 rev. 0 @ 0xfceb2 pcibios0 at bios0: rev 2.1 @ 0xf/0x1 pcibios0: pcibios_get_intr_routing - function not supported pcibios0: PCI IRQ Routing information unavailable. pcibios0: PCI bus #0 is the last bus bios0: ROM list: 0xe/0xa800 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 1 function 0 AMD Geode LX rev 0x33 glxsb0 at pci0 dev 1 function 2 AMD Geode LX Crypto rev 0x00: RNG AES vr0 at pci0 dev 9 function 0 VIA VT6105M RhineIII rev 0x96: irq 10, address 00:0d:b9:14:09:a0 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr1 at pci0 dev 10 function 0 VIA VT6105M RhineIII rev 0x96: irq 11, address 00:0d:b9:14:09:a1 ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr2 at pci0 dev 11 function 0 VIA VT6105M RhineIII rev 0x96: irq 12, address
gnats
hi there, recently i have sent bug report using sendbug and did not get a gnats confirmation. it was from a 4.2-current machine, older one obviously, and i was wondering if there is some incompatibility between the old and new sendbug... i thought maybe the mail didn't get through for some reason, but i can't find it on http://www.openbsd.org/query-pr.html either... -f -- in hell, you can't send people to hell...
Re: Why Perl for pkg_* tools ?
* comfooc [EMAIL PROTECTED] [2008-05-24 11:29]: What about python? I think that it's license is better (but i might be wrong). it is not in base and the people in charge don't like it anyway -- Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED] BS Web Services, http://bsws.de Full-Service ISP - Secure Hosting, Mail and DNS Services Dedicated Servers, Rootservers, Application Hosting - Hamburg Amsterdam
Re: openbsd multiboot
Hi, In message http://marc.info/?l=openbsd-miscm=121155589425574w=1, I wrote | Basically I keep a single fdisk partition containing the entire disk, | but two sets of OpenBSD root, usr, and now var partitions inside that, | both sharing /home and /data (where I keep my user files): | wd0a rootfstab mounts root, usr, var, home, data | wd0b swap | wd0c entire disk | wd0d root2 fstab mounts root2, usr2, var2, home, data | wd0e var | wd0f var2 | wd0g usr | wd0h usr2 | wd0j home | wd0k data | | I use the standard OpenBSD bootloader; typing boot wd0a:/bsd | (or just doing nothing and waiting for the 5 second default timeout) | boots the wd0[aeg] set of partitions, while boot wd0d:/bsd boots | the wd0[dfh] partitions. On Sun, 25 May 2008, Leo Baltus wrote: This is still pretty obtrusive, i.e. making a backup, then In practice, the backup takes an hour or two once every 6 months (when the new OpenBSD comes out), which I don't find too much of a burden. overwrite filesystems you normally use, The backup (copy a,e,g to d,f,h) doesn't overwrite filesystems I normally use; it overwrites a *backup* set of filesystems which I typically haven't even mounted for some months. That is, my wd0a /etc/fstab mounts *only* the a,e,g,j,k partitions, so when booting from wd0a, the d,f,h partitions are not mounted. Similarly, my wd0d /etc/fstab doesn't mount the a,e,g partitions. (The idea is that having the other set of partitions unmounted keeps them safe from a great many rm-in-the-wrong-directory type sysadmin blunders.) hoping the backup is a copy you can rely on. This is a very important point. I completely agree, backups are useless if I can't rely on them. So I test them as best I can before proceeding with an upgrade/reinstall on the a,e,g partitions. For example, for my 4.2-stable -- 4.3-release transition, my sequence was: 1. copy 4.2-stable a,e,g -- d,f,h, run installboot on d 2. reboot from d,f,h and use laptop normally for 4 or 5 days to make sure that the d,f,h 4.2-stable works normally 3. fresh install of 4.3-release on a,e,g 4. reboot from a,e,g 4.3-release, work through my usual post-install checklist of config file edits, packages, one or two ports, etc etc 5. use laptop normally running a,e,g 4.3-release; track down fix any remaining glitches that come up (I might hand-mount d,f,h read-only for a while, just to have them handy for glitch-fixing) After step 2 I don't have to just hope the d,f,h backup is a copy I can rely on. Rather, at that point I've been using the d,f,h partitions for all my day-to-day work for 4 or 5 days, so I'm pretty confident that they're ok. (If they didn't work ok, then I'd want to fix the problems before proceeding.) Of course that testing time can be adjusted to taste; it's probably more usefully measured in what-tasks-I've-done rather than wall-clock-days. This would all be unnecessary if the bootloader could be informed that it should boot from wd0d:/bsd from now on, so you could leave wd0a: et. all unharmed. Is there really no way to do that, other than by typing it on the boot prompt? Alternatively, is there a way to safely switch labels in the labeleditor, so that wd0a would become wd0d and vice versa? -- -- Jonathan Thornburg [remove -animal to reply] [EMAIL PROTECTED] School of Mathematics, U of Southampton, England Space travel is utter bilge -- common misquote of UK Astronomer Royal Richard Woolley's remarks of 1956 All this writing about space travel is utter bilge. To go to the moon would cost as much as a major war. -- what he actually said
Re: bluetooth keyboard on -current
I have now got this working, just wanted to post the solution here for people searching the archives: btdevctl does not prompt the user to enter the pin on the keyboard in order to pair the device when attached, it just returns as if it were successful. However, if you run bthcid -f (that is, in the foreground), and watch the messages, as you try to attach the keyboard you can see when the device is queried and it is the correct time to enter the pin code. After you hit return, bthcid confirms the code and the keyboard works perfectly. Is this desired behaviour for btdevctl, i believe that from an ease of use perspective that this tool should prompt for the pin to be entered at the appropriate time. What do the dev's think? If it's a wanted feature i'm happy to knock up a diff.. John. On Sun, May 25, 2008 at 3:45 PM, John Alan Shirley [EMAIL PROTECTED] wrote: Hi misc@, An Apple Wireless Keyboard has come into my possession, and i'm trying to get it working on -current. I rebuilt the kernel/userland based on cvs update on Friday with all the bluetooth devices enabled. I also installed bluetooth-tools and bluetooth-libs ports. Initially my bt dongle was claimed by aue*, so i desabled this using config -e and rebooted; it is correctly claimed by ubt*. Below are the steps i've taken to configure the keyboard, followed by a dmesg. I am able to query ubt0 and get the address of the keyboard, generate the pin to pair with it, and send sdp messages. However I'm never prompted to enter the pin on the keyboard, i.e. when i btdevctl it, which i understood was necessary, and when i issue the final command to attach, the btkbd is attached to bthidev0 and ubt0, then to wskbd, but ultimately bthidev0 is disconnecting, and the keyboard doesn't work... I've tried google, archives, and perusing the source of all the bt drivers but can't figure out why it's disconnecting, any ideas/advice/solutions would be appreciated. Cheers, John Shirley. #sdpd #pgrep sdpd = 17600 #bthcid #pgrep bthcid =15662 #btconfig ubt0 up pscan switch class 0x02010c #btconfig -v =ubt0: bdaddr 00:0a:3a:7c:9f:86 flags=3UP,RUNNING num_cmd = 1 num_acl = 5, acl_mtu = 1017 num_sco = 0, sco_mtu = 64 #btconfig ubt0 inquiry =Device Discovery from device: ubt0 1 response 1: bdaddr 00:1e:52:6e:12:15 : name Apple Wireless Keyboard : class: [0x002540] Peripheral Keyboard Limited Discoverable : page scan rep mode 0x01 : clock offset 32614 #btpin -d ubt0 -a 00:1e:52:6e:12:15 -r =PIN: 2339 #btdevctl -a 00:1e:52:6e:12:15 -d ubt0 -s hid -qv =Performing SDP query for service 'HID'.. local bdaddr: 00:0a:3a:7c:9f:86 remote bdaddr: 00:1e:52:6e:12:15 link mode: encrypt device type: HID control psm: 0x0011 interrupt psm: 0x0013 Collection page=Generic_Desktop usage=Keyboard Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftControl Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftShift Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftAlt Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_Left_GUI Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightControl Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightShift Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightAlt Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_Right_GUI Variable, logical range 0..1 Input id=1 size=8 count=1 page=0x usage=0x Const, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Num_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Caps_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Scroll_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Compose Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Kana Variable, logical range 0..1 Output id=1 size=3 count=1 page=0x usage=0x Const, logical range 0..1 Input id=1 size=8 count=6 page=Keyboard usage=No_Event, logical range 0..255 End collection Collection page=Consumer usage=Consumer_Control Collection page=Generic_Desktop usage=Keyboard Input id=71 size=8 count=1 page=0x0006 usage=0x0020 Variable, logical range 0..255 End collection End collection Input id=17 size=1 count=3 page=0x usage=0x Const, logical range 0..1 Collection page=Consumer usage=Consumer_Control Input id=17 size=1 count=1 page=Consumer usage=Eject Variable, logical range 0..1 Input id=17 size=0 count=1 page=0x00ff usage=0x0003 Variable, logical range 0..1 Input id=17 size=1 count=3 page=0x usage=0x Const, logical range 0..1 Input id=18 size=1
Re: cannot link to ftp
I just use the command #ftp ftp://ftp.openbsd.org Some welcome message comes,after that the error comes. 421 Timeout. ftp: Login failed. ftp: No control connection for command. ftp: Login failed. ftp: No control connection for command. ftp: Can't connect or login to host 'ftp.openbsd.org' With your help.I found I can simply use the http way. And all the packages are in the pub/OpenBSD/4.3/packages/i386/ Thanks elflord and Marc Balmer.
Re: cannot link to ftp
* Dan Liu wrote: export PKG_PATH=ftp://obsd.cec.mtu.edu/pub/OpenBSD/4.3/i386/ The correct path on the server would be pub/OpenBSD/4.3/packages/i386/ pkg_add -i screen Error from ftp://obsd.cec.mtu.edu/pub/OpenBSD/4.3/i386/: ftp: Login failed. ftp: No control connection for command. ftp: Login failed. ftp: No control connection for command. ftp: Can't connect or login to host 'obsd.cec.mtu.edu' No packages available in the PKG_PATH Can't resolve screen I can not link to any ftp site listed on the openBSD site. The document suggest us to use the binary file not the source file. I even can not link them use firefox or gftp. I can connect to obsd.cec.mtu.edu from Switzerland. So the problem seems to be on your side.
cannot link to ftp
export PKG_PATH=ftp://obsd.cec.mtu.edu/pub/OpenBSD/4.3/i386/ pkg_add -i screen Error from ftp://obsd.cec.mtu.edu/pub/OpenBSD/4.3/i386/: ftp: Login failed. ftp: No control connection for command. ftp: Login failed. ftp: No control connection for command. ftp: Can't connect or login to host 'obsd.cec.mtu.edu' No packages available in the PKG_PATH Can't resolve screen I can not link to any ftp site listed on the openBSD site. The document suggest us to use the binary file not the source file. I even can not link them use firefox or gftp.
U of A (and associated OpenBSD machines) going offline for up to 4 hours or so.
We're having some major electrical work done in our data centre. While I have UPS, the nature of the work means I don't have air conditioning ;) The result is some of the OpenBSD sites (ftp, www, anoncvs, etc.) may be unavailable for much of this morning - potentially into the afternoon. -Bob
Re: gnats
On Sun, May 25, 2008 at 01:22:53PM +0200, frantisek holop wrote: [content] -f Sorry for being offtopic: What does -f mean? (I see those 'options' more often in mails).
Re: cannot link to ftp
Dan Liu wrote: I just use the command #ftp ftp://ftp.openbsd.org ... 421 Timeout... I have gotten that from a number of mirror sites the last few weeks. Some of it is the fault of my 'ISP' and I'm getting the impression that the rest is not specific to OpenBSD sites. HTTP is much worse for file transfer. Try rsync or also AFS, e.g. export PKG_PATH=/afs/stacken.kth.se/ftp/pub/OpenBSD/4.3/packages/i386/ Only that one seems to be available (to me) just right now. -Lars
[OT] Can i connect two box directly using wireless cards ?
hi all I have two laptops running linux and openbsd, both with a working wireless card. I am wondering if i can connect these two computers directly and communicate between each other wirelessly I'm a network nut and have no idea if this is possible. Thanks
Re: [OT] Can i connect two box directly using wireless cards ?
On Sun, 2008-05-25 at 16:36 +0200, elflord woods wrote: hi all I have two laptops running linux and openbsd, both with a working wireless card. I am wondering if i can connect these two computers directly and communicate between each other wirelessly I'm a network nut and have no idea if this is possible. you can http://openbsd.org/faq/faq6.html#Wireless Marten Thanks -- Marten Vijn Koop mijn huis: http://martenvijn.nl/trac/wiki/huis http://martenvijn.nl http://wifisoft.org http://opencommunitycamp.org
Re: [OT] Can i connect two box directly using wireless cards ?
See the Book of PF pp 36-38 or online the Firewalling with OpenBSD's PF packet filterI've not had time to try setting up a wireless but have some cards waiting for when (if) I do ... -Lars
Re: [OT] Can i connect two box directly using wireless cards ?
* elflord woods wrote: I have two laptops running linux and openbsd, both with a working wireless card. I am wondering if i can connect these two computers directly and communicate between each other wirelessly I'm a network nut and have no idea if this is possible. Thanks this is possible and it is easy. give both machines a (different) IP address within the same net. which parts of the IP addresses are consider the net depends on the netmask. for simplicity, choose the following values, e.g.: netmask 255.255.255.0 on both machines broadcast address 192.168.1.255 on both machines host A IP address 192.168.1.1 host B IP address 192.168.1.2 you configure the network using the ifconfig command (enter it without any options to see the list of available interfaces). Once setup, you ping the other host using these (private) IP addresses. Good luck, there is a lot information in the man pages and in the FAQ, go read it if you run into trouble.
Re: Why Perl for pkg_* tools ?
Douglas == Douglas A Tutty [EMAIL PROTECTED] writes: Douglas Of course, without an actual here's-my-problem issue to discuss, its Douglas philosophical and hypothetical which allows us to argue over the Douglas periphery instead of the core issue. Douglas Is there any scenario where one could not easily ship a product that Douglas uses OpenBSD with its perl interpreter intact? How many times do we have to say Perl's license is Artistic 2.0 which is roughly as broad (if not even a tiny bit broader) than BSD's own? Are you not paying attention in the thread to the three prior times I (and others) have already said this? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 [EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
Re: [OT] Can i connect two box directly using wireless cards ?
Thanks everyone i noticed on this page (http://openbsd.org/faq/faq6.html#Wireless) that my card(ipw) can not be used as AP(access point) Does this matter ?
Re: gnats
frantisek holop wrote: hi there, recently i have sent bug report using sendbug and did not get a gnats confirmation. it was from a 4.2-current machine, older one obviously, and i was wondering if there is some incompatibility between the old and new sendbug... i thought maybe the mail didn't get through for some reason, but i can't find it on http://www.openbsd.org/query-pr.html either... -f Unfortunately (for gnats), many ISPs block outbound port 25 traffic to anything other than their mail servers. Even if yours doesn't block port 25, I'm pretty sure the target machine uses greylisting, so you have to leave the machine you used sendbug on up long enough to clear the greylisting. /var/log/maillog will tell the story... IF you have your own mail server, I've had some luck killing sendmail on the local machine, then doing an ssh port forwarding of port 25 to your mail server. Something like this might work for you (as root, since you are messing with a priv. port) ssh -f -N -L 25:localhost:25 [EMAIL PROTECTED] (it might not, too. Something like that worked for me, but I didn't jot down exactly what I did, so that might not be it. If this DOES work for you, let me know so I can put it in my notes (i.e., the FAQ :) properly) Don't forget to kill that ssh session and restart sendmail to bring the system back up to proper operation when done! Nick.
Re: gnats
Pieter Verberne wrote: Sorry for being offtopic: What does -f mean? (I see those 'options' more often in mails). It's his signature, his name is frantisek, thus he signs his messages using the first letter of his name.. not unusual, but not very identifying.. I sign my messages too.. ;-) -Nix Fan.
Re: [OT] Can i connect two box directly using wireless cards ?
On Sun, May 25, 2008 at 8:01 AM, elflord woods [EMAIL PROTECTED] wrote: Thanks everyone i noticed on this page (http://openbsd.org/faq/faq6.html#Wireless) that my card(ipw) can not be used as AP(access point) Does this matter ? if you only want them to talk to eachother, there's always ad-hoc mode. -- GDB has a 'break' feature; why doesn't it have 'fix' too?
How to know whether I have install this file or avoid collision
pkg_add php5-ldap Collision: the following files already exist /usr/local/include/sasl/hmac-md5.h (same md5) /usr/local/include/sasl/md5.h (same md5) /usr/local/include/sasl/md5global.h (same md5) /usr/local/include/sasl/prop.h (same md5) /usr/local/include/sasl/sasl.h (same md5) /usr/local/include/sasl/saslplug.h (same md5) /usr/local/include/sasl/saslutil.h (same md5) /usr/local/lib/libsasl2.a (same md5) /usr/local/lib/libsasl2.la (same md5) /usr/local/lib/libsasl2.so.2.22 (same md5) /usr/local/lib/sasl2/libanonymous.a (same md5) /usr/local/lib/sasl2/libanonymous.la (same md5) /usr/local/lib/sasl2/libanonymous.so.2.22 (same md5) /usr/local/lib/sasl2/libcrammd5.a (same md5) /usr/local/lib/sasl2/libcrammd5.la (same md5) /usr/local/lib/sasl2/libdigestmd5.a (same md5) /usr/local/lib/sasl2/libdigestmd5.la (same md5) /usr/local/lib/sasl2/libgssapiv2.a (same md5) /usr/local/lib/sasl2/libgssapiv2.la (same md5) /usr/local/lib/sasl2/liblogin.a (same md5) /usr/local/lib/sasl2/liblogin.la (same md5) /usr/local/lib/sasl2/libntlm.a (same md5) /usr/local/lib/sasl2/libntlm.la (same md5) /usr/local/lib/sasl2/libotp.a (same md5) /usr/local/lib/sasl2/libotp.la (same md5) /usr/local/lib/sasl2/libplain.a (same md5) /usr/local/lib/sasl2/libplain.la (same md5) /usr/local/lib/sasl2/libsasldb.a (same md5) /usr/local/lib/sasl2/libsasldb.la (same md5) /usr/local/man/cat8/saslauthd.0 (same md5) /usr/local/man/man3/sasl.3 (same md5) /usr/local/man/man3/sasl_authorize_t.3 (same md5) /usr/local/man/man3/sasl_auxprop.3 (same md5) /usr/local/man/man3/sasl_auxprop_getctx.3 (same md5) /usr/local/man/man3/sasl_auxprop_request.3 (same md5) /usr/local/man/man3/sasl_callbacks.3 (same md5) /usr/local/man/man3/sasl_canon_user_t.3 (same md5) /usr/local/man/man3/sasl_chalprompt_t.3 (same md5) /usr/local/man/man3/sasl_checkapop.3 (same md5) /usr/local/man/man3/sasl_checkpass.3 (same md5) /usr/local/man/man3/sasl_client_init.3 (same md5) /usr/local/man/man3/sasl_client_new.3 (same md5) /usr/local/man/man3/sasl_client_start.3 (same md5) /usr/local/man/man3/sasl_client_step.3 (same md5) /usr/local/man/man3/sasl_decode.3 (same md5) /usr/local/man/man3/sasl_dispose.3 (same md5) /usr/local/man/man3/sasl_done.3 (same md5) /usr/local/man/man3/sasl_encode.3 (same md5) /usr/local/man/man3/sasl_encodev.3 (same md5) /usr/local/man/man3/sasl_errdetail.3 (same md5) /usr/local/man/man3/sasl_errors.3 (same md5) /usr/local/man/man3/sasl_errstring.3 (same md5) /usr/local/man/man3/sasl_getconfpath_t.3 (same md5) /usr/local/man/man3/sasl_getopt_t.3 (same md5) /usr/local/man/man3/sasl_getpath_t.3 (same md5) /usr/local/man/man3/sasl_getprop.3 (same md5) /usr/local/man/man3/sasl_getrealm_t.3 (same md5) /usr/local/man/man3/sasl_getsecret_t.3 (same md5) /usr/local/man/man3/sasl_getsimple_t.3 (same md5) /usr/local/man/man3/sasl_global_listmech.3 (same md5) /usr/local/man/man3/sasl_idle.3 (same md5) /usr/local/man/man3/sasl_listmech.3 (same md5) /usr/local/man/man3/sasl_log_t.3 (same md5) /usr/local/man/man3/sasl_server_init.3 (same md5) /usr/local/man/man3/sasl_server_new.3 (same md5) /usr/local/man/man3/sasl_server_start.3 (same md5) /usr/local/man/man3/sasl_server_step.3 (same md5) /usr/local/man/man3/sasl_server_userdb_checkpass_t.3 (same md5) /usr/local/man/man3/sasl_server_userdb_setpass_t.3 (same md5) /usr/local/man/man3/sasl_setpass.3 (same md5) /usr/local/man/man3/sasl_setprop.3 (same md5) /usr/local/man/man3/sasl_user_exists.3 (same md5) /usr/local/man/man3/sasl_verifyfile_t.3 (same md5) /usr/local/man/man8/pluginviewer.8 (same md5) /usr/local/man/man8/sasldblistusers2.8 (same md5) /usr/local/man/man8/saslpasswd2.8 (same md5) /usr/local/sbin/pluginviewer (same md5) /usr/local/sbin/saslauthd (same md5) /usr/local/sbin/sasldblistusers2 (same md5) /usr/local/sbin/saslpasswd2 (same md5) /usr/local/sbin/testsaslauthd (same md5) /usr/local/share/doc/sasl2/advanced.html (same md5) /usr/local/share/doc/sasl2/appconvert.html (same md5) /usr/local/share/doc/sasl2/components.html (same md5) /usr/local/share/doc/sasl2/draft-burdis-cat-srp-sasl-xx.txt (same md5) /usr/local/share/doc/sasl2/draft-ietf-sasl-anon-xx.txt (same md5) /usr/local/share/doc/sasl2/draft-ietf-sasl-crammd5-xx.txt (same md5) /usr/local/share/doc/sasl2/draft-ietf-sasl-gssapi-xx.txt (same md5)
Re: E450 stuff
On Sat, May 24, 2008 at 08:03:53AM -0400, Nick Holland wrote: Johan SANCHEZ wrote: On Fri, 23 May 2008 11:08:32 -0400 Christopher Sean Hilton [EMAIL PROTECTED] wrote: [ snip ] Can i ask what is the problem you are experiencing with this ? what version of OBP are you using and what OBSD version did you tried ? Johan I do believe you will find OpenBSD will Just Work, and bsd.mp should spin up all four processors. I seem to recall there was some work done relatively recently on the sensors on an E450, and one usually has to be fully functional on a system before you worry much about the sensors. :) HOWEVER... IF you have only worked with PCs, Sun systems are different. Also, the average E450 has sucked a lot of dust through its CDROM drive, and functional SCSI CDROM drives are relatively rare in most people's spare parts pile. Fortunately, Suns offer a lot of other options for bootstrapping the system, but none of the rest are something the average PC user has ever done before. But man, E450s are big. But I'm sure you have noticed that. :) Nick. Thanks, My first crack at this box was probably 2 years ago, perhaps more. I do know that the sparc64 MP code was reasonably new in NetBSD at the time. I didn't really try to hard but OpenBSD (unknown version) wouldn't boot and NetBSD (2.0, 2.1, 3.0) would all stall at various places in the boot process. Since I couldn't get Stop-A to bring the machine back to the OpenBoot prompt reliably I figured that it was a bad mainboard. I requested another and received one with 2 300MHz UltraSparc II processors. That's where I went wrong. I installed one of the 400MHz processors onto the new mainboard and attempted to boot and got nowhere. I don't claim to be very versed in Sun hardware. If I can make it boot off of the CD-ROM then I can generally make it work. I can netboot Intel Machines with PXE ok. I hate floppy drives... On the advice of a friend who knows Sun Hardware much better than I I put the 2 300MHZ CPU's back on the second mainboard and the machine is happily installing NetBSD 4.0 right now. It's still not recognizing all the disk drives that I have in it but at least it installs now. Once I can get it to install I'm happy because I don't like giving away junk. Residential electricity in New England is currently $0.16 / kWh which means that this machine would probably cost more than $30.00 / month to run 24/7. It will never be a main line production machine for me but after successfully installing NetBSD and OpenBSD on it I can report that it works... -- Chris -- -- Chris Hilton chilton-at-vindaloo-dot-com All I was doing was trying to get home from work! -- Rosa Parks
smtp-vilter -- cmd read returned 0, expecting 5
Good day, The smtp-vilter on my mail exchanger works very nicely except that occassionally I see the following message: May 25 17:40:05 mail01 sm-mta[4943]: n5QWfdTZ004454: milter_sys_read(smtp-vilter): cmd read returned 0, expecting 5 May 25 17:40:05 mail01 sm-mta[4943]: n5QWfdTZ004454: Milter (smtp-vilter): to error state May 25 17:40:05 mail01 sm-mta[4943]: n5QWfdTZ004454: Milter: data, reject=451 4.3.2 Please try again later May 25 17:40:05 mail01 sm-mta[4943]: n5QWfdTZ004454: to=[EMAIL PROTECTED], delay=00:00:01, pri=42414, stat=Please try again later May 25 17:40:06 mail01 smtp-vilter[4979]: dropped privileges, running as 539:539 There doesn't seem to be a pattern even though most of the time the sender is using a Blackberry or a Pager. What could this be due to and what makes smtp-vilter return 0 instead of 5? When the sending mail server tries later, the message gets delivered. Is this due to a misconfiguration on my part? I have smtp-vilter and clamd running as 539:539. Can that cause this problem? Please let me know if you know the answer to this. Thanks very much in advance, Vijay -- Vijay Sankar, M.Eng., P.Eng. ForeTell Technologies Limited 59 Flamingo Avenue, Winnipeg, MB Canada R3J 0X6 Phone: +1 204 885 9535, E-Mail: [EMAIL PROTECTED]
Problems installing OpenBSD-4.3 using bsd.rd
Hello I'm currently trying to install OpenBSD-4.3 on my subnotebook (JVC MP-XP3), the problem is that it doesn't have any CD-ROM and/or floppy drive and it isn't capable of booting using PXE nor booting from USB-HDD. (Already checked that) I read in the FAQ that there's a possibility to install OpenBSD from harddisk through bsd.rd, so I downloaded the latest (4.3-RELEASE) bsd.rd, put it on a small separate partition in a directory named /boot, modified the Grub menu and tried to boot that. It didn't work out, here's what I get: panic: /boot too old: upgrade! The operating system has halted. Please press any key to reboot After this I thought that maybe bsd.rd needs some other files which it expects to be usually found in /boot. So I downloaded cd43.iso, extracted its contents to /boot and retried. Still the same problem. Following to that I also tried with install43.iso, same procedure, but the problem remains. The Grub menu entry I used for the 2nd and 3rd try: root (hd0,3) kernel --openbsd=openbsd /boot/4.3/i386/bsd.rd In the FAQ, section 4.11 it says: [0] ... if you have a running older version of OpenBSD, ... Does this probably mean that the install method with bsd.rd is only possible if there's already an OpenBSD system existing on the harddisk? If that's correct, is there any other suitable installation method using a install-image on a harddisk? Currently I don't have any more ideas, beside the following: I could install OpenBSD on an other (totally different) computer using the standard CD-ROM install method, after that I'd copy the hole system to an USB-HDD which in turn I would plug to my subnotebook. There I'd copy the hole system to a temporary partition, download the latest (4.3) bsd.rd again, edit the Grub menu and retry to boot the bsd.rd. I already searched the web for other installing methods suitable for my case and searched further if there's a possibility of directly booting .iso images using Grub but couldn't find anything useful. Suggestions most welcome Thanks, ~fc [0] http://www.openbsd.org/faq/faq4.html#bsd.rd
rtorrent ram issue (using 4.2)
Hi all, I'm using OpenBSD 4.2. I would like to make my OpenBSD box to download torrents and to add new torrents by ssh so I installed rtorrent. I experienced a really huge memory use of the program to hash (check I think) the actual downloads. I know this client has to do the checks but I would like to jail the program on a 64 MB environment (my box have 1 GB RAM) to make able to the machine to run a lot of things, but I can't stop the hashes eat all my RAM, even setting ulimit -m and the .rtorrent.rc max_memory_usage variable to 64M and less, but rtorrent still makes my computer to allocate everything I'm using into swap an HD, really really slow. I know that many simultaneous downloads using a bittorrent-like client may cause system problems but I'm only doing 5 downloads. I have tested many different configs and always get problems, some times the client freezes (loose download time, because it's doing nothing for about 10 seconds every minute), some times I lost all the RAM and browsing the net, using xchat, compile programs and stuff like that becomes really slow. Anyone have found a good .rtorrent.rc configuration to make freeze/ram-use dissapear? Thanks for your time. -Jesus
Re: rtorrent ram issue (using 4.2)
2008/5/25 Jesus Sanchez [EMAIL PROTECTED]: Hi all, I'm using OpenBSD 4.2. I would like to make my OpenBSD box to download torrents and to add new torrents by ssh so I installed rtorrent. I experienced a really huge memory use of the program to hash (check I think) the actual downloads. I know this client has to do the checks but I would like to jail the program on a 64 MB environment (my box have 1 GB RAM) to make able to the machine to run a lot of things, but I can't stop the hashes eat all my RAM, even setting ulimit -m and the .rtorrent.rc max_memory_usage variable to 64M and less, but rtorrent still makes my computer to allocate everything I'm using into swap an HD, really really slow. I know that many simultaneous downloads using a bittorrent-like client may cause system problems but I'm only doing 5 downloads. I have tested many different configs and always get problems, some times the client freezes (loose download time, because it's doing nothing for about 10 seconds every minute), some times I lost all the RAM and browsing the net, using xchat, compile programs and stuff like that becomes really slow. Anyone have found a good .rtorrent.rc configuration to make freeze/ram-use dissapear? Thanks for your time. -Jesus I have been using rtorrent with no ram max and it never took over 30 megs, that was running up to 30 torrents at a time, how many torrents are you running at one time? have you set any limits on IO? perhaps IO is backing up into the ram? i know my windows client does that. -- -Lawrence
Re: Problems installing OpenBSD-4.3 using bsd.rd
use a usb floppy. On 5/25/08, F. Caulier [EMAIL PROTECTED] wrote: Hello I'm currently trying to install OpenBSD-4.3 on my subnotebook (JVC MP-XP3), the problem is that it doesn't have any CD-ROM and/or floppy drive and it isn't capable of booting using PXE nor booting from USB-HDD. (Already checked that) I read in the FAQ that there's a possibility to install OpenBSD from harddisk through bsd.rd, so I downloaded the latest (4.3-RELEASE) bsd.rd, put it on a small separate partition in a directory named /boot, modified the Grub menu and tried to boot that. It didn't work out, here's what I get: panic: /boot too old: upgrade! The operating system has halted. Please press any key to reboot After this I thought that maybe bsd.rd needs some other files which it expects to be usually found in /boot. So I downloaded cd43.iso, extracted its contents to /boot and retried. Still the same problem. Following to that I also tried with install43.iso, same procedure, but the problem remains. The Grub menu entry I used for the 2nd and 3rd try: root (hd0,3) kernel --openbsd=openbsd /boot/4.3/i386/bsd.rd In the FAQ, section 4.11 it says: [0] ... if you have a running older version of OpenBSD, ... Does this probably mean that the install method with bsd.rd is only possible if there's already an OpenBSD system existing on the harddisk? If that's correct, is there any other suitable installation method using a install-image on a harddisk? Currently I don't have any more ideas, beside the following: I could install OpenBSD on an other (totally different) computer using the standard CD-ROM install method, after that I'd copy the hole system to an USB-HDD which in turn I would plug to my subnotebook. There I'd copy the hole system to a temporary partition, download the latest (4.3) bsd.rd again, edit the Grub menu and retry to boot the bsd.rd. I already searched the web for other installing methods suitable for my case and searched further if there's a possibility of directly booting .iso images using Grub but couldn't find anything useful. Suggestions most welcome Thanks, ~fc [0] http://www.openbsd.org/faq/faq4.html#bsd.rd
Re: timezone anomalies
On 5/25/08, frantisek holop [EMAIL PROTECTED] wrote: what i am trying to say is, that at least for me it doesn't make sense by default to apply TZ to files on the disk fortunately, they're not.
Re: [OT] Python License [WAS: Re: Why Perl for pkg_* tools ?]
On 5/24/08, Martin Marcher [EMAIL PROTECTED] wrote: How about the python license? How about them Yankees? Given that is there any chance realistic chance that python will be part of the obsd default at some point in the forseeable future? No.
[OT] C code
Hello. I dont know if this a cuestion for this list, but I think is it a valid cuestion... I reading a book recomended in http://www.openbsd.org/books.html The book is Advanced programmig in the unix environment. In this book I read Figure 3.1 but this not compile. the error is: $cc F3_10.c /tmp//ccnsuA79.o(.text+027): In function 'main': :undefined reference to 'err_quit' /tmp//ccnsuA79.o(.text+0x74): In fuction 'main': :undefined reference to 'err_sys' /tmp//ccnsuA79.o(.txt+0xdf): In functiion 'main': :undefined reference to 'err_dump' collect2: ld returned 1 exit status The source is: #include apue.h #include fcntl.h int main(int argc, char *argv[]) { int val; if (argc != 2) err_quit(usage: a.out descriptor#); if ((val = fcntl(atoi(argv[1]), F_GETFL, 0)) 0) err_sys(fcntl error for fd %d, atoi(argv[1])); switch (val O_ACCMODE) { case O_RDONLY: printf(read only); break; case O_WRONLY: printf(write only); break; case O_RDWR: printf(read write); break; default: err_dump(unknown access mode); } if (val O_APPEND) printf(, append); if (val O_NONBLOCK) printf(, nonblocking); #if defined(O_SYNC) if (val O_SYNC) printf(, synchronous writes); #endif putchar('\n'); exit(0); } I dont know wath is the problem. your can helpme? Sorry my bad english. regards. Dmitri.-
Re: [OT] C code
On Sun, 2008-05-25 at 22:41 -0400, deoxy wrote: Hello. I dont know if this a cuestion for this list, but I think is it a valid cuestion... I reading a book recomended in http://www.openbsd.org/books.html The book is Advanced programmig in the unix environment. In this book I read Figure 3.1 but this not compile. the error is: $cc F3_10.c /tmp//ccnsuA79.o(.text+027): In function 'main': :undefined reference to 'err_quit' /tmp//ccnsuA79.o(.text+0x74): In fuction 'main': :undefined reference to 'err_sys' /tmp//ccnsuA79.o(.txt+0xdf): In functiion 'main': :undefined reference to 'err_dump' collect2: ld returned 1 exit status The source is: #include apue.h #include fcntl.h int main(int argc, char *argv[]) { int val; if (argc != 2) err_quit(usage: a.out descriptor#); if ((val = fcntl(atoi(argv[1]), F_GETFL, 0)) 0) err_sys(fcntl error for fd %d, atoi(argv[1])); switch (val O_ACCMODE) { case O_RDONLY: printf(read only); break; case O_WRONLY: printf(write only); break; case O_RDWR: printf(read write); break; default: err_dump(unknown access mode); } if (val O_APPEND) printf(, append); if (val O_NONBLOCK) printf(, nonblocking); #if defined(O_SYNC) if (val O_SYNC) printf(, synchronous writes); #endif putchar('\n'); exit(0); } I dont know wath is the problem. your can helpme? Sorry my bad english. regards. Dmitri.- Those functions are defined in the back of the book, as I recall.
Re: Problems installing OpenBSD-4.3 using bsd.rd
F. Caulier wrote: ... I read in the FAQ that there's a possibility to install OpenBSD from harddisk through bsd.rd, so I downloaded the latest (4.3-RELEASE) bsd.rd, put it on a small separate partition in a directory named /boot, modified the Grub menu and tried to boot that. It didn't work out, here's what I get: panic: /boot too old: upgrade! yep, GRUB doesn't know how to load OpenBSD. It may have once, but apparently no one has maintained that. The operating system has halted. Please press any key to reboot [snip] In the FAQ, section 4.11 it says: [0] ... if you have a running older version of OpenBSD, ... Does this probably mean that the install method with bsd.rd is only possible if there's already an OpenBSD system existing on the harddisk? yep. You put it on the OpenBSD partition and use the OpenBSD boot loader to load it instead of the normal kernel. If that's correct, is there any other suitable installation method using a install-image on a harddisk? Currently I don't have any more ideas, beside the following: I could install OpenBSD on an other (totally different) computer using the standard CD-ROM install method, after that I'd copy the hole system to an USB-HDD which in turn I would plug to my subnotebook. There I'd copy the hole system to a temporary partition, download the latest (4.3) bsd.rd again, edit the Grub menu and retry to boot the bsd.rd. oh, the pain. Hint: grub is not an answer to your question. The people who write grub don't care much about OpenBSD, and OpenBSD developers don't have a lot of use for GRUB. Anything it can do, we can do other ways better and easier. As far as booting OpenBSD, all grub can do is replace a 500 byte program...with clumsy monster. People sometimes ask questions like this, usually posing it as if it were OpenBSD that is not installable on the system...yet, as you describe it, from a blank disk, no OS would be. Obviously, that's not the case, so the first guide you should use is how would I install the intended OS on this system? Odds are, OpenBSD installs in the exact same way. However, assuming something like with a special external CDROM drive I don't own, and am not willing to spend the money to get, I'd just pull the disk out of this machine, plug it (with appropriate adapters) into whatever else you have that is self-sufficient, and install there, and move the disk back to the laptop. OpenBSD (with minor tweaking for the network adapter) will then Just Work. (not true of the intended OS, and possibly not going to work with the OS GRUB was intended for, either). Note: you could probably even use an external USB enclosure attached to a machine that can't even boot from USB (load, yes. Test, no). IF you happen to have a 3Com network adapter in that thing, 3Com has a PXE boot floppy available, which can turn almost any 3Com network adapter into a PXE device. 'Course, once you get it to boot off a floppy, might as well just do as Ted suggested and install OpenBSD from that... Nick.
Re: [OT] C code
On Sun, 2008-05-25 at 22:41 -0400, deoxy wrote: Hello. I dont know if this a cuestion for this list, but I think is it a valid cuestion... I reading a book recomended in http://www.openbsd.org/books.html The book is Advanced programmig in the unix environment. In this book I read Figure 3.1 but this not compile. the error is: $cc F3_10.c /tmp//ccnsuA79.o(.text+027): In function 'main': :undefined reference to 'err_quit' /tmp//ccnsuA79.o(.text+0x74): In fuction 'main': :undefined reference to 'err_sys' /tmp//ccnsuA79.o(.txt+0xdf): In functiion 'main': :undefined reference to 'err_dump' collect2: ld returned 1 exit status The source is: #include apue.h #include fcntl.h int main(int argc, char *argv[]) { int val; if (argc != 2) err_quit(usage: a.out descriptor#); if ((val = fcntl(atoi(argv[1]), F_GETFL, 0)) 0) err_sys(fcntl error for fd %d, atoi(argv[1])); switch (val O_ACCMODE) { case O_RDONLY: printf(read only); break; case O_WRONLY: printf(write only); break; case O_RDWR: printf(read write); break; default: err_dump(unknown access mode); } if (val O_APPEND) printf(, append); if (val O_NONBLOCK) printf(, nonblocking); #if defined(O_SYNC) if (val O_SYNC) printf(, synchronous writes); #endif putchar('\n'); exit(0); } I dont know wath is the problem. your can helpme? Sorry my bad english. regards. Dmitri.- I think you are supposed to add the definitions for err_quit etc. from the back of the book. You can download them I think and then you have to link to them and make sure apue.h is on your include path. Kendall
Re: [OT] C code
On Mon, May 26, 2008 at 8:11 AM, deoxy [EMAIL PROTECTED] wrote: Hello. I dont know if this a cuestion for this list, but I think is it a valid cuestion... I reading a book recomended in http://www.openbsd.org/books.html The book is Advanced programmig in the unix environment. In this book I read Figure 3.1 but this not compile. the error is: $cc F3_10.c /tmp//ccnsuA79.o(.text+027): In function 'main': :undefined reference to 'err_quit' /tmp//ccnsuA79.o(.text+0x74): In fuction 'main': :undefined reference to 'err_sys' /tmp//ccnsuA79.o(.txt+0xdf): In functiion 'main': :undefined reference to 'err_dump' collect2: ld returned 1 exit status The source is: #include apue.h This is the clue - where do you think is apue.h? Take a look at the last few pages of the book, and you will see. -Amarendra
Re: [OT] C code
On Sun, May 25, 2008 at 10:41:38PM -0400, deoxy wrote: I dont know if this a cuestion for this list, but I think is it a valid cuestion... I reading a book recomended in http://www.openbsd.org/books.html The book is Advanced programmig in the unix environment. In this book I read Figure 3.1 but this not compile. the error is: $cc F3_10.c /tmp//ccnsuA79.o(.text+027): In function 'main': :undefined reference to 'err_quit' /tmp//ccnsuA79.o(.text+0x74): In fuction 'main': :undefined reference to 'err_sys' /tmp//ccnsuA79.o(.txt+0xdf): In functiion 'main': :undefined reference to 'err_dump' collect2: ld returned 1 exit status The source is: #include apue.h #include fcntl.h int main(int argc, char *argv[]) { int val; if (argc != 2) err_quit(usage: a.out descriptor#); if ((val = fcntl(atoi(argv[1]), F_GETFL, 0)) 0) err_sys(fcntl error for fd %d, atoi(argv[1])); switch (val O_ACCMODE) { case O_RDONLY: printf(read only); break; case O_WRONLY: printf(write only); break; case O_RDWR: printf(read write); break; default: err_dump(unknown access mode); } if (val O_APPEND) printf(, append); if (val O_NONBLOCK) printf(, nonblocking); #if defined(O_SYNC) if (val O_SYNC) printf(, synchronous writes); #endif putchar('\n'); exit(0); } The problem is that the author's custom error functions -- err_quit, err_sys, etc. -- have not been defined anywhere in your program (nor are they prototyped in apue.h, and unfortunately he isn't really clear about this fact). See Appendix B.2 for some example definitions... you'll probably want to put these in a separate C file for easy reuse. For example, suppose the contents of Figure B.3 in Appendix B.2 (Error functions that output to standard error) have been written to the file error.c, in the same directory as apue.h and a file fig03-10.c containing the source code from Figure 3.10. Then to compile program 3.10 successfully, you could do: $ cc fig03-10.c error.c -- Mark Shroyer http://markshroyer.com/contact/
Re: gnats
On Sun, May 25, 2008 at 11:12:39AM -0400, Nick Holland wrote: Unfortunately (for gnats), many ISPs block outbound port 25 traffic to anything other than their mail servers. Even if yours doesn't block port 25, I'm pretty sure the target machine uses greylisting, so you have to leave the machine you used sendbug on up long enough to clear the greylisting. /var/log/maillog will tell the story... IF you have your own mail server, I've had some luck killing sendmail on the local machine, then doing an ssh port forwarding of port 25 to your mail server. Something like this might work for you (as root, since you are messing with a priv. port) ssh -f -N -L 25:localhost:25 [EMAIL PROTECTED] (it might not, too. Something like that worked for me, but I didn't jot down exactly what I did, so that might not be it. If this DOES work for you, let me know so I can put it in my notes (i.e., the FAQ :) properly) Don't forget to kill that ssh session and restart sendmail to bring the system back up to proper operation when done! Clever... but a possibly simpler / more long-term solution is to put define(`SMART_HOST', `smtp.your.isp.net')dnl in /usr/share/sendmail/cf/openbsd-localhost.mc, rebuild the configuration with # m4 /usr/share/sendmail/m4/cf.m4 \ /usr/share/sendmail/cf/openbsd-localhost.mc \ /etc/mail/localhost.cf and then restart Sendmail with # pkill sendmail # /usr/sbin/sendmail -L sm-mta -C/etc/mail/localhost.cf \ -bd -q30m Next up, how to redirect to your ISP's mail server using PF ;) -- Mark Shroyer http://markshroyer.com/contact/
Re: [OT] C code
Hello. apue.h is OK I take this of http://safari.oreilly.com/0201433079/app02 and this is in my folder. The err_quit is in line 108 void err_quit(const char *, ...)i; err_dump and err_sys are similar. regards. Dmitri. On Mon, May 26, 2008 at 09:11:51AM +0530, Amarendra Godbole wrote: $cc F3_10.c /tmp//ccnsuA79.o(.text+027): In function 'main': :undefined reference to 'err_quit' /tmp//ccnsuA79.o(.text+0x74): In fuction 'main': :undefined reference to 'err_sys' /tmp//ccnsuA79.o(.txt+0xdf): In functiion 'main': :undefined reference to 'err_dump' collect2: ld returned 1 exit status The source is: #include apue.h This is the clue - where do you think is apue.h? Take a look at the last few pages of the book, and you will see. -Amarendra
Re: [OT] C code
On Sun, 25 May 2008, deoxy wrote: Hello. I dont know if this a cuestion for this list, but I think is it a valid cuestion... I reading a book recomended in http://www.openbsd.org/books.html The book is Advanced programmig in the unix environment. In this book I read Figure 3.1 but this not compile. the error is: $cc F3_10.c /tmp//ccnsuA79.o(.text+027): In function 'main': :undefined reference to 'err_quit' /tmp//ccnsuA79.o(.text+0x74): In fuction 'main': :undefined reference to 'err_sys' /tmp//ccnsuA79.o(.txt+0xdf): In functiion 'main': :undefined reference to 'err_dump' collect2: ld returned 1 exit status The source is: #include apue.h #include fcntl.h int main(int argc, char *argv[]) { int val; if (argc != 2) err_quit(usage: a.out descriptor#); if ((val = fcntl(atoi(argv[1]), F_GETFL, 0)) 0) err_sys(fcntl error for fd %d, atoi(argv[1])); You might be happier using the err(3) stuff from the standard library. See man err I would replace err_quit(stuff) with errx(1, stuff) err_sys(stuff) with warn(stuff) and so on, using err or errx to force the program to end and dump core, or warn or warnx to keep executing. Some (old) unix versions may not have err, errx, warn, warnx. Look in the back of the book and verify that the err/warn stuff is doing what you expect. Dave
Re: Problems trunk-ing tun interfaces
Bump -- Forwarded message -- From: Romar Morales [EMAIL PROTECTED] Date: Sun, May 18, 2008 at 3:46 AM Subject: Problems trunk-ing tun interfaces To: misc@openbsd.org I need help trunking tun interfaces. Actual goal - aggregate six ADSL connections from an office to a central network with gigE internet access for higher bandwidth to the office. Current state- four layer 2 tunnels that work individually, but which fail when part of a trunk virtual interface I've tried trunkproto of roundrobin, loadbalance and failover and none of them work. When not part of the trunk, the individual tun pass traffic properly. Is there some sysctl setting I'm not aware of that is required for trunking the tun interfaces to pass IP traffic across all the tun interfaces? -- Romar Morales
Re: [OT] C code
On Mon, 2008-05-26 at 00:11 -0400, deoxy wrote: Hello. apue.h is OK I take this of http://safari.oreilly.com/0201433079/app02 and this is in my folder. The err_quit is in line 108 void err_quit(const char *, ...)i; err_dump and err_sys are similar. regards. Dmitri. On Mon, May 26, 2008 at 09:11:51AM +0530, Amarendra Godbole wrote: $cc F3_10.c /tmp//ccnsuA79.o(.text+027): In function 'main': :undefined reference to 'err_quit' /tmp//ccnsuA79.o(.text+0x74): In fuction 'main': :undefined reference to 'err_sys' /tmp//ccnsuA79.o(.txt+0xdf): In functiion 'main': :undefined reference to 'err_dump' collect2: ld returned 1 exit status The source is: #include apue.h This is the clue - where do you think is apue.h? Take a look at the last few pages of the book, and you will see. -Amarendra It might be that you would prefer to start by learning more about C and your compiler first, before unix programming in C. Assuming that 'i;' at the end of the line isn't actually there, you are probably not passing an object module to the linker. Aside from letting the precompiler find apue.h, you also have to compile the code that implements those functions and link it with the object module compiled from your FE_10.c, or compile them together as someone else suggested. Kendall