Re: Upgrade procedure (6.4 -> 6.5)
Am 02.05.2019 um 09:52 schrieb Consus: > I've upgraded my systems from 6.4 to 6.5 without a glitch, but I see > that /etc/networks and some other files (like malloc.conf.5) are still > present, although there is no use for them in the new release. > > Is there a reason why these files are not listed in "FIles to remove"? > Is there a way to track them? It's not like something gonna break, but > old configuration files (and manual pages) lying around can make > someone's life harder during the debug session. Take a look at the sysutils/sysclean port. Regards Markus
Re: pppoe(4) and vlan(4)
Am 25.02.2019 um 16:30 schrieb Thomas Huber: > Hi misc, > > i got the opportuniy to have 4 ADSL links to my rural site. > Two links have already been there and OpenBSD -stable running a APU2 is > shaping the traffic between this two links. > > But now I struggle with setting up the 3rd (pppoe2) link. > As far as I know I´ve to go through a vlan(4) with vnetid 7 and this seems > to be valid information > because the pppoe debug-logs are more extensive than when trying to connect > without the vlan between em0 and pppoe2: > > # cat /var/log/messages > [...] > Feb 25 10:14:49 router /bsd: pppoe2 (8864) state=3, session=0xa3 output -> > 88:a2:5e:1e:52:88, len=17 > Feb 25 10:14:49 router /bsd: pppoe2: lcp input(req-sent): len=14 > 05-06-d3-66-5d-a2-01-04-05-d4-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00> > Feb 25 10:14:49 router /bsd: pppoe2: lcp req-sent->ack-rcvd > Feb 25 10:14:50 router /bsd: pppoe2: lcp TO(ack-rcvd) rst_counter = 10 > Feb 25 10:14:50 router /bsd: pppoe2: lcp ack-rcvd->req-sent > Feb 25 10:14:50 router /bsd: pppoe2: lcp output 05-06-d3-66-5d-a2-01-04-05-d4> > Feb 25 10:14:50 router /bsd: pppoe2 (8864) state=3, session=0xa3 output -> > 88:a2:5e:1e:52:88, len=22 > Feb 25 10:14:50 router /bsd: pppoe2: lcp input(req-sent): len=14 > 05-06-d3-66-5d-a2-01-04-05-d4-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00> > Feb 25 10:14:50 router /bsd: pppoe2: lcp req-sent->ack-rcvd > Feb 25 10:14:51 router /bsd: pppoe2: lcp TO(ack-rcvd) rst_counter = 10 > Feb 25 10:14:51 router /bsd: pppoe2: lcp ack-rcvd->req-sent > Feb 25 10:14:51 router /bsd: pppoe2: lcp output 05-06-d3-66-5d-a2-01-04-05-d4> > Feb 25 10:14:51 router /bsd: pppoe2 (8864) state=3, session=0xa3 output -> > 88:a2:5e:1e:52:88, len=22 > Feb 25 10:14:51 router /bsd: pppoe2: lcp input(req-sent): len=14 > 05-06-d3-66-5d-a2-01-04-05-d4-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00> > Feb 25 10:14:51 router /bsd: pppoe2: lcp req-sent->ack-rcvd > > But to be honest I don´t know what this means and where to look furhter. > The ADSL modem is able to sync and a ISP-provided router-modem is also able > to establish connection. > > # cat /etc/hostname.pppoe2 > > inet 0.0.0.0 255.255.255.255 NONE \ > pppoedev vlan0 authproto pap \ > authname 'xxx' authkey 'xxx' > dest 0.0.0.3 > inet6 eui64 > debug > up > !/sbin/route add default -ifp pppoe1 0.0.0.3 > !/sbin/route add -inet6 default -ifp pppoe1 fe80::%pppoe2 Why does it mention pppoe1 in the route add statements here? If I'm not mistaken these should be pppoe2. > > # cat /etc/hostname.vlan0 > > inet 0.0.0.3 255.255.255.255 NONE descr VODDSL vlan 7 vlandev em0 Why do you have 0.0.0.3 assigned to the vlan interface? My 6.4 router just has "vnetid 7 parent em0" + "up" in /etc/hostname.vlan7. > # cat /etc/hostname.em0 > > up > > Without understanding the internals of ADSL or PPPoE, I just copied this > configuration from the functional hostname.pppoe[0|1] > but this links work fine without the additional vlan(4). Guess this is > related to something ISP-thing called "BNG" > The reated ISP is Vodafone in Germany which is using the Telekom > infrastrcture just in case this is relevant. > > Anybody andy clue how to set this connection up correctly or where to look? > Thanks
Re: HPPA 720/60 and PS/2 Keyboard
On Mon, 21 May 2018, Otto Moerbeek wrote: > On Mon, May 21, 2018 at 12:29:13PM +0200, Markus Hennecke wrote: > > > I tried updating my HPPA box from 6.2 to 6.3, but when booting the release > > or -current bsd.rd kernel the keyboard repeats the last key pressed. The > > 6.2 release did not show this behaviour. Is there anyone out there running > > 6.3 or -current on hppa? > > > > Markus > > There was a diff from miod floating around to fix this: > > https://marc.info/?l=openbsd-tech=152536826316030=2 Thanks a lot. After installing via serial console and building a kernel over night I can confirm the patch fixed the problem. Markus
Re: HPPA 720/60 and PS/2 Keyboard
On Mon, 21 May 2018, Markus Hennecke wrote: > I tried updating my HPPA box from 6.2 to 6.3, but when booting the release > or -current bsd.rd kernel the keyboard repeats the last key pressed. The > 6.2 release did not show this behaviour. Is there anyone out there running > 6.3 or -current on hppa? Of course it is a 712/60, fingers were faster than the brain. Markus
HPPA 720/60 and PS/2 Keyboard
I tried updating my HPPA box from 6.2 to 6.3, but when booting the release or -current bsd.rd kernel the keyboard repeats the last key pressed. The 6.2 release did not show this behaviour. Is there anyone out there running 6.3 or -current on hppa? Markus
Re: stop syslogd from opening port 514 UDP
Am 16.03.2018 um 11:42 schrieb Torsten: > Hi! > > On my OpenBSD 6.2 syslogd is listening to port 514, even though it is > not started with "-r" (to receive remote syslog messages). It does not > actually seem to log anything if I send something to port 514 UDP, > however, I want the machine to be invisible when someone is probing for > open ports. I know I could use PF as a workaround, but can't I not > prevent syslogd from opening that port in the first place? The command line option is "-u" to receive remote syslog messages. If that option is not given and no logging rules exist to send to a remote host the socket is closed per default since 6.2. Perhaps you are logging to a remote host? The syslogd here on my 6.2 system has not opened port 514. Kind regards Markus
Re: OpenBSD 5.2 AutoFSCK at boot
Am 24.11.2016 um 14:31 schrieb Luescher Claude: I have couple of OpenBSD 5.2 vms where I could use automatic file system repair at start. In most other OS'es I have running virtualized (windows, linux) it's not a problem, they automatically repair filesystem inconsistencies and start up but not OpenBSD. Is the VM hypervisor a VMWare ESX and you got the paravirtualized SCSI controller set up? If that is the case, switch the controller to the lsilogic parallel and the file systems will be repaired during fsck. The problem seems to be that the first write on the paravirtualized controller does not end up on the virtual disk. This is the case for OpenBSD 6.0 and later, don't know about 5.2. VMWare Workstation wasn't affected AFAIR. Kind regards Markus
Re: Multiple web servers behind NAT
Am 10.10.2016 um 12:01 schrieb Radek: The second thing to do is enabling wesites' SSL/TLS certs. Each website has its own certificate on its server. I suppose that I have to configure man-in-the-middle "TLS inspecion" mode to enable TLS connection using these certs again. Am I right? You can't do that. TLS exchange is done before the host name is send in the request. The only thing you can do is to use one certificate for all hosts and terminate the TLS connection in relayd. Regards Markus
Re: PPPoE (5.9 still): https gets stuck
Am 13.09.2016 um 12:38 schrieb Markus Hennecke: Am 13.09.2016 um 11:51 schrieb Harald Dunkel: Hi folks, I am using an openbsd (5.9) box as gateway/firewall to the internet. ISP is Deutsche Telekom. In between is a Vigor 130 VDSL2 modem, configured to PPPoE passthrough. The PPPoE connection is initiated on the openbsd box. Problem: https via the tunnel gets stuck for some sites, e.g. https://telekom.de/ (please note the irony). Other sites work fine, e.g. https://kundencenter.telekom.de/. I tried a lot of clients: chrome, firefox, Safari, wget, etc. and all platforms I have at home. Other services (http, smtp, dns, ntp, vnc, ...) seem to work flawless. The problem came up with the migration from ADSL to VDSL this weekend. The gateway wasn't changed, but I wonder if there are some issues or pitfalls with PPPoE and fragmented packages or whatever, possibly breaking https negotiation? Every helpful comment is highly appreciated Harri I use the same VDSL modem with Deutsche Telekom and can reach https://telekom.de/ The only MTU related setting in pf.conf seems to be this: ext_if = pppoe0 match in on $ext_if all scrub (no-df max-mss 1440) It is an old soekris, which does not support gbit ethernet. I do the VLAN tagging on the OpenBSD router, I think I disabled the automatic tagging the modem supports. Regards, Markus Damn. Of course without this line it won't work: match out on $ext_if all scrub (max-mss 1440) Regards, Markus
Re: PPPoE (5.9 still): https gets stuck
Am 13.09.2016 um 11:51 schrieb Harald Dunkel: Hi folks, I am using an openbsd (5.9) box as gateway/firewall to the internet. ISP is Deutsche Telekom. In between is a Vigor 130 VDSL2 modem, configured to PPPoE passthrough. The PPPoE connection is initiated on the openbsd box. Problem: https via the tunnel gets stuck for some sites, e.g. https://telekom.de/ (please note the irony). Other sites work fine, e.g. https://kundencenter.telekom.de/. I tried a lot of clients: chrome, firefox, Safari, wget, etc. and all platforms I have at home. Other services (http, smtp, dns, ntp, vnc, ...) seem to work flawless. The problem came up with the migration from ADSL to VDSL this weekend. The gateway wasn't changed, but I wonder if there are some issues or pitfalls with PPPoE and fragmented packages or whatever, possibly breaking https negotiation? Every helpful comment is highly appreciated Harri I use the same VDSL modem with Deutsche Telekom and can reach https://telekom.de/ The only MTU related setting in pf.conf seems to be this: ext_if = pppoe0 match in on $ext_if all scrub (no-df max-mss 1440) It is an old soekris, which does not support gbit ethernet. I do the VLAN tagging on the OpenBSD router, I think I disabled the automatic tagging the modem supports. Regards, Markus
Re: Gogs PostgreSQL
Am 25.03.2016 um 02:45 schrieb Predrag Punosevac: Hi Misc, Is anybody running Gogs https://gogs.io/ in production on OpenBSD using PostgreSQL as a backend. Any chance to share the installation/configuration notes with me? Predrag Just compile it using the documentation. You don't have to set $GOROOT. OpenBSD has the go files in the path already under /usr/local/bin I mimiced the binary tar balls and copied all the files in there to my installation location. The directories public, scripts and templates and the README and LICENSE files plus the gogs binary. You want to setup up a git user account if that is not already available. Set it up with a valid shell so that only public key authentication is allowed and let gogs handle all the SSH keys. In that way no user will get a login shell when connecting via SSH. Setup a user and database in postgresql, I did that with user and database name gogs. Make the gogs user the owner of the gogs database and set a password. Then on the installation page enter the username, password and database name and you should be set. Gogs will create all tables in the database during install. Gogs listens on 0.0.0.0 by default, so I added the entry HTTP_ADDR= 127.0.0.1 in the server section of the app.ini file and setup nginx to be a reverse proxy -> location /gogs/ { proxy_pass http://127.0.0.1:3000/; }, remember to adjust the ROOT_URL entry to match the nginx configuration. I wrote a litte rc.d script to start it using nohup, it has to be run as the git user account: #! /bin/sh user="git" daemon="/home/${user}/gogs/gogs" daemon_flags="web" . /etc/rc.d/rc.subr rc_reload=NO rc_check() { pkill -0 -f "${daemon} ${daemon_flags}" } rc_stop() { pkill -f "${daemon} ${daemon_flags}" } rc_start() { nohup su -l -c daemon ${user} -c "${daemon} ${daemon_flags}" >/dev/null 2>&1 & } rc_cmd $1 HTH Markus
Re: ksh, csh same vulnerability as bash
Am 29.09.2014 12:53, schrieb Bogdan Andu: the bug in bash shell discovered last day also seems to be present in ksh and csh. ksh is known to be the default shell in OpenBSD. the following piece of shell code executes succesffuly on both ksh and csh (besides bash of course): ksh: $ env VAR='() { :;}; echo Bash is vulnerable!' bash -c echo Bash Test Bash is vulnerable! Bash Test csh: % env VAR='() { :;}; echo Bash is vulnerable!' bash -c echo Bash Test Bash is vulnerable! Bash Test bash: $ env VAR='() { :;}; echo Bash is vulnerable!' bash -c echo Bash Test Bash is vulnerable! Bash Test all platforms seem to be affected 5.2, 5.3, 5.4, 5.5 - amd64 I wonder what it is to be done to circumvent any potential security risc for people who call shell script code from cgi scripts for example. Not sure if you are stupid or just a troll... What do you expect when you execute a vulnerable bash from another shell? Do you understand what you are doing?
Re: how to find dependencies when building a new kernel
Am 29.11.2011 14:03, schrieb Torsten Valentin: welcome to the ignore list of many developers. You aren't even following directions on how to hurt yourself properly without wasting people's time. I always found that people waste my time when they write explanations and tons of bla bla that does not have to do with the issue itself, instead of just writing about what the problem really is. Because of the permanent repeating of USE THE GENERIC KERNEL instead of answering any questions that have to do with my problem: Total available disk space on the target system: 32MB The GENERIC Kernel of OpenBSD 5.0 is8MB. I really do a lot to save every bit I can. I delete all programs that are not constantly needed from disk and compress seldom used programs and have wrappers that unzip these compressed in case they are needed. And so on. I don't want to bore you with details, but just take this: I need it and ... ... a gzipped GENERIC kernel is not 8MB. HTH, Markus
Re: OBSD 4.9 ral and ath not working in HOSTAP Mode
Am 15.06.2011 19:46, schrieb Mario Kothe: Hello, I can't get a Ralink- or Atheros- MiniPCI Card to work in a Soekirs 5501 or ALIX System. Can't say anything about the Atheros card, but for the RaLink card you will need the following source files updated: sys/dev/ic/rt2661.c rev. 1.65 sys/dev/ic/rt2661var.h rev. 1.14 The fix for the card went in after 4.9 was released, so grab the files with the right revision from CVS, it worked for me. Kind regards, Markus
Re: Mounting NTFS, Invalid argument
Am 07.03.2011 07:57, schrieb Otto Moerbeek: NTFS support is not enabled in the GENERIC kernel. CVS says that it is enabled. Kind regards, Markus
Re: Strange network problem. Debugging hints needed.
Am 21.01.2011 10:42, schrieb Stuart Henderson: On 2011-01-21, Markus Henneckemarkus-henne...@markus-hennecke.de wrote: There was a well known bug that would cause vr devices to stop receiving and sending traffic if a short cable was used to connect to the switch you're thinking of sis(4) for the short cable problem. there was a problem with VT6105M with vr(4) fixed 2009/04/28 where some link-state changes caused the nic to wedge. Ah, thanks for that information. I meant the latter but did not have all the facts available (I think the first time this got meantioned on the list was in 2007 in the thread vr driver trouble on Soekris 5501). there was also a problem with the MCLGETI code (added on 2009/06/18) where high packet rates (or possibly a busy machine) caused the nic to wedge. a fix for this was committed recently (2011/01/13). Looks like I am seeing this on my box here from time to time. Thanks for the information. Kind regards, Markus
Re: Strange network problem. Debugging hints needed.
Am 21.01.2011 00:38, schrieb Andre Keller: I have a strange problem with network connectivity on a device of mine. The setup is carp on vlan on vr(4). The problem is that the link runs for 10minutes, 10hours or 10days and suddenly it stops working. Doing a ifconfig vr0 down ; ifconfig vr0 up solves the problem temporarly but as you can imagine I'd like to have a more permanent solution. The problem is there are no obvious indications. The port on the switch (C 2960) stays up (and it is not errdisabled), there are no errors. Configuring the interface 100 full or autoselect (on both switch and device) does not make a difference. The error counters on the switch as well as netstat -i do not show any errors. I setup the same configuration (carp on vlan on physical interface) using em(4) and did not run into the problem yet (3 weeks up). So I guess I could have something to do with vr(4). The problem appeared first after updateing 4.8 to 20101222 snapshot, and is still present with snapshot from this week. But prior 20101222 snapshot there were no carp and vlan interfaces, just an ip on the physical interface. So I don't know if the problem is my configuration or something that has changed in the code... There was a well known bug that would cause vr devices to stop receiving and sending traffic if a short cable was used to connect to the switch or other device (like a DSL modem). I really don't know if this was fixed at some time, but I think I still saw this bug on my router running 4.8-stable (a soekris 5501). I dealt with it monitoring the pppoe0 interface and doing the ifconfig up / down of the vr interface used by pppoe0 via script as soon as the pppoe connection is lost. As I worked around the problem I can't offer you a solution. Perhaps this information gives a hint to someone who can solve this. Kind regards Markus
Re: Version numbering
Am 14.01.2011 09:25, schrieb Gregory Edigarov: Just wondering what is going to be after 4.9? 4.10 or 5.0? Every 5 years the same question? I bet I'll have a dij` vu in 5 years... Markus
Re: Version numbering
On Fri, 14 Jan 2011, Markus Hennecke wrote: Am 14.01.2011 09:25, schrieb Gregory Edigarov: Just Awondering what is going to be after 4.9? 4.10 or 5.0? Every 5 years the same question? I bet I'll have a dij` vu in 5 years... Don't post diacritic characters to the list or don't post them with thunderbird... Deja vu was meant of course. Whatever. Markus
Re: 4.8 breaks ral (hostap) for me too
On 12/15/10 18:31, Ted Unangst wrote: On Wed, Dec 15, 2010 at 11:23 AM, Snoopsn...@email.it wrote: Already recompiled the kernel and the whole userland approximately three weeks ago on the patch/stable branch. It didn't fix the issue. No further kernel patches have been released since then (the last is 004: RELIABILITY FIX: November 17, 2010). :( I hope a solution would come up soon, I really like my OpenBSD AP. The fastest way to get help is to help yourself. Starting with cvs diff -u -rOPENBSD_4_7 -rOPENBSD_4_8 rt* wouldn't be a bad way to go about that. For me this fixed the issue: cvs up -D 2010/08/01 sys/dev/ic/rt2661* sys/dev/pci/if_ral_pci.c The commit breaking it was dated 2010/08/04, just in case someone wants to investigate. But since it is working in current I don't see much sense doing that. HTH Markus
Re: delete user in group script
On Tue, 14 Dec 2010, OpenBSD Geek wrote: Hi, After posted many requests on how to remove user from a group, i choosed to build my own script. And it works very fine. if [ $1 ] [ $2 ]; then cp /etc/group /tmp cat /tmp/group | grep ^$2 /tmp/onlygroup cat /tmp/group | grep -v ^$2 /tmp/nogroup cat /tmp/onlygroup | sed s/$1//g | \ sed s/ /,/g | sed s/,,/,/g | sed s/,$//g /tmp/newgroup cat /tmp/newgroup /tmp/nogroup cat /dev/null /tmp/group cat /tmp/nogroup /tmp/group cp /tmp/group /etc chmod 644 /etc/group chown root /etc/group chgrp wheel /etc/group rm -f /tmp/* echo Success. else echo Remove user from a group echo Use : sh duig user group fi You really deserve the Useless Use of Cat Award. And the race condition award, and the nuke the wrong file award, and... Kind regards, Markus
Re: delete user in group script
On Tue, 14 Dec 2010, OpenBSD Geek wrote: I made as I could, since it works, where is the probleme...? ;-) Tomas already pointed out where this will blow up for sure. Hint: Take a look at mktemp(1) and install(1) to weed out the worst issues. Kind regards, Markus
Re: Hosting at Strato.de: anybody using PowerServer L with Opteron 1212 HE?
Am 10.06.2010 14:10, schrieb Alexander Farber: On Wed, Jun 9, 2010 at 10:07 PM, Markus Hennecke markus-henne...@markus-hennecke.de wrote: I still got the old M server with the athlon and I have to disable ACPI to make it run correctly. Markus, how do you disable ACPI, with some Linux command? I am running OpenBSD on that machine. It becomes very slow and spends most of its time in interrupts, unless ACPI is disabled in the kernel. Kind regards, Markus
Re: Hosting at Strato.de: anybody using PowerServer L with Opteron 1212 HE?
Am 10.06.2010 14:08, schrieb Joerg Zinke: Hi, On Wed, 09 Jun 2010 22:07:08 +0200 Markus Henneckemarkus-henne...@markus-hennecke.de wrote: Am 09.06.2010 20:35, schrieb umaxx: I have a PowerServer M with Opteron 1210 which runs fine with 4.7-stable and native(!) IPv6. Does the PowerServer M still got the serial console option? Yes, I used serial console for installation and it is still listed in feature list of the server offer too. A guy working at Strato told me that it was left out for marketing reasons to make the virtual servers look better. He seems to be wrong. I think I did not formulate the sentence right, he said that they left it out of the description because of marketing reasons. His server got a serial console too, but it is not on the page with the server features from where you can order a server. Ok, marketing and reason in one sentence does not make any sense. I still got the old M server with the athlon and I have to disable ACPI to make it run correctly. I did not need to disable ACPI. Which mainboard and CPU does your server got? Mine is still an Athlon 3200+ with a mainboard that uses nvidia crap. Yes, I have been using this server a for some releases of OpenBSD :) So I guess you got a newer model. Kind regards, Markus
Re: Hosting at Strato.de: anybody using PowerServer L with Opteron 1212 HE?
Am 09.06.2010 20:35, schrieb umaxx: I have a PowerServer M with Opteron 1210 which runs fine with 4.7-stable and native(!) IPv6. Does the PowerServer M still got the serial console option? A guy working at Strato told me that it was left out for marketing reasons to make the virtual servers look better. Ok, marketing and reason in one sentence does not make any sense. I still got the old M server with the athlon and I have to disable ACPI to make it run correctly. Kind regards, Markus
Re: mouse cursor keeps jumping up and left in latest snapshot
Am 03.06.2010 23:52, schrieb Ted Unangst: On Thu, Jun 3, 2010 at 5:21 PM, Christopher Zimmermann madro...@zakweb.de wrote: Are you sure this is a problem in kernel? Christopher Linn and I only experience this problem with gtk2 apps. How could the kernel know wether the current focus is on a gtk2 window? Because the kernel is responsible for saving and restoring FPU state, which is pretty high on the list of suspected trouble makers. Which would explain why the problem goes away if mouse acceleration is disabled via xset. Kind regards, Markus
Re: Thunderbird 3 still wont send even after new profile
Am 15.04.2010 20:53, schrieb Chris Bennett: On 04/15/10 12:00, ch...@bennettconstruction.biz wrote: I am going to continue this on ports, my mistake earlier I created a new profile, but I still can't get thunderbird 3 to accept my self-signed certificate for sendmail TLS. It asks for me to confirm that the certificate should be used as a permanent exception (just as previous thunderbird did at first setup or after making new certificates on my server. Sending of message failed. An error occurred sending mail: Unable to authenticate to SMTP server bennettconstruction.us. It does not support authentication (SMTP-AUTH) but you have chosen to use authentication. Uncheck 'Use name and password' for that server or contact your service provider. I am unwilling to use an email system without encrypting passwords since these are valid usernames on the server. I have no problem receiving mail This is my second try at sending this, the first try caused thunderbird to crash with an abort trap from some missing spelling module. Thunderbird 2 needed a username and password to send SMTP with TLS Thunderbird 3 refuses to have a username and password to send SMTP with TLS So now I can send Which one is broken? Thunderbird 2? or Thunderbird 3? Both? I would suspect your smtp server (and Thunderbird 2). Here is why: It is known that Thunderbird 3 will no longer send mail if you entered an username and password and the server does not support smtp-auth. Tunderbird 2 does not care and tries to send anyway, and that is exactly the behaviour you described here. HTH, Markus Hennecke
Re: crontab last day of the month
Am 06.04.2010 11:15, schrieb frantisek holop: hi there, what happens if i specify a cronjob like this? 23 59 31 * * $HOME/bin/whatever does cron handle months that dont have 31 days? i am looking for an alternative @monthly, not 0 0 1 * * but the last minutes of the last day of the month. Write a wrapper script which will only run if invoked on the last day of month and then use somehting like 23 59 28-31 * * run_on_last_day_of_month.sh $HOME/bin/whatever Kind regards, Markus Hennecke
Re: make OpenBSD beep at start
jean-francois wrote: Can someone give a hin on how to make the speaker to beep for example with a command or a C program ? man speaker(4), if you are on i386 or amd64. Kind regards, Markus
Re: dvd drives causes boot to hang
Bryan wrote: I pulled down the latest CVS this morning (around 1800 UTC on 4 Jan 2010) and built the kernel according to the FAQ, nothing special included, just GENERIC.MP, and I've made no hardware changes to the system. When I boot using a 1 Jan kernel, there are no issues. When I reboot after building the new kernel, the system boots up until you get to scsibus0 at atapiscsi0: 2 targets, and then hangs. no crash, just stops booting. I've managed to track it down to my DVD drive. If I remove the drive from the laptop and boot with the new kernel, there are no issues. Here is what the 1 Jan kernel says the DVD is: cd0 at scsibus0 targ 0 lun 0: TSSTcorp, DVD+-RW TS-L632H, D600 ATAPI 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 I cannot see a difference in the dmesg from 1 Jan and 4 Jan up to the point where 4 Jan hangs. Even setting verbose at the boot prompt shows nothing. As this laptop does not have a serial port, I can only give a dmesg from the 1Jan kernel. If you require more information, please reply. So I am not the only one... The breakage happens with the commits that introduce scsi_xs_sync (rev. 1.150 from src/sys/scsi/scsi_base.c etc.). If I check out the files in the scsi directory from before that commit the kernel boots fine, it hangs with the version mentioned above. Kind regards, Markus
Re: [PATCH] Fix interrupt handling in ral(4) for RT2661 under load
Ian Darwin schrieb: On Nov 23 Roland Dreir sent a patch for interrupt handling, but it doesn't apply on -current since the file rt2661.c changed slightly a few weeks earlier (1.51, date: 2009/11/01). This patch just changes Roland's patch to update against rt2661.c r1.51 from the OpenBSD repository instead of Roland's patch which is against his private GIT repo. I've been running with this for just over a day, including some time copying kernels and snaps both ways non-stop (after removing the ifconfig down/up from crontab). It has locked up only twice in 24 hrs, a definite improvement. I am running the old patch applied to 4.6-stable for a few weeks on my soekris with a mini-PCI ral card and SWMBO copying large files over wifi. No new problems so far, the connection seems to be more stable than before. Kind regards, Markus
Re: Building Kernels
Fred Crowson schrieb: Hi Misc, I'm building kernels to try a fix an issue with my Libretto [1], but I'm getting the following error: make: don't know how to make vers.o. Stop in /usr/src/sys/arch/i386/compile/lib46noit. This is as a result of the 19 Oct 09 change to Makefile.i386 [2] If I change vers.o back to newvers in the Makefile it works - what I am missing to get it to work without editing the Makefile.i386? You need an up to date config(8). Kind regards, Markus
Re: home, end, delete, pageup, pagedown with ksh
Nicolas Letellier wrote: Le 13/10/2009 09:57, Nicholas Marriott a icrit : For me, Home and End generate ^[[H and ^[[F (you can check they do for you as well by running cat then pressing the keys, if they don't let me know, I might have fiddled with some setting), so you should be able to bind them with: bind '^XH'=beginning-of-line bind '^XF'=end-of-line For me, Home, End, PgUp, PgDown, Insert generate a ^[[7~ ^[[6~ ^[[5~ ^[[4~ (and it's a basic usb keyboard :-)) ^XH and ^XF does not work in my system. It is possible to (use a hack to) bind ONE key with a trailing ~ by binding the start to prefix-2 and then binding ~ itself to the command, I do this for the Del key. That's the hack I found, and as you say, it works only for one key. However, all my keys generate a four character sequence with a tilde. I tried with another TERM (vt220), the problem is the same. I think ksh is too complicate, and I have to get back to csh or tcsh (or ignore these bindkeys on ksh :-)). With them, my bindkeys work. I have the lines XTerm*loginShell: true XTerm*eightBitInput: true in my .Xdefaults file together with set +o emacs-usemeta in my .profile. Those bind statements are in my .kshrc, set differently for each terminal: if [ -o interactive ]; then case $TERM in vt220) bind '^[[3'=prefix-2# DEL bind '^[[3~'=delete-char-forward# DEL ;; wsvt25) bind '^[[3'=prefix-2# DEL bind '^[[3~'=delete-char-forward# DEL ;; xterm*) export TERM=xterm-color # force color bind '^XH'=beginning-of-line# Pos1 bind '^XF'=end-of-line # End ;; nxterm) bind '^XH'=beginning-of-line# Pos1 bind '^XF'=end-of-line # End ;; *) ;; esac fi HTH, Markus
Re: Can ssd of ide interface be recognized?
obvvbooo obvvbooo wrote: I'm planning to use ssd of ide interface, do I need to concern about the driver, or OpenBSD will just use the IDE driver? There is no driver for the drive, the driver is for the controller. So it only depends on which controller you attach the SSD. Kind regards, Markus
Re: ftp limits bandwidth
Jesus Sanchez schrieb: Jean-Frangois SIMON escribis: Hi all, It looks like the max bandwidth of ftp is somehow 350 Kb/s. Is this normaland if so can it be increased ? ?? it must be your bandwidth limit, there's nothing about a 350 kb/s limit anywhere. please, read carefulle the ftp manpage. As there are some information missing, I look into my crystal ball and see that Jean-Frangois is downloading with help of the ftp program via DSL which is either 6Mbit or faster. Due to the latency of the DSL line the standard settings for net.inet.tcp.recvspace (see sysctl) are not correct for this kind of setup. He should try to increase it, for me 65536 works on 6Mbit DSL. Please tell me in case this is all wrong so that I can order a new crystal ball! Enough guessing, HTH Markus
Re: question about spamd behaviour
Robson Caetano wrote: I am running OpenBSD 4.4 and spamd on a bridge. Every now and then, I look at the logs and see that spamd-setup has some timed out attempts to get blacklists, like: Getting http://www.openbsd.org/spamd/traplist.gz ftp: connect: Connection timed out Spamd-setup runs on hourly basis. Thats the problem. There are to many clients asking the server for the blacklists at the same time. I changed the time on my servers and the fetch problems went away. Kind regards Markus
Re: question about spamd behaviour
Matthew Weigel schrieb: On Thu, 21 May 2009 12:54:30 + (UTC), Stuart Henderson s...@spacehopper.org wrote: On 2009-05-21, Robson Caetano inet1...@myself.com wrote: The problem is that changing the time of the hour or of the day you fetch the blacklist will avoid concurrency but is not fault proof. It isn't fault proof, but you should do it anyway. Just to be clear... when spamd-setup is run in /etc/rc, with the -D flag, it doesn't actually stick around, right? It just does its job in the background so that grabbing updated black/whitelists can't hang the machine. And then the sample spamd-setup line in crontab runs it every hour, if it's a good idea for everyone to change it wouldn't it be a good idea to give an example that only runs e.g. once a day? The main problem is that too many spamd-setups are running at the same time. So doing this only once a day would only shift the problem. My suggestion would be something like this patch to the default crontab (this one is against 4.5-stable): Index: crontab === RCS file: /cvs/src/etc/crontab,v retrieving revision 1.15 diff -r1.15 crontab 23c23 #0* * * * /usr/libexec/spamd-setup --- #0* * * * sleep $((RANDOM % 120)); /usr/libexec/spamd-setup This should take the load from the server providing the blacklist. Kind regards, Markus
Re: Out of memory during cvs checkout or update on xenocara
TomC!E! BodEC!r schrieb: Hi all, is it normal that I have U xenocara/font/misc-misc/12x13ja.bdf cvs [server aborted]: out of memory; can not reallocate 5242880 bytes $ during checkout or update of xenocara -current source? Because I have 4GB of memory so this is somewhat funny message :-) The server is out of memory, not the client. You tried to checkout xenocara from a cvs server running on amd64 I presume. This is a known bug. Kind regards, Markus
Re: soekris 5501, ral(4) and 4.5-current
On Tue, 28 Apr 2009, Tom wrote: I took my RT2860 card (which likes to lock up the Soekris 5501 fairly quickly), stuck it in an Openbsd 4.5-current (April 27 snap) and it performed properly and didn't lock up. Mind you, the machine is amd64 and quite well powered. I transferred a lot of files with scp, got about 1.2 MB/s on a single transfer which isn't that bad considering there's about 4-5 access points around or in the building. The caveat on the ral(4) man page: Some PCI ral adapters seem to strictly require a system supporting PCI 2.2 or greater and will likely not work in systems based on older revi- sions of the PCI specification. Check the board's PCI version before purchasing the card. Does the Soekris net5501-70 support PCI 2.2 or greater? (I couldn't find anything in the specs or docs of it.) Is this a PCI or a Mini PCI card? It should not matter, as Mini PCI is PCI 2.2. I don't see more than one PCI bus in my soekris dmesg, I would assume that the normal PCI connector is PCI 2.2 as well. Kind regards, Markus
Re: soekris 5501, ral(4) and 4.5-current
FRLinux wrote: On Sat, Apr 25, 2009 at 11:17 PM, Jochem Kossen jochem.kos...@gmail.com wrote: Interesting, I've got exactly the same problem with an rt2860. I thought it was just bad hardware (suspecting the rt2860), or temperature issues, and pulled out the card. The machine's been rock-solid since (d'oh). For me eworks, snapshot from 28/02/2009, rock stable (ral card running as AP with WPA-PSK): ral0 at pci0 dev 14 function 0 Ralink RT2561S rev 0x00: irq 11, address 00:12:0e:61:4a:70 ral0: MAC/BBP RT2561C, RF RT5225 Here it works too with 4.5, looks like a similar card. Only issue is that the card won't work in 11g mode (and never did with the previous releases): ral0 at pci0 dev 17 function 0 Ralink RT2561S rev 0x00: irq 15, address 00:1d:7d:46:87:1b ral0: MAC/BBP RT2561C, RF RT2527 Kind regards, Markus
Re: Low power OpenBSD machine
Aaron Stellman schrieb: On Fri, Apr 17, 2009 at 07:54:11AM +0200, Markus Hennecke wrote: Generalization is always false. I killed a 1GB SanDisk CF Card because of excessive logging of OpenVPN And what makes you so sure that this was exact cause? Another generalization. The inode holding the log files metadata was no longer writeable. What else would cause that? Kind regards, Markus
Re: Low power OpenBSD machine
Tony Abernethy schrieb: I killed a 1GB SanDisk CF Card because of excessive logging of OpenVPN Connections from WLAN Clients which unfortunately had power saving enabled and dropped the connection every few minutes. Took me around 2 or 3 weeks, I just forgot to reduce the log level. Perhaps those stress tests are not stressing enough? That Card was a little bit older, but seldom used, so there is a good chance that that scenario no longer applies. Many writes, all on the same spot, like directory entry? Right. Kind regards, Markus
Re: Low power OpenBSD machine
Aaron Stellman schrieb: On Fri, Apr 17, 2009 at 08:19:11AM +0200, Markus Hennecke wrote: Aaron Stellman schrieb: On Fri, Apr 17, 2009 at 07:54:11AM +0200, Markus Hennecke wrote: Generalization is always false. I killed a 1GB SanDisk CF Card because of excessive logging of OpenVPN And what makes you so sure that this was exact cause? Another generalization. The inode holding the log files metadata was no longer writeable. What else would cause that? I don't know what the cause is, and there is no point speculating. So you are saying that there is no relation in writing many times to one inode and the block containing the inode no longer writeable? This seems obvious to me because flash memory is involved. Perhaps you can give a better explaination? what matters is that you made a conclusion based on sample of grand total of 1 case -- that's a pretty bad generalization. So what? Marco made a statement that he has seen no flash memory fail because of writing to it. I have seen it fail once. So the general statement flash memory does not fail because of writing can't be true from my expirience. Thats why I wrote that generalizations are always false. Do I have to add smileys to that sentence? Then you instantiate your previous generalization and accuse others of not stress testing enough. Oh, come on. Pointing out that there may be some use case of flash memory (writing to one block over and over again) that makes it fail is an accusation? Are you serious? Kind regards, Markus
Re: Low power OpenBSD machine
Henning Brauer wrote: * Markus Hennecke markus-henne...@markus-hennecke.de [2009-04-17 08:06]: Marco Peereboom schrieb: I work with people that run io tools against flash parts. I still have to see it fail too. Your puny little firewall will never write more to it than a month long stress test. This write fatigue argument is very silly. Generalization is always false. I killed a 1GB SanDisk CF Card because of excessive logging of OpenVPN Connections from WLAN Clients which unfortunately had power saving enabled and dropped the connection every few minutes. Took me around 2 or 3 weeks, I just forgot to reduce the log level. Perhaps those stress tests are not stressing enough? That Card was a little bit older, but seldom used, so there is a good chance that that scenario no longer applies. and I bet it didn't die because of the excessive writes but something else. And until you show me proof that all reserve cells were mapped in and in use I cannot be convinced of the opposite. Tell me how I can show this. I got the card in a drawer around. Kind regards, Markus
Re: increase virtual memory for a user
Alexander Bubnov wrote: Hello! I have compiled sources with gcc. That gcc was build as Linux binary, so I have used linux emulation. During compilation I have got an error: virtual memory exhausted: Cannot allocate memory Surfing the Internet tell me that root cause is a call to mmap using MAP_ANONYMOUS returned MAP_FAILED with errno set to ENOMEM, from the man page of mmap can be seen that can happen when the process's has reached the maximum number of mappings. So, I need to increase virtual memory for the user under which compilation is run. But, I cannot do it with limit, tcsh command: ~ limit datasize 1048576 limit: datasize: Can't set limit (Operation not permitted) So, a question how can I do it? Take a look at login.conf(5). Kind regards, Markus
Re: screen(1) on boot
Nick Guenther wrote: Yeah, it's there, that's why I said I don't have to bother with sudo -u to switch from root to my user. I still want to know what's killing screen. With that I can't help you either, but I run it with the following syntax successfully from rc.local: su -l $USER -c '/usr/local/bin/screen -l -d -m /usr/local/bin/rtorrent' Note that the -c already is parsed as the shell argument. Took me some time to figure it out, the crontab @reboot entry is much cleaner and less error prone. Kind regards, Markus
Re: graphic card support
On Mon, 23 Mar 2009, Aaron Stellman wrote: On Sun, Mar 22, 2009 at 08:52:43AM +0100, Matthieu Herrb wrote: DRI/DRM on OpenBSD works on recent intel chips (i855 and up) and on older ATI chips (r200/r300). Hello, I'm looking to get a X600 PCI-E card, which seems to be based on RV380 chipset, which is supposedly almost identical to other R3xx series, but use PCI-e instead. Do you have any idea whether DRI/DRM works on these? I've got a X1550 installed in one of my machines. Works, but I have to disable the IRQ assignment to the card. If I do not do this it will interfere with the NIC using the same IRQ. OpenGL is only version 1.3, I don't know if there is a difference in the X600 driver. Kind regards Markus
Re: openbsd in virtualization
On Wed, 18 Mar 2009, Markus Hennecke wrote: Laurens Vets wrote: Markus Hennecke wrote: On Wed, 18 Mar 2009, Laurens Vets wrote: Laurens Vets wrote: Doesn't work for me. Vmware-guestd doesn't want to run and the message Abort trap is printed... Btw, this is on OpenBSD 4.4 i386 and VMware Server 2.0 This works no longer with VMWare Server 2.0. With 1.0.8 you were fine with that method. Any specific reason why? Did they change the FreeBSD binary too much or...? I think that the vmware tools were statically linked in the previous versions, now they are dynamically linked and I was missing most of the libs. But I will check that tomorrow when I'm back at work. So here is the information, it is indeed dynamically linked in the server 2.0 version: vmware tools server 2.0: $ pwd /home/markus/vmware-tools-distrib/lib/sbin32 $ ls -la total 1228 drwxr-xr-x 2 markus users 512 Sep 11 2008 . drwxr-xr-x 21 markus users 512 Sep 11 2008 .. -r-xr-xr-x 1 markus users 42900 Sep 11 2008 vmware-checkvm -r-xr-xr-x 1 markus users 505384 Sep 11 2008 vmware-guestd -r-xr-xr-x 1 markus users4862 Sep 11 2008 vmware-guestd-wrapper -r-xr-xr-x 1 markus users 49412 Sep 11 2008 vmware-rpctool $ file vmware-guestd vmware-guestd: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), stripped - vmware tools server 1.0.8; $ ls -la /emul/freebsd/sbin/ total 584 drwxr-xr-x 2 root wheel 512 Sep 2 2008 . drwxr-xr-x 3 root wheel 512 Dec 17 2007 .. -r-xr-xr-x 1 root wheel 270236 Sep 2 2008 vmware-guestd $ file vmware-guestd vmware-guestd: ELF 32-bit LSB executable, Intel 80386, version 1, statically linked, stripped Kind regards, Markus
Re: openbsd in virtualization
Guido Tschakert wrote: the question is: do you use the vmware-tools from server 2.0 and if you do so, how did you manage it? No, we are running server 1.0.8 for our OpenBSD vmware installations. We have some laptops with our Windows client software that needs fast access to a database on an OpenBSD server. All setup for evaluation of the whole packet. So we need the ability to gracefully shutdown the vm if the laptop is powered down. The vm must start when the laptop is started. It is a setup for users with low skills on computers (medical personel mostly), so the ability to start and shut down a vm is not something I can expect. OpenBSD 4.4 or newer will run happily with the vmware server 2.0, but no automatic shutdown is a real show stopper. Kind regards Markus
Re: openbsd in virtualization
On Wed, 18 Mar 2009, Laurens Vets wrote: Laurens Vets wrote: Alexandre Verriere wrote: This can be achieved with FreeBSD compt turned on this way: halt the obsd guest then set his type to freebsd and back up install the vmware tools: mount /dev/cd0c /mnt tar -xzf /mnt/vmware-freebsd-tools.tar.gz -C /tmp mkdir -p /emul/freebsd/sbin install -m 555 -o root -g wheel /tmp/vmware-tools-distrib/lib/sbin32/vmware-guestd /emul/freebsd/sbin cp -r /tmp/vmware-tools-distrib/etc /etc/vmware-tools then tune your sysctl.conf kern.emul.freebsd=1 Add this one to your rc.local: if [ -x /emul/freebsd/sbin/vmware-guestd ]; then echo -n ' vmware-tools' /emul/freebsd/sbin/vmware-guestd --background /var/run/vmware-guestd.pid --halt-command /sbin/shutdown -p -h now fi Now you can use vmware scripts to automate power management of your vm. Hope this helps. Doesn't work for me. Vmware-guestd doesn't want to run and the message Abort trap is printed... Btw, this is on OpenBSD 4.4 i386 and VMware Server 2.0 This works no longer with VMWare Server 2.0. With 1.0.8 you were fine with that method. Kind regards, Markus
Re: openbsd in virtualization
Laurens Vets wrote: Markus Hennecke wrote: On Wed, 18 Mar 2009, Laurens Vets wrote: Laurens Vets wrote: Doesn't work for me. Vmware-guestd doesn't want to run and the message Abort trap is printed... Btw, this is on OpenBSD 4.4 i386 and VMware Server 2.0 This works no longer with VMWare Server 2.0. With 1.0.8 you were fine with that method. Any specific reason why? Did they change the FreeBSD binary too much or...? I think that the vmware tools were statically linked in the previous versions, now they are dynamically linked and I was missing most of the libs. But I will check that tomorrow when I'm back at work. Kind regards, Markus
Re: fetch package dependencies
On Mon, 2 Feb 2009, BadMagic wrote: On Sun, Feb 01, 2009 at 02:01:03PM +0100, Dorian B?ttner wrote: is there an easy way to fetch a package along with it's recursive dependencies? Scenario is: eee904ha does not have network access at all right now. In order to proceed installing useful things, let's say firefox, I'd like to suck packages onto a usb stick and installl from there. I thought I could go to the soekris box, which unfortunately isn't that -current, and do something like pkg_add -n mozilla -firefox, but the output is totally garbled with libc mismatches and things like that. Set the PKG_PATH env variable. Then, if a particular package can't be found, the directories in the PKG_PATH are searched. That way, you can stick the ftp server in there and if the package isn't installed already or in a local dir, it'll fetch it from the ftp site. You can stick it in your ~/.bashrc, ~/.cshrc whatever. It's colon delimited and each dir/path needs to be terminated with a '/' like: export PKG_PATH=./:/packages/:ftp://ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/ Hope this helps. No, this won't help. Dorian stated clearly that there is no network connection available on the host he will install the packages on. He could use the output of make print-run-depends for each port he would like to install and fetch those packages. But this would require another computer with -current and an installed ports tree. Not an option if I read the OP correctly. Kind regards, Markus
Re: (bit)torrent openbsd client
On Wed, 28 Jan 2009, Matt Bettinger wrote: I use rtorrent. This is a console based client , check the ports. It works fine and has many features and views. The only problem I have with it is that everytime you start the client it rehashes all of your files. It does this even if the option to rehash complete files is set to off or no in the .rtorrent.rc file in ~ which can a pita if you have some huge files. I typically keep it running all the time so this isn't really THAT much of an issue for me. It will only rehash on startup if you are the initial seeder AFAIR. Kind regards, Markus
Re: Accessing PostgreSQL using LedgerSMB with chrooted Apache
On Thu, 22 Jan 2009, Aaron Poffenberger wrote: You might try connecting via tcp/ip rather than Unix sockets. I haven't used LedgerSMB but I do use phpPgAdmin under chrooted Apache over tcp/ip. (Same thing with phpMysqlAdmin.) I tried getting phpMysqlAdmin to run over Unix sockets and that was an exercise in frustration. Tcp/ip is the way to go with chrooted Apache, though I'd be happy to learn how otherwise. Make sure you have /var/postgres/data/pg_hba.conf configured to allow connections over tcp/ip for localhost addresses. I think it does by default but review the section at the bottom of the file to be sure. And you should be using 127.0.0.1 for the cgi and not localhost. This is a perfect way to shoot yourself in the foot if the resolver is not available. BTDT. Kind regards, Markus
Re: : OpenBSD 4.4 amd64 bsd.mp can't detect 4GB memory
Raimo Niskanen schrieb: [config description] But how to find a bigmem parameter I do not know, I have no amd64 system. Try 'help' in the config editor. And, as pointed out before: If you search the archives, you'll find the clue you need to enable it on your own system. See also: config(8) options(4) boot_config(8) boot_i386(8) boot(8) So I read all that before and now I have to out me as plain stupid. I still have no clue how to set bigmem to 1 using config(8). And as you can see in this thread, it looks like I am not alone. Either I read over it on more than one occasion, or there is no documentation describing it. Kind regards, Markus
Re: OpenBSD 4.4 amd64 bsd.mp can't detect 4GB memory
Chris Kuethe schrieb: On Mon, Dec 15, 2008 at 6:47 AM, Paul de Weerd we...@weirdnet.nl wrote: You'll have to enable bigmem yes. and compile a new kernel yourself. no. the config program can do this without a recompile. I have seen the comment in machdep.c, but it looks like I am to stupid to figure out how to do it that way. This seems to be an excellent occasion to enlighten me, could you tell me how to change it with config? Kind regards, Markus
Re: OpenBSD
Peter Kay - Syllopsium schrieb: From: Markus Hennecke [EMAIL PROTECTED] You mean it works great except for newer cards, dual-head setups and a fast X desktop? Yes, but I would not call that great. That's not true. 8800GT support, at the very least, was added back in OpenBSD 4.3 according to the changelog. Is the issue with the 8400GS solved? I think marco@ reported that the driver maintainers refused to add code that would put the chip into a useable state. It was clocked down by the bios and the driver was not clocking it up. Are there any news about that issue? I'm using two 7600GTs - X works without a hitch in dual head (xrandr) on the first adapter and appears to be accelerated. Yes, basic acceleration was there, but I have seen many times that a programm scrolling (for example firefox) was taking some second to think about what it was doing. It was not smooth. On intel or supported amd cards this expirience was not there. So I blame it on the nv driver. Dual head never worked for me beyond 1280x1024, but I did not try xrandr lately. Perhaps I should have done that, I was running a 7600GT at that time too. Kind regards, Markus
Re: OpenBSD
Cezary Morga schrieb: Dnia czwartek, 4 grudnia 2008, rizzo0917 napisa3: 3: nvidia graphics card, I did some research and found that openbsd and nvidia don't play well together, however nvidia developed a freebsd driver, could that work?? The NVidia driver for FreeBSD is a blob, and OpenBSD guys avoid that kind of drivers. Instead there's nv(4) driver which works great except for 3D acceleration, have you tried it? You mean it works great except for newer cards, dual-head setups and a fast X desktop? Yes, but I would not call that great. Kind regards, Markus
Re: Panic. ciss0: dead (HP ProLiant DL360 G5)
PP0P2QP4PP2 PP5P=P8Q schrieb: Hello, all! I've got panic with ciss0 on my HP ProLieant DL360 G5. Everything works fine about month or so till this day. I forgot to enable SNMP trap on iLO2, but anyway, don't know is there something interesting from Integrated Lights-Out. Before installing OpenBSD I've did hardware raid 1+0. Any ideas what's wrong with ciss? :) sec:~$ uname -a OpenBSD sec 4.2 SEC.MP#0 amd64 sec:~$ Is anyone got such problem? Thanks for any advice. On tty console: panic: ciss0: dead Starting stack trace... panic() at panic+0x136 ciss_heartbeat() at ciss_heartbeat+0x6a softclock() at softclock+0x22d softintr_dispatch() at softintr_dispatch+0x6a Xsoftclock() at Xsoftclock+0x2d --- interrupt --- end of kernel end trace frame: 0x2b0, count: 252 0: End of stack trace. syncing disks... If this happens regulary I would say the card is trashed. Had the same error on one of our boxes. It got more frequently, sometimes not even getting over the fsck stage. We swapped the card and the box worked again. Also dmesg.boot and kernel config. -- Denis Davydov [demime 1.01d removed an attachment of type application/octet-stream which had a name of SEC] [demime 1.01d removed an attachment of type application/octet-stream which had a name of SEC.MP] [demime 1.01d removed an attachment of type application/octet-stream which had a name of SEC] [demime 1.01d removed an attachment of type application/octet-stream which had a name of dmesg.boot] Your attachments are being removed by the list server. Kind regards, Markus
Re: Azalia configured but no audio
On Mon, 6 Oct 2008, Girish Venkatachalam wrote: On 03:18:01 Oct 06, Jacob Meuser wrote: mplayer should be controlling `play.gain' from audioctl(1), which should correspond to `inputs.dac' from mixerctl(1). either of these should affect the playback volume, but if not, then you can use mplayer's `-softvol' switch to adjust volume in software rather than hardware; see mplayer(1). Well I have been putting up with an inability to increase the volume of mplayer but one can reduce it with '/' or '9' key. The '0' and '*' keys do not work however. Something wrong somewhere but I never got time to check. It sometimes works, and sometimes it does not work. It will use the master volume if the sun audio driver is used. In that case the 0 or * keys won't work. Kind regards, Markus
Re: Accessing raid health status on HP DL360 G5, P400i Smart Array with OpenBSD 4.3?
Stuart Henderson schrieb: On 2008-09-02, Paul Wright [EMAIL PROTECTED] wrote: I want to monitor the raid as it will be deployed in a remote location. Is there something I've missed or a different command I should try? bioctl isn't supported for ciss(4) (or mpi(4), for that matter). bioctl is supported for ciss, but not for all models AFAIR. Kind regards, Markus
Re: amd64 with 4Go and azalia
On Tue, 15 Jul 2008, OUSADOU Azwaw wrote: Hi all, I have a amd64 computer with 4Go of memory. When i boot i have this error : azalia0 at pci1 dev 0 function 1 vendor ATI, unknown product 0xaa30 rev 0x00: can't map device i/o space azalia1 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x02: can't map device i/o space If i remove 2 Go of memory. These errors disappear. I Have try to disable pci memory mapping in the bios. My computer have ~3,2 GB of ram but my computer freeze randomly. Someone has an idea? There are more of these: acpihpet0 at acpi0: can't map i/o space azalia0 at pci1 dev 0 function 1 vendor ATI, unknown product 0xaa30 rev 0x00: can't map device i/o space ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x02: can't map memory space The iommu is missing from your dmesg, so I guess the bios does not remap the memory to give space for the pci configuration. This would result in the symptoms described in the dmesg. The output from the boot promt machine memory will show if I am right with the above. If so, take a look into the bios options. There should be a knob which should take care of the remapping. If there is no such knob you should look for a bios update. Kind regards, Markus
Re: pppoe0 doesn't get ip address - how to reconnect ?
On Tue, 15 Jul 2008, Henning Brauer wrote: * Xavier Millihs-Lacroix [EMAIL PROTECTED] [2008-07-15 09:02]: Sometimes when I boot a soekris box (net5501) - OpenBSD 4.3, I didn't get each times an ip address for the pppoe0 link. This is a problem as I can connect to this box only remotely. I didn't find on the documentation how to reconnect automatically if the link goes down. pppoe automagically reconnects. many ISPs have some logic to deny you from opening two ppp sessions, so by the time your box reboots the old sessions has not yet timed out. You can't do all that much but waiting for the old session to expire, pppoe will retry all the time. Just put ifconfig pppoe0 down in your rc.shutdown script and this problem should be solved. I wrote a short piece of code for rc.local, that was waiting for the pppoe link to come up, before I discoverd that. Kind regards, Markus
Re: Using savecore
Alexey Suslikov schrieb: Hello [EMAIL PROTECTED] Assume the following situation: - no serial console, - no dmesg buffer, - kernel crashes while box in X. Set ddb.panic=0 and hope, that the crash is not related to the disk which should receive the dump. Note that you need enough free space on the /var slice. Can savecore help? If so, how can I use it? man crash(8). Kind regards, Markus
Re: strange network behaviour
On Mon, 23 Jun 2008, Richard Daemon wrote: On Mon, Jun 23, 2008 at 2:11 PM, Chris Cappuccio [EMAIL PROTECTED] wrote: [Problem with vr NICs loosing network connection] Will this fix be ported to -stable? In the mean time, what's the solution to prevent this problem? It should make it into current before thinking about something like that. But I don't think that this big change will be backported officially. Kind regards, Markus
Re: openbsd multiboot
On Wed, 21 May 2008, Chris Bennett wrote: You may also want to have a look at GAG. I use it to dualboot OpenBSD and Windows. Not sure if it will work with two OpenBSD's or not but it's very fast and easy to use. Even booting it just off the floppy disk is super fast! I will be looking at having a -current and -stable box when I have some time. The GAG page: http://gag.sourceforge.net/ I am dual booting two OpenBSD installations from two different HDDs via GAG. One i386 and one amd64. They share the /usr/src and /usr/ports partitions so I don't have to update the sources twice. Kind regards, Markus
Re: ral(4) hostap plea
On Wed, 7 May 2008, Peter N. M. Hansteen wrote: just one other data point, this is the Gigabyte badged card in my home gateway, works IME better than the ath it replaced: ral0 at pci1 dev 4 function 0 Ralink RT2561S rev 0x00: irq 12, address 00:1a:4d:3c:88:76 ral0: MAC/BBP RT2561C, RF RT2527 I got two of those cards, but in my soekris they won't do 11g. A few packets get through and then the network traffic is shut down. The client says that it is associated with the ap, but tcpdump won't see any packets. 11b mode works pretty stable. dmesg part is this (looks the same as yours): ral0 at pci0 dev 17 function 0 Ralink RT2561S rev 0x00: irq 15, address 00:1d:7d:46:87:1b ral0: MAC/BBP RT2561C, RF RT2527 Kind regards, Markus
Re: 7800GS + 2 monitors under 4.2-release
On Mon, 14 Jan 2008, Chris Harper wrote: Just checking if anyone has made any progress thus far getting dual screens to function ? On 05/11/2007, Paulo Rodriguez [EMAIL PROTECTED] wrote: Hi misc, Just wondering about any success stories getting dual-screen/xinerama running under OpenBSD 4.2-release with nVidia cards (G73) under X. If I read correctly the necessary code for this was imported by matthieu@ after 4.2-release code was frozen, so it should be in -current. I can speak only of -current. Putting the following lines in your xorg.conf should give you dual head with a few drawbacks: Section Device Identifier GeForce 7600 Driver nv Option Dualhead true EndSection Section Screen Identifier Screen Device GeForce 7600 Monitor Monitor1 DefaultDepth 24 Subsection Display ViewPort0 0 Depth 24 Modes 1280x1024 EndSubsection EndSection This will give you dual head with VBE. Using the xv extension will freeze the X server and xinerama does not work. There is a patch around to give a fake xinerama, I did not test that. Another drawback is that both screens have to have the same mode available. But my flatpanels with 1400x1050 won't work either and the X server will give me both screens on 1280x1024. This results in an ugly scaled flatpanel picture that really hurt the eyes. So it somewhat works, but only up to 1280x1024 on my 7600GT for each screen and without the xvideo extension. I decided to put another pci card into the computer to have a dual screen which actually works. Putting another nvidia card into the second PCIE-16x slot resultet in a non starting X server. It would be really nice to have working dual head support for my card but I don't think that this will happen in the near future. Kind regards, Markus
Re: Wrong console speed in amd64 kernel, SOLVED
Hello misc, as I found out the kernel does not use the variable comdefaultrate, which is set via the BOOTARG_CONSDEV struct passed to the kernel, but the comconsrate variable while initializing the serial console. This is initialized to B9600 via sys/ttydefaults.h, that explains the output I am seeing. So IMHO assigning comdefaultrate the speed passed from boot(8) is wrong and instead the rate should be assigned to comconsrate. The patch below should make it more clear what I mean, it fixes my problems with the serial console on amd64: Index: machdep.c === RCS file: /var/cvs/src/sys/arch/amd64/amd64/machdep.c,v retrieving revision 1.68 diff -u -p -r1.68 machdep.c --- machdep.c 17 Mar 2008 23:17:24 - 1.68 +++ machdep.c 28 Mar 2008 14:55:07 - @@ -1816,8 +1816,8 @@ getbootinfo(char *bootinfo, int bootinfo (bios_consdev_t*)q-ba_arg; #include com.h #if NCOM 0 - extern int comdefaultrate; /* ic/com.c */ - comdefaultrate = cdp-conspeed; + extern int comconsrate; /* ic/com.c */ + comconsrate = cdp-conspeed; #endif #ifdef BOOTINFO_DEBUG printf( console 0x%x:%d, Kind regards, Markus
Wrong console speed in amd64 kernel
Hello misc, I am just in the process of moving one of my servers from i386 to amd64. My webhoster provides me with a serial console over a ssh connection with the speed set to 57600 baud. The following boot.conf works for the bootloader: set tty com0 stty com0 57600 But after the -current kernel is loaded and the main func is executed the serial speed is reset to 9600 baud, which gives me output like this: ` com0: 57600 baud boot booting hd0a:/bsd: 4415664+1071036+748152+0+557208 [80+390168+243800]=0xb16058 entry point at 0x1001e0 [7205c766, 3404, 24448b12, cba0a304] m``` (The last line starts right behind the closing bracket in the line below, my mailer will break the line, so I can't show that in the right way here). The com_speed variable is set to 57600 at the point where the kernel is started. Those accented 'a's show up if I set the console speed to 9600 and have any output on the console, so I am pretty sure that the com port is reset to 9600 baud after the kernel starts. Is there any way to get a readable output on the serial console at 57600 baud? I can change /etc/rc to set the console back to 57600 but that won't help if I got a kernel problem or if I would like to use the -s boot option. In fact I am expiriencing exactly this problem at the moment... dmesg is below is from an install kernel for i386 4.2-stable. The i386-4.2 kernel does not show the behaviour described above. Kind regards, Markus dmesg i386: Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2007 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 4.2-stable (RAMDISK_YAIFO) #0: Thu Mar 27 11:08:54 CET 2008 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_YAIFO cpu0: AMD Athlon(tm) 64 Processor 3200+ (AuthenticAMD 686-class, 512KB L2 cache) 2.01 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3 cpu0: AMD erratum 89 present, BIOS upgrade may be required real mem = 535261184 (510MB) avail mem = 508964864 (485MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 07/27/05, BIOS32 rev. 0 @ 0xfa760, SMBIOS rev. 2.2 @ 0xf (39 entries) bios0: vendor Phoenix Technologies, LTD version 6.00 PG date 07/27/2005 apm0 at bios0: Power Management spec V1.2 apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 3.0 @ 0xf/0xcc34 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfcb00/240 (13 entries) pcibios0: bad IRQ table checksum pcibios0: PCI BIOS has 17 Interrupt Routing table entries pcibios0: PCI Exclusive IRQs: 3 5 7 10 11 pcibios0: no compatible PCI ICU found pcibios0: Warning, unable to fix up PCI interrupt routing pcibios0: PCI bus #5 is the last bus bios0: ROM list: 0xc/0x8000 0xc8000/0x1600 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) NVIDIA nForce4 DDR rev 0xa3 at pci0 dev 0 function 0 not configured pcib0 at pci0 dev 1 function 0 NVIDIA nForce4 ISA rev 0xa3 NVIDIA nForce4 SMBus rev 0xa2 at pci0 dev 1 function 1 not configured ohci0 at pci0 dev 2 function 0 NVIDIA nForce4 USB rev 0xa2: irq 7, version 1.0, legacy support ehci0 at pci0 dev 2 function 1 NVIDIA nForce4 USB rev 0xa3: irq 5 usb0 at ehci0: USB revision 2.0 uhub0 at usb0: NVIDIA EHCI root hub, rev 2.00/1.00, addr 1 pciide0 at pci0 dev 6 function 0 NVIDIA nForce4 IDE rev 0xf2: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: HDS728080PLAT20 wd0: 16-sector PIO, LBA48, 78533MB, 160836480 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6 wd1 at pciide0 channel 1 drive 0: HDS728080PLAT20 wd1: 16-sector PIO, LBA48, 78533MB, 160836480 sectors wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 6 ppb0 at pci0 dev 9 function 0 NVIDIA nForce4 PCI-PCI rev 0xa2 pci1 at ppb0 bus 1 vga1 at pci1 dev 5 function 0 ATI Rage XL rev 0x27 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) ppb1 at pci0 dev 11 function 0 NVIDIA nForce4 PCIE rev 0xa3 pci2 at ppb1 bus 2 ppb2 at pci0 dev 12 function 0 NVIDIA nForce4 PCIE rev 0xa3 pci3 at ppb2 bus 3 ppb3 at pci0 dev 13 function 0 NVIDIA nForce4 PCIE rev 0xa3 pci4 at ppb3 bus 4 bge0 at pci4 dev 0 function 0 Broadcom BCM5721 rev 0x11, BCM5750 B1 (0x4101): irq 11, address 00:e0:81:55:09:c0 brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0 ppb4 at pci0 dev 14 function 0 NVIDIA nForce4 PCIE rev 0xa3 pci5 at ppb4 bus 5 pchb0 at pci0 dev 24 function 0 AMD AMD64 HyperTransport rev 0x00 pchb1 at pci0 dev 24 function 1 AMD AMD64 Address Map rev 0x00 pchb2 at pci0 dev 24 function 2 AMD AMD64 DRAM Cfg rev 0x00 pchb3 at pci0 dev 24 function 3 AMD AMD64 Misc Cfg rev 0x00 isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using
Re: Updates for old releases
Jay Hart schrieb: One question I have is if 4.0 is stilled being patched? I notice that there are several patches out in 4.2 or 4.1, for example: 005: RELIABILITY FIX: January 11, 2008 All architectures A missing NULL pointer check can lead to a kernel panic. A source code patch exists which remedies this problem But either these don't apply to 4.0, or 4.0 is not having patches created anymore. Because 4.0 is no longer maintained after 4.2 was released. That is the official policy for older releases with regards to patches? http://www.openbsd.org/faq/faq5.html#Flavors Kind regards, Markus
Re: OpenBSD 4.2 with ftp-proxy, named, spamd on Alix2c1 board (+dmesg)
On Thu, 21 Feb 2008, Klaus Botschen wrote: Writing into /dev, /tmp and /var would definitely NOT destroy the CF card. Might be. I used none-industrial-grade CF cards, so the chance is of course higher. Yes, I did it. Just let /var run full and try to log a lot of stuff and you will write the same sector many times in a short period. Lead to an unusable /var partition on a consumer SanDisk CF Card. The card was pretty old, but I guess that there are a lot of low price CF cards out there that have no real wear level algorithm implemented. running for about half a year now, with all filesystems being regular Thats fine. The machines that got replaced by the Alix board have been running for almost 5 years, and I hope that I don't need to touch the boards for several years. Putting /var on mfs is not such a bad idea if you got RAM to spare. Using rsync to write the changed files back on the CF card in fixed intervals and on shutdown should be ok. - just using noatime is fine; should the card die one day, new CF cards will be cheaper than a fart by then (and eight times as big, too). That might depend... I have the theory that if you are sysadmin, the machines feel when you are far away, and die exactly when you can't just drop in and repair them :) Nice theory, would explain some hardware faults I witnessed in the past :) Kind regards, Markus
Re: problem with re driver
On Tue, 22 Jan 2008, Nicolas Letellier wrote: re driver freeze OpenBSD 4.2-current. This driver doesn't bug in NetBSD or FreeBSD. Users with re at pcie bus are suffering from this bug. Someting like: ppb2 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: irq 10 pci3 at ppb2 bus 3 re0 at pci3 dev 0 function 0 Realtek 8168 rev 0x01: RTL8168 2 (0x3800), irq 10, address 00:1c:c0:0f:08:bf rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2 In certain situation, we must force the re interface to 100baseTX, but it's not always true. This did not help in my case. As I tracked down multicast packets as the cause for the freezes I tried to disable the multicast filter. This is no good fix for the problem, but the symptoms went away. This is by the way the same thing the linux driver does (did I mention that it is not a real fix?). After adding the following patch the box did not freeze any longer: Index: re.c === RCS file: /var/cvs/src/sys/dev/ic/re.c,v retrieving revision 1.75 diff -u -p -r1.75 re.c --- re.c16 Jan 2008 09:52:34 - 1.75 +++ re.c22 Jan 2008 21:44:56 - @@ -570,6 +570,7 @@ re_setmulti(struct rl_softc *sc) case RL_HWREV_8101E: case RL_HWREV_8168_SPIN1: case RL_HWREV_8168_SPIN2: + hashes[1] = hashes[0] = 0x; CSR_WRITE_4(sc, RL_MAR0, swap32(hashes[1])); CSR_WRITE_4(sc, RL_MAR4, swap32(hashes[0])); break; dmesg part is this (full dmesg is in br#5599): pci0 at mainbus0 bus 0: configuration mode 1 (no bios) ppb1 at pci0 dev 6 function 0 ATI RX480 PCIE rev 0x00 pci2 at ppb1 bus 2 re0 at pci2 dev 0 function 0 Realtek 8168 rev 0x01: RTL8168 2 (0x3800), apic 2 int 18 (irq 10), address 00:19:db:60:e4:a2 rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2 So, is anybody using this driver *with a pcie bus* without problems? This situation could help to solve the problem. Without problems I would not call that. And the patch is really a hack. But it works, and the box does not freeze if someone starts a linux computer in the same LAN segment which does that multicast autoconf thingy. Best regards, Markus
Re: Need some guidance booting OpenBSD on an ALIX device
On Sat, 12 Jan 2008, Limaunion wrote: Hi there, I just got an ALIX2C2 and installed a 1GB CF with an already working OpenBSD 4.2 system. For some reason I get this after powering up the unit: PC Engines ALIX.2 v0.98 640 KB Base Memory 261120 KB Extended Memory 01F0 Master 044A CF CARD 1GB Phys C/H/S 1966/16/63 Log C/H/S 983/32/63 Using drive 0, partition 3; Loading;... probing: pc0 com0 pci mem[640K 255M a20=on] disk: hd0 OpenBSD/i386 BOOT 3.01 boot booting hd0a:/bsd: 5665588+872060 [52+291168+272312]=0x6c5c70 entry point at 0x200120 I've been searching for this 'entry point' message and it seems to be related to the system not using the serial console, is this right?. I tried entering 'set tty com0' at the boot prompt but inmediately after that the session got stuck. I'm using a self-made null modem cable (pins 2,3,5) and minicom. If I remember correctly the alix bios use a baudrate different from 9600 baud. Are you by chance connecting to the board with another baud rate? If this is the case just restart the session with 9600 baud and you should be able to boot the system. If you would like to use 19200 baud something like set tty com0 stty com0 19200 in the file /etc/boot.conf will help you so that the baudrate is set automatically by the bootloader. Best regards, Markus
Re: 64 bit file I/O?
On Thu, 10 Jan 2008, Darrin Chandler wrote: On Thu, Jan 10, 2008 at 02:36:15PM -0800, Ted Unangst wrote: On 10 Jan 2008 14:17:43 -0800, Unix Fan [EMAIL PROTECTED] wrote: Does OpenBSD's base utilities support 64 bit I/O? I attempted to create a 8GB file using the dd application distributed with OpenBSD 4.2, unfortunately it fails with: dd: count: Result too large Confused, I tried making the size smaller, and noticed it bails out at exactly 4294967295 bytes, 4294967294 succeeds however.. what bs are you using? Try to be more polite, please. What in the word blocksize is not polite? Best regards, Markus
lm(4) sensor device at 0xa10
Hello misc, the mainboard I am currently using has a Winbond W83627EHF Super-I/O chip which is accessed via address 0xa10 on the isa bus. This patch brings that chip into the kernel config files for i386 and amd64, below is the dmesg output (amd64, if needed I could provide the i386 dmesg for -current) and the output of sysctl hw.sensors.lm3. Best regards, Markus Index: amd64/conf/GENERIC === RCS file: /var/cvs/src/sys/arch/amd64/conf/GENERIC,v retrieving revision 1.211 diff -u -p -r1.211 GENERIC --- amd64/conf/GENERIC 31 Dec 2007 19:29:46 - 1.211 +++ amd64/conf/GENERIC 2 Jan 2008 11:59:37 - @@ -70,6 +70,7 @@ agp* at pchb?# AGP bridge lm0at isa? port 0x290 #lm1 at isa? port 0x280 #lm2 at isa? port 0x310 +lm3at isa? port 0xa10 it0at isa? port 0x290 # ITE IT8705F, IT8712F, IT8716F, IT8718F, it1at isa? port 0xc00 # IT8726F and SiS SiS950 monitors and Index: i386/conf/GENERIC === RCS file: /var/cvs/src/sys/arch/i386/conf/GENERIC,v retrieving revision 1.599 diff -u -p -r1.599 GENERIC --- i386/conf/GENERIC 31 Dec 2007 19:29:46 - 1.599 +++ i386/conf/GENERIC 2 Jan 2008 11:59:38 - @@ -99,6 +99,7 @@ pwdog0at pci? # Quancom PWDOG1 watchd lm0at isa? port 0x290 #lm1 at isa? port 0x280 #lm2 at isa? port 0x310 +lm3at isa? port 0xa10 nsclpcsio* at isa? port 0x2e # NS PC87366 LPC Super I/O nsclpcsio* at isa? port 0x4e gpio* at nsclpcsio? $ sysctl hw.sensors.lm3 hw.sensors.lm3.temp0=44.00 degC hw.sensors.lm3.temp1=51.00 degC hw.sensors.lm3.temp2=50.50 degC hw.sensors.lm3.fan0=907 RPM hw.sensors.lm3.fan1=2136 RPM hw.sensors.lm3.volt0=1.09 VDC (VCore) hw.sensors.lm3.volt1=12.36 VDC (+12V) hw.sensors.lm3.volt2=3.31 VDC (+3.3V) hw.sensors.lm3.volt3=3.31 VDC (+3.3V) hw.sensors.lm3.volt4=-9.18 VDC (-12V) hw.sensors.lm3.volt5=1.46 VDC hw.sensors.lm3.volt6=1.46 VDC hw.sensors.lm3.volt7=3.30 VDC (3.3VSB) hw.sensors.lm3.volt8=1.64 VDC (VBAT) hw.sensors.lm3.volt9=1.63 VDC $ dmesg OpenBSD 4.2-current (GENERIC.MP) #1: Wed Jan 2 12:38:52 CET 2008 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 3489067008 (3327MB) avail mem = 3373764608 (3217MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xfc7c0 (54 entries) bios0: vendor American Megatrends Inc. version V1.7 date 09/13/2007 bios0: MSI MS-7280 acpi0 at bios0: rev 0 acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT acpi0: wakeup devices SBAZ(S0) PS2K(S0) PS2M(S0) P0PC(S0) AC97(S0) MC97(S0) USB1(S0) USB2(S0) USB3(S0) USB4(S0) USB5(S0) EUSB(S0) PCE2(S0) PCE3(S0) PCE4(S0) PCE5(S0) PCE6(S0) PCE7(S0) PWRB(S0) acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+, 2613.38 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: apic clock running at 201MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+, 2613.07 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative ioapic0 at mainbus0 apid 2 pa 0xfec0, version 21, 24 pins acpihpet0 at acpi0: 14318180 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 3 (P0PC) acpiprt2 at acpi0: bus 1 (PCE2) acpiprt3 at acpi0: bus -1 (PCE3) acpiprt4 at acpi0: bus -1 (PCE4) acpiprt5 at acpi0: bus -1 (PCE5) acpiprt6 at acpi0: bus 2 (PCE6) acpiprt7 at acpi0: bus -1 (PCE7) acpicpu0 at acpi0: PSS acpicpu1 at acpi0: PSS acpibtn0 at acpi0: PWRB cpu0: PowerNow! K8 2613 MHz: speeds: 2600 2400 2200 2000 1800 1000 MHz pci0 at mainbus0 bus 0: configuration mode 1 pchb0 at pci0 dev 0 function 0 ATI RD580 Host rev 0x00 ppb0 at pci0 dev 2 function 0 ATI RX480 PCIE rev 0x00 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 NVIDIA GeForce 7600 GT rev 0xa1 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb1 at pci0 dev 6 function 0 ATI RX480 PCIE rev 0x00 pci2 at ppb1 bus 2 re0 at pci2 dev 0 function 0 Realtek 8168 rev 0x01: RTL8168 2 (0x3800), apic 2 int 18 (irq 10), address 00:19:db:60:e4:a2 rgephy0 at re0 phy 7:
Re: UNIX way of undeleting files?
Girish Venkatachalam schrieb: Just wondering if there was a way to undelete a file. Get it from your backup. No backup? Then it is gone. Best regards, Markus
Re: Intel(R) Core(TM)2 Duo CPU E6550 freeze on core 2 duo
On Thu, 6 Dec 2007, Constantine A. Murenin wrote: On 06/12/2007, Benoit Chesneau [EMAIL PROTECTED] wrote: Hi all, HAve currently problem with a server based on Intel(R) Core(TM)2 Duo CPU E6550 with a Realtek 8168 ( re(4) ). It freeze after some random time. I don't know why. No log about it. I tried to : - enable acpi - force the carde in 100baseTX But without any success yet. Hard to test anyway because this is a remote machine and can't check it from the rescue mode since this rescue mode is under freebsd. Any idee ? Anyone used such machine yet ? Here is a dmesg : http://babilu.metavers.net/dmesg/dmesg_enlil_20071206.txt http://kerneltrap.org/mailarchive/openbsd-misc/2007/10/21/349821 http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yesnumbers=5504 No patch yet. As these boxes are pretty popular, if someone writes one, they'll be a hero. :) For me it helped to keep away the multicast traffic from the interface. A notebook with Ubuntu Linux was sending UDP packets to 224.0.0.251:5353 causing the machine to freeze when the first of these packets arrived. Blocking these on the bridge between my LAN and the VPN over WLAN connection was the cure here. Best regards, Markus
Re: This list: CC and TO fields
On Tue, 4 Dec 2007, Antoine Jacoutot wrote: On Tue, 4 Dec 2007, Markus Hennecke wrote: But since it replaced pine the UTF-8 support is broken for me, and the arrow UTF-8 works fine here. If I set the xterm to UTF-8 it works here too, but no way on the console. It did work with pine without setting this option. Best Regards Markus
Re: This list: CC and TO fields
On Fri, 7 Dec 2007, Antoine Jacoutot wrote: On Fri, 7 Dec 2007, Markus Hennecke wrote: If I set the xterm to UTF-8 it works here too, but no way on the console. It did work with pine without setting this option. Oh, common. I don't want to sound harsh or anything, but please read the manual. Setting display-character-set=ISO-8859-1 in your .pinerc should do it on the console. Hm, I could not find the file tech-notes.txt which was distributed with pine. It is missing from the PLIST in the port. Apparently the option character-set was replaced. The manual (the man page) does not provide this information. Below is a patch that will include the missing file in the package. Best Regards Markus Index: Makefile === RCS file: /var/cvs/ports/mail/alpine/Makefile,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 Makefile --- Makefile22 Nov 2007 13:49:52 - 1.1.1.1 +++ Makefile7 Dec 2007 11:03:20 - @@ -74,4 +74,8 @@ pre-configure: ${WRKSRC}/alpine/Makefile.in \ ${WRKSRC}/pico/Makefile.in +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/alpine + ${INSTALL_DATA} ${WRKSRC}/doc/tech-notes.txt ${PREFIX}/share/doc/alpine + .include bsd.port.mk Index: pkg/PLIST-main === RCS file: /var/cvs/ports/mail/alpine/pkg/PLIST-main,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 PLIST-main --- pkg/PLIST-main 22 Nov 2007 13:49:52 - 1.1.1.1 +++ pkg/PLIST-main 7 Dec 2007 11:03:20 - @@ -7,3 +7,5 @@ bin/rpload @man man/man1/alpine.1 @man man/man1/rpdump.1 @man man/man1/rpload.1 +share/doc/alpine/ +share/doc/alpine/tech-notes.txt
Re: This list: CC and TO fields
On Mon, 3 Dec 2007, xSAPPYx wrote: On Dec 3, 2007 5:04 AM, ropers [EMAIL PROTECTED] wrote: On 03/12/2007, L [EMAIL PROTECTED] wrote: I can't find the 'reply only to group' feature my mail client yet.. but I just started using this email client recently. It is Mozilla Thunderbird. Reply to all. Alpine is another good one for lists. http://www.washington.edu/alpine/ But since it replaced pine the UTF-8 support is broken for me, and the arrow navigation is improved. But I did not have time to look into that. But I can agree that it is indeed very fine for reading mailing lists. Best regards Markus
Re: ilo (ipmi) and serial console redirection
On Fri, 30 Nov 2007, holger glaess wrote: of cause , i try to setup com2 but the system says at bootpromt com port is not aviable , but if the kernel already loaded the com port is aviable. there is no setting options at the bios to change the com port from the ipmi board. Doesn't the bootloader number the com ports from zero on? AFAIR I could set the bootloader on a DL 385 to use the ILO com port via setting up com1 in boot.conf. This is a few month since I did that and I have no physical access to that machine now, so I can't look at it further. Best Regards, Markus
Re: Inspiron 1501 azalia garbled/slow audio
Stuart Shillington schrieb: Hello, I've got an Inspiron 1501, and under 4.2/AMD64 when attempting to play audio I get garbled/repeated/slow audio, using mpg321 and cat blah.au /dev/sound. With and without ACPI, with GENERIC GENERIC.MP. The built in volume-keys even work. Chipset is ATI RS485M / SB600. Deanna Phillips just fixed the audio issue on that chipset, but the patch is not yet in current. As soon as it is in the tree you could try to backport it to 4.2 or just switch to current. That would be the better option, as the SATA controller in IDE mode on your chipset does not use DMA transfers and will be really slow. In current is a fix for the ahci controller (which could have been already in 4.2, but a similar fix got ignored... no rant intended, just wondered why this was not looked into when I sent it half a year ago), which should improve disk access speed dramatically. Kind regards Markus
Re: MAXDSIZ 1GB memory limit for process
Richard Storm schrieb: On 10/22/07, Ted Unangst [EMAIL PROTECTED] wrote: On 10/21/07, Richard Storm [EMAIL PROTECTED] wrote: Is it possible to bypass this limit somehow? depends, but if it's easy to bypass a limit, it's not much of a limit. Is there possible workarounds for my program to allocate more memory than 1GB? http://monkey.org/openbsd/archive/misc/0412/msg01039.html So mmap seems to be the way. Greetings Markus
Re: OpenBSD on decTOP?
Diana Eichert schrieb: hmmm, further reading of the data sheet makes me wonder if the serial UART is at address 2E8H for com3, if so that is disabled in GENERIC. #pccom3 at isa? port 0x2e8 irq 9# (conflicts with some video cards) I'm not completely familiar with the device scan when the kernel is loaded. Will it discover a device hanging off isa0 if a driver is not compiled into the kernel and show it as not configured or will it just not find it at all? As it won't probe on port 0x2e8 it will not find it. Thats why it was disabled, the probe will have negative effects on other hardware. Greetings Markus
Re: upgrading ports from 4.1 to 4.2
nicodache schrieb: ok. so you all advice me to install 4.2 with xbase. and with that, I can install packages/ports with no_x11, and things that needs X parts will work correctly ? I'll go for that :) You can install no_x11 packages without xbase AFAIR. But you can't build them from ports. Greetings Markus
Re: ldd will not check shared libraries for dependancies
Antti Harri schrieb: On Wed, 29 Aug 2007, Brian Bentley wrote: # ldd /usr/bin/more /usr/bin/more: StartEnd Type Open Ref GrpRef Name exe 10 0 /usr/bin/more 00745000 20758000 rlib 01 0 /usr/lib/libcurses.so.10.0 00951000 20985000 rlib 01 0 /usr/lib/libc.so.40.3 068e7000 068e7000 rtld 01 0 /usr/libexec/ld.so # ldd /usr/lib/libcurses.so.10.0 /usr/lib/libcurses.so.10.0: /usr/lib/libcurses.so.10.0: Permission denied /usr/lib/libcurses.so.10.0: exit status 1 # ldd /usr/local/lib/libjpeg.so.62.0 /usr/local/lib/libjpeg.so.62.0: /usr/local/lib/libjpeg.so.62.0: Exec format error /usr/local/lib/libjpeg.so.62.0: exit status 1 Works for me: [EMAIL PROTECTED]:~$ ldd /usr/lib/libcurses.so.10.0 /usr/lib/libcurses.so.10.0: StartEnd Type Open Ref GrpRef Name 0f81c000 2f82f000 dlib 10 0 /usr/lib/libcurses.so.10.0 [EMAIL PROTECTED]:~$ ldd /usr/local/lib/libjpeg.so.62.0 /usr/local/lib/libjpeg.so.62.0: StartEnd Type Open Ref GrpRef Name 09f2e000 29f34000 dlib 10 0 /usr/local/lib/libjpeg.so.62.0 PS. Also check out readelf(1). You are doing this on current. 4.1 behaves like Brian described it. There is no manpage for readelf in 4.1. Greetings Markus
Re: How to track port updates in stable?
Will Maier wrote: On Fri, Aug 03, 2007 at 06:35:51PM -0500, Todd Pytel wrote: I don't spend as much time following OpenBSD as I used to, so perhaps I'm missing something. But there used to be a ports-security mailing list used for announcing updated ports. That list doesn't exist any more, or at least doesn't appear to have had anything posted to it in a very long time. It exists, but is inactive. Is there some other official way to track changes to ports? By looking at the output of `cvs up`? By watching commits via [EMAIL PROTECTED] I do both, and find it sufficient. Absent that, has anyone come up with a simple hack to feed to cron to accomplish the same thing? I pull updated ports and src daily via cron, and read (ports|source)-changes@ for commit messages, etc. Does that not achieve what you need? This is not yet finished but already working: http://www.markus-hennecke.de/downloads/list_updated_ports.pl Just feed the script a cvs logfile from a ports update and it will print each port that has a changed Makefile and a changed version number. I am keeping track of current ports with this script. There are still some things missing like reading more than one cvs log in one pass and some command line switches. Greetings Markus
Re: Bioctl ciss controller status
On Fri, 20 Jul 2007, Stephan A. Rickauer wrote: On Fri, 20 Jul 2007 00:49:03 -0600 Joel Knight [EMAIL PROTECTED] wrote: --- Quoting Doros Eracledes on 2007/07/19 at 10:42 +0100: I have a proliant DL360-G5 and loaded 4.1-stable on it, all hardware is detected fine. I want see if I can get the raid controller status with bioctl. Controller initially came with firmware 1.20 so I upgraded it to the latest (1.66) version but still can't get the raid controller status using bioctl. Here is what I get: #bioctl sd0 bioctl: BIOCINQ: Inappropriate ioctl for device Known issue, no fix. mickey@ told me he found the issue but I'm not sure what happened to the code. FYI, this issue doesn't seem to happen on the DL380. I do have the same issue with 4.1 on a DL385, though. Only one volume configured, controller firmware 2.08. # bioctl ciss0 bioctl: Can't locate ciss0 device via /dev/bio The cause is that the ciss_inquiry struct returned by the firmware has the member buswidth set to 0 (zero). So the physical drives do not get probed by the driver. If you set this to some other value (the original value in the last firmware versions was 16) the Identify Drive commands will fail. If you change the addressing mode from the Big Bit method to the old scheme the drives can be queried. I hacked up a small patch that made it work for the servers used in our project (DL 380 G5). I attach it here, but beware that it has some problems: 1. Drives that are identified by the scsi id 0:0.0 do not display the right status. We do not have a drive there, so I did not look into that for longer (no time for beauty work). 2. I had to check the drive present bit and would add only those drives that were present on driver initialisation. Else the bioctl would show all drives as Invalid (with exception to the one that would get the id 0:0.0). Overall it is only a quick and dirty hack to make it work. I try to look into that because I will have the servers here available a little bit longer, but I can't promise that. The other parts of the overall project are eating up all my time... So this is the hack, I checked the functionality by removing one of the drives and reinserting it. All seems to work ok with the exceptions mentioned above. You can even mark a drive via bioctl. The patch is against 4.1-stable, dmesg and bioctl output follows below. There is a similar system with 5 HDs in a RAID 5 that works too. Use this at your own risk: Index: ciss.c === RCS file: /cvs/src/sys/dev/ic/ciss.c,v retrieving revision 1.24 diff -u -p -r1.24 ciss.c --- ciss.c 18 Jan 2007 14:46:24 - 1.24 +++ ciss.c 20 Jul 2007 10:21:41 - @@ -330,6 +330,14 @@ ciss_attach(struct ciss_softc *sc) sc-maxunits = inq-numld; sc-nbus = inq-nscsi_bus; sc-ndrives = inq-buswidth; + + if (sc-ndrives == 0) { + /* Handle the new firmware */ + + sc-sc_flags |= CISS_NOBIGBIT; + sc-ndrives = 16; + } + printf(: %d LD%s, HW rev %d, FW %4.4s/%4.4s\n, inq-numld, inq-numld == 1? : s, inq-hw_rev, inq-fw_running, inq-fw_stored); @@ -1152,11 +1160,19 @@ ciss_ioctl(struct device *dev, u_long cm if (!ldp) continue; for (pd = 0; pd ldp-ndrives; pd++) - if (ldp-tgts[pd] == (CISS_BIGBIT + - bb-bb_channel * sc-ndrives + - bb-bb_target)) - error = ciss_blink(sc, ld, pd, - bb-bb_status, blink); + if (sc-sc_flags CISS_NOBIGBIT) { + if (ldp-tgts[pd] == ( + bb-bb_channel * sc-ndrives + + bb-bb_target)) + error = ciss_blink(sc, ld, pd, + bb-bb_status, blink); + } else { + if (ldp-tgts[pd] == (CISS_BIGBIT + + bb-bb_channel * sc-ndrives + + bb-bb_target)) + error = ciss_blink(sc, ld, pd, + bb-bb_status, blink); + } } break; @@ -1318,9 +1334,14 @@ ciss_pdscan(struct ciss_softc *sc, int l pdid = sc-scratch; for (i = 0; i sc-nbus; i++) for (j = 0; j sc-ndrives; j++) { - drv = CISS_BIGBIT + i * sc-ndrives + j; - if (!ciss_pdid(sc, drv, pdid, SCSI_NOSLEEP|SCSI_POLL)) -
Re: Bridge between a jumboframe and a normal 1512byte network
On Tue, 1 May 2007, Bob wrote: I tried to look this up with google, but didn't find any sensible answers. I.e. I'm building a gigabit network at home, and I now have an 100Base-TX network here. I would like to add a gigabit network to it. This gigabit network will ofcourse run with jumbo frames. Now my question is basically, can I plug an em and a fxp network cards into a machine and configure it to run with brconfig? Will the bridge fragment oversized packets from the gigabit network when talking to the 100Base-TX network? I'm running ofcourse OpenBSD 4.1-current on the machine that acts as a bridge. This is not possible. The bridge just takes a paket from one interface and puts it on the other interface(s). So jumbo frames are no option if a 100Base-TX network is connected. You could route between the two networks, then the router would fragment the pakets if they are too large. Greetings Markus
Re: pciide: ATI IXP 600 SATA
On Mon, 16 Apr 2007, alemao wrote: I get the dmesg of ahci identifying my card. If you want to send me more patchs to test it's ok. I need to set tty com0 at boot.conf and unplug my usb devices from it to boot (kbd and mouse, this machine don't have PS/2). It's strange, after the bootloader timeouts and start to load kernel, it stops at entry point xxx and then i need to type something to load the kernel.. w/o usb devices, it boot fine. I have exactly the same problem and reported it already to pascoe@ and [EMAIL PROTECTED] This seems to be some quirk with the ati chipset. The following patch (more a hack) made it work for me, so that I could read the partition table of my hds. As the box is currently used in my company I can not check further to test if it really works. Index: ahci.c === RCS file: /cvs/src/sys/dev/pci/ahci.c,v retrieving revision 1.112 diff -u -p -r1.112 ahci.c --- ahci.c 8 Apr 2007 09:13:31 - 1.112 +++ ahci.c 17 Apr 2007 11:19:01 - @@ -1101,7 +1101,9 @@ ahci_port_start(struct ahci_port *ap, in /* Turn on FRE (and ST) */ r = ahci_pread(ap, AHCI_PREG_CMD) ~AHCI_PREG_CMD_ICC; +#if 0 r |= AHCI_PREG_CMD_FRE; +#endif if (!fre_only) r |= AHCI_PREG_CMD_ST; ahci_pwrite(ap, AHCI_PREG_CMD, r); @@ -1115,9 +1117,11 @@ ahci_port_start(struct ahci_port *ap, in } #endif +#if 0 /* Wait for FR to come on */ if (ahci_pwait_set(ap, AHCI_PREG_CMD, AHCI_PREG_CMD_FR)) return (2); +#endif /* Wait for CR to come on */ if (!fre_only ahci_pwait_set(ap, AHCI_PREG_CMD, AHCI_PREG_CMD_CR)) The function is used with the fre_only set to 0 in the whole driver. But this may change in the future, so this is no permanent solution. For the initialization the FR bit is already set when the function is called, so no problems should occure there. Greetings Markus
Re: Programming Ada on OpenBSD?
Trond Danielsen wrote: 2007/2/25, Timo Schoeler [EMAIL PROTECTED]: hi list, does anybody use OpenBSD as Ada programming platform? Take a look at the list of availble packages - http://www.openbsd.org/4.0_packages/i386.html - and search for gnat. Last time I looked into gnat on OpenBSD I stumbled across some problems. The fpu was not initialized, so using floating point arithmetic lead to interesting results. Also there was no support for tasking in the gnat package. I did make a patch that resolved those issues, but other things distracted me from making it final. I will try to rework this on a machine running current, so that those patches could go into ports. Greetings Markus
Re: Programming Ada on OpenBSD?
Ted Unangst wrote: On 2/25/07, Markus Hennecke [EMAIL PROTECTED] wrote: Last time I looked into gnat on OpenBSD I stumbled across some problems. The fpu was not initialized, so using floating point arithmetic lead to interesting results. when was this? i didn't notice this a few months ago, but i only had a fairly small program. The patches I got here are dated from 8. Sep 2006 for gcc-4.1 in current at that time. I will check if they still work when I get access to a current machine tomorrow. Greetings Markus
Re: OpenBSD 3.8, fxp, device timeout
[EMAIL PROTECTED] wrote: in my opinion it's a nic problem and not a network settings problem, because i also have tried to obtain the network configuration via dhcp (like in the rescue system) with the same result - fxp0: device timeout Trying to get the network configuration via dhcp did not succeed on my server either. But that has nothing to do with your initial problem. Wasn't the kernel option PCIBIOS_INTR_FIXUP_FORCE dropped in favor of a UKC option? I think Thorsten Glasers patch for this was commited. So this would have to be enabled on the UKC to take effect, the kernel option would be ignored and have no effect at all. Greetings, Markus
Re: removing old files - /usr grows with each release
Han Boetes wrote: Looking for this? http://www.xs4all.nl/~hanb/software/OpenBSD-binary-upgrade/cleanupoldsysfiles Do read the script before you use it. Nice. I think I will do this instead of removing the directories after an update and repopulating them from the release tarballs. Then I don't have to be too careful for /bin because mv depends on cp. I always forget this, 6 month are a long time :) Greetings Markus
Re: Compiling code with GLU and GLUT
On Wed, 31 Aug 2005, Sacha Ligthert wrote: I took for a test SDLgears from the SDL website and tried to configure and compile it. Configure halted with: checking for OpenGL support... no configure: error: Unable to find OpenGL headers and libraries You have to tell the configure script where to look for the headers and libs. I can't tell you what to do in this special case, but a good starting point is to run 'configure --help' and look for options that could be set. Then look at the log configure creates to see where it fails. Compiling the suplied gears.c, the first error was: $ gcc gears.c gears.c:39:21: GL/glut.h: No such file or directory I've tried adding -gl,-glu,-glut,-I/usr/local/include/GL/glut.h in several combinations (some capped) without result. An application using glut had the following options for the compiler: -I/usr/local/include/ -I/usr/X11R6/include -L/usr/local/lib -L/usr/X11R6/lib -lGL -lglut -lm -lGLU -lX11 -lXext -lXmu -lXi You really have to set the path to the include directory with -I. Not the path including the filename. And the libs are case sensitive too, I think the example above should give you a good start. Greetings Markus
Re: How can i mount an external USB hard disk?
On Fri, 13 May 2005, Joco Salvatti wrote: How can i mount an external USB hard disk? Look which device is assigned to the attached disk (kernel message). Then look at the disklabel. If it is an automatic generated label and the disk is formatted with fat32 it is most likely something like /dev/sd0i. Greetings Markus