local network mail help needed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'd like to be able to use just mail instead of the system MUA for one user who doesn't have an email account setup with the ISP, but who just wants to be able send email messages to other users on the network. So far, the messages keep getting MDeferred: Connection refused by . I added the network name, and later, when that didn't work, the IP address also, to /etc/mail/access, along with OK for local but not relay, rebuilt database by makemap hash /etc/mail/access /etc/mail/access, but the mail messages are still refused. I can ssh/scp between all the computers on the network. Also no problems with NFS. Use it regularly from an XP box and and the other BSD computers on the network. I had just started running pf on the box that's refusing the messages, but disabled it and restarted, but it didn't help. I don't know if it's pertinent to the problem, but I'm running current, now on the 4th system build. Didn't put dmesg in this message for sake of brevity, and because there was nothing abnormal in it after the last cvsup and build. But, if it's needed, please advise, and I'll do it. According to /usr/ports/infrastructure/build/out-of-date, all ports are up to date, too. Thanks for any help on this. Denny White GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFDZ2hKy0Ty5RZE55oRAjTGAJ0TMSSrK7aSWnUAiknONUaG1T35EACfRpB4 X0ku+Hhmb8XTKhapjepsMzQ= =LsiP -END PGP SIGNATURE-
Re: Windows OpenBSD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Gustavo Rios contributed the following: Dear folks! I am in need for integrating a set of windows dektops with some openbsd servers. I have two openbsd boxes: one acting like an NFS server and another with NIS + Kerberos. The OpenBSD workstations are already working with authentication being provided by NIS+Kerberos and storage centrally managed by a NFS storage server. The problem comes when i think on about 50 desktops running Windows XP/2003. I would like those windows boxes to grab the users/groups information directly from my nis/krb server, as also performs SSO based on the user principal stored on that same nis/krb server. Another important aspect is about NFS. The home directories needs to be made shared accros windows boxes. I am not considering using SAMBA. But i do consider adding an extra layer for authentication (since it will be added for email/proxy auth): openldap server. The problem is how to integrate OpenLDAP/NIS/KRB/NFS with those WIN boxes. Services For Unix (by MS) provides a consistent support for NFS client, i believe! Could i use it? Is there anything i should be aware about, before trying it? Now another problem: How to make windows authentication directly by means of NIS/KRB or even from OpenLDAP? I was searching the web and found about GINA (Graphical Identification aNd Authorization): It the windows login interface, it can be replaced. I searched some in the town ad found: http://wwwthep.physik.uni-mainz.de/~frink/newgina_pre09/readme.html http://www.arch.usyd.edu.au/~doug/gina.html http://www.windowsitpro.com/Article/ArticleID/14433/14433.html I would really LOVE to see what you have to write on such matters. Thanks A LOT for your time and cooperation. best regards Services for Unix (by MS) works fine for me here on Windows XP, both with OpenBSD and FreeBSD. Little slow sometimes, but for the last 8 months, has been reliable. I've had no problems. Hope this helps some. Denny White GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFDZ4Ply0Ty5RZE55oRApK6AKCWPhaD/BC+9C+tYaaKfVrnKCxUKACeIJFe ahRMiJVZ9Xv/IIMcZTeb1oE= =EtaK -END PGP SIGNATURE-
Re: local network mail help needed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Greg Thomas contributed the following: On 11/1/05, Denny White [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'd like to be able to use just mail instead of the system MUA for one user who doesn't have an email account setup with the ISP, but who just wants to be able send email messages to other users on the network. So far, the messages keep getting MDeferred: Connection refused by . I added the network name, and later, when that didn't work, the IP address also, to /etc/mail/access, along with OK for local but not relay, rebuilt database by makemap hash /etc/mail/access /etc/mail/access, but the mail messages are still refused. I can ssh/scp between all the computers on the network. Also no problems with NFS. Use it regularly from an XP box and and the other BSD computers on the network. I had just started running pf on the box that's refusing the messages, but disabled it and restarted, but it didn't help. I don't know if it's pertinent to the problem, but I'm running current, now on the 4th system build. Didn't put dmesg in this message for sake of brevity, and because there was nothing abnormal in it after the last cvsup and build. But, if it's needed, please advise, and I'll do it. According to /usr/ports/infrastructure/build/out-of-date, all ports are up to date, too. Thanks for any help on this. Denny White Perhaps the sendmail section of the afterboot manpage is relevant? You're lacking quite a bit of info so we can only guess. Are the other users running OpenBSD? Sendmail? Default OpenBSD Sendmail config? Greg Okay, thanks for the advice. I've already checked the README and must've missed the default accept policy part. Checked the other reference and saw it immediately. I'll try to figure out how to do it. I've fooled around with sendmail on a FreeBSD box when I was installing a virus program for checking email. It is, in fact, the box that's trying to send the messages to this one, which is running OpenBSD current with the sendmail default install. Thanks for the pointers. Putting dmesg below in case needed. And the FreeBSD box is still using default sendmail install too. Denny White OpenBSD 3.8-current (GENERIC) #4: Mon Oct 31 01:54:48 CST 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III (GenuineIntel 686-class) 601 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 267952128 (261672K) avail mem = 237645824 (232076K) using 3296 buffers containing 13500416 bytes (13184K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(a7) BIOS, date 01/31/02, BIOS32 rev. 0 @ 0xfb4f0 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0xb970 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdd90/144 (7 entries) pcibios0: PCI Exclusive IRQs: 5 9 10 11 pcibios0: PCI Interrupt Router at 000:07:0 (VIA VT82C596A ISA rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0x8000 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 VIA VT82C691 PCI rev 0xc4 ppb0 at pci0 dev 1 function 0 VIA VT82C598 AGP rev 0x00 pci1 at ppb0 bus 1 pcib0 at pci0 dev 7 function 0 VIA VT82C686 ISA rev 0x22 pciide0 at pci0 dev 7 function 1 VIA VT82C571 IDE rev 0x10: ATA66, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: WDC WD300BB-00AUA1 wd0: 16-sector PIO, LBA, 28629MB, 58633344 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HP, CD-Writer+ 9500b, 1.06 SCSI0 5/cdrom removable atapiscsi1 at pciide0 channel 1 drive 1 scsibus1 at atapiscsi1: 2 targets cd1 at scsibus1 targ 0 lun 0: ASUS, CD-S500/A, 1.0K SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 uhci0 at pci0 dev 7 function 2 VIA VT83C572 USB rev 0x10: irq 9 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1 at pci0 dev 7 function 3 VIA VT83C572 USB rev 0x10: irq 9 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered viaenv0 at pci0 dev 7 function 4 VIA VT82C686 SMBus rev 0x30 auvia0 at pci0 dev 7 function 5 VIA VT82C686 AC97 rev 0x20: irq 5 ac97: codec id 0x83847644 (SigmaTel STAC9744/45) ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D audio0 at auvia0 fxp0 at pci0 dev 13 function 0 Intel 82557 rev 0x08, i82559: irq 11, address 00:d0:b7:ba:15:09 inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4 vga1 at pci0 dev 15 function 0 3DFX Interactive Voodoo3 rev 0x01 wsdisplay0 at vga1 mux 1: console
ports out-of-date question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just trying to find out if the output from running ./out-of-date for installed packages is because I've cvsup'd current and rebuilt everything numerous times which, I'm pretty sure I read, is unsupported. Only fresh installs of current snapshot supported, I believe. Anyways, here's the output when I run ./out-of-date: - -- archivers/bzip2 # c.38.2 - c.38.3 archivers/gtar # c.38.2,gettext-0.10.40p3,intl.2.0 - c.38.3,gettext-0.14.5,intl.3.0 archivers/unzip # c.38.2 - c.38.3 archivers/zip # c.38.2 - c.38.3 audio/esound# c.38.2 - c.38.3 converters/libiconv # c.38.2 - c.38.3 devel/atk # gettext-0.10.40p3,intl.2.0 - gettext-0.14.5,intl.3.0 devel/gettext # 0.10.40p3 - 0.14.5 devel/glib2 # c.38.2,gettext-0.10.40p3,intl.2.0 - c.38.3,gettext-0.14.5,intl.3.0 devel/gmake # c.38.2,gettext-0.10.40p3,intl.2.0 - c.38.3,gettext-0.14.5,intl.3.0 devel/libaudiofile # c.38.2 - c.38.3 devel/libtool,-ltd # 1.5.20 - 1.5.20p1 devel/pango # c.38.2,intl.2.0 - c.38.3,intl.3.0 emulators/redhat/motif # 2.1.30p1 - 2.1.30p2 graphics/flash # c.38.2 - c.38.3 graphics/imlib2 # c.38.2,libltdl-1.5.20 - c.38.3,libltdl-1.5.20p1 graphics/jpeg # c.38.2 - c.38.3 graphics/libungif # c.38.2 - c.38.3 graphics/tiff # c.38.2 - c.38.3 lang/ezm3 # c.38.2 - c.38.3 lang/tcl/8.4# c.38.2 - c.38.3 mail/fetchmail # 6.2.5.2p0 - 6.2.5.2p1 mail/pine # c.38.2 - c.38.3 net/cvsup,no_x11# c.38.2 - c.38.3 net/libdnet # c.38.2 - c.38.3 net/quirc # c.38.2 - c.38.3 security/gnupg # 1.4.1p0 - 1.4.1p1 security/gpgm# gettext-0.10.40p3,gnupg-1.4.1p0,intl.2.0,pthread.6.1 - gettext-0.14.5,gnupg-1.4.1p1,intl.3.0,pthread.6.2 security/libgpg-error # c.38.2,gettext-0.10.40p3,intl.2.0 - c.38.3,gettext-0.14.5,intl.3.0 security/scanssh # c.38.2 - c.38.3 textproc/gdiff # c.38.2,gettext-0.10.40p3,intl.2.0 - c.38.3,gettext-0.14.5,intl.3.0 www/mozilla-firefox# 1.0.7p2 - 1.0.7p3 x11/fluxbox # c.38.2 - c.38.3 x11/gtk+2 # c.38.2,gettext-0.10.40p3,intl.2.0 - c.38.3,gettext-0.14.5,intl.3.0 x11/openmotif # c.38.2 - c.38.3 x11/tk/8.4 # c.38.2 - c.38.3 - -- Not asking for any kind of fix or help on this, just to understand the why of it, like I stated above. Aware that what I did is unsupported. Finally getting insurance money back after hurricane Katrina first thing on agenda is to buy the new 3.8 cd's. :-) Previously, just experimenting trying to get to know the system. Have used mostly FreeBSD with portupgrade, portsnap, so forth. Thanks for any info. Denny White Self-Pity I never saw a wild thing sorry for itself. A small bird will drop frozen dead from a bough without ever having felt sorry for itself. D. H. Lawrence GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFDclmay0Ty5RZE55oRAo65AJsFWZrb6kcY5NH/5SqUN7L2s030ggCeNYdt GI+K2/p+L0tEnrIufZMLHQo= =9sPQ -END PGP SIGNATURE-
[EMAIL PROTECTED]: Re: mutt, getmail procmail]
-- ___ ___ / __/ _ \/ __/__ / _\ \/ // / _//___/ / /___//_/ /_/ [ 1987 - 2007 ] http://sdf.lonestar.org Public Access Unix System === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === Date: Fri, 13 Jul 2007 19:26:52 -0500 From: Denny White [EMAIL PROTECTED] To: Philip Guenther [EMAIL PROTECTED] Subject: Re: mutt, getmail procmail Message-ID: [EMAIL PROTECTED] References: [EMAIL PROTECTED] [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: [EMAIL PROTECTED] X-GPG-PUBLIC_KEY: http://wwwkeys.nl.pgp.net X-GPG-FINGERPRINT: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A User-Agent: Mutt/1.5.12-2006-07-14 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Jul 13, 2007 at 02:44:48PM -0600, Philip Guenther wrote: On 7/13/07, Denny White [EMAIL PROTECTED] wrote: ... PATH=$HOME/bin:$HOME:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:. That line is probably unnecessary. Unless you can point to a specific program that your .procmailrc uses that is not in the default PATH set by procmail, why change it? FORMAIL=/usr/local/bin/formail Why do people think that hardcoding the paths to normal programs is a good thing? Why not just say formail and let the shell do the work? SENDMAIL=/usr/sbin/sendmail Remove that line: procmail sets that for you. ($SENDMAIL is a historical wart that exists only because sendmail was originally installed into a directory (/usr/lib) that wasn't in anyone's path.) LOCKFILE=$HOME/.lockmail Ugh. Do you know what that LOCKFILE assignment does? Unless you have a specific need for it (and I don't see anything in your .procmailrc that does), you should remove it. If you don't know what it does, then go read the procmailrc(5) manpage and then remove that line. # Anything that has not been delivered by now will go to $DEFAULT # using LOCKFILE=$DEFAULT$LOCKEXT That comment is not correct for at least two reasons: 1) the locking of $DEFAULT$LOCKEXT is only done if $DEFAULT names an actual file and not a directory, and 2) it doesn't (re)use LOCKFILE: you can hold both global lock and a local lock When I take procmail out of .getmailrc just download everything to my inbox, there's no problem. The problem starts every time I try to use procmail. Below is typical output of a getmail session: 2007-07-13 14:23:31 Delivery error (command procmail 17884 error (0, procmail: [17884] Fri Jul 13 14:23:31 2007 procmail: Assigning MAILDIR=/home/dennyboy/Mail procmail: Assigning DEFAULT=/home/dennyboy/Mail/inbox procmail: Assigning PMDIR=/home/dennyboy/.procmail procmail: Assigning LOGFILE=/home/dennyboy/.procmail/.procmail-log procmail: Opening /home/dennyboy/.procmail/.procmail-log)) 2007-07-13 14:23:31 msg 13/13 (2274 bytes) msgid UID54784-1149445332 from [EMAIL PROTECTED] ... It looks like the complaint from getmail is that procmail is writing stuff to its stderr. That's occurring because you set VERBOSE to on before you set LOGFILE. Either remove the assignment to VERBOSE or move it to after the LOGFILE assignment (or move the LOGFILE assignment to before the VERBOSE assignement, of course). Philip Guenther Philip, Thank you. Followed your advice. Pertinent section below. It works. No more error messages, messages get filtered properly, life is good. I had set it the previous way that made the errors I guess out of misunderstanding the documentation and samples I had found. Anyways, thanks again, very much appreciated. Denny White = VERBOSE=off PMDIR=$HOME/.procmail LOGFILE=$PMDIR/.procmail-log MAILDIR=$HOME/Mail # You'd better make sure it exists DEFAULT=$MAILDIR/inbox COMSAT=no PER=([EMAIL PROTECTED]|[EMAIL PROTECTED]) FBSDALL=([EMAIL PROTECTED]|[EMAIL PROTECTED]) OBSDALL=([EMAIL PROTECTED]) :0 *$ ^From:.*$PER per/ :0 *$ ^From:.*$FBSDALL fbsd/ :0 *$ ^From:.*$OBSDALL obsd/ == -- ___ ___ / __/ _ \/ __/__ / _\ \/ // / _//___/ / /___//_/ /_/ [ 1987 - 2007 ] http://sdf.lonestar.org Public Access Unix System === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFGmBdFy0Ty5RZE55oRApFQAJsF+g7qjWSlT9Zc/vfOVvuQpRQqbwCfQQAy ju0BjC1doukS9IFk18GOeec= =wuzL -END PGP SIGNATURE-
Nut Belkin UPS Problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have an old Belkin F6C525-SER ups attached to serial port 1. When /usr/local/bin/upsdrvctl start runs, it finds identifies the ups correctly. Also, no problem when /usr/local/sbin/upsd runs. But, when /usr/local/sbin/upsmon runs, I get: Broadcast Message from [EMAIL PROTECTED] ((not a tty)) at whatever time run . . . communications lost to the UPS Repeat 1st line (Broadcast etc) A UPS is unavailable (can't be contacted for monitoring) Below are all the pertinent uncommented settings in nuts config files. (snippet from /etc/nut/ups.conf) I've tried entering different labels here, including the actual identification of the ups, F6C525-SER along with anywhere else it's required to match. Didn't help. I assumed this was an arbitrary setting only mattered in that it has to match in any other config files it's used in. [belkinups] driver = belkin port = /dev/tty00 desc = bubbhasbox (snippet from /etc/nut/upsd.conf) ACL all 0.0.0.0/0 ACL localhost 127.0.0.1 ACCEPT localhost REJECT all # == MAXAGE 15 (snippet from /etc/nut/upsd.users) [dennyboy] password = allowfrom = localhost actions = SET instcmds = ALL upsmon master # # The matching MONITOR line in your upsmon.conf would look like this: # # MONITOR [EMAIL PROTECTED] 1 monuser pass master (or slave) (snippet from /etc/nut/upsmon.conf) RUN_AS_USER nutmon # This user added as per docs MONITOR [EMAIL PROTECTED]:5678 1 dennyboy master I've also tried this without a port after localhost. No difference. Still doesn't work. I may have misunderstood the docs, but there were instructions without a port being appended also. # -- MINSUPPLIES 1 # -- SHUTDOWNCMD /sbin/shutdown -h -p +0 # -- NOTIFYCMD /usr/local/bin/notifyme.sh # -- POLLFREQ 10 # -- POLLFREQALERT 10 # -- HOSTSYNC 15 # -- DEADTIME 30 # -- POWERDOWNFLAG /etc/killpower # Pertinent script added to /etc/rc.shutdown as per docs # -- NOTE: I changed each instance of %s to belkinups just like the label in ups.conf # NOTIFYMSG NOCOMM A UPS is unavailable (can't be contacted for monitoring) NOTIFYMSG COMMOK Communications established with UPS NOTIFYMSG COMMBAD Communications lost to the UPS NOTIFYMSG ONLINE UPS belkinups is getting line power NOTIFYMSG ONBATT Someone pulled the plug on belkinups NOTIFYMSG LOWBATT UPS belkinups has a low battery NOTIFYMSG FSD UPS is being shutdown by the master # # Note that %s is replaced with the identifier of the UPS in question. # -- RBWARNTIME 43200 # -- NOCOMMWARNTIME 300 # -- FINALDELAY 5 Just wanted to say that I've read the docs man pages numerous times searched extensively through mailing list archives, experimented with the settings until I ran out of ideas, before asking about this on the list. It's either something I'm missing, misunderstanding, or possibly a peculiarity with my hardware. Any help greatly appreciated. Denny White -- ___ ___ / __/ _ \/ __/__ / _\ \/ // / _//___/ / /___//_/ /_/ [ 1987 - 2007 ] http://sdf.lonestar.org Public Access Unix System === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFGpCf4y0Ty5RZE55oRAkOTAJsE9YWl7G8unYpMDOgpZB7VvP0TQACgsQAn VUa9ASlqcKsdR42ypfYU4+Q= =SXZT -END PGP SIGNATURE-
Re: Nut Belkin UPS Problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Jul 22, 2007 at 11:06:44PM -0500, Denny White spake forth: I have an old Belkin F6C525-SER ups attached to serial port 1. When /usr/local/bin/upsdrvctl start runs, it finds identifies the ups correctly. Also, no problem when /usr/local/sbin/upsd runs. But, when /usr/local/sbin/upsmon runs, I get: Broadcast Message from [EMAIL PROTECTED] ((not a tty)) at whatever time run . . . communications lost to the UPS Repeat 1st line (Broadcast etc) A UPS is unavailable (can't be contacted for monitoring) Below are all the pertinent uncommented settings in nuts config files. (snippet from /etc/nut/ups.conf) I've tried entering different labels here, including the actual identification of the ups, F6C525-SER along with anywhere else it's required to match. Didn't help. I assumed this was an arbitrary setting only mattered in that it has to match in any other config files it's used in. [belkinups] driver = belkin port = /dev/tty00 desc = bubbhasbox (snippet from /etc/nut/upsd.conf) ACL all 0.0.0.0/0 ACL localhost 127.0.0.1 ACCEPT localhost REJECT all # == MAXAGE 15 (snippet from /etc/nut/upsd.users) [dennyboy] password = allowfrom = localhost actions = SET instcmds = ALL upsmon master # # The matching MONITOR line in your upsmon.conf would look like this: # # MONITOR [EMAIL PROTECTED] 1 monuser pass master (or slave) (snippet from /etc/nut/upsmon.conf) RUN_AS_USER nutmon# This user added as per docs MONITOR [EMAIL PROTECTED]:5678 1 dennyboy master I've also tried this without a port after localhost. No difference. Still doesn't work. I may have misunderstood the docs, but there were instructions without a port being appended also. # -- MINSUPPLIES 1 # -- SHUTDOWNCMD /sbin/shutdown -h -p +0 # -- NOTIFYCMD /usr/local/bin/notifyme.sh # -- POLLFREQ 10 # -- POLLFREQALERT 10 # -- HOSTSYNC 15 # -- DEADTIME 30 # -- POWERDOWNFLAG /etc/killpower # Pertinent script added to /etc/rc.shutdown as per docs # -- NOTE: I changed each instance of %s to belkinups just like the label in ups.conf # NOTIFYMSG NOCOMM A UPS is unavailable (can't be contacted for monitoring) NOTIFYMSG COMMOK Communications established with UPS NOTIFYMSG COMMBAD Communications lost to the UPS NOTIFYMSG ONLINE UPS belkinups is getting line power NOTIFYMSG ONBATT Someone pulled the plug on belkinups NOTIFYMSG LOWBATT UPS belkinups has a low battery NOTIFYMSG FSD UPS is being shutdown by the master # # Note that %s is replaced with the identifier of the UPS in question. # -- RBWARNTIME 43200 # -- NOCOMMWARNTIME 300 # -- FINALDELAY 5 Just wanted to say that I've read the docs man pages numerous times searched extensively through mailing list archives, experimented with the settings until I ran out of ideas, before asking about this on the list. It's either something I'm missing, misunderstanding, or possibly a peculiarity with my hardware. Any help greatly appreciated. Denny White Never got an answer on this problem, but I resolved it it's working fine now. Apparently I didn't read enough, at least in the right place. For the sake of anyone who runs into the same problem, got what I needed at: http://www.networkupstools.org/doc/2.0.1/INSTALL.html Denny White -- ___ ___ / __/ _ \/ __/__ / _\ \/ // / _//___/ / /___//_/ /_/ [ 1987 - 2007 ] http://sdf.lonestar.org Public Access Unix System === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFGp7Vly0Ty5RZE55oRAvOQAKCivWSNF/z4EJwC+yLa5836Ney2QACZAUdf KKE5FrTOjpURUeu1KkV0R1k= =Yfzx -END PGP SIGNATURE-
streamdvd question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 When I'm using streamdvd with dvdauthor on a small video dvd or one that can be safely shrunk, I don't have any problems. But, when I try to split a large one by selecting certain sequential chapters, I run into problems. Last night I ripped the 1st 15 chapters of a video dvd no problem. Audio was fine, etc. I also ripped the entire dvd with dvdbackup, so I don't think there's anything wrong with the dvd itself. Later I tried to rip the 2nd half, same as before, with dvdauthor streamdvd, chapters 16-29 that's when the trouble started. I used script a high debug level to try to capture as much info as possible. It's directly below here. Also, some errors from /var/log/messages to show what was going on underneath. Outside of this splitting a dvd problem, the only other problem I had was with streamanalyze seg faulting now then, but that probably had to do with my typing in the wrong parameters. Don't know at this point. Most of the time, it works okay along with lsdvd. I read everything I could find before asking this question googled around quite a bit. Not a complaint, but some of the documentation is scant on such things as streamdvd. I also tried contacting the port maintainer before asking, but I imagine he's busy enough already. Also tried another method for ripping from: http://www.ericdugas.com/howtos/ripDVDWithMplayer/ripDVDWithMplayer.php but ran into problems with mp2enc on that one. Thanks for any help I can get on this. And, if anyone knows of a simpler workable way to split a large dvd, please let me know. Denny white NOTE: Where there is a \ at the ends, I added to avoid exceeding the 72 character limitation on the list. Script started on Sun Aug 5 17:39:26 2007 # dvdauthor -t -o dvd1 -f 'ss treamdvd -i /dev/rcd0c -t 1 -c 16-29 \ -s 0xe0,0x80,/dev/rcd0c -t 1 -c 16-29 -s 0xe0,0x80, 0x20 -d 4 |' DVDAuthor::dvdauthor, version 0.6.11. Build options: gnugetopt magick iconv freetype fribidi Send bugs to [EMAIL PROTECTED] INFO: dvdauthor creating VTS STAT: Picking VTS 01 STAT: Processing streamdvd -i /dev/rcd0c -t 1 -c 16-29 \ -s 0xe0,0x80,0x20 -d 4 |... Selected streams: 0xe0 0x80 0x20 Processing title 1, chapter 16 (1991761) - chapter 29 (3860297) AV Delay: 185 ms INFO: [???] mplex version 1.6.1.93 (2.2.3 $Date: 2004/01/13 \ 20:45:26 $) Debug 2: Buffer read: 65536 Debug 2: DVD read Debug 3: DVD read stopped at next seq hdr Debug 2: Buffer return: 65536 Debug 2: Buffer read: 65536 Debug 2: Buffer return: 65536 Debug 2: Buffer read: 65536 Debug 2: DVD read Debug 3: DVD read stopped at next seq hdr Debug 2: DVD read Debug 3: DVD read stopped at next seq hdr Debug 2: DVD read Debug 3: DVD read stopped at next seq hdr Debug 2: DVD read Debug 3: DVD read stopped at next seq hdr Debug 2: DVD read Debug 3: DVD read stopped at next seq hdr Debug 2: Buffer return: 65536 INFO: [???] File unnamed-0xe0.m2v looks like an MPEG Video stream. **ERROR: [???] File unnamed-0x80.ac3 unrecogniseable! **ERROR: [???] File unnamed-0x20 unrecogniseable! **ERROR: [???] Unrecogniseable file(s)... exiting. ERR: Error reading from pipe: No such file or directory # ^D Script done on Sun Aug 5 17:56:45 2007 -- NOTE: Where there is a \ at the ends, I added to avoid exceeding the 72 character limitation on the list same as above. -- Tail from /var/log/messages I shortened this a lot because of the repetitive error message: Aug 5 18:54:03 bubbhasbox /bsd: SENSE KEY: Illegal Request Aug 5 18:54:03 bubbhasbox /bsd: ASC/ASCQ: Logical Block Address \ Out of Range Aug 5 18:54:03 bubbhasbox /bsd: cd0(atapiscsi0:0:0): Check Condition \ (error 0x70) on opcode 0x28 Aug 5 18:54:03 bubbhasbox /bsd: SENSE KEY: Illegal Request Aug 5 18:54:03 bubbhasbox /bsd: ASC/ASCQ: Logical Block Address \ Out of Range Aug 5 18:54:03 bubbhasbox /bsd: cd0(atapiscsi0:0:0): Check Condition \ (error 0x70) on opcode 0x28 Aug 5 18:54:03 bubbhasbox /bsd: SENSE KEY: Illegal Request Aug 5 18:54:03 bubbhasbox /bsd: ASC/ASCQ: Logical Block Address \ Out of Range Aug 5 18:54:03 bubbhasbox /bsd: cd0(atapiscsi0:0:0): Check Condition \ (error 0x70) on opcode 0x28 -- ___ ___ / __/ _ \/ __/__ / _\ \/ // / _//___/ / /___//_/ /_/ [ 1987 - 2007 ] http://sdf.lonestar.org Public Access Unix System === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFGt2ujy0Ty5RZE55oRAl9GAJ4r/C3R0BTgL7OKP3X8o2b66HEIswCgz/JC vlAUBvg5vYXTUIusbFUT1mU= =ci/E -END PGP SIGNATURE-
Re: streamdvd question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Aug 07, 2007 at 12:33:11AM +, Jacob Meuser wrote: chapters are not necessarily consecutive, they could bounce around. and AFAIK, many programs have problems with this. some say this is intentional design by the DVD distributor, to make it harder to rip. That's kind of what I figured what my friend said, too. mp2enc is, as the authors say, only included for completeness. use toolame instead. or use ffmpeg for this whole operation. Okay, I'll give them each a shot. And thanks for taking time to answer. Denny White -- ___ ___ / __/ _ \/ __/__ / _\ \/ // / _//___/ / /___//_/ /_/ [ 1987 - 2007 ] http://sdf.lonestar.org Public Access Unix System === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFGt+e0y0Ty5RZE55oRAqiXAJ0ZB3mj5x0uK0raYelSbK1NKl/EtQCgg6Xz dAuP04k4EsGs7Xbz8X9HDmk= =n5pn -END PGP SIGNATURE-
Re: Qemu networking help
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Aug 25, 2007 at 10:31:40PM -0700, Allie Daneman spake forth: So I recently installed Qemu w/XP on my 4.1 box and am having a bear of a time getting pf and the networking going. I've tried the undeadly howto and another on the Qemu forum to no avail. Can anyone share their qemu ifup script, how they run it, and the important parts of their pf.conf to get it running ? Thnx in advance... You didn't give any specific links I don't have time to search on undeadly or qemu, so I don't know if this link has the same stuff you've already read or not. Anyway, it's at http://neworder.box.sk/news/16699 Stuff there on bridges, tap devices, pf along with some extra links on each one. Looks fairly in depth. Check it out. Denny White -- ___ ___ / __/ _ \/ __/__ / _\ \/ // / _//___/ / /___//_/ /_/ [ 1987 - 2007 ] http://sdf.lonestar.org Public Access Unix System === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFG0UEsy0Ty5RZE55oRAsDRAKCqRlH/82oHhBN5cXG+CNWq6DhLkgCfWb0g rd7vl99T6KFmy8vvCVO5Jv4= =7Vwy -END PGP SIGNATURE-
Re: Another qemu + OpenBSD host + networking + pf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Aug 26, 2007 at 08:30:19PM -0700, Allie Daneman spake forth: Ok...first off I apologize for wasting bandwidth this morning looking for help...blame it on Sunday morning laziness. After googling and trying things I got my qemu working w/XP finally. The undeadly article is great but isn't as complete as it could be. Hopefully this will fill in the cracks for any of you out there that want to get qemu going ASAP to start using virtualization on OBSD ;) Here it is cut and dry: ### Install ### 1) qemu-img create -f qcow xp.hd 4G Create image * make sure xp.hd is writable by the owner running qemu (otherwise you can't partition the drive in Windows Install) ** 2) qemu -m 384 -cdrom XP.iso -boot d -monitor stdio xp.hd Boot iso image as if it was on a cdrom ### Setup networking ### 3) Update /etc/sysctl to enable forwarding: net.inet.ip.forwarding=1 4) Create /etc/hostname.tun0 with the following: link0 up inet 192.168.0.1 255.255.255.0 5) Create /etc/pf.conf with this or something similar: internal = tun0 external = ipw0 set loginterface $external scrub in all nat on $external from $internal:network to any - ipw0 pass quick on lo0 all flags any pass in quick on $internal proto icmp all keep state pass in quick on $internal from $internal:network to any keep state pass out quick on $internal from any to $internal:network keep state pass out quick on $external proto tcp all modulate state pass out quick on $external proto { udp, icmp } all keep state block quick all ### starting Qemu ### 6) sudo qemu -m 384 -monitor stdio -net nic -net tap xp.hd That's it !!! No qemu-ifup script needed. Obviously you assign XP (or whatever OS you install) an IP in the 192.168.0.0/24 network and you're golden. This is a virtual network...so changing it is as easy as changing your hostname.tun0, pf.conf, and the IP in the OS you're running as a virtual. My only dilemma is that I run dhcp on two external interfaces and I don't want to change DNS servers on my virtual every time I move. I think I'm going to work on running dhcpd on tun0 and script a DNS IP harvester for dhcpd to assign the same DNS servers as the host. There's always more to do ;) Enjoy... Thanks for all of that. It'll make it a lot easier for a pf dummy like myself. Sorry for the link before. Didn't know it was the same info as undeadly. Just a link, that is, to where I sent you. We know where road where good intentions lead. ;) Denny White -- ___ ___ / __/ _ \/ __/__ / _\ \/ // / _//___/ / /___//_/ /_/ [ 1987 - 2007 ] http://sdf.lonestar.org Public Access Unix System === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFG0ouGy0Ty5RZE55oRAokKAKCF6dJG4SMmnJtMg7q/5i6Qr4f48QCdEyt/ XIGjSsPpm/gPkticonkUSSg= =lCL1 -END PGP SIGNATURE-
Re: scanner??
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 10 September 2007 12:08:48 Vim Visual wrote: ... and I wonder whether any of you has a recommendation for me. On Mon, Sep 10, 2007 at 12:14:30PM +0200, Antoine Jacoutot spake wrote: Epson are usually very well supported. See: http://www.sane-project.org/cgi-bin/driver.pl -- Antoine I can vouch for the Epsons. I picked up an old Epson Perfection 1200U off eBay it works great with both xsane the sane front backends on my old PIII 800 home-built running OpenBSD 4.0, and on my Dell Dimension 2400 running 4.1, thanks to Antoine's work on the ports. Sorry Antoine, shameless plug for you. ;) Denny White -- SDF-1 [ 1987 - 2007 ] http://sdf.lonestar.org Public Access Unix System === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFG5i69y0Ty5RZE55oRAkuKAKDFMzUrqCuTXmHT+/TVSXdP6p5/rwCfX9kn gWEABTHpJMk/P9m3gVG3Ins= =iSLX -END PGP SIGNATURE-
cups printing question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm getting garbled printouts when I try to print to my xp network shared printer, an HP DeskJet 722C, from my OpenBSD 4.1 box. A good for instance is the OpenBSD home page. Graphics printed great, but about 3/4 of the left side of the page was lopped off, and the sentences on the right were in some places garbled or the top half of the letters lopped off. I've got the following installed: 1) enscript 2) ghostscript ghostscript fonts 3) cups 4) pna2ppa - d/l from http://sourceforge.net/projects/pnm2ppa/ (It built installed on the system without any problems) 5) HP-DeskJet_722C-pnm2ppa.ppd d/l from linuxprinting 6) samba (probably didn't need it but it's quicker from the xp box than nfs for when I'm lazy don't want to use scp) 7) cupsd, smbd, nmbd load fine on boot from /etc/rc.local I tried changing firefox's page layout margins to match what the cups printing defaults were in the print dialog. But, when you're configuring the printer from the browser interface, the margins you're offered don't seem to correspond. I.E., first instance is 0 and then goes to 10 and i don't understand what the increments are. mm? I also checked /etc/pnm2ppa.conf and commented everything out except for the 720 part which covers that whole series of printers.I've got the device url set to lpd://xpbox/HPDeskJet and I know that's right because at least it's trying to print now. I printed a couple of text only pages from the rfc's main site perfectly. I don't know if it's having trouble with page tables or what. Any help much appreciated. Any other info I didn't supply but possibly need to, please let me know. Denny White -- SDF-1 [ 1987 - 2007 ] http://sdf.lonestar.org Public Access Unix System === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFG66Rly0Ty5RZE55oRAmC/AJ9sMkjMrx7h+DtYONFeTHSmChUswACghYRb FM+TOshNifTWbtYahP9WL6Q= =jUl9 -END PGP SIGNATURE-
Re: ports out-of-date question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Andy Wingate contributed the following: In message [EMAIL PROTECTED] Denny White [EMAIL PROTECTED] wrote: [More ports@ than [EMAIL PROTECTED] Just trying to find out if the output from running ./out-of-date for installed packages is because I've cvsup'd current and rebuilt everything numerous times which, I'm pretty sure I read, is unsupported. You are recommended to use binary snapshots and packages where possible (particularly if you use CVSup which is a pain to build). See URL:http://www.openbsd.org/faq/faq5.html#WhySrc and URL:http://www.openbsd.org/faq/faq15.html Only fresh installs of current snapshot supported, I believe. Anyways, here's the output when I run ./out-of-date: -- archivers/bzip2 # c.38.2 - c.38.3 Your installed packages were linked against 38.2 of libc while you now have 38.3. They were also linked against an older pthread (6.1) than the one you currently have (6.2). Your installed packages are out of sync with your userland. If you use binary packages, this is still likely to happen as userland snapshots appear much more often than packages (since building a complete set of packages will take that much longer). However, if you have set up a suitable PKG_PATH, 'pkg_add -u' can help you keep up to do with your installed packages. [snip] devel/gettext # 0.10.40p3 - 0.14.5 Your installed gettext is out of date compared to the ports tree which will also show up in packages which depend on it. Similar for libtool, redhat-motif, gnupg. Not asking for any kind of fix or help on this, just to understand the why of it, like I stated above. Aware that what I did is unsupported. Finally getting insurance money back after hurricane Katrina first thing on agenda is to buy the new 3.8 cd's. :-) Previously, just experimenting trying to get to know the system. Have used mostly FreeBSD with portupgrade, portsnap, so forth. Thanks for any info. Definitely buy the CDs but be aware that your -current system is ahead of 3.8 (as on the CDs). Downgrading without completely reinstalling from scratch is not supported (again see FAQ 5) -- Andy Wingate URL:http://www.sparse.net OpenPGP key 0xC642BF8A Tagline missing. Last seen in the vicinity of usenet. Okay Andy, I appreciate the info. If you have time, can you answer one more question? Could I alleviate this discrepancy by pkg_delete all installed packages and also deleting all of /usr/ports/distfiles, and then reinstall packages? And yes, I plan on a fresh install when I get the cd's. All important stuff backed up on regular basis. Thanks. Denny White GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFDc5Q1y0Ty5RZE55oRAhhLAJ92WVj7lam4DNeRbiCAGiiK/dYWHwCgyGLD gPiQo04JI9CXO3RMbsVjpU4= =LCJK -END PGP SIGNATURE-
./out-of-date question
, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 sysbeep0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec biomask e745 netmask ef45 ttymask ffc7 pctr: 686-class user-level performance counters enabled mtrr: Pentium Pro MTRR support dkcsum: wd0 matches BIOS drive 0x80 wd1: no disk label dkcsum: wd1 matches BIOS drive 0x81 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 wsdisplay0: screen 6 added (80x25, vt100 emulation) wsdisplay0: screen 7 added (80x25, vt100 emulation) Before installing release from cd, I had previously been running current to learn more had, against instructions, rebuilt everything numerous times with no particular bad results. Found the same problem then with packages, where if I built from ports instead, no problem with ./out-of-date. I know everyone's busy with development, running production systems so forth. This is not a production machine, just a learning device for me, so this isn't urgent. Just trying to learn what I'm doing wrong. Fine system for all I can see so far. I've been running fbsd for a long time now on my old hp netserver am relatively new to obsd, especially to the way ports are handled. Used to running portupgrade associated programs like portversion in fbsd. Thanks for any help I can get. Denny White GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFDkeb8y0Ty5RZE55oRAvBmAJoDfS6lE3dFQMO6wp+G4S8xqwDm3gCgsFUY oB45Xmw1C94q+4e4hZNrwAk= =GAjW -END PGP SIGNATURE-
Re: ./out-of-date question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Dec 3 Joachim Schipper contributed the following: On Sat, Dec 03, 2005 at 12:41:50PM -0600, Denny White wrote: Have a question about the results of running /usr/ports/infrastructure/build/./out-of-date. Here is the output from it: Make sure your ports tree is up-to-date Generating specs Checking new package names Recording old package names Showing discrepancies --- /tmp/outdated.IJmN26992/old Sat Dec 3 12:02:14 2005 +++ /tmp/outdated.IJmN26992/new Sat Dec 3 12:02:14 2005 @@ -17,7 +17,7 @@ libiconv-1.9.2p1 libltdl-1.5.18 mergemaster-1.46p0 -mozilla-firefox-1.0.6p3 +mozilla-firefox-1.0.6p4 pine-4.63 png-1.2.8 tcl-8.4.7p1 Before installing mozilla-firefox, running ./out-of-date showed nothing needing updating. I had installed the normal programs I use here at home. Pine, fetchmail, gnupg, gpgme, cvsup, mergemaster. No problems. I installed obsd 3.8 release off the cd along with src, sys, XF4, ports. Then did a cvsup to a local backup drive (complete tree), cd into /usr/src, ran `cvs -d$CVSROOT -rOPENBSD_3_8 up -Pd', did the same for /usr/ports /usr/XF4, rebuilt kernel installed rebooted (everything worked ok), rebuilt userland making sure /usr/obj was clean running beforehand the usual `cd /usr/src/etc env DESTDIR=/ make distrib-dirs' after running `cd /usr/src/usr.sbin/httpd make -f Makefile.bsd- wrapper distribution' then mergemaster, rebuilt /usr/XF4, everything still okay up to installing mozilla-firefox package. I haven't been building ports as I have no particular special needs to build in, just installing packages with `pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/prog.tgz'. The same thing had happened previously when I had installed fluxbox. Blackbox didn't give the same problem, but now mozilla-firefox is. Here's uname -a output: It is possible for packages to lag behind ports. Packages are slanted towards -release, not -stable or -current, IIRC. Anyway, just build Firefox from source if you want 1.0.6p4. Joachim Thanks, Joachim. Now I remember reading the lag thing. Sorry for the bother. Unistalled the package, ran ./out-of-date no more problem. Built firefox from ports, reran ./out-of-date once again, no more problems. Much appreciated. Denny White GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFDkqYay0Ty5RZE55oRAgbTAJ9Sntlpm0LyZyuAH49v3Ulr2gccNwCaA73T Ui1uPBOHyzuPDyFuboby/zU= =F1+f -END PGP SIGNATURE-
NFS and Rebooting problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I was hoping someone could shed some light with some good links, sample configurations, etc., that might help me with the following. Not looking for someone to fix it for me or anything like that. Maybe the following will show that I have tried reading, googling, experimenting, etc., before asking. I don't want to have any settings too high to cause other problems, just to change what's neccessary. When I'd drag drop files to copy from a windows xp box to an nfs share on the obsd box, the obsd system would reboot. I thought at first that it was either something conflicting from the xp box, or that I had a hardware problem on the obsd box. That had happened once with a bad simm, but I had replaced it had had no further problems until now. Before running a time consuming memory test on the obsd box, I did some reading on obsd tunables, and am now able to copy a file over from the xp box without the system rebooting. Below is a list of the changes: net.inet.tcp.keepinittime=600 net.inet.tcp.keepidle=28800 net.inet.tcp.keepintvl=600 net.inet.tcp.recvspace=65536 net.inet.tcp.sendspace=32768 net.inet.udp.recvspace=83200 net.bpf.bufsize=65536 vfs.nfs.iothreads=4 Before the problem started occurring, I was using softupdates. I tried running without them, thinking maybe that had some bearing on the problem. Apparently it didn't. The only thing that helped was the changes listed above. I read that if you increase the tcp.recvspace tcp.sendspace too high, you can cause a kernel panic when booting. That hasn't happened so far, with the above values. Exactly how high I can go without problems, I don't know. The obsd box is used for email learning, mostly. No high usage production server. The largest file I've tried to copy to the nfs share since making the changes was about 26mb. No reboot this time. Before the changes, about the largest I could copy without trouble was 2mb. Right now, I'm limited on memory. There's only 256mb on the obsd box. That might be a problem, too, if I keep increasing the above values. There is no problem with file sizes when using scp across the network. Forgot to mention that I had tested it too, by mounting an obsd nfs share over on a fbsd box had tried to copy a large file over, resulting in a reboot. That was when I figured I had it narrowed down to hardware or an obsd settings problem, the latter apparently being the case. Thanks for any answers advice. Below is output of uname -a dmesg. OpenBSD badboybox.cableone.net 3.8 GENERIC#0 i386 OpenBSD 3.8-stable (GENERIC) #0: Fri Dec 2 01:25:13 CST 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III (GenuineIntel 686-class) 601 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 267952128 (261672K) avail mem = 237613056 (232044K) using 3296 buffers containing 13500416 bytes (13184K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(a7) BIOS, date 01/31/02, BIOS32 rev. 0 @ 0xfb4f0 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0xb970 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdd90/144 (7 entries) pcibios0: PCI Exclusive IRQs: 5 9 10 11 pcibios0: PCI Interrupt Router at 000:07:0 (VIA VT82C596A ISA rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0x8000 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 VIA VT82C691 PCI rev 0xc4 ppb0 at pci0 dev 1 function 0 VIA VT82C598 AGP rev 0x00 pci1 at ppb0 bus 1 pcib0 at pci0 dev 7 function 0 VIA VT82C686 ISA rev 0x22 pciide0 at pci0 dev 7 function 1 VIA VT82C571 IDE rev 0x10: ATA66, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: WDC WD300BB-00AUA1 wd0: 16-sector PIO, LBA, 28629MB, 58633344 sectors wd1 at pciide0 channel 0 drive 1: WDC WD400BB-00AUA1 wd1: 16-sector PIO, LBA, 38166MB, 78165360 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HP, CD-Writer+ 9500b, 1.06 SCSI0 5/cdrom removable atapiscsi1 at pciide0 channel 1 drive 1 scsibus1 at atapiscsi1: 2 targets cd1 at scsibus1 targ 0 lun 0: ASUS, CD-S500/A, 1.0K SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 uhci0 at pci0 dev 7 function 2 VIA VT83C572 USB rev 0x10: irq 9 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1 at pci0 dev 7 function 3 VIA VT83C572 USB rev 0x10: irq 9 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered
Re: NFS and Rebooting problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Otto Moerbeek contributed the following: On Wed, 7 Dec 2005, Denny White wrote: I was hoping someone could shed some light with some good links, sample configurations, etc., that might help me with the following. Not looking for someone to fix it for me or anything like that. Maybe the following will show that I have tried reading, googling, experimenting, etc., before asking. I don't want to have any settings too high to cause other problems, just to change what's neccessary. When I'd drag drop files to copy from a windows xp box to an nfs share on the obsd box, the obsd system would reboot. I thought at first that it was either something conflicting from the xp box, or that I had a hardware problem on the obsd box. That had happened once with a bad simm, but I had replaced it had had no further problems until now. Before running a time consuming memory test on the obsd box, I did some reading on obsd tunables, and am now able to copy a file over from the xp box without the system rebooting. Below is a list of the changes: net.inet.tcp.keepinittime=600 net.inet.tcp.keepidle=28800 net.inet.tcp.keepintvl=600 net.inet.tcp.recvspace=65536 net.inet.tcp.sendspace=32768 net.inet.udp.recvspace=83200 net.bpf.bufsize=65536 vfs.nfs.iothreads=4 What type of nfs mount are you using? v2 or v3; udp or tcp? Any info on the console the moment the machine reboots? What is the value of tyhe ddb.panic sysctl? Anything in the logs? -Otto Looks like v3, tcp. there was nothing on the screen when the box rebooted. Just goes blank reboots. Looked through the logs couldn't find anything, either. Running sysctl -a | grep ddb.panic returns `ddb.panic=1'. I'm a relative newbie, so I could be completely offbase, but this doesn't look good. Looks like maybe it could be a hardware problem. Maybe the settings I upped could are just taking some of the strain off the system. I read in the obsd faqs, concerning nfs, that nfs filesystems should be mounted with 0 0 on the end of the line in /etc/fstab so the computer doesn't try to fsck the nfs filesystem on boot. Here's what my /etc/fstab looks like /etc/exports: /dev/wd0a / ffs rw 1 1 /dev/wd0h /data ffs rw,nodev,nosuid 1 2 /dev/wd0f /home ffs rw,nodev,nosuid 1 2 /dev/wd0g /tmp ffs rw,nodev,nosuid 1 2 /dev/wd0e /usr ffs rw,nodev 1 2 /dev/wd0d /var ffs rw,nodev,nosuid 1 2 /dev/wd1c /mnt ffs rw,nodev,nosuid 1 2 /dev/cd0c /mnt/cdrom cd9660 ro,nodev,nosuid,noauto 0 0 /dev/fd0a /mnt/floppy msdos ro,nodev,nosuid,noauto 0 0 /mnt/data2/swap /mnt/data2/swap swap sw 0 0 # $OpenBSD: exports,v 1.2 2002/05/31 08:15:44 pjanzen Exp $ # # NFS exports Database # See exports(5) for more information. Be very careful: misconfiguration # of this file can result in your filesystems being readable by the world. # /home -alldirs -maproot=0 192.168.1.100 192.168.1.101 192.168.1.103 /data -alldirs -maproot=0 192.168.1.100 192.168.1.101 192.168.1.103 /mnt -alldirs -maproot=0 192.168.1.100 192.168.1.101 192.168.1.103 I don't quite understand the faqs I read, I guess. I thought all you had to do was put the right parameters into /etc/exports and you were good to go. Not having any problems on the old hp netserver running fbsd_5_4. Hope some of this helps. Hurried gathering the info. Have head off for work shortly. Denny White Before the problem started occurring, I was using softupdates. I tried running without them, thinking maybe that had some bearing on the problem. Apparently it didn't. The only thing that helped was the changes listed above. I read that if you increase the tcp.recvspace tcp.sendspace too high, you can cause a kernel panic when booting. That hasn't happened so far, with the above values. Exactly how high I can go without problems, I don't know. The obsd box is used for email learning, mostly. No high usage production server. The largest file I've tried to copy to the nfs share since making the changes was about 26mb. No reboot this time. Before the changes, about the largest I could copy without trouble was 2mb. Right now, I'm limited on memory. There's only 256mb on the obsd box. That might be a problem, too, if I keep increasing the above values. There is no problem with file sizes when using scp across the network. Forgot to mention that I had tested it too, by mounting an obsd nfs share over on a fbsd box had tried to copy a large file over, resulting in a reboot. That was when I figured I had it narrowed down to hardware or an obsd settings problem, the latter apparently being the case. Thanks for any answers advice. Below is output of uname -a dmesg. OpenBSD badboybox.cableone.net 3.8 GENERIC#0 i386 OpenBSD 3.8-stable (GENERIC) #0: Fri Dec 2 01:25:13 CST 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III (GenuineIntel 686-class) 601 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 267952128 (261672K
Re: NFS and Rebooting problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Joachim Schipper contributed the following: On Wed, Dec 07, 2005 at 11:36:35AM -0600, Denny White wrote: Today Otto Moerbeek contributed the following: On Wed, 7 Dec 2005, Denny White wrote: When I'd drag drop files to copy from a windows xp box to an nfs share on the obsd box, the obsd system would reboot. I thought at first that it was either something conflicting from the xp box, or that I had a hardware problem on the obsd box. That had happened once with a bad simm, but I had replaced it had had no further problems until now. Before running a time consuming memory test on the obsd box, I did some reading on obsd tunables, and am now able to copy a file over from the xp box without the system rebooting. Below is a list of the changes: net.inet.tcp.keepinittime=600 net.inet.tcp.keepidle=28800 net.inet.tcp.keepintvl=600 net.inet.tcp.recvspace=65536 net.inet.tcp.sendspace=32768 net.inet.udp.recvspace=83200 net.bpf.bufsize=65536 vfs.nfs.iothreads=4 What type of nfs mount are you using? v2 or v3; udp or tcp? Any info on the console the moment the machine reboots? What is the value of tyhe ddb.panic sysctl? Anything in the logs? -Otto Looks like v3, tcp. there was nothing on the screen when the box rebooted. Just goes blank reboots. Looked through the logs couldn't find anything, either. Running sysctl -a | grep ddb.panic returns `ddb.panic=1'. I'm a relative newbie, so I could be completely offbase, but this doesn't look good. Looks like maybe it could be a hardware problem. Maybe the settings I upped could are just taking some of the strain off the system. I read in the obsd faqs, concerning nfs, that nfs filesystems should be mounted with 0 0 on the end of the line in /etc/fstab so the computer doesn't try to fsck the nfs filesystem on boot. Here's what my /etc/fstab looks like /etc/exports: /dev/wd0a / ffs rw 1 1 /dev/wd0h /data ffs rw,nodev,nosuid 1 2 /dev/wd0f /home ffs rw,nodev,nosuid 1 2 /dev/wd0g /tmp ffs rw,nodev,nosuid 1 2 /dev/wd0e /usr ffs rw,nodev 1 2 /dev/wd0d /var ffs rw,nodev,nosuid 1 2 /dev/wd1c /mnt ffs rw,nodev,nosuid 1 2 /dev/cd0c /mnt/cdrom cd9660 ro,nodev,nosuid,noauto 0 0 /dev/fd0a /mnt/floppy msdos ro,nodev,nosuid,noauto 0 0 /mnt/data2/swap /mnt/data2/swap swap sw 0 0 I am not certain your swap file is configured correctly - I'm not certain, I've never used it, but every swap I've ever seen had a mount point of 'none'. Then again, the mount point was simply not used at all on Linux - I've never toyed with it on OpenBSD. Additionally, you shouldn't mount any 'c' partitions, such as /dev/wd1c, unless you are *very*, *very* sure what you are doing. In which case you probably don't want to. ;-) I don't think either of this will help much, though. Joachim I thought it was configured right, but maybe not, afterall. Maybe I didn't understand how to add a 2nd disk properly when I put in an extra hd for storage space. I dangerously dedicated, I think it's called, the entire drive. I didn't see any need to divide it up, at the time. Did the same thing on a fbsd box (but it's scsi, not ide) not having problems there. I can remotely mount the shares from the xp box copy really large files to the fbsd box without any problems. Have copied files as large as iso's there without complaint from that system. As for mounting /dev/wd1c, I didn't see any other way to mount it, nor would the system let me do it any other way. So, if you or anyone else sees a mistake there, in the way I've mounted it, please advise. When I get home from work tonight, I'm going to use swapctl to stop using the extra file swap I created on the 2nd disk, hash it out in fstab, see if that helps with the file copying problem. If that works, I might try doing, what the obsd faq calls, a more permanent swap to that disc using a vnode device (www.openbsd.org/faq/faq14#SwapFile) instead of a file swap. Thanks for the reply advice. Denny White GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFDmbP1y0Ty5RZE55oRAjqLAJ0RVwBaW4dMI528shk/jDNCmtF+MQCgrea5 uFTQnup2NuGllEHbtfb5fy0= =bMGL -END PGP SIGNATURE-
Re: NFS and Rebooting problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Dec 9 Will H. Backman contributed the following: If you want to do it properly, use fdisk -e wd1, disklabel -E wd1, and newfs /dev/rwd1a, in that order. Joachim Which is the short version of the New Disk FAQ: http://www.openbsd.org/faq/faq14.html#NewDisk Thanks to Will Joachim. Apologizes for not replying to message sooner. Tried using fdisk, disklabel and newfs first. Everything fine on the disk, but problem still there. Next, shutdown disconnected wd1 cable power, removed it from fstab exports rebooted, just sharing exports on wd0, tried copying files from xp box. No help, still rebooted. Pulled the old nic, Intel 82557, tried a 3com905c. This time, it didn't reboot when I did the file copy, with quite large files, so I thought I had the problem solved. Connected wd1 reset the nfs shares , did a large file copy rebooted. So, I restored the following tweaks to sysctl.conf: net.inet.tcp.keepinittime=600 # root setting tunables for nfs reboot problem net.inet.tcp.keepidle=28800 # root setting tunables for nfs reboot problem net.inet.tcp.keepintvl=600 # root setting tunables for nfs reboot problem net.inet.tcp.recvspace=65536# root setting tunables for nfs reboot problem net.inet.tcp.sendspace=32768# root setting tunables for nfs reboot problem net.inet.udp.recvspace=83200# root setting tunables for nfs reboot problem net.bpf.bufsize=65536 # root setting tunables for nfs reboot problem So far, haven't rebooted again, copying large files. Here's wd1 info from fstab so everyone knows I wasn't lazy really did the initial disk work to repair my first newbie job on it: /dev/wd1a on /data2 type ffs (local, nodev, nosuid) Thanks again for the help. If anyone sees something I've bunged up, please let me know, if you have the time. Denny White Please do not CC me. Already subscribed to OBSD mailing list. GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFDnylky0Ty5RZE55oRAil9AKClYY07FxJpJh2fdui3eT+S29JtTACglxmM IDOlJBoQG1j8kT5eeKDMzHE= =sx7q -END PGP SIGNATURE-
unzip path for f-prot update problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 When f-prot tries to update in root's cron, it reports fatal error, can't find unzip. Unzip is located in /usr/local/bin which is in root's path env: PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin: /usr/local/bin Have tried unzip from deep into directory structure and it works, comes up fine. Just wondering what I'm doing wrong. Works fine on my old hp netserver running fbsd_5_4. Can't find any major differences in the setups. Thanks for any all help advice. Denny White Please do not CC me. Already subscribed to mailing list. GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFDsXivy0Ty5RZE55oRArx8AJ9iOGi3pt7R5gsDxrKCQb5G2LKt1wCdHOQg zj3saLxLUnEuoMUObo3gWgI= =x9xe -END PGP SIGNATURE-
Re: unzip path for f-prot update problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Denny White wrote: When f-prot tries to update in root's cron, it reports fatal error, can't find unzip. Unzip is located in /usr/local/bin which is in root's path env: PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin: /usr/local/bin On Dec 27 Nick Holland contributed the following: WHICH root's path env? When root logs in? or when root's crontab runs? That's two separate environments... Have tried unzip from deep into directory structure and it works, comes up fine. Just wondering what I'm doing wrong. Works fine on my old hp netserver running fbsd_5_4. Can't find any major differences in the setups. Thanks for any all help advice. Denny White replace your invocation of unzip or whatever you actually have in your cron job with a echo $PATH and see what your path REALLY is when the program executes. Something funny about the way your line broke there...gotta wonder if that /usr/local/bin is on a separate physical line...assuming that was in the crontab in the first place... Nick. Thanks Nick. Here's what echo $PATH returned from the cron job: /bin:/sbin:/usr/bin:/usr/sbin I fixed the path statement in cron. Now I see what you're saying. And, the path line I put in the original message was too long to fit on the screen, at least as far as I thought was acceptable in the mailing list, so I just continued it on the next line. F-prot was trying to call unzip from within the perl script updater not getting anywhere due to my goof. Sorry for the bother. I'm still trying learn my way around obsd. I've run fbsd for a while on another box never had path problems there with cron f-prot. I went checked it there is no path path statement in roots crontab on that system. That's why, I guess, I never thought to check it on this system. BTW, the script just ran updated f-prot successfully. Thanks again for the help. Please do not CC me. Already subscribed to mailing list. GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFDsleOy0Ty5RZE55oRAgsSAJ9TldTe3hkWbGbJW1iyjhCxSM0RWQCgwIXC EGRBW0lryVhHfa5g8LYgdPE= =iZ0L -END PGP SIGNATURE-
Tuning NFS file transfer speed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I know the usual complaint is, it's not fast enough. My question is, after doing much googling - mail archive reading, is there a way to slow the file transfer speed down? I've asked the list before about a rebooting problem I have on this box, it's still here, but now only when I transfer large files from another box. I thought for a while, it might be something with the XP system on another box, but the same problem exists when I try it from my FreeBSD box. I've fought with the BIOS settings for weeks now, once thought I had the problem fixed. Later, my friend, unbeknownst to me thinking he was helping, tried tweaking the BIOS some more, before I had a chance to write down all the settings. Since, I have not been able to duplicate a problem free incoming NFS file transfer, unless it's a small file. Anything over 6-8MB down she goes. I can, on the other hand, mount exported shares from my XP or FreeBSD boxes and copy really large files to them from this OpenBSD box. I've swapped cables, to no avail. I've checked the hd, the simms, everything showing okay. I have the proper cable on the hd, 80 pin. Dmesg shows it using Ultra DMA 66. I'll include the dmesg at end of message. Several times in the past, the box rebooted too, when updating the locate database, or when running fsck. That seems to have disappeared since making some changes in the BIOS, the most important one being, according to some BIOS/reboot problems I read about on Google, getting the cmos clock the os clock synced properly. I'm now using /etc/localtime - /usr/share/zoneinfo/UTC instead of Central like before. Thanks for any help I can get on this. I really tried to solve this before asking for help. Right now, can't afford another box, mobo, etc. Everything else on here works great. Cvsup, rebuilding kernel userland, so forth. OpenBSD 3.8-stable (GENERIC) #2: Wed Dec 28 10:03:01 CST 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III (GenuineIntel 686-class) 601 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 335060992 (327208K) avail mem = 298348544 (291356K) using 4115 buffers containing 16855040 bytes (16460K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(a7) BIOS, date 01/31/02, BIOS32 rev. 0 @ 0xfb4f0 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0xb970 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdd90/144 (7 entries) pcibios0: PCI Exclusive IRQs: 5 9 10 11 pcibios0: PCI Interrupt Router at 000:07:0 (VIA VT82C596A ISA rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0x8000 0xc8000/0x800 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 VIA VT82C691 PCI rev 0xc4 ppb0 at pci0 dev 1 function 0 VIA VT82C598 AGP rev 0x00 pci1 at ppb0 bus 1 pcib0 at pci0 dev 7 function 0 VIA VT82C686 ISA rev 0x22 pciide0 at pci0 dev 7 function 1 VIA VT82C571 IDE rev 0x10: ATA66, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: WDC WD400BB-00AUA1 wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HP, CD-Writer+ 9500b, 1.06 SCSI0 5/cdrom removable atapiscsi1 at pciide0 channel 1 drive 1 scsibus1 at atapiscsi1: 2 targets cd1 at scsibus1 targ 0 lun 0: ASUS, CD-S500/A, 1.0K SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 uhci0 at pci0 dev 7 function 2 VIA VT83C572 USB rev 0x10: irq 9 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1 at pci0 dev 7 function 3 VIA VT83C572 USB rev 0x10: irq 9 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered viaenv0 at pci0 dev 7 function 4 VIA VT82C686 SMBus rev 0x30 auvia0 at pci0 dev 7 function 5 VIA VT82C686 AC97 rev 0x20: irq 5 ac97: codec id 0x83847644 (SigmaTel STAC9744/45) ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D audio0 at auvia0 xl0 at pci0 dev 13 function 0 3Com 3c905C 100Base-TX rev 0x78: irq 11, address 00:01:03:1a:2f:21 bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 7 vga1 at pci0 dev 15 function 0 3DFX Interactive Voodoo3 rev 0x01 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) 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 wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at
Re: Tuning NFS file transfer speed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 9 Jan 2006, Denny White wrote: Date: Mon, 9 Jan 2006 12:13:38 + (UTC) From: Denny White [EMAIL PROTECTED] To: OpenBSD Questions Mailing List misc@openbsd.org Subject: Tuning NFS file transfer speed I know the usual complaint is, it's not fast enough. My question is, after doing much googling - mail archive reading, is there a way to slow the file transfer speed down? I've asked the list before about a rebooting problem I have on this box, it's still here, but now only when I transfer large files from another box. I thought for a while, it might be something with the XP system on another box, but the same problem exists when I try it from my FreeBSD box. I've fought with the BIOS settings for weeks now, once thought I had the problem fixed. Later, my friend, unbeknownst to me thinking he was helping, tried tweaking the BIOS some more, before I had a chance to write down all the settings. Since, I have not been able to duplicate a problem free incoming NFS file transfer, unless it's a small file. Anything over 6-8MB down she goes. I can, on the other hand, mount exported shares from my XP or FreeBSD boxes and copy really large files to them from this OpenBSD box. I've swapped cables, to no avail. I've checked the hd, the simms, everything showing okay. I have the proper cable on the hd, 80 pin. Dmesg shows it using Ultra DMA 66. I'll include the dmesg at end of message. Several times in the past, the box rebooted too, when updating the locate database, or when running fsck. That seems to have disappeared since making some changes in the BIOS, the most important one being, according to some BIOS/reboot problems I read about on Google, getting the cmos clock the os clock synced properly. I'm now using /etc/localtime - /usr/share/zoneinfo/UTC instead of Central like before. Thanks for any help I can get on this. I really tried to solve this before asking for help. Right now, can't afford another box, mobo, etc. Everything else on here works great. Cvsup, rebuilding kernel userland, so forth. OpenBSD 3.8-stable (GENERIC) #2: Wed Dec 28 10:03:01 CST 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III (GenuineIntel 686-class) 601 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 335060992 (327208K) avail mem = 298348544 (291356K) using 4115 buffers containing 16855040 bytes (16460K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(a7) BIOS, date 01/31/02, BIOS32 rev. 0 @ 0xfb4f0 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0xb970 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdd90/144 (7 entries) pcibios0: PCI Exclusive IRQs: 5 9 10 11 pcibios0: PCI Interrupt Router at 000:07:0 (VIA VT82C596A ISA rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0x8000 0xc8000/0x800 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 VIA VT82C691 PCI rev 0xc4 ppb0 at pci0 dev 1 function 0 VIA VT82C598 AGP rev 0x00 pci1 at ppb0 bus 1 pcib0 at pci0 dev 7 function 0 VIA VT82C686 ISA rev 0x22 pciide0 at pci0 dev 7 function 1 VIA VT82C571 IDE rev 0x10: ATA66, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: WDC WD400BB-00AUA1 wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HP, CD-Writer+ 9500b, 1.06 SCSI0 5/cdrom removable atapiscsi1 at pciide0 channel 1 drive 1 scsibus1 at atapiscsi1: 2 targets cd1 at scsibus1 targ 0 lun 0: ASUS, CD-S500/A, 1.0K SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 uhci0 at pci0 dev 7 function 2 VIA VT83C572 USB rev 0x10: irq 9 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1 at pci0 dev 7 function 3 VIA VT83C572 USB rev 0x10: irq 9 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered viaenv0 at pci0 dev 7 function 4 VIA VT82C686 SMBus rev 0x30 auvia0 at pci0 dev 7 function 5 VIA VT82C686 AC97 rev 0x20: irq 5 ac97: codec id 0x83847644 (SigmaTel STAC9744/45) ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D audio0 at auvia0 xl0 at pci0 dev 13 function 0 3Com 3c905C 100Base-TX rev 0x78: irq 11, address 00:01:03:1a:2f:21 bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 7 vga1 at pci0 dev 15 function 0 3DFX Interactive Voodoo3 rev 0x01 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) isa0 at pcib0 isadma0
Re: SOLVED: Tuning NFS file transfer speed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 9 Jan 2006, Denny White wrote: Date: Mon, 9 Jan 2006 12:13:38 + (UTC) From: Denny White [EMAIL PROTECTED] To: OpenBSD Questions Mailing List misc@openbsd.org Subject: Tuning NFS file transfer speed I know the usual complaint is, it's not fast enough. My question is, after doing much googling - mail archive reading, is there a way to slow the file transfer speed down? I've asked the list before about a rebooting problem I have on this box, it's still here, but now only when I transfer large files from another box. I thought for a while, it might be something with the XP system on another box, but the same problem exists when I try it from my FreeBSD box. I've fought with the BIOS settings for weeks now, once thought I had the problem fixed. Later, my friend, unbeknownst to me thinking he was helping, tried tweaking the BIOS some more, before I had a chance to write down all the settings. Since, I have not been able to duplicate a problem free incoming NFS file transfer, unless it's a small file. Anything over 6-8MB down she goes. I can, on the other hand, mount exported shares from my XP or FreeBSD boxes and copy really large files to them from this OpenBSD box. I've swapped cables, to no avail. I've checked the hd, the simms, everything showing okay. I have the proper cable on the hd, 80 pin. Dmesg shows it using Ultra DMA 66. I'll include the dmesg at end of message. Several times in the past, the box rebooted too, when updating the locate database, or when running fsck. That seems to have disappeared since making some changes in the BIOS, the most important one being, according to some BIOS/reboot problems I read about on Google, getting the cmos clock the os clock synced properly. I'm now using /etc/localtime - /usr/share/zoneinfo/UTC instead of Central like before. Thanks for any help I can get on this. I really tried to solve this before asking for help. Right now, can't afford another box, mobo, etc. Everything else on here works great. Cvsup, rebuilding kernel userland, so forth. OpenBSD 3.8-stable (GENERIC) #2: Wed Dec 28 10:03:01 CST 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III (GenuineIntel 686-class) 601 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 335060992 (327208K) avail mem = 298348544 (291356K) using 4115 buffers containing 16855040 bytes (16460K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(a7) BIOS, date 01/31/02, BIOS32 rev. 0 @ 0xfb4f0 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0xb970 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdd90/144 (7 entries) pcibios0: PCI Exclusive IRQs: 5 9 10 11 pcibios0: PCI Interrupt Router at 000:07:0 (VIA VT82C596A ISA rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0x8000 0xc8000/0x800 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 VIA VT82C691 PCI rev 0xc4 ppb0 at pci0 dev 1 function 0 VIA VT82C598 AGP rev 0x00 pci1 at ppb0 bus 1 pcib0 at pci0 dev 7 function 0 VIA VT82C686 ISA rev 0x22 pciide0 at pci0 dev 7 function 1 VIA VT82C571 IDE rev 0x10: ATA66, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: WDC WD400BB-00AUA1 wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HP, CD-Writer+ 9500b, 1.06 SCSI0 5/cdrom removable atapiscsi1 at pciide0 channel 1 drive 1 scsibus1 at atapiscsi1: 2 targets cd1 at scsibus1 targ 0 lun 0: ASUS, CD-S500/A, 1.0K SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 uhci0 at pci0 dev 7 function 2 VIA VT83C572 USB rev 0x10: irq 9 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1 at pci0 dev 7 function 3 VIA VT83C572 USB rev 0x10: irq 9 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered viaenv0 at pci0 dev 7 function 4 VIA VT82C686 SMBus rev 0x30 auvia0 at pci0 dev 7 function 5 VIA VT82C686 AC97 rev 0x20: irq 5 ac97: codec id 0x83847644 (SigmaTel STAC9744/45) ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D audio0 at auvia0 xl0 at pci0 dev 13 function 0 3Com 3c905C 100Base-TX rev 0x78: irq 11, address 00:01:03:1a:2f:21 bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 7 vga1 at pci0 dev 15 function 0 3DFX Interactive Voodoo3 rev 0x01 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) isa0 at pcib0 isadma0
Intel 82801 SMBus dmesg question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Had originally posted a message Tuning NFS File Transfer Speed and had eventually posted a Solved reply to it on the list. That turned out to be erroneous. It did turn out to be a hardware issue. Had some leaking capacitors on the old VIA Abit mobo and replaced it with a Aopen MX3ST mobo picked up on the cheap. All seems to be working okay so far, but my question concerns what dmesg is saying. I googled all over, searched in the archives, and came up with lots of dmesg's that mentioned it, but didn't explain specifically what that one line meant. It says: Intel 82801BA SMBus rev 0x05 at pci0 dev 31 function 3 not configured Before asking anything on the list, I tried different things in the BIOS like disabling USB, the onboard NIC, juggled some IRQ's, just generally doing some experimenting, but the message is still there. I'd just like to know what exactly it means maybe be pointed to a site that explains it so I can learn more about it. Will put in output of dmesg ifconfig below. Thanks for all replies. Denny White - --- OpenBSD 3.8-stable (GENERIC) #4: Tue Jan 17 02:45:42 UTC 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III (GenuineIntel 686-class) 801 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 266969088 (260712K) avail mem = 236720128 (231172K) using 3284 buffers containing 13451264 bytes (13136K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(f4) BIOS, date 07/19/02, BIOS32 rev. 0 @ 0xfb140 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0xdf84 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdef0/128 (6 entries) pcibios0: PCI Exclusive IRQs: 9 10 11 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371SB ISA rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0xc000 0xcc000/0x800 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82815 Hub rev 0x04 vga1 at pci0 dev 2 function 0 Intel 82815 Graphics rev 0x04: aperture at 0xe000, size 0x400 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb0 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0x05 pci1 at ppb0 bus 1 fxp0 at pci1 dev 8 function 0 Intel 82562 rev 0x03: irq 11, address 00:01:80:0b:76:77 inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0 xl0 at pci1 dev 10 function 0 3Com 3c905C 100Base-TX rev 0x78: irq 11, address 00:01:03:1a:2f:21 bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 7 ichpcib0 at pci0 dev 31 function 0 Intel 82801BA LPC rev 0x05 pciide0 at pci0 dev 31 function 1 Intel 82801BA IDE rev 0x05: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: WDC WD400BB-00AUA1 wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors wd1 at pciide0 channel 0 drive 1: WDC WD300BB-00AUA1 wd1: 16-sector PIO, LBA, 28629MB, 58633344 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HP, CD-Writer+ 9500b, 1.06 SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 uhci0 at pci0 dev 31 function 2 Intel 82801BA USB rev 0x05: irq 10 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered Intel 82801BA SMBus rev 0x05 at pci0 dev 31 function 3 not configured uhci1 at pci0 dev 31 function 4 Intel 82801BA USB rev 0x05: irq 11 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered auich0 at pci0 dev 31 function 5 Intel 82801BA AC97 rev 0x05: irq 9, ICH2 AC97 ac97: codec id 0x41445360 (Analog Devices AD1885) ac97: codec features headphone, Analog Devices Phat Stereo audio0 at auich0 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 sysbeep0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 lm0 at isa0 port 0x290/8: W83627HF npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec biomask ed65 netmask ed65 ttymask fde7 pctr: 686-class user-level performance counters enabled mtrr: Pentium Pro MTRR support dkcsum: wd0 matches
Re: Intel 82801 SMBus dmesg question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Otto Moerbeek contributed the following: On Fri, 27 Jan 2006, Denny White wrote: Had originally posted a message Tuning NFS File Transfer Speed and had eventually posted a Solved reply to it on the list. That turned out to be erroneous. It did turn out to be a hardware issue. Had some leaking capacitors on the old VIA Abit mobo and replaced it with a Aopen MX3ST mobo picked up on the cheap. All seems to be working okay so far, but my question concerns what dmesg is saying. I googled all over, searched in the archives, and came up with lots of dmesg's that mentioned it, but didn't explain specifically what that one line meant. It says: Intel 82801BA SMBus rev 0x05 at pci0 dev 31 function 3 not configured Before asking anything on the list, I tried different things in the BIOS like disabling USB, the onboard NIC, juggled some IRQ's, just generally doing some experimenting, but the message is still there. I'd just like to know what exactly it means maybe be pointed to a site that explains it so I can learn more about it. Will put in output of dmesg ifconfig below. Thanks for all replies. There's nothing wrong. It just mean SMBus is not supported. SMBus is a system management bus. It is generally used to read and control fans, temperature sensors and such. It is not supported on 3.8, but 3.9 will support a wide variety of SMBus controllers. Install 3.9-beta to take a look. It's available on the various mirrors. The ichiic(4) and iic(4) man pages contain some more info. You can read them via the web site: http://www.openbsd.org/cgi-bin/man.cgi?query=ichiic -Otto Thanks, Otto, for the reply. I'll try it. Have an old Prioris server donated from a friend to experiment on. Just checked in 3.8 and there's a man page for iic, leading eventually to other related stuff, including sensorsd and sysctl. I've played around with them a little, especially when I was having mobo problems. Thanks again. Denny White Please do not CC me. Already subscribed to mailing list. GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFD2oQgy0Ty5RZE55oRAiSRAKCjCdr9zzEeOhW2wTFXnFkxmdCAfQCgm8/C Or3s0gbXXz5qsK+YVW8qT0w= =cM0J -END PGP SIGNATURE-
sysctl hw.sensors question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I had trouble with this box with Xwindows after updating src, ports, XF4 rebuilding everything. I tried putting an old Voodoo Banshee in in lieu of the onboard video, did an xorgconfig, still couldn't use X. Finally thought to disable onboard video in the bios now X is okay. My question pertains to the output of sysctl hw.sensors. I recall playing around with it before just to see how it worked, I don't remember some of the readings being in the output that are there now, since installing the Voodoo card. Here's the current output of sysctl hw.sensors: hw.sensors.0=lm0, VCORE_A, volts_dc, 1.73 V hw.sensors.1=lm0, VCORE_B, volts_dc, 1.74 V hw.sensors.2=lm0, +3.3V, volts_dc, 3.26 V hw.sensors.3=lm0, +5V, volts_dc, 4.91 V hw.sensors.4=lm0, +12V, volts_dc, 12.28 V hw.sensors.5=lm0, -12V, volts_dc, -11.82 V hw.sensors.6=lm0, -5V, volts_dc, 3.55 V hw.sensors.7=lm0, +5VSB, volts_dc, 4.92 V hw.sensors.8=lm0, VBAT, volts_dc, 3.26 V hw.sensors.9=lm0, Temp1, temp, 33.00 degC / 91.40 degF hw.sensors.10=lm0, Temp2, temp, 22.50 degC / 72.50 degF hw.sensors.11=lm0, Temp3, temp, 127.50 degC / 261.50 degF hw.sensors.12=lm0, Fan1, fanrpm, 4891 RPM The one that's alarming is the 2nd from last line, that says 261.50 degF. I'm wondering if that's about the video card or what. One note: the output on that line never changes. That's why I'm thinking it's erroneous. I googled around, read the sysctl man page, even some stuff at kerneltrap, but I still don't understand what's going on. Below is my dmesg in case it's needed. Thanks for any help on this. Denny White OpenBSD 3.8-stable (GENERIC) #6: Fri Feb 3 03:05:23 UTC 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III (GenuineIntel 686-class) 801 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 268017664 (261736K) avail mem = 237674496 (232104K) using 3297 buffers containing 13504512 bytes (13188K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(f4) BIOS, date 07/19/02, BIOS32 rev. 0 @ 0xfb140 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0xdf84 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdef0/112 (5 entries) pcibios0: PCI Exclusive IRQs: 9 10 11 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371SB ISA rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0x8000 0xc8000/0x800 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82815 Hub rev 0x04 ppb0 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0x05 pci1 at ppb0 bus 1 vga1 at pci1 dev 5 function 0 3DFX Interactive Voodoo3 rev 0x01 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) fxp0 at pci1 dev 8 function 0 Intel 82562 rev 0x03: irq 11, address 00:01:80:0b:76:77 inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0 xl0 at pci1 dev 10 function 0 3Com 3c905C 100Base-TX rev 0x78: irq 11, address 00:01:03:1a:2f:21 bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 7 ichpcib0 at pci0 dev 31 function 0 Intel 82801BA LPC rev 0x05 pciide0 at pci0 dev 31 function 1 Intel 82801BA IDE rev 0x05: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: WDC WD400BB-00AUA1 wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors wd1 at pciide0 channel 0 drive 1: WDC WD300BB-00AUA1 wd1: 16-sector PIO, LBA, 28629MB, 58633344 sectors wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 wd1(pciide0:0:1): using PIO mode 4, DMA mode 2 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HP, CD-Writer+ 9500b, 1.06 SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 uhci0 at pci0 dev 31 function 2 Intel 82801BA USB rev 0x05: irq 10 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered Intel 82801BA SMBus rev 0x05 at pci0 dev 31 function 3 not configured uhci1 at pci0 dev 31 function 4 Intel 82801BA USB rev 0x05: irq 11 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered auich0 at pci0 dev 31 function 5 Intel 82801BA AC97 rev 0x05: irq 9, ICH2 AC97 ac97: codec id 0x41445360 (Analog Devices AD1885) ac97: codec features headphone, Analog Devices Phat Stereo audio0 at auich0 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 sysbeep0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 lm0 at isa0 port
Re: sysctl hw.sensors question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Stuart Henderson spake forth boldly: On 2006/02/04 20:43, Denny White wrote: hw.sensors.11=lm0, Temp3, temp, 127.50 degC / 261.50 degF hw.sensors.0=nsclpcsio0, TSENS1, temp, 127.00 degC / 260.60 degF hw.sensors.1=nsclpcsio0, TSENS2, temp, 127.00 degC / 260.60 degF Thanks for the reply. Felt around inside the box. Nothing very warm at all. I think that you often see the maximum possible value reported where the chip isn't actually hooked up to a physical sensor. I guess you would be seeing, at the very least, raised values on the other temps if the 127C was genuine. Thanks for the reply. I had wondered that, too. I've read some on the mobo, but maybe not enough yet. It wasn't my first choice, but I picked it up, with install, for next to nothing, along with a new power supply, at a local shop. I'll keep digging around in the archives, googling, so forth. Nothing inside the box feels very warm. Fans are working fine, too. Denny White Please do not CC me. Already subscribed to mailing list. GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFD5Z92y0Ty5RZE55oRAo8MAKCbxfoH1/YaUipBgd5xrtDgFjCJKQCeKfqE tlxjnnCQEmwYuNIj2yFMElc= =hvmV -END PGP SIGNATURE-
Re: sysctl hw.sensors question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Feb 7 Joe S spake forth boldly: Denny White wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Stuart Henderson spake forth boldly: On 2006/02/04 20:43, Denny White wrote: hw.sensors.11=lm0, Temp3, temp, 127.50 degC / 261.50 degF hw.sensors.0=nsclpcsio0, TSENS1, temp, 127.00 degC / 260.60 degF hw.sensors.1=nsclpcsio0, TSENS2, temp, 127.00 degC / 260.60 degF I have a similar problem, but my box is slightly hotter. $ sysctl hw.sensors | grep temp hw.sensors.9=lm0, Temp1, temp, 35.00 degC / 95.00 degF hw.sensors.10=lm0, Temp2, temp, 208.00 degC / 406.40 degF hw.sensors.11=lm0, Temp3, temp, 36.00 degC / 96.80 degF Wow, 406.40 F. I'd better purchase a supercooler. OpenBSD 3.8-stable (GENERIC) #1: Tue Feb 7 09:53:00 PST 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz (GenuineIntel 686-class) 3 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,CNXT-ID real mem = 1072144384 (1047016K) avail mem = 971698176 (948924K) using 4278 buffers containing 53710848 bytes (52452K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(8b) BIOS, date 03/09/05, BIOS32 rev. 0 @ 0xfb770 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0xdf64 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfde80/224 (12 entries) pcibios0: PCI Exclusive IRQs: 5 9 10 11 12 pcibios0: no compatible PCI ICU found: ICU vendor 0x8086 product 0x25a1 pcibios0: PCI bus #4 is the last bus bios0: ROM list: 0xc/0x8000 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82875P Host rev 0x02 ppb0 at pci0 dev 3 function 0 Intel 82875P PCI-CSA rev 0x02 pci1 at ppb0 bus 1 em0 at pci1 dev 1 function 0 Intel PRO/1000CT (82547GI) rev 0x00: irq 11, address: 00:30:48:81:cd:ec ppb1 at pci0 dev 28 function 0 Intel 6300ESB PCIX rev 0x02 pci2 at ppb1 bus 2 ppb2 at pci2 dev 1 function 0 Intel S21152BB PCI-PCI rev 0x00 pci3 at ppb2 bus 3 dc0 at pci3 dev 4 function 0 DEC 21142/3 rev 0x41: irq 9, address 00:60:f5:06:03:fc lxtphy0 at dc0 phy 1: LXT970 10/100 PHY, rev. 3 dc1 at pci3 dev 5 function 0 DEC 21142/3 rev 0x41: irq 9, address 00:60:f5:06:03:fd lxtphy1 at dc1 phy 1: LXT970 10/100 PHY, rev. 3 dc2 at pci3 dev 6 function 0 DEC 21142/3 rev 0x41: irq 9, address 00:60:f5:06:03:fe lxtphy2 at dc2 phy 1: LXT970 10/100 PHY, rev. 3 dc3 at pci3 dev 7 function 0 DEC 21142/3 rev 0x41: irq 9, address 00:60:f5:06:03:ff lxtphy3 at dc3 phy 1: LXT970 10/100 PHY, rev. 3 uhci0 at pci0 dev 29 function 0 Intel 6300ESB USB rev 0x02: irq 10 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1 at pci0 dev 29 function 1 Intel 5300ESB USB rev 0x02: irq 12 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered Intel 6300ESB WDT rev 0x02 at pci0 dev 29 function 4 not configured Intel 6300ESB APIC rev 0x02 at pci0 dev 29 function 5 not configured ehci0 at pci0 dev 29 function 7 Intel 6300ESB USB rev 0x02: irq 9 usb2 at ehci0: USB revision 2.0 uhub2 at usb2 uhub2: Intel EHCI root hub, rev 2.00/1.00, addr 1 uhub2: 4 ports with 4 removable, self powered ppb3 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0x0a pci4 at ppb3 bus 4 vga1 at pci4 dev 9 function 0 ATI Rage XL rev 0x27 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) em1 at pci4 dev 10 function 0 Intel PRO/1000MT (82541GI) rev 0x00: irq 12, address: 00:30:48:81:cd:ed ichpcib0 at pci0 dev 31 function 0 Intel 6300ESB LPC rev 0x02 pciide0 at pci0 dev 31 function 1 Intel 6300ESB IDE rev 0x02: 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 5 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: TEAC, CD-224E, 1.9A SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 pciide1 at pci0 dev 31 function 2 Intel 6300ESB SATA rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI pciide1: couldn't map channel 0 cmd regs pciide1: couldn't map channel 1 cmd regs Intel 6300ESB SMBus rev 0x02 at pci0 dev 31 function 3 not configured isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 sysbeep0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 lm0 at isa0 port
Re: USB Printer Recommendation
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alright, I was able to get the printer to print using the apsfilter. Works awesome! Now to buy some ink and remove all traces of windows from my hard drive. Thanks again everyone! Alright, well the disposition didn't have any cheap laser printers but I did find a HP DeskJet 810C for $15. I know you guys said stay away from inkjet printers, but the price was right and the hpijs driver says it supports it. It's connected via usb. I installed hpijs along with all it's dependencies. I then edited /etc/printcap with: lp|DeskJet:\ :lp=/dev/ulpt0:\ :af=/usr/local/share/ppd/HP/HP-DeskJEt_810C-hpijs.ppd.gz:\ :if=/usr/local/bin/foomatic-rip:\ :sd=/var/spool/output:\ :sh After starting lpd, I then tried to print with lpr, lpr /etc/printcap. The printer starts up and begins to print, but then the paper light comes on and after pressing it, a blank sheet comes out. Anybody have any thoughts? Is my printcap wrong? Thanks. Today James Turner wrote: Well, it seems I'm still having issues with apsfilter. It prints the first 1/4 of the page on one sheet and the other 3/4 on another. I'm now trying the foomatic-rip script again, which is yielding the same result as last time. Some one emailed me a nice set of instructions off list, but I no longer have them since I thought apsfilter was working. Below is my /etc/printcap file, I have a2ps, hpijs and ghostscript all installed. Any help would be great, thanks. lp|DeskJet:\ :lp=/dev/ulpt0:\ :if=/usr/local/bin/foomatic-rip:\ :sd=/var/spool/lpd/lp:\ :lf=/var/spool/lpd/lp/log:\ :af=/usr/local/share/ppd/HP/HP-DeskJet_810C-hpijs.ppd.gz:\ :sh: Moved your posting down so it can be followed better. I never had much luck with apsfilter or hpijs. I have an old HP DeskJet 722C on an xp box. Everytime I do a new install of OpenBSD, I copy foomatic-rip the pertinent ppd file to /usr/local/bin use the following /etc/printcap entry: rp|windows line printer:\ :rp=HPDeskJet:\ :rm=remotexpbox:\ :af=/usr/local/bin/pnm2ppa.ppd:\ :if=/usr/local/bin/foomatic-rip:\ :sd=/var/spool/output:\ :mx#0:\ :sh I noticed your ppd file is either gzipped or the entry in your printcap is wrong. That may be a capability of apsfilter, foomatic or hpijs I'm not familiar with. Don't know, but in all probability, someone on the list may enlighten me. ;) Also, my printer is not usb so that may be an issue. I just know the procedure I outlined above works okay here. So, try putting the ungzipped ppd file into /usr/local/bin, set the path appropriately in printcap, then try lpr -Plp filetoprint Hope this helps. - --Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFGEc9oy0Ty5RZE55oRAi+EAJ9eVlnhCg3yNOPNr/Da71qsCZw8twCgiMtu DX8aoVA2QVqz0CsImN+GDHc= =Jfhw -END PGP SIGNATURE-
Upgrade question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been running a snapshot from several months back got my new 4.1 cds finally. Uname shows OpenBSD 4.1 Generic#0. I want to keep my existing /home /data partitions, delete all the rest, recreate them finish the install. After I reboot, I was hoping I could copy over the old users from the old /etc/group into the new one, copy the old passwd over run pwd_mkdb. Just want to know if I've reasoned it out correctly or not, if it is right if there's anything else I need to run to synchronize things, so on. I've tried looking up that kind of scenario with google, in the mail archives so forth just don't seem to come up with what I need. The point of what I'm trying to accomplish is not to have to copy so much from the 2 aforementioned partitions to another drive then copy it all back after recreating users. Thanks for any help. That will never happen - the Hindenburg engineers --Musings From Uncle Phil-- === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFGW5pxy0Ty5RZE55oRAlvPAKDMIZYBzCtHOBPviEfb7VL1y66HkgCffyg9 i/0ugjMHNghXKPWwCboZVZs= =ka/A -END PGP SIGNATURE-
Re: Upgrade question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 28 Emilio Perea wrote: On Mon, May 28, 2007 at 10:13:48PM -0500, Denny White wrote: I've been running a snapshot from several months back got my new 4.1 cds finally. Uname shows OpenBSD 4.1 Generic#0. I want to keep my existing /home /data partitions, delete all the rest, recreate them finish the install. After I reboot, I was hoping I could copy over the old users from the old /etc/group into the new one, copy the old passwd over run pwd_mkdb. Just want to know if I've reasoned it out correctly or not, if it is right if there's anything else I need to run to synchronize things, so on. I've tried looking up that kind of scenario with google, in the mail archives so forth just don't seem to come up with what I need. The point of what I'm trying to accomplish is not to have to copy so much from the 2 aforementioned partitions to another drive then copy it all back after recreating users. Thanks for any help. In these situations I usually keep a copy of /etc in /home/etc.tgz and just do a new install, skipping the /home and /data partitions when running disklabel. It's never a bad idea to have a full backup, though! Just did a dump on all backed up /etc to the extra hard drive. That's why I mentioned being able to copy the old files over. Just wanted to know if I had it right, the way I said to do it. Thanks for the info. - --Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFGW7kdy0Ty5RZE55oRAlD8AJsG9Uf9+tS9TWnOq/0jKbqOzkkGnACfWQGk 2J78K2EAJL1K4YSS3y+txdg= =+FRO -END PGP SIGNATURE-
Re: Upgrade question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 29 Joachim Schipper wrote: On Mon, May 28, 2007 at 10:13:48PM -0500, Denny White wrote: I've been running a snapshot from several months back got my new 4.1 cds finally. Uname shows OpenBSD 4.1 Generic#0. I want to keep my existing /home /data partitions, delete all the rest, recreate them finish the install. After I reboot, I was hoping I could copy over the old users from the old /etc/group into the new one, copy the old passwd over run pwd_mkdb. Just want to know if I've reasoned it out correctly or not, if it is right if there's anything else I need to run to synchronize things, so on. I've tried looking up that kind of scenario with google, in the mail archives so forth just don't seem to come up with what I need. The point of what I'm trying to accomplish is not to have to copy so much from the 2 aforementioned partitions to another drive then copy it all back after recreating users. Thanks for any help. Be careful: each release adds, and occasionally removes, new system users. It's far safer to either update or reinstall, and you'll want to look at www.openbsd.org/current.html for anything resembling an update. Joachim Thanks, Joachim. I was going to look in the new group after a fresh install to see what had been added or removed. Always before I've either done a complete fresh install or an upgrade, so I didn't have to worry about the users in /home. I just recreated them on the new system, if it was a fresh install, with their same uid's. Then I copied everything from backups back over to the respective dirs. I was just trying to get out of doing that this time. I figured at the very worst my idea wouldn't work I'd have to wipe it all out do it the old way. I thought if I added the old /home users to the new /etc/group, copied the /home dirs over, ran pwd_mkdb properly chown the /home dirs, it might work. That's what I was trying to find out. Now that I've thought more about it, probably the easiest way is to just exclude /home /data when I delete recreate the other partitions, recreate the users on the new install with their same uid's, run pwd_mkdb their dirs will be okay. Thanks for your answer info. I think I've unnecessarily complicated this. ;) Thoughts? - --Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFGXZ4hy0Ty5RZE55oRAipYAKC81rBtYu3mVmilYlAbPuDJLhurMQCfaC/h CdAe5l6Kac/xffbl0rsQi/E= =D5xG -END PGP SIGNATURE-
Re: User mount cdrom?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Timothy Wilson wrote: Hello, I'm having great difficulty allowing my users to mount the cdrom. I've looked in the faq and both fstab and mount manpages, but still can't find it! I think the GNU tools allow: mount /dev/cd0a /mnt/cdrom -t cd9660 -o user I'm looking for the appropriate fstab entry, but according to the man pages, there doesn't seem to be a way? I thought it would be something like this: /dev/cd0a /mnt/cdrom cd9660 noauto,ro,user 0 0 But I get the following: mount_cd9660: -o user: option not supported Help! Timothy. Try man sudoers look for the cdrom example. === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFGankhy0Ty5RZE55oRAvHUAJ9TldfC3jY73sBh7kZOHih5fJLGVgCeL0Rn 1Je0wQ5rmj2tqXfVUrt0sw8= =8lqo -END PGP SIGNATURE-
Re: Usage question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Jared Solomon wrote: Is anyone successfully using OpenBSD and mplayer or vlc with mediasite to catch streaming lectures from a university campus or similar? I had to get a Vista box, and I'm at wits' end with its B$. Any help or pointers to upgrade my Toshiba Satellite dual core box to OpenBSD 4.1 and maintain my ability to continue in medical school is appreciated. Kind regards, jared Solomon If it's available to you as streaming content, read the following. I love A Prairie Home Companion with Garrison Keillor am rarely home to listen to it on Saturday evenings. I run a script out of cron that streams it in dumps it to a file so I can listen later. Below are the basics. You just need to find out the address of the content you want change it out with the ones below. If you don't want to save it for later, just take out the -dumpstream -dumpfile stuff. e.g., mplayer mms://radio.mponline.org/MPB_Live would just stream it in for you to watch. mplayer -dumpstream mms://radio.mpbonline.org/MPB_Live -dumpfile /data/mydir/garrison/mp3/show/`date +%Y%m%d`phc.mp3 `date +%Y%m%d` prepends the current date to the phc.mp3 file for later reference. Try 'man mplayer'. It's a good read. ;) Here are some more good reads: For installing: http://www.openbsd.org/faq/faq4.html As for upgrading, try: http://www.openbsd.org/faq/upgrade41.html For checking supported hardware: http://www.openbsd.org/i386.html - --Denny White ___ ___ / __/ _ \/ __/__ / _\ \/ // / _//___/ / /___//_/ /_/ [ 1987 - 2007 ] http://sdf.lonestar.org Public Access Unix System === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFGfq6cy0Ty5RZE55oRAhVgAKC/n/MSFUM8tqj0lc8Ec2tqhIkwtACeNuqR PgffOb1PmKLTAnDkS8EneBY= =LsSH -END PGP SIGNATURE-
Re: How to make screenshot under console ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today smonek wrote: How to make screenshot under console ? without X11 On FreeBSD is : vidcontrol -p /dev/ttyv0 shot.scr But OpenBSD haven't vidcontrol I use OpenBSD 4.1 For capturing text on the console, you can use 'script output.out'. After everything that you want to capture has passed, hit ctrl-d it'll all be in the output file. - --Denny White ___ ___ / __/ _ \/ __/__ / _\ \/ // / _//___/ / /___//_/ /_/ [ 1987 - 2007 ] http://sdf.lonestar.org Public Access Unix System === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFGfrTVy0Ty5RZE55oRApdFAJ4+hhZRJfZsjo/7zNBFZu18+U7IagCePmCg fDUJLkyy6r9rjz7hcU6ipyw= =lRKQ -END PGP SIGNATURE-
Re: r/w on NTFS system
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Alex Kwan wrote: Hello, Can I read and write on NTFS system under OpenBSD? Alex I mount some nfs shares off my xp box here and copy files to it without mishap. However, that's just me, I've read the other replies to your message you might want to heed the warnings. Actually, it's probably a lot safer to just scp the files there. I do that too on a regular basis, do rsync backups to the external storage on the xp box nightly using rsa public keys so it can be done unattended, i.e., passwordless. I have cygwin m$ tools for unix admin installed on the xp box with sshd running. There may be a simpler way to do that, but I don't know. I did like that in the beginning when I was first learning about intercommunication between the 2 operating systems, it worked, I left it alone. ;) - --Denny White ___ ___ / __/ _ \/ __/__ / _\ \/ // / _//___/ / /___//_/ /_/ [ 1987 - 2007 ] http://sdf.lonestar.org Public Access Unix System === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFGfrnjy0Ty5RZE55oRAg4ZAKCHjzpALnpRMqmpo0OgQm3emhaZRwCfdbAg AI3FPeMT75vT4YhBQomJpqw= =pa1i -END PGP SIGNATURE-
ksh history question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've read the ksh man page, googled for days, can't seem to come up with the answer. Either I put no mention of HISTFILE and HISTSIZE in $HOME/.profile and I don't have a lasting history file of previous commands. Or, I put it in and I do have a history file, but the HISTSIZE setting has no effect. It doesn't change and the file grows and grows. Currently I have it set as shown below to save my command line history: HISTFILE=.ksh_history HISTSIZE=50 I've tried using .ksh_history$$ to have a different file each login, and know I can run a cronjob nightly to clean them up if I want to, but I can't figure out how to make the history turn over just like it's supposed to with the HISTSIZE value without all that other mess. Thanks for any help I can get on this. -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFHnQ+ey0Ty5RZE55oRAm+IAJ4mFSIXHqORlxAmbuIu4VTOd7Z35QCgpwDP X6R0e88UGv5D/5VGHG4rX6I= =hMAH -END PGP SIGNATURE-
Re: ksh history question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jan 28, 2008 at 11:32:00PM +, Jason McIntyre sez: On Sun, Jan 27, 2008 at 05:27:26PM -0600, Denny White wrote: I've read the ksh man page, googled for days, can't seem to come up with the answer. Either I put no mention of HISTFILE and HISTSIZE in $HOME/.profile and I don't have a lasting history file of previous commands. Or, I put it in and I do have a history file, but the HISTSIZE setting has no effect. It doesn't change and the file grows and grows. Currently I have it set as shown below to save my command line history: HISTFILE=.ksh_history HISTSIZE=50 I've tried using .ksh_history$$ to have a different file each login, and know I can run a cronjob nightly to clean them up if I want to, but I can't figure out how to make the history turn over just like it's supposed to with the HISTSIZE value without all that other mess. Thanks for any help I can get on this. notice that the variable is named HISTSIZE, not HISTFILESIZE :) HISTSIZE affects how many commands are kept in history (in memory - not file). so, for example, if you set HISTSIZE=3 you'll only be able to recall the past 3 commands in history. it does not turn over HISTFILE, however. i'm a bit confused by this myself, though - it does seem logical that the HISTFILE not store more commands than history itself is able to recall. i can;t tell by looking at the code what goes on in there - maybe someone else can chip in... jmc Thanks, Jason. Yeah, I tried the HISTFILESIZE too. What's really weird is, just all of a sudden, it started working! But, instead of it starting with the number 1 on the beginning, with HISTSIZE set at 50, e.g., you run 'fc -l 0' you might see the beginning number 163 with the most current command number being 211. It never goes all the way to 50 commands, usually just 48 before dropping one off the tail end. This is no problem, I just must be misunderstanding the man page. Another thing I found out is, after copying $HOME/.profile to $HOME.kshrc, removing all mention of HISTFILE HISTSIZE from .kshrc putting only the following in .profile HISTSIZE=50;export HISTSIZE HISTFILE=.ksh_history;export HISTFILE ENV=$HOME/.kshrc export ENV it works just the same as if there was no .kshrc file everything was still all in .profile. I've got it running one way on one box the other way on another box, they're both working. Why they didn't work before is a mystery to me. But, I learned something anyway about being able to do it two different ways. Thanks for the answer. -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFHnoXpy0Ty5RZE55oRAlWQAJ0dPTy8YPFpLUkFhwvffPPBGqQlegCgyCD/ wiyKY3CVLCv20grRO5N7dgc= =lGiL -END PGP SIGNATURE-
Re: ksh history question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jan 28, 2008 at 11:56:56PM +0100, Jordi Espasa Clofent sez: HISTFILE=.ksh_history HISTSIZE=50 Try it without double quotes on HISTSIZE value; and remember to export them. -- Thanks, Jordi Espasa Clofent Thanks for the reply, Jordi. Yeah, I saw that while googling around tried it, but by the time I'd posted my question, I'd taken the quotes off. It still wasn't working. Why, all of a sudden it started working last night, I don't know. I'm just glad it did. I think I copied that in from a something other than the working file when I posted to [EMAIL PROTECTED] Probably a .profile~ in $HOME. My bad. Thanks for answering, though. -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFHnr4Ly0Ty5RZE55oRAlbNAKCogEisCCKulQyADSlPVptb/Rd1fACgg2XG n8nZLrmDibOfWCyJobqC3M0= =Z76v -END PGP SIGNATURE-
Re: ksh history question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jan 27, 2008, at 3:27 PM, Denny White wrote: I've read the ksh man page, googled for days, can't seem to come up with the answer. Either I put no mention of HISTFILE and HISTSIZE in $HOME/.profile and I don't have a lasting history file of previous commands. Or, I put it in and I do have a history file, but the HISTSIZE setting has no effect. It doesn't change and the file grows and grows. Currently I have it set as shown below to save my command line history: HISTFILE=.ksh_history HISTSIZE=50 I've tried using .ksh_history$$ to have a different file each login, and know I can run a cronjob nightly to clean them up if I want to, but I can't figure out how to make the history turn over just like it's supposed to with the HISTSIZE value without all that other mess. Thanks for any help I can get on this. -- Denny White On Mon, Jan 28, 2008 at 03:26:20PM -0800, Steve Mayer sez: Have you tried it without the quotes? HISTSIZE=50 Steve Yeah, dumbass me, I just answered the same question in another reply. Should've looked at the rest of the messages. ;) Anyway, yeah, I had tried it both ways it still didn't work. Like I said before, why all of a sudden it started working, I don't know. But it now it works. Each time I made changes, I tried various ways of getting it to take effect. I did '. ./.profile' to get the system to reread it, exited logged back in, etc. Strange problem but now it's resolved. Thanks for the help, Steve. -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFHnr+4y0Ty5RZE55oRAmM3AKDRVZQx0wLMBbpXVPRIi3oqaDdouACgjtIN sUKw7wiPZednI/fZvRCT1bw= =nwNv -END PGP SIGNATURE-
Re: Computer name question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jan 28, 2008 at 09:25:08AM -0600, Eric Johnson sez: I recently changed the name of a computer with OpenBSD 4.2 by editing the /etc/myname file. That seems to have taken care of the renaming almost everywhere. I also changed the name in the /etc/hosts file as well. However, when I send an e-mail from it using mail, the from address shows the original name, not the changed name. Also, if I don't specify a hostname for the to address, it appends the old hostname instead of the new hostname. The configuration file in /etc/mail doesn't have the original name anywhere. Neither does the mc file. Does anyone know what else I need to change? Thanks, Eric Johnson [demime 1.01d removed an attachment of type application/pgp-signature] AFAIK, there are 3 files it says that need to be updated when changing hostname. /etc/hosts, /etc/myname /etc/hostname.interface. The last one on my system is hostname.fxp0 and, since you didn't mention changing your IP address, I don't why hostname.interface would have to be changed. I hate to ask this, but did you reboot or restart the network after making your changes? If not, you're not going to see the changes until you do one or the other, or change it using sysctl. Try this see what you get: sysctl -a |grep hostname If it still shows the old hostname, sudo sysctl hostname=newname (same as in /etc/hosts /etc/myname) Then try your email again see what happens. -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFHntnQy0Ty5RZE55oRAnmxAJ93VhJJY5VSNpN0e3ufIf+/0werWACeKRW6 FwulQ1BjeOoivv2YJssseYU= =+QIK -END PGP SIGNATURE-
Re: OT: Can an SSH alternative to WebDav be use on OpenBSD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Jan 24, 2008 at 05:58:57PM -0500, Daniel Ouellet sez: Hi, I need some possible suggestions if I may asked to not setup, or have to setup WebDav on OpenBSD to allow users to do their web folder stuff. It can be setup with ftp for example to allow them to map a folder in their network place on XP for example, but then they can't do the stupid save as and just for that, they want to use the WebDav. However, then it need to allow write access via http and the full load of issues that could with that when combine with php, etc. I only allow ssh access and in very special case, I had accepted ftp from specific locations control via PF, but because of the stupid save as, they are screaming for WebDav, or mod_dav, witch I really would like to avoid totally. I just don't see the benefit worth the risk required to allow it. May be I am wrong and someone could in light me, witch I would very much appreciate, but again, may be there is an alternative using SSH that I do not know. I provided WinSCP years ago and it sure works well, plus I can control access via ssh with PF too, witch I would loose introducing WebDav. I hate all these users that can only work using a GUI like interface all the time and fell they need everything to be done via http. Anyone can provide me some ideas, or alternative here as I am running out of them and being view as the asshole that always refuse flexibility for security is fine, but may be there is something I can do to keep it safe and give the winers a bone. I hate the Microsoft centric bias users that care less for security, but would also be the first to scream should there be compromise too. Any suggestions here? Sorry for the somewhat off topic question, but I need suggestion if there is any. Best, Daniel. I don't know if this will help since it'll involve the windows users having to install the M$ loopback adapter on their boxes configure it. It's what I use on my network for the windows boxes to access the OpenBSD boxes via ssh. And, all windows users are using cygwin, not putty or some other gui. In my case, I only allow passwordless logins using rsa keys authorized_keys files instead. If you allow password logins, it wouldn't be a problem. No idea how many users you have, so I guess it could turn into an admin's nightmare if you had to go into each user's $HOME/.ssh do the setup there. I guess you could send out a notice give them a deadline to ssh in set it up themselves. But, we're talking windows users here. ;) Anyway, here's the link for setting up samba over ssh: http://assela.pathirana.net/Samba_over_SSH_--_Opening_Windows_to_ UNIX_safely_and_reliably That's all one line above. I dropped part of it down for the 72 character rule. As the article shows, instead of having to open a cygwin prompt, then issue the tunneling command, the whole thing can be automated with a script a windows service started on boot. When the user clicks start, run, types in the IP address enter, explorer will open showing them their samba shares. So, there's the gui they crave. ;) Hope this helps some. -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFHnuXfy0Ty5RZE55oRAumIAJ9jTz2OQKDRW4Ysw6dsg8aD9zCRDwCfePN6 9Sx/q3U6QvSVXEFJe69CGUw= =6JqB -END PGP SIGNATURE-
Re: OT: Can an SSH alternative to WebDav be use on OpenBSD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Jan 29, 2008 at 04:10:07AM -0500, Daniel Ouellet sez: Denny White wrote: That's all one line above. I dropped part of it down for the 72 character rule. As the article shows, instead of having to open a cygwin prompt, then issue the tunneling command, the whole thing can be automated with a script a windows service started on boot. When the user clicks start, run, types in the IP address enter, explorer will open showing them their samba shares. So, there's the gui they crave. ;) Hope this helps some. That is interesting to read and I will sure have a look at it, but like you said, these are Windows users here. (; It may never fly, but I am interested in looking into this however. Thanks for sharing it! Best, Daniel Glad to help if I can. One caveat to warn you about the windows boxes, Daniel. I really had a hair pulling time on one it turned out to be because it had M$'s tools for unix administration on it. It wasn't needed since cygwin was on there. I know it was running nfs client services which also wasn't needed, left over from before samba was totally incorporated across the network, and I'm not sure what else, so there was undoubtedly something there conflicting with cygrunsrv. Once the unix admin tools were uninstalled, and the box rebooted the tunnel established, when the clicking start-run- typing in IP-enter crap was all done, the hookup was really fast. I'm sure if you wanted you could reverse that get rid of cygwin keep the unix tools running it's sshd as a service instead, but I'm used to cygwin actually kind of like it. It's helped me out quite a bit in the past. -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFHnv68y0Ty5RZE55oRAraaAKCLo3U3cM8KqX/x+/+l9XxZNxFXFQCgufRB lorarlKznbBs5/PIhc9TMM4= =f238 -END PGP SIGNATURE-
Re: OT: Can an SSH alternative to WebDav be use on OpenBSD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Denny White wrote: That's all one line above. I dropped part of it down for the 72 character rule. As the article shows, instead of having to open a cygwin prompt, then issue the tunneling command, the whole thing can be automated with a script a windows service started on boot. When the user clicks start, run, types in the IP address enter, explorer will open showing them their samba shares. So, there's the gui they crave. ;) Hope this helps some. That is interesting to read and I will sure have a look at it, but like you said, these are Windows users here. (; It may never fly, but I am interested in looking into this however. Thanks for sharing it! Best, Daniel Glad to help if I can. One caveat to warn you about the windows boxes, Daniel. I really had a hair pulling time on one it turned out to be because it had M$'s tools for unix administration on it. It wasn't needed since cygwin was on there. I know it was running nfs client services which also wasn't needed, left over from before samba was totally incorporated across the network, and I'm not sure what else, so there was undoubtedly something there conflicting with cygrunsrv. Once the unix admin tools were uninstalled, and the box rebooted the tunnel established, when the clicking start-run- typing in IP-enter crap was all done, the hookup was really fast. I'm sure if you wanted you could reverse that get rid of cygwin keep the unix tools running it's sshd as a service instead, but I'm used to cygwin actually kind of like it. It's helped me out quite a bit in the past. -- Denny White On Tue, Jan 29, 2008 at 11:17:25AM +, Stuart Henderson sez: while this is a way if you _must_ use SMB/CIFS, I'm not too sure if a combination of samba, cygwin (which users won't bother to update once it's installed so no security fixes) and MS loopback adapter (for some client-breaks-their-own-network-and-shouts-at-you fun) is really the simplest and most secure setup. If you're not real concerned about any particular packages, cygwin is really easy to update, just as easy as microsloth, just a few clicks, but yeah, good point. There are probably much better ways to do it. I just threw it in the mix as a point of interest. OTOH, I haven't had any network breakage from the adapter, but I'm sure it can happen. Luckily for me the few computers on this network, it works really well so far. I haven't had any breakage or problems since I uninstalled the m$ tools for unix off the one box. -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFHn1Hdy0Ty5RZE55oRApCVAJ4gKJozPeNqUqmbWTalvUrwtlQtiACgudqA VderkGiSPmhKohKsI/MKdh0= =6nl7 -END PGP SIGNATURE-
Re: Test Limerick, please ignore
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Jan 29, 2008 at 01:30:21PM +0100, Marc Balmer sez: Peter N. M. Hansteen wrote: Darrin Chandler [EMAIL PROTECTED] writes: There once was a message to test Repeated unto being a pest While marked to ignore It was seen more and more Until other begged, Give it a rest! That one needs to be included in the faq somewhere, urgently. Just Great... That has the quality to go into fortune (where we already have some limericks) Though warned not to test on the list, The rascal just couldn't resist. As test messages grew, It was found that the crew, On misc@ were all really pissed! Way too much time on my hands. ;) I guess that'll for sure get an -o on the end of the fortune file. -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFHn1a+y0Ty5RZE55oRAjfQAJ9BtW+MNVOUkB6rDgJVHhsTGUIEoQCeJJ/N 9unPJYT0jfUwtqypjXHBGw0= =tJbb -END PGP SIGNATURE-
Re: Test Limerick, please ignore
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Jan 29, 2008 at 07:38:59PM +0100, Zbigniew Baniewski sez: On Tue, Jan 29, 2008 at 10:40:06AM -0600, Denny White wrote: Though warned not to test on the list, The rascal just couldn't resist. If you mean me - thanks, Danny; I love you too. 1. Any test messages, which I've sent, reached the list several hours (some even more than 24) after submission - and I had no idea at all until then, that it'll finally appear on the list. 2. Any warnings I've received - I've received several hours *after* I've sent last message. 3. I really don't know any other way to test, whether the mail will reach the list, than... to just send it to the list. Perhaps you - smart guy, as I can see - will tell me different way to test access to the list without sending anything to the list. As test messages grew, It was found that the crew, On misc@ were all really pissed! 4. It's really a pity, that *all* (?) of you prefer to see my difficulties as some kind of bad will or list abuse; and nowhere could I see a message like: perhaps he needs some help?. I don't want to believe, this is usual attitude among OpenBSD community members. Really unbelievable. 5. What a nice, helpful and kind man you are, dennyboy. Your mother should be so proud, indeed. Just out of curiosity: what really a difference can you see between my tests - and this, for example, thread, whish is just about nothing (limericks)? I can see at least one: I *had* to make some tests, I was in contact with the list admin - but you don't have to show off here, with your poetry. Seems, you want to. That's the second - and last - explaining from my side. I want to add, that such (over)reaction of several persons is very disappointing to me. -- pozdrawiam / regards Zbigniew Baniewski Life is full of disappointments, kiddo! Get used to it. Like Darren, humor tickles my fancy, Now it's evident it can sometimes be chancy. You dropped quite a bomb by dissing my Mom, Like Frank Barone says, get over it, Nancy! ;) -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFHn+LJy0Ty5RZE55oRAut4AJ9OE8pd4OUhLzWxmsr+71Ig6++S1ACeL5L5 Pyjsz0BcdPQvGqVLSHPlTwk= =joC/ -END PGP SIGNATURE-
XForwarding problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 For the last couple of days I've tried everything I can think of to make XForwarding work with ssh. As per the FAQ, I have set it like so: In sshd_config X11Forwarding yes In ssh_config ForwardAgent yes ForwardX11 yes I can use it passably well in one direction from a box across the room to the one I do most of my work on. But, when I try it from this box to the one across the room, I get the xauth error message along with all typed characters doubled on the screen. I went ahead anyway and typed 'display somefile.jpg' just to see what I'd get got this: Xlib: connection to localhost:10.0 refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key display: unable to open X server `localhost:10.0'. I've read the man page on xauth(1) and experimented with its commands. I've even wiped out the .Xauthority file on both boxes and restarted X, to no avail. Possibly I should mention too, that I boot on both boxes to a xdm login. I don't know if that would have any bearing on the problem or not. Thanks for any help I can get on this. -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFHxmmwy0Ty5RZE55oRAkCZAKCmv+v4WuYFL2VyOkxFqb+fo8XxHgCfSCRN ztvs2xWmvsc8CZw9T6t4o7M= =EtWY -END PGP SIGNATURE-
Re: XForwarding problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Feb 28, 2008 at 02:46:41AM -0700, Predrag Punosevac sez: Denny White wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 For the last couple of days I've tried everything I can think of to make XForwarding work with ssh. As per the FAQ, I have set it like so: In sshd_config X11Forwarding yes In ssh_config ForwardAgent yes ForwardX11 yes I can use it passably well in one direction from a box across the room to the one I do most of my work on. But, when I try it from this box to the one across the room, I get the xauth error message along with all typed characters doubled on the screen. I went ahead anyway and typed 'display somefile.jpg' just to see what I'd get got this: Xlib: connection to localhost:10.0 refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key display: unable to open X server `localhost:10.0'. I've read the man page on xauth(1) and experimented with its commands. I've even wiped out the .Xauthority file on both boxes and restarted X, to no avail. Possibly I should mention too, that I boot on both boxes to a xdm login. I don't know if that would have any bearing on the problem or not. Thanks for any help I can get on this. What happens when you try to do the following? Try to do remote login with as follows ssh -Y [EMAIL PROTECTED] I get this: Warning: No xauth data; using fake authentication data for X11 forwarding. And, everything I type at the prompt is doubled. you should be now in the shell on the remote host try to start x client like xdvi or xfig or something like emacs by typing xdvi If xdvi pops up that means that the client is running on the remote host but it is displayer on the local X server Okay, if after getting in I try to open something like xzgv, I get: Xlib: connection to localhost:10.0 refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key Gtk-WARNING **: cannot open display: localhost:10.0 Like I said earlier, I read the man page too on xauth tried sending xauth extract - $DISPLAY | rsh otherhost xauth merge - but it doesn't appear to help. I still get the error messages and double typed characters. -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFHxo5uy0Ty5RZE55oRAu+XAJ9PrA3/AhZ5zYexks6a6/XUpudTrACgt5sZ 9LnpJQFQep+KuG3zqqA/hV4= =ceCs -END PGP SIGNATURE-
Re: XForwarding problem: SOLVED
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Feb 28, 2008 at 11:41:14AM -0700, Predrag Punosevac sez: On Thu, Feb 28, 2008 at 02:46:41AM -0700, Predrag Punosevac sez: Denny White wrote: For the last couple of days I've tried everything I can think of to make XForwarding work with ssh. As per the FAQ, I have set it like so: In sshd_config X11Forwarding yes In ssh_config ForwardAgent yes ForwardX11 yes I can use it passably well in one direction from a box across the room to the one I do most of my work on. But, when I try it from this box to the one across the room, I get the xauth error message along with all typed characters doubled on the screen. I went ahead anyway and typed 'display somefile.jpg' just to see what I'd get got this: Xlib: connection to localhost:10.0 refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key display: unable to open X server `localhost:10.0'. I've read the man page on xauth(1) and experimented with its commands. I've even wiped out the .Xauthority file on both boxes and restarted X, to no avail. Possibly I should mention too, that I boot on both boxes to a xdm login. I don't know if that would have any bearing on the problem or not. Thanks for any help I can get on this. What happens when you try to do the following? Try to do remote login with as follows ssh -Y [EMAIL PROTECTED] I get this: Warning: No xauth data; using fake authentication data for X11 forwarding. And, everything I type at the prompt is doubled. you should be now in the shell on the remote host try to start x client like xdvi or xfig or something like emacs by typing xdvi If xdvi pops up that means that the client is running on the remote host but it is displayer on the local X server Okay, if after getting in I try to open something like xzgv, I get: Xlib: connection to localhost:10.0 refused by server Ok you do have a permission problem Read carefully man pages for sshd_config file . You need to uncomment few lines for X tunneling. You can also look at the Secure Architectures with OpenBSD section about OpenSSH. I do not think that the problem is with X server though. Best, Predrag Yes, you were right. Operator error, it was the nut holding the steering wheel as usual. :-) Xlib: Invalid MIT-MAGIC-COOKIE-1 key Gtk-WARNING **: cannot open display: localhost:10.0 Like I said earlier, I read the man page too on xauth tried sending xauth extract - $DISPLAY | rsh otherhost xauth merge - but it doesn't appear to help. I still get the error messages and double typed characters. 4AM, but that's okay. Problem solved. Had previously done some experimenting around with ~/.profile and ~/.kshrc when I'd been having history file problems in ksh. As soon as I reverted back to my old ~/.profile instead of the newer short one that just exported HISTSIZE, HISTFILE, and ENV=$HOME/.kshrc the XForwarding problem disappeared. Don't try this at home, kids, especially at 4AM when you're not only old and senile, but tired as hell too. :-) -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFHx9lIy0Ty5RZE55oRAnlYAJ90xDGjlb9tX1csjPP/LQeEksc7BgCfRxZl +jA3v5SXg6qlmaR/IEC2vIQ= =efps -END PGP SIGNATURE-
Re: tcl-8.4 and tk-8.4 manpages
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Mar 25, 2008 at 10:05:51AM -, ?lfar M. E. Johnson sez: I installed tcl-8.4 and tk-8.4 which are required when installing git. My question is how to get the mann directory to display in man. I have tried organising tcltk in /etc/man.conf in several different ways. Here is how I have it organized now. # tcltk manpages _whatdb /usr/local/lib/tcl8.4/man/whatis.db _whatdb /usr/local/lib/tk8.4/man/whatis.db _subdir {cat,man}{1,3} _build .n /usr/bin/nroff -man %s _default/usr/local/lib/{tcl8.4,tk8.4}/man/ tcltk /usr/local/lib/{tcl8.4,tk8.4}/man/ 1 /usr/local/lib/{tcl8.4,tk8.4}/man1 3 /usr/local/lib/{tcl8.4,tk8.4}/man3 n /usr/local/lib/{tcl8.4,tk8.4}/mann Example I can man -s tcltk 3 Tcl_RecordAndEval and the man page comes up normal. I can also man Tk_GetVisual or man -s tcltk 3 Tk_GetVisual and the manpages come up normal. Using man -k tk and here I will show some of the display from that command: tk_messageBox (n) - pops up a message window and waits for user response. tk_optionMenu (n) - Create an option menubutton and its menu tk_popup (n) - Post a popup menu tk_setPalette, tk_bisque (n) - Modify the Tk color palette tkerror (n) - Command invoked to process background errors tkvars (n) - Variables used or set by Tk tkwait (n) - Wait for variable to change or window to be destroyed I would like to be able to display man pages for the (n) section. ie. man -s tcltk n tkwait or man n tkwait As is now when I try to display commands in the (n) section I get results like this: -bash-3.2$ man n tkwait man: no entry for tkwait in section n of the manual. man -s tcltk n tkwait man: no entry for n in section tcltk of the manual. man: no entry for tkwait in section tcltk of the manual. Please enlighten me. Zlfar M. E. Johnson Sk}rr [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 569 5100 http://www.skyrr.is http://www.skyrr.is http://www.skyrr.is/legal/disclaimer.txt http://www.skyrr.is/legal/disclaimer.txt I tried a bunch of crap in other sections of man.conf never could get the n stuff to display. So, I added right at the very end of # Specific section/directory combinations. n /usr/local/lib/{tcl8.4,tk8.4}/{man/mann/} When you want to read a man page from that section, just remember to plug in the 'n' before the man page. Like man n tk_textCopy There's probably a better way to do it, but I don't know how. At least this works. - -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFH6oiQy0Ty5RZE55oRAqxsAJwPpZzm9rkBaddCDh/SeuZ6JQpeEwCfeExW Yr6T6e+PoAGM7DxdtrYbQ0w= =7bD6 -END PGP SIGNATURE-
Re: [Invitation] Almighty GOD never forsake his people @ Fri Apr 4 05:00 - 06:00 ()
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Apr 04, 2008 at 07:59:26AM -0700, Darrin Chandler sez: On Fri, Apr 04, 2008 at 09:52:39AM +0200, Peter N. M. Hansteen wrote: Darrin Chandler [EMAIL PROTECTED] writes: Dude! This is covered in the archives, FAQ, and man pages! hm. $ man god man: no entry for god in the manual. I neglected to mention that not everything is included in the base system. pkg_add enlightenment may help. -- Darrin Chandler| Phoenix BSD User Group | MetaBUG [EMAIL PROTECTED] | http://phxbug.org/ | http://metabug.org/ http://www.stilyagin.com/ | Daemons in the Desert | Global BUG Federation Don't forget from the OpenBSD sutra: Oh Sariputra, windows does not differ from emptiness, emptiness does not differ from windows -- that which is windows is emptiness, that which is emptiness is windows. So proclaim the OpenBSD paramita, saying, Gate, gate, paraOpenBSD, parasamOpenBSD. Oh, Packet Filter. Swaha! For those not versed in Sanskrit, to save Googling poring over man pages, Gone, gone, gone to OpenBSD, gone altogether to OpenBSD. Oh Packet Filter! Oh joy! Denny White - -- Don't run, you'll only die tired. - Army Snipers All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFH9qaQy0Ty5RZE55oRAnoeAKCC8t9a6D1dzIHAPTZPEa3xu1HixgCgoS+z tAIkZFejMRnk1uk8j/15GSk= =8cl4 -END PGP SIGNATURE-
Re: USB Scanner question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Antoine Jacoutot had this to say: Selon Denny White [EMAIL PROTECTED]: team. :-) I know the obsd os supports scanners, but I can't seem to find a good recommendation. I also don't understand OpenBSD should support pretty much any scanner that SANE supports. backends, but it's not in my /usr/ports/graphics. Is this because I'm running _3_8 not current, or could I be doing Yes, sane-{backends,frontends} was imported after 3.8 was released. GENERIC kernel with very little change. I think the only change I did to it was to enable DUMMY_NOPS which it comments as You're running an unsupported kernel. So, just need some input on any luck anyone has had with usb scanners. I, for one, am very happy with my Epson USB scanner. I can scan via USB and via the LAN too. Any input greatly appreciated. If you want to install SANE on OpenBSD, you can either : - grab the -current port and try to complile it under 3.8 (unsupported, don't ask questions if you have problems) - wait for 3.9 to be released - upgrade to -current Hope that helps -- Antoine Yep, helps a lot. I kind of figured I'd need to either run current or else wait for 3.9 which, the latter, is what I'm going to do. Time to preorder. :-) Thanks, Antoine. That cleared things up. Denny White GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFEGoGNy0Ty5RZE55oRAndqAJ9nc9JWDlmAbihi9apMlkHRoZClkACdEOnS YdwrU7MfBb+BysabXfoGZrI= =ggnH -END PGP SIGNATURE-
Re: USB Scanner question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Antoine Jacoutot had this to say: Selon Denny White [EMAIL PROTECTED]: Yep, helps a lot. I kind of figured I'd need to either run current or else wait for 3.9 which, the latter, is what I'm going to do. Time to preorder. :-) Thanks, Antoine. That cleared things up. Glad I could be of some help. As a matter of fact, I'm the SANE port maintainer for OpenBSD, so don't hesitate to bug me if you have any problem making it work under this OS. Bye... -- Antoine I'm sorely tempted to try building the current port while still running _3_8, or, probably better all around, upgrading to current. I know 3.9's not coming until May. Just preordered it, but I hate waiting. :-) Have an old HP 3400C usb scanner that's listed as complete at the sane site. Probably the only thing holding me back is just how smooth my obsd system's working. Hate to do anything to screw it up. I'm not a developer, programmer, or any kind of guru. Just love obsd, the security it provides, and the relative ease of installing maintaining it for a relative newbie. I guess the worst that could happen would be the port would fail to build I'd just have to do a make clean. Or, it'd build then not run properly and, I'd just have to uninstall it hope it'd uninstall properly. Any thoughts on this, let me know. And, once again, thanks for the answer the info. Denny White GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFEGxVyy0Ty5RZE55oRAtzNAKCu7BfO4fWqsSPxoV7mK5h6IoRSFACePQxj d6SCwfy3Qnes8Pf+ccUNnsE= =s9yh -END PGP SIGNATURE-
Re: USB Scanner question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Antoine Jacoutot had this to say: On Fri, 17 Mar 2006, Denny White wrote: it for a relative newbie. I guess the worst that could happen would be the port would fail to build I'd just have to do a make clean. Or, it'd build then not run properly and, I'd just have to uninstall it hope it'd uninstall properly. Any thoughts on this, let me know. And, once again, thanks for the answer the info. I personnally run this port under one of my 3.8 computers with no problem. But, this is unsupported and might not work, YMMV. Anyway, this you won't destroy your system in trying. -- Antoine Won't have to worry about it now. Made a bad assumption about the HP 3400C. Thought it still worked. Won't even power up on the windoze box now. Maybe something happened to it during Hurricane Katrina. Hard to say. Anyways, guess it's off to eBay and see what I can find, esp among the Epson offerings. They're the best supported, it seems. Epson's web site has decent clearance deals, too. Thanks, Antoine. Denny White GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFEG/day0Ty5RZE55oRAkU4AJ9tV6uSY0SxLZy+OxJPpTOeopx0tgCfZjWC THMQ7LmpXs95rTZO1PgjjYI= =l7Sk -END PGP SIGNATURE-
Re: openbsd and the money
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 thankless? you sir, are the most thankless project leader i have ever seen in my life. We thank with code. We don't come shower people with nice words. We write code. i have been advocating openbsd since the 2.6 times and buying cds/shirts/posters since i started making money. wim can tell you that, we mail a lot, because except one time, all my stuff was always late :) oh, and my 3.8 poster is still not here (sorry wim). Advocacy is a way that our user community can help themselves, because it means that we can keep writing code. Oh, I thought you said something nice above, but you managed to sneak in even more complaining. i raise controversial issues on misc@ i admit that, some might even call it flaming, i call it food for thought. people pretend some questions/issues dont exist or they just don't ask it, because they get attacked. It is not food for thought. It is just you showing that you believe that when we write something, and then you show thanks to us, we should show thanks back to you. That makes no sense. If you wish for us to spend our time thanking people for thanking us, rather than writing more code, you have got it all wrong. _i_ started this thread because _i_ think you and some NO. You started this thread because you like to hear yourself talk. There is NOTHING else going on, except for you liking the sound of your own voice, and your own dissatisfied keystrokes. If you are so dissatisfied with the things that we do for you, PLEASE stop using them. Go find someone else who can satisfy you. of devs are not thankful, that you flame us till we burn but accept our money. and now you say _i_ am not thankful. sir, you are a master of words. No, we only flame losers who whine, whine, WHINE, and then a week later keep WHINING. You guys keep giving us software! But you never say nice words! You suck!. It is whining. It is NOTHING but whining. i am a man of principles just as you. so i do what i believe in. just like you. You are not a man. You are a whiny child who thinks that they should get their software, for free, and then when the nice words are not included they can spend a few minutes to make personal attacks on the people who spent hundreds and thousands of hours writing it. Maybe you are not even a man, because I know whiny children who are nicer than you. but somehow we always end up at the wrong wavelength. you will not believe, but it is not my intention. The frequency and amplitude of your whining is just too much for us. Please stop it immediately. Just shut up! Amen to the shutup! Thank you, Theo, for OpenBSD. I have been a windoze lazyass for years. OpenBSD has made me put on my thinking cap again. They say that keeps you young. Hope so, cause I'm getting old. Bought cd's a t-shirt. Nice about the donations page, too. Will remember to do so every time I get some extra dough. Anything to keep you guys writing the great code you do. Ignore the whiners! Some may misconstrue this as ass kissing, but it's sincere. Thanks to you the other developers, I'm almost weaned off insecure, expensive M$, as soon as my scanner gets here from eBay. Talked to one of the guys in the MIS dept the other night at the casino where I work, told him some of the stuff I was doing with OpenBSD, esp with network printing security. Apparently, they're doing the same thing there. I have no influence there at all, except for what bugs I can plant in their ears, like the fellow above. I will continue to do so, every chance I get. Nobody's more money hungry, probably, than casinos, but hey, you never know. Maybe they'll spring for some paid for subscriptions. Thanks again for the great project. As for me, no thanks needed or expected from you or the others. The project is more than enough thanks. Denny White Biloxi, MS GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFEJFosy0Ty5RZE55oRAuv8AJ9NCXuFLLg+joxgSXyXk7rouGyHbQCfdtbF vWGFp6phKUHge2UAOoAgU5E= =pdpV -END PGP SIGNATURE-
ssh login screen blank problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Running OpenBSD 3.9 on 2 boxes winxp on the other box. I can ssh from the windows box to either obsd box okay. I can ssh from either one of the obsd boxes to the other okay. I can ssh from either obsd box to the windows box okay while in xwindows from xterm. But, when I try to ssh in from either obsd box to the windows box from a regular terminal window, I get in, but after that, the screen is blank. Only way to get the terminal window back is to exit all the way out, not just from the ssh login to windows box, but all the way out, and then log back on to the obsd box. I've googled for hours, read up on ttys cygwin, and am coming up blank. Just trying to find out if anyone else has encountered this problem what they did to solve it. Had another box running FreeBSD 5.4 with identical ttys set up and was able to login to the windows box from a terminal window okay. Thanks for any help. Denny White GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFEoLyRy0Ty5RZE55oRAm2iAKC6z4on6gGtlgirbtaQm0vobiu2BwCfd1Hk 8lbEl0/yD+CzloeLfuo+fCg= =HFAf -END PGP SIGNATURE-
Epson 1200 Scanner problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Epson 1200 scanner worked great until a few days ago. Shut all boxes down for a bad thunderstorm blowing through. Later when I turned this box on with the scanner, scanimage -L no longer picked it up, although it showed up in dmesg with uscanner0 as usual. I was able to run scanimage -d epson:/dev/uscanner and get it to scan, but the gimp no longer could acquire it. Thinking maybe something happened during the storm, like a surge somewhere, I hooked the scanner up to my xp box and it worked fine, went through its warmup, scanned okay, etc. Hooked it back up to this box running obsd 3.9. Immediate message at the terminal when you connect/disconnect it. Tried disabling uscanner in the kernel and setting epson.conf to use libusb with usb 0x04b8 0x0104. When I use sane-find-scanner I get found USB scanner (vendor=0x04b8 [EPSON], product=0x0104 [Perfection1200]) at libusb:/dev/usb0:/dev/ugen0 # Your USB scanner was (probably) detected. It may or may not be # supported by SANE. Try scanimage -L and read the backend's manpage. where before I disabled uscanner, sane-find-scanner couldn't find it. Scanimage -L still doesn't find it. And, scanimage with the - -d switch info no longer works. When this problem first started, I hadn't changed the kernel or rebuilt userland for quite a while, so it's not that I changed something in the system to cause it. Since, however, I have tried updating my source code, rebuilding everything, reinstalling sane-backends and frontends, but to no avail. Included my dmesg below, hoping someone would see something I'd missed. Any ideas very welcome. Denny White - ---dmesg follows OpenBSD 3.9-stable (GENERIC) #1: Mon Jul 17 10:40:42 CDT 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III (GenuineIntel 686-class) 801 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 268017664 (261736K) avail mem = 237563904 (231996K) using 3297 buffers containing 13504512 bytes (13188K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(f4) BIOS, date 07/19/02, BIOS32 rev. 0 @ 0xfb140 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0xdf84 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdef0/112 (5 entries) pcibios0: PCI Exclusive IRQs: 9 10 11 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371SB ISA rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0x8000 0xc8000/0x800 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82815 Hub rev 0x04 ppb0 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0x05 pci1 at ppb0 bus 1 vga1 at pci1 dev 5 function 0 3DFX Interactive Voodoo3 rev 0x01 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) fxp0 at pci1 dev 8 function 0 Intel 82562 rev 0x03, i82562: irq 11, address 00:01:80:0b:76:77 inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0 xl0 at pci1 dev 10 function 0 3Com 3c905C 100Base-TX rev 0x78: irq 11, address 00:01:03:1a:2f:21 bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 7 ichpcib0 at pci0 dev 31 function 0 Intel 82801BA LPC rev 0x05 pciide0 at pci0 dev 31 function 1 Intel 82801BA IDE rev 0x05: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: WDC WD400BB-00AUA1 wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors wd1 at pciide0 channel 0 drive 1: WDC WD300BB-00AUA1 wd1: 16-sector PIO, LBA, 28629MB, 58633344 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HP, CD-Writer+ 9500b, 1.06 SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 uhci0 at pci0 dev 31 function 2 Intel 82801BA USB rev 0x05: irq 10 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ichiic0 at pci0 dev 31 function 3 Intel 82801BA SMBus rev 0x05: irq 9 iic0 at ichiic0 uhci1 at pci0 dev 31 function 4 Intel 82801BA USB rev 0x05: irq 9 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered auich0 at pci0 dev 31 function 5 Intel 82801BA AC97 rev 0x05: irq 9, ICH2 AC97 ac97: codec id 0x41445360 (Analog Devices AD1885) ac97: codec features headphone, Analog Devices Phat Stereo audio0 at auich0 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port
Re: Epson 1200 Scanner problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Epson 1200 scanner worked great until a few days ago. Shut all boxes down for a bad thunderstorm blowing through. Later when I turned this box on with the scanner, scanimage -L no longer picked it up, although it showed up in dmesg with uscanner0 as usual. I was able to run scanimage -d epson:/dev/uscanner and get it to scan, but the gimp no longer could acquire it. Thinking maybe something happened during the storm, like a surge somewhere, I hooked the scanner up to my xp box and it worked fine, went through its warmup, scanned okay, etc. Hooked it back up to this box running obsd 3.9. Immediate message at the terminal when you connect/disconnect it. Tried disabling uscanner in the kernel and setting epson.conf to use libusb with usb 0x04b8 0x0104. When I use sane-find-scanner I get found USB scanner (vendor=0x04b8 [EPSON], product=0x0104 [Perfection1200]) at libusb:/dev/usb0:/dev/ugen0 # Your USB scanner was (probably) detected. It may or may not be # supported by SANE. Try scanimage -L and read the backend's manpage. where before I disabled uscanner, sane-find-scanner couldn't find it. Scanimage -L still doesn't find it. And, scanimage with the -d switch info no longer works. When this problem first started, I hadn't changed the kernel or rebuilt userland for quite a while, so it's not that I changed something in the system to cause it. Since, however, I have tried updating my source code, rebuilding everything, reinstalling sane-backends and frontends, but to no avail. Included my dmesg below, hoping someone would see something I'd missed. Any ideas very welcome. Denny White ---dmesg follows OpenBSD 3.9-stable (GENERIC) #1: Mon Jul 17 10:40:42 CDT 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III (GenuineIntel 686-class) 801 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 268017664 (261736K) avail mem = 237563904 (231996K) using 3297 buffers containing 13504512 bytes (13188K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(f4) BIOS, date 07/19/02, BIOS32 rev. 0 @ 0xfb140 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0xdf84 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdef0/112 (5 entries) pcibios0: PCI Exclusive IRQs: 9 10 11 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371SB ISA rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0x8000 0xc8000/0x800 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82815 Hub rev 0x04 ppb0 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0x05 pci1 at ppb0 bus 1 vga1 at pci1 dev 5 function 0 3DFX Interactive Voodoo3 rev 0x01 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) fxp0 at pci1 dev 8 function 0 Intel 82562 rev 0x03, i82562: irq 11, address 00:01:80:0b:76:77 inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0 xl0 at pci1 dev 10 function 0 3Com 3c905C 100Base-TX rev 0x78: irq 11, address 00:01:03:1a:2f:21 bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 7 ichpcib0 at pci0 dev 31 function 0 Intel 82801BA LPC rev 0x05 pciide0 at pci0 dev 31 function 1 Intel 82801BA IDE rev 0x05: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: WDC WD400BB-00AUA1 wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors wd1 at pciide0 channel 0 drive 1: WDC WD300BB-00AUA1 wd1: 16-sector PIO, LBA, 28629MB, 58633344 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HP, CD-Writer+ 9500b, 1.06 SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 uhci0 at pci0 dev 31 function 2 Intel 82801BA USB rev 0x05: irq 10 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ichiic0 at pci0 dev 31 function 3 Intel 82801BA SMBus rev 0x05: irq 9 iic0 at ichiic0 uhci1 at pci0 dev 31 function 4 Intel 82801BA USB rev 0x05: irq 9 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered auich0 at pci0 dev 31 function 5 Intel 82801BA AC97 rev 0x05: irq 9, ICH2 AC97 ac97: codec id 0x41445360 (Analog Devices AD1885) ac97: codec features headphone, Analog Devices Phat Stereo audio0 at auich0 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0
Re: web based FTP client?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jul 19 FTP wrote: On Wed, Jul 19, 2006 at 12:43:39PM -0500, Eric Pancer wrote: On Wed, 2006-07-19 at 19:22:00 +0200, FTP wrote... is any 'good' web based ftp client around which can run in chrooted Apache? Runs in chroot'ed apachehrmm...methinks you are new to all of this, right? Maybe you should contact your local sysadmin and ask him the explain how things work between client, server, and where things are run. If you mean that a client executable served back from a webserver, thats easy: it'd be a non-executable object under any document root. Thanks for your help If you have a browser, you have an FTP client. However, FTP over HTTP is the major suck. the browser itself is only for anonymous ftp :-( I actually wanted FTP over HTTP Thanks George I use mozilla-firefox with the fireftp extension. Works fine, fast. Authenticated logins. I know, I u/l stuff to my account on my isp. No need to get your sysadmin all in a dither. ;) Denny White GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFEvy+Yy0Ty5RZE55oRAoapAJ9XDZBAZn49GzbsoIaeQmt1zkW2RQCfWXem m48bI0FXhhsXHz3VPy1Kvro= =aivs -END PGP SIGNATURE-
serial console question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've hunted around the archives, googled, read the faq on serial consoles, read what's in my copy of Absolute OpenBSd, but can't seem to find what I need to fix my problem. Running obsd 3.9 on one box obsd 3.8 on an ancient p90. I connected my nullmodem cable to #1 serial connection on each box. I've got the regular suggested settings in ttys, that is: tty00 /usr/libexec/getty std.9600 vt100 on secure. I know about the security problem with 'secure' but this is just on my lan, for learning purposes. I also tried different baud rates and vt settings, but the same thing happens each time. After I connect from the client box with 'tip tty00' I type 'set tty com0'on the other box, the display comes up on the client box really weird, spread out across the screen wrapping, more often than not, after a few minutes, it starts making a continuous alarm sound and you can't enter anything else in. I have gotten as far as logging in a couple of times, but not too many. Even after hitting ~. to disconnect, most of the time you can't reboot in the proper manner. It'll get as far as 'syncing' that's it. It just hangs. One box are the other has to be reset then the other box will finish syncing reboot. My friend told me that problems like that usually are caused by the fifo, that I should disable it, but I haven't figured out how to do it. I looked at GENERIC and see the pccom settings but nothing about disabling fifo. I did boot -c saw pccom in there, but again, I don't know what to do about it. I was wondering too, if it's a problem between the video cards. vga1 at pci0 dev 6 function 0 Matrox MGA Millenium 2064W (Storm) rev 0x01 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) vga1 at pci1 dev 5 function 0 3DFX Interactive Voodoo3 rev 0x01 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) But, from the looks of it, I don't see how. This message is already long, but if anyone wants me to put in both dmesgs, let me know. Thanks for any help, advice, links, etc, I can get to help me fix this. Denny White GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD4DBQFEwtzwy0Ty5RZE55oRAo7SAJjiGfcPEl4CuVitg36tMSHfXrEpAJ9xP2D1 dLlz5lm3LYnLvYyvQDv8XQ== =M3SL -END PGP SIGNATURE-
Re: serial console question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Nick Holland wrote: Denny White wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've hunted around the archives, googled, read the faq on serial consoles, read what's in my copy of Absolute OpenBSd, but can't seem to find what I need to fix my problem. Running obsd 3.9 on one box obsd 3.8 on an ancient p90. I connected my nullmodem cable to #1 serial connection on each box. I've got the regular suggested settings in ttys, that is: tty00/usr/libexec/getty std.9600vt100on secure. You did that on ONLY ONE BOX, right? ONLY the box you are trying to use the serial console on, NOT the box that is running tip(1). (trust me, you don't want to do this on both boxes, then run tip on one of them... In fact, don't assume, go check it. Really. I know this is a potential issue because I once forgot I had set a machine up for a serial terminal...then months later, tried to use it as the terminal for a machine with a serial console. ugly.) I know about the security problem with 'secure' but this is just on my lan, for learning purposes. I also tried different baud rates and vt settings, but the same thing happens each time. After I connect from the client box with 'tip tty00' I type 'set tty com0'on the other box, the display comes up on the client box really weird, spread out across the screen wrapping, more often than not, after a few minutes, it starts making a continuous alarm sound and you can't enter anything else in. I have gotten as far as logging in a couple of times, but not too many. Even after hitting ~. to disconnect, most of the time you can't reboot in the proper manner. It'll get as far as 'syncing' that's it. It just hangs. One box are the other has to be reset then the other box will finish syncing reboot. My friend told me that problems like that usually are caused by the fifo, that I should disable it, Your friend is wrong, I do think. If anything, that would make things worse, not better. FIFOs on serial ports are your friend, at least if properly implemented. Yes, some HW vendors have been known to screw it up. Disabling isn't the right answer, though...new hardware is a better plan. Once Again, a dmesg would have been nice. but I haven't figured out how to do it. I looked at GENERIC and see the pccom settings but nothing about disabling fifo. I did boot -c saw pccom in there, but again, I don't know what to do about it. I was wondering too, if it's a problem between the video cards. more likely to be a problem with the color of the case. (i.e., no, it's not the video cards). Assuming you didn't alter /etc/ttys on both machines, you need a third vote. A wild guess, based on a lack of hard information, is that you have a machine running out of spec. Which one? No idea. Could be the old P90 (age) or the newer machine (cheap junk), or both a little out of spec in different directions. That's why you need a third machine to try, and see who can talk to what. It sounds like you are doing things pretty close to right, otherwise, you would not have logged in at all. I'm more suspicious of changes made to /etc/ttys on the terminal machine, though. Nick. You hit it right on the head, Nick. I had it set in ttys on both boxes, and yes, it was UGLY! ;) My friend, BTW, doesn't run any BSD's, nix's, just windows, although he's done some serial stuff with his ham setup. Sorry for the bother. Should've read a little more closely. Working perfectly now. I did experiment with a faster baud rate after I got it working with your advice, again not really knowing what I was up to. ;) Won't do that again. 9600 is fine. I wanted to make some use of the old box. It's a really old Prioris XL 590DP server given to my friend. It was left over after Katrina wiped out the office it was in. Surprisingly enough, the only thing bad in it was one scsi hd. Sorry for not putting dmesgs in before. Thanks for bailing me out, Nick. Denny White GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFEwvhvy0Ty5RZE55oRAg6lAKC/86focJpl7gpoZ2pZU/Y/pMDWsACgszrF lkewrBMsI3Rz+kqAF9y2xX0= =vUt8 -END PGP SIGNATURE-
Re: {ftp3,anoncvs3}.usa.openbsd.org outage?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/14/06, Ben Calvert [EMAIL PROTECTED] wrote: plier.ucar.edu ( {ftp3,anoncvs3}.usa.openbsd.org ) has been down for the last several days. Does anyone know if this is a permanent or temporary outage? scanning the anoncvs mirror list at http://www.openbsd.org/anoncvs.html#CVSROOT i notice that at least one other mirror is pulling from anoncvs3.usa, Thanks, ben Today Jason Crawford wrote: I talked with Todd earlier today, hard disk failure, he's currently working on getting everything back up. - I think what we need to do is convince people who live in the lands they live in to build the nations. George W. Bush October 11, 2000 Presidential Debate -- Winston-Salem, North Carolina. Should read my own damned sys messages more often. ;) Glad someone commented on this. As of the date in the script output below, today i.e., still nothing. Thanks too, for the harddrive failure update. Now no urgent need to change my supfile knowing that info. Script started on Tue Nov 14 15:01:47 2006 # cvsup -g -L 2 obsd-supfile Parsing supfile obsd-supfile Connecting to anoncvs3.usa.openbsd.org Cannot connect to anoncvs3.usa.openbsd.org: Connection refused Will retry at 15:07:11 ^C # ^D Script done on Tue Nov 14 15:02:17 2006 Happy Turkey Month .--. {\ / q {\ { `\ \ (-(~` { '.{`\ \ \ ) {'-{ ' \ .-'-. \ \ {._{'.' \/ '.) \ {_.{. {`| {._{ ' { ;'-=-. | {-.{.' { ';-=-.`/ {._.{.;'-=- .' {_.-' `'.__ _,-' |||` .='==, Quand vous dansez avec le diable, le diable ne change pas. Seulement vous changement. GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFFWjDny0Ty5RZE55oRAo9OAKDOekGKL+Ksf7e1tZq4jDNPATEYKACeOEp1 ZRffXe5H9DYoR/xhDmdRTPg= =2WD9 -END PGP SIGNATURE-
Re: Editing C with...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Quoted from Girish Venkatachalam on Sun, May 04, 2008 at 04:18:10AM +0530,: On 13:51:58 May 03, Robert C Wittig wrote: vi/vim. I use it for most of my editing tasks, not just writing C code. I use vim since it enhances my coding speed in a big way. As to KNF I guess it is just a habit that I want to inculcate for all my C coding. Right now it is voluntary and occasionally painful but I don't want to lose the chance to make it automatic by going in for a tool. I am bowled over by vim's knowledge of config file syntax and the way it highlights various keywords. That way I can afford to be a bit lazy with certain programming languages or even config file directives. It would highlight typos in a different color. Occasionally vim does go wrong however but so far it has not affected me. I type out this mail with vim and it helps me appear good since I have auto spell check on. With bad keyboards I tend to make silly typos and vim can save my day by highlighting it and alerting me. Of course I would not be so much in love with vim but for its vi key bindings. As to power editing you should really read the short and sweet document written by the author of vim Bram Moolenaar. (If someone can locate it for me I shall be obliged. ;) He emphasizes how the steep learning curve experienced by vi learners are paid back in full in due course of time. I can vouch for it. So what if it is counter intuitive in the beginning? So what if it is sometimes tougher than emacs? Once you use it every time you create a document be it LaTeX or e-mail or source code or config file editing, you stick to one editor and that according to me is an amazing convenience. Its ability to read and write files makes it even more powerful of course. And the output of commands. Hope this helps. That said choice is yours as always. ;) Open source is a democratic world. ;) -Girish You might check here for the article you spoke of: http://www.moolenaar.net/vim.html Denny White - -- I'm not crazy, but I am a carrier. All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFIHjScy0Ty5RZE55oRAqyGAKC7Kgc+nxmGSeMxFA8VjOAtyd8QrQCbBH3F 0PTq1AERdEu/H0UIWNoNCEg= =j4xN -END PGP SIGNATURE-
vnode swap question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've followed faq 14.4 on setting up a permanent swap. I've rebuilt the kernel with: config bsd root on wd0a swap on wd0b and vnd0c dumps on wd0b Then I created the actual swap file: sudo dd if=/dev/zero of=/var/swap bs=1k count=262144 I added the info to fstab: /dev/vnd0c none swap sw 0 0 Then, as per the faq, I rebooted. Then I did sudo vnconfig -c -v vnd0 /var/swap and got vnd0: 268435456 bytes on /var/swap Then I did: sudo swapctl -a /dev/vnd0c And then: swapctl -l Device 512-blocks UsedAvail Capacity Priority swap_device41952960 4195296 0%0 /data2/swap20971520 2097152 0%0 /dev/vnd0c 5242880 524288 0%0 Total 68167360 6816736 0% Everything's fine at that point. But, when I reboot, I have to repeat the commands sudo vnconfig -c -v vnd0 /var/swap sudo swapctl -a /dev/vnd0c in order to get the extra swap back again. I thought from reading the faq that it becomes permanent, but I can't get it to. Can someone maybe point out if they see something I'm doing wrong? Thanks. - -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD4DBQFIJTeGy0Ty5RZE55oRAsXBAKDFrRzifK1D3oxFNR8BHLDm59DF1QCY7wuu DzHzPMKgR4sFeZlDTYM88A== =RrMS -END PGP SIGNATURE-
Re: Screen,colorls,xterms issue. 4.2
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Quoted from Jesus Sanchez on Sun, May 11, 2008 at 03:59:17AM +0200,: Stuart Henderson escribis: On 2008-05-10, Jesus Sanchez [EMAIL PROTECTED] wrote: I have set an alias for ls='colorls -GF' (color output) and this causes the problems on a screen session. I have set the TERM=xterm-color on my /etc/profile. Why do that? That will override the correct terminal configuration and send control codes suitable for an xterm to terminals that can't handle it, like screen. So, what TERM variable should I use ? -Jesus Somehow I lost the original message, probably with a fat finger, so replying to this one. Here's the section of my .Xdefaults pertaining to xterm and rxvt: rxvt*loginShell:true rxvt*transparent:true rxvt*shading:40 rxvt*background:Black rxvt*foreground:Cyan rxvt*scrollBar:true rxvt*scrollBar_right:true rxvt*transpscrollbar:true rxvt*saveLines:32767 rxvt*termName:rxvt include: XTerm XTerm.termName: nxterm XTerm*font: -schumacher-clean-medium-*-normal-*-13-*-*-75-*-60-*-* *VT100*colorMode: on *VT100*boldColors: on *VT100*dynamicColors: on *VT100*foreground: cyan *VT100*background: gray15 *VT100*colorULMode: on *VT100*colorUL: yellow *VT100*underLine: on *VT100*colorBDMode: on *VT100*colorBD: yellow3 *VT100*color0: black *VT100*color1: red3 *VT100*color2: green3 *VT100*color3: yellow3 *VT100*color4: blue2 *VT100*color5: magenta3 *VT100*color6: cyan3 *VT100*color7: gray90 *VT100*color8: gray50 *VT100*color9: red *VT100*color10: green *VT100*color11: yellow *VT100*color12: rgb:5c/5c/ff *VT100*color13: magenta *VT100*color14: cyan *VT100*color15: white *VT100*color16: gray15 #if PLANES 8 ! Color the popup menus and the menubar to match: *SimpleMenu.*.background: AntiqueWhite *SimpleMenu.*.foreground: gray15 *VT100.scrollbar.thumb: vlines2 *VT100.scrollbar.width: 14 *VT100.scrollbar.background:gray60 *VT100.scrollbar.foreground:rgb:a/5/5 *VT100.scrollbar.borderWidth: 2 !*VT100.scrollbar.displayList:\ #endif Set the colors according to your personal taste. I have no problem with the term value in the env like that, either in xterm or rxvt. For that matter, there's no conflict either with Eterm. And I can run screen from all of them without any conflicts. And, like some of the other messages mentioned, use wsvt25 in ttys. Also, in my .kshrc file, I have the section commented out like so: #if [ -x /usr/bin/tset ]; then # eval `/usr/bin/tset -sQ \vt220` #fi The ttys and .Xdefaults settings takes care of all of that. Hope this helps you some. Marc Espie made a good point too, in his reply. Leave the system config files alone as much as possible, especially while you're learning. If you can't, at least back up the original. Anytime you can use an 'rc' file in $HOME do it. It's kind of like leaving /etc/rc.conf alone and putting your stuff in /etc/rc.local and rc.conf.local. - -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFIJ7WCy0Ty5RZE55oRAhhtAJ9HfODUTsPlKJtzQCzUDBx0R+tBtACdEVxZ KxlLx4WVCAipFIh4EBr1dbw= =pkNu -END PGP SIGNATURE-
Re: bsdanywhere
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Quoted from Pau on Fri, Jun 06, 2008 at 07:42:08PM +0200,: a nice thing to test hardware and get dmesg http://bsdanywhere.org/ Of course, I guess that booting the obsd installer cd is much faster and you get also dmesg but this is an interesting alternative Thanks for the effort and contribution to the OpenBSD community. Linked you at http://polarwave.openbsd101.com/links.html http://polarwave.blogspot.com Denny White - -- Never under any circumstances take a sleeping pill and a laxative on the same night. Dave Barry All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFISafEy0Ty5RZE55oRAnzXAKCiYPZJiHPmug8ju33O+2nRAQU7QwCaAy30 t4qSG34Wn919wGTod1Td8Y4= =qFTD -END PGP SIGNATURE-
Re: ROOTBACKUP=1 no backup done
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Quoted from Gabri Mate on Sun, Jul 06, 2008 at 02:25:55AM +0200,: Hey There List, I've made an /altroot partition, exactly the same size as my /, and it is also mounted. I've put ROOTBACKUP=1 in root's crontab, but my / partition doesn't get dumped on /altroot at the daily cron's run. I have 4.3 release. Is there something i'm missing? -- Gabri Mate [EMAIL PROTECTED] [demime 1.01d removed an attachment of type application/pgp-signature] Read this portion of /etc/daily: # If ROOTBACKUP is set to 1 in the environment, and # if filesystem named /altroot is type ffs, on /dev/* and mounted xx, # use it as a backup root filesystem to be updated daily. And, if you read fstab(5) you'll see this: If fs_type is specified as ``xx'' the entry is ignored. So, fs_type should be xx in your fstab, right? You didn't include your fstab, but that sounds like what the problem is; i.e., you don't have that in yours and altroot is mounting normally. Denny White - -- People who want to share their religious views with you almost never want you to share yours with them. Dave Barry All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFIcDW2y0Ty5RZE55oRAqsVAJ96+68TjUYwuLEjHTkZa6StJyVqqgCgq024 6pLl6b4TuwcJ82XW9msbsJ0= =sb4L -END PGP SIGNATURE-
vietnamese and unicode text
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I found a program, VietPad, to type Vietnamese with the necessary diacritics. I couldn't get it to work completely until I found out about mlterm's capabilities, so I installed mlterm and now I can enter and properly display the diacritics. Now I'm trying to find out how to print the text files VietPad creates, since its output is unicode. Can someone point me in the right direction for either being able to print it as is, convert it and then print it, or if there's a better way from the get go to type Vietnamese? I've tried x-unikey without much success, and never could compile xvnkb. As things stand, I can print from VietPad, but of course it's a jumble. The printer is an ancient Star 2410 dot-matrix, but it handles the Vietnamese diacritics fine from the one windows box I still have, printed via samba/cups on my OpenBSD box. Also, I failed to mention VietPad is a jar file which runs with 'java -jar VietPad.jar'. Don't know if that makes any difference, but, I thought I should mention it just in case. Thanks for any help I can get on this. It is, in fact, the only reason I still have to have a windows box at all, since it's easy to do there with another program I have. Still trying to break free completely. - -- Denny White All messages scanned by ClamAssassin http://jameslick.com/clamassassin/ === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFIcYwty0Ty5RZE55oRAiXzAKDR/DpbERyB1mbun7b7awn+yiq1MACeOWCz GqpIV5Eh9/Jebdg8ApX3KAU= =ra1B -END PGP SIGNATURE-
Re: [OOT] Can't browse http://www.xs4all.nl/~wpd/symon/ and http://www.benzedrine.cx/pfstat.html
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Quoted from Insan Praja SW on Thu, Aug 14, 2008 at 08:21:28AM +0700,: Hi Misc@, Did anyone had difficulities accessing/browsing this sites? I'm trying to get a hold on symon, syweb dan pfstat, but I can't seem to access/browse from my network (20x.x0.1x4.0/23). Sorry for the noise, Thanks, Insan -- insandotpraja(at)gmaildotcom No problem here. Accessed all menu links including downloads fine. Denny White - -- Words without actions are the assassins of idealism. === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iEYEARECAAYFAkijkhcACgkQy0Ty5RZE55oGmQCgu1bOm7FuYyOHLQkgsfMHrA4a GvQAn1RnMoZxNwMYtMn+Gb56orkxlfyy =JqaG -END PGP SIGNATURE-
console switching problem from desktop
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 There are actually 2 problems. First one is, when using ctrl-alt-f1 so forth, it goes to the other console fine, but when I try to switch back, all I see on the screen is the output from the underlying x rather than the desktop. The other problem is, when I'm on the desktop in an xterm window, it's as though the settings in .profile like my aliases I have setup, aren't recognized, like they're not in the current environment settings. I never had anything like this happen when running 3.9. Now, on 4.0, I did a clean install, started having the problem, moved to stable, now current. Problem is still there. Right now I have 2 extra consoles configured in rc.local.conf but it was the same before I added them. I thought I had sent this message 2 days ago, but it never showed up in my daily mail, so, if it did go through I didn't get it for some reason, sorry. Also, I did read everything I could think of google all over, trying to find some info on this problem. I've worked on it for 2 days now, but I'm just not getting anywhere. Don't know if it'll help, but I'm including some system info below. It's a big message, but I tried to include anything I could think of that'd help. - --- OpenBSD 4.0-current (GENERIC) #2: Thu Dec 14 03:37:12 CST 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III (GenuineIntel 686-class) 802 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 268005376 (261724K) avail mem = 236601344 (231056K) using 3302 buffers containing 13524992 bytes (13208K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(f4) BIOS, date 07/19/02, BIOS32 rev. 0 @ 0xfb140, SMBIOS rev. 2.3 @ 0xf0800 (35 entries) bios0: Concentric 1234 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0xdf84 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdef0/112 (5 entries) pcibios0: PCI Exclusive IRQs: 9 10 11 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371SB ISA rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0x8000 0xc8000/0x800 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82815 Hub rev 0x04 ppb0 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0x05 pci1 at ppb0 bus 1 vga1 at pci1 dev 5 function 0 3DFX Interactive Voodoo3 rev 0x01 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) fxp0 at pci1 dev 8 function 0 Intel 82562 rev 0x03, i82562: irq 11, address 00:01:80:0b:76:77 inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0 xl0 at pci1 dev 10 function 0 3Com 3c905C 100Base-TX rev 0x78: irq 11, address 00:01:03:1a:2f:21 bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 7 ichpcib0 at pci0 dev 31 function 0 Intel 82801BA LPC rev 0x05 pciide0 at pci0 dev 31 function 1 Intel 82801BA IDE rev 0x05: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: WDC WD400BB-00AUA1 wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors wd1 at pciide0 channel 0 drive 1: WDC WD300BB-00AUA1 wd1: 16-sector PIO, LBA, 28629MB, 58633344 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HP, CD-Writer+ 9500b, 1.06 SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 uhci0 at pci0 dev 31 function 2 Intel 82801BA USB rev 0x05: irq 10 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ichiic0 at pci0 dev 31 function 3 Intel 82801BA SMBus rev 0x05: irq 9 iic0 at ichiic0 uhci1 at pci0 dev 31 function 4 Intel 82801BA USB rev 0x05: irq 11 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered auich0 at pci0 dev 31 function 5 Intel 82801BA AC97 rev 0x05: irq 9, ICH2 AC97 ac97: codec id 0x41445360 (Analog Devices AD1885) ac97: codec features headphone, Analog Devices Phat Stereo audio0 at auich0 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 lm0 at isa0 port 0x290/8: W83627HF npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80
Re: console switching problem from desktop
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Jeremy Huiskamp wrote: On 15-Dec-06, at 8:42 PM, Denny White wrote: There are actually 2 problems. First one is, when using ctrl-alt-f1 so forth, it goes to the other console fine, but when I try to switch back, all I see on the screen is the output from the underlying x rather than the desktop. http://www.openbsd.org/faq/faq7.html#SwitchConsole Okay, thanks Jeremy, I appreciate the memory jog. I'd read it when I first started using obsd apparently totally misunderstood it. I guess it never bit me before because I always used ttyC4 for startx which, in itself, shows my misunderstanding. I'd always had ttyC4 enabled, along with a couple more in rc.conf.local. Switching back forth between desktop other consoles okay now. I've done some more reading elseware, edited my fluxbox menu for xterm, changing the {xterm} to {xterm -ls } and now the aliases in .profile are once again working too, from xterm. Still don't understand why they used to work without that extra setting, but it's working, that's what counts. One good thing came from all this, I'm finally up to current without any apparent problems. Thanks again for your help. Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iD8DBQFFg7fEy0Ty5RZE55oRAszgAKCgeV9e/aRPRk3ozPqSACrJhcTv4wCePSlX L+TBjJHiH+VVz5h3b/ILQE8= =LGLV -END PGP SIGNATURE-
Re: console switching problem from desktop
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Neil E. Sprinlan wrote: Denny White wrote: There are actually 2 problems. First one is, when using ctrl-alt-f1 so forth, it goes to the other console fine, but when I try to switch back, all I see on the screen is the output from the underlying x rather than the desktop. If you use xdm to start X, your custom settings below call for trouble. /etc/X11/xdm/Xservers forces the X server to use ttyC4, which should not have a getty process attached. The other problem is, when I'm on the desktop in an xterm window, it's as though the settings in .profile like my aliases I have setup, aren't recognized, like they're not in the current environment settings. xsession or xinitrc files don't source your .profile. you need to start xterm with the '-ls' option or the loginShell resource set to TRUE to have the shell executed in them source it. Or put your settings in ~/.xsession (for xdm) or ~/.xinitrc (for startx). I never had anything like this happen when running 3.9. Now, on 4.0, I did a clean install, started having the problem, moved to stable, now current. Problem is still there. I'd suggest you compare your current setup with the one you used before (you did a backup, did you?). X has almost not changed between 3.9 and 4.0. -+-neil-+- Thanks for the answer, Neil. I've finally got it straightened out. And I use startx for x. The pertinent ttys settings are below. ttyC4 is once again off. I had misread the instructions a long time back, always used that terminal for x, it never seemed to have any problem. The other part about sourcing .profile from xterm puzzles me still, since I never had to add any switches in the fluxbox menu to the xterm command before in 3.7 through 3.9. It now reads (xterm) {xterm -ls } and all the aliases I use are once again there, so I know .profile is being sourced. And yep, I do a full dump at least monthly incrementals in between. ;) Thanks again for the info. Denny White (/etc/ttys snip) console /usr/libexec/getty Pc vt220 off insecure ttyC0 /usr/libexec/getty Pc vt220 on insecure ttyC1 /usr/libexec/getty Pc vt220 on insecure ttyC2 /usr/libexec/getty Pc vt220 on insecure ttyC3 /usr/libexec/getty Pc vt220 on insecure ttyC4 /usr/libexec/getty Pc vt220 off insecure ttyC5 /usr/libexec/getty Pc vt220 on insecure ttyC6 /usr/libexec/getty Pc vt220 on insecure ttyC7 /usr/libexec/getty Pc vt220 on insecure - |. . |L /| _ . |\ _| \--+._/| . / ||\| Y J ) / |/| ./ J |)'( |` F`.'/ ,. -| F __ .- f Merry Christmas Y | / .-'. `. /-. L___ | and a | J \ \ | | O\|.-' l Happy New Year j _J \ .-\/ O | | \ |F `-.___.,-' '-F -_. \ .-' `-' L__ ) / __J _ _. -' )._. |-' _,' ,' `-|.' /_. \_| F `-..___..,-'_.,' /.- ._. /'/.' .' `\ /L /' |/ _.-'-\ /'J ___.---'\| |\ .--' V | `. ` |/`. `-. `._) / .-.\ \ ( `\ `.\ GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A iD8DBQFFha+Qy0Ty5RZE55oRAp33AKC+gzjFCvuvxV5mGzSZ/4rmwGW3+gCfR/ly KOsYJxztr/EBsDJ//VIQrzI= =Q1XX -END PGP SIGNATURE-
Rosetta Stone for Unix
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thought this was pretty useful and interesting, especially for those of us who aren't on the same level as developers and gurus. And for them, there's also a contributions and corrections link. http://bhami.com/rosetta.html Found it in the 10/07/2008 entry on DragonFly BSD Digest at http://www.shiningsilence.com/dbsdlog/2008/10/07/3210.html - -- Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iEYEARECAAYFAkjtYsMACgkQy0Ty5RZE55qG2ACfe3yj8LzWofuEkqqJpz6xJ11z yuMAn0HxDrTRipTqCR7zI4T7fPWoQE9i =SQCb -END PGP SIGNATURE-
Re: Rosetta Stone for Unix
On Wed, Oct 08, 2008 at 08:09:16PM -0600, Theo de Raadt spoke thusly: Thought this was pretty useful and interesting, especially for those of us who aren't on the same level as developers and gurus. And for them, there's also a contributions and corrections link. http://bhami.com/rosetta.html As always, it is a shame that those types of pages have so many errors. For instance, check out the disklabel section. 2 out of 4 answers being right is still only 50% accurate. With that level of accuracy, the name is incredibly poorly chosen; perhaps they don't even know what the name refers to. It refers to a document that contained an accurate translation of the same text into different languages and therefore it was possible to decipher an unknown language. With this level of accuracy, that would be impossible. It is just sad. You're absolutely right about the mistakes in that section. I used the mail link on the page to let him know. -- Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: Rosetta Stone for Unix
On Thu, Oct 09, 2008 at 03:01:22PM +0200, Han Boetes wrote: Theo de Raadt wrote: http://bhami.com/rosetta.html As always, it is a shame that those types of pages have so many errors. [snip: examples] It is just sad. It's better to light a candle than to curse the darkness. # Han On Thu, Oct 09, 2008 at 11:11:26AM -0500, Marco Peereboom spoke thusly: Right, let me put on my hippie robes so that we can sing koombaya. Obviously it doesn't matter that website is spewing shit; it is the thought that counts. For what it's worth, I never meant to stir up a hornet's nest on the list. The guy's got a mailto link and welcomes all corrections. He answers promptly, too. I guess it's being done in the spirit of open source. You know, where everyone is welcome to pitch in constructively? Hence, the link for Contributions and corrections gratefully accepted. I already wrote to him about what Theo spotted right off and got an answer he will correct it as soon as possible. I went back again, clicked on 'set all OS' and 'Draw table', and can find no shutdown command ref for OpenBSD. There's just a ? there. Checked OpenBSD in the box, again clicked 'Draw Table' and got the same. Maybe the person who wrote the previous message pertaining to that command looked at the wrong column. Or hell, maybe I did. It's apparent it's a work in progress. Kind of like release schedules, applying patches, etc. Things improve with time. Why not pitch in and help the guy? Or not. Point is, he's trying. I guess he could take the 'Sysadmin' out at the top of the page, possibly misleading to a newbie, but he's also got good links to the OpenBSD FAQ's and man pages. Those ARE definitive guides and users are warned about that early on, both in the documentation and on the mailing lists. If they choose to try to shortcut and use something they found like on the site in question and it bites them in the butt, they only have themselves to blame. I don't think any sysadmin worth his salt would blindly follow everything on the site. -- Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Fresh install question
I've always tried to do a fresh install any time possible, and then copy all my backed up /home and /data stuff back to the new installed system. I'm just trying to figure out if there's a way to keep those 2 slices intact while wiping out and recreating everything else, i.e., /usr, /var, /tmp. I rebooted on the new 4.4 install cd and tried to see if there was a different way to go about things but couldn't figure it out there. I read up on disklabel fdisk googled around for a couple of days before asking the list. So, if someone knows where I can find some info on it, I'd really appreciate it. -- Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: Fresh install question
On Mon, Nov 17, 2008 at 10:50:13AM +0100, Alexander Hall spoke thusly: Denny White wrote: I've always tried to do a fresh install any time possible, and then copy all my backed up /home and /data stuff back to the new installed system. I'm just trying to figure out if there's a way to keep those 2 slices intact while wiping out and recreating everything else, i.e., /usr, /var, /tmp. I rebooted on the new 4.4 install cd and tried to see if there was a different way to go about things but couldn't figure it out there. I read up on disklabel fdisk googled around for a couple of days before asking the list. So, if someone knows where I can find some info on it, I'd really appreciate it. Something like replying no to Do you want to use the entire disk for openbsd could be a good start. I believe that would keep the existing partitions, and you could map them to their respective mount mounts again. I think, however, that you need to _not_ specify mount points for the file systems you want to preserve to prevent them from being newfs'd. Since I seldom, if ever, do that kind of fresh reinstalls, you'd better compare the above with install.sh et al. In any way i think it should be possible, but pretty please do make those backups before anyway. :-) /Alexander Thanks, Alexander. I'll give it a shot. I just did a dump on everything to a separate drive. Also rsync my homedir to that drive nightly. Worse case is, I screw it up just copy everything back like before. ;) -- Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: Fresh install question
On Mon, Nov 17, 2008 at 07:04:31AM -0500, Nick Holland spoke thusly: Denny White wrote: I've always tried to do a fresh install any time possible, and then copy all my backed up /home and /data stuff back to the new installed system. I'm just trying to figure out if there's a way to keep those 2 slices intact while wiping out and recreating everything else, i.e., /usr, /var, /tmp. I rebooted on the new 4.4 install cd and tried to see if there was a different way to go about things but couldn't figure it out there. I read up on disklabel fdisk googled around for a couple of days before asking the list. So, if someone knows where I can find some info on it, I'd really appreciate it. Just don't define mount points for the partitions you wish to keep, and they won't be newfs'd (i.e., existing data will be preserved). AFTER the install, you will go in and edit /etc/fstab and add your saved partitions. Ta-da! your data is back. Have a backup anyway, of course. Sucks to fat-finger something in the process... Nick. Thanks, Nick. Yeah, that's what some other replies said. And, like I said too in my answer, everything's just been dumped homedir rsynced, so I'm going to give it a try. And yes, fat fingers suck. I know from experience. ;) Thanks for the help. Good case in point. Forgot cc [EMAIL PROTECTED] What a dweeb! ;) Fat fingers rule! -- Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: Fresh install question
Original-Nachricht Datum: Mon, 17 Nov 2008 01:14:46 -0600 Von: Denny White [EMAIL PROTECTED] An: OpenBSD Questions misc@openbsd.org Betreff: Fresh install question I've always tried to do a fresh install any time possible, and then copy all my backed up /home and /data stuff back to the new installed system. I'm just trying to figure out if there's a way to keep those 2 slices intact while wiping out and recreating everything else, i.e., /usr, /var, /tmp. I rebooted on the new 4.4 install cd and tried to see if there was a different way to go about things but couldn't figure it out there. I read up on disklabel fdisk googled around for a couple of days before asking the list. So, if someone knows where I can find some info on it, I'd really appreciate it. -- Denny White -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser On Mon, Nov 17, 2008 at 03:34:47PM +0100, Jorge Valbuena spoke thusly: One simple thing that i will try is: If is already installed OpenBSD 4.2 and wants to install 4.3 or 4.4 , first take a look at the /etc/fstab file and write down the name of the /home partition /dev/wd0h /home ffs rw,nodev,nosuid 1 2 When installing the new version leave untouched that partition, and after first boot put the line manually in your new /etc/fstab I hope this can help ! Jorge Yep, that's been the general consensus in the other replies. Thanks for the help, Jorge. Along with just having dumped everything and rsynced my homedir, I also have fstab quite a few other etc files saved separately on my 2nd backup drive. Now all I have to do is try to avoid 'fat fingers' as Nick advised. ;) -- Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: Fresh install question
On Tue, Nov 18, 2008 at 06:58:22AM +0530, Girish Venkatachalam spoke thusly: On 15:34:47 Nov 17, Jorge Valbuena wrote: One simple thing that i will try is: If is already installed OpenBSD 4.2 and wants to install 4.3 or 4.4 , first take a look at the /etc/fstab file and write down the name of the /home partition /dev/wd0h /home ffs rw,nodev,nosuid 1 2 When installing the new version leave untouched that partition, and after first boot put the line manually in your new /etc/fstab I hope this can help ! It also helps to note down the starting and ending cylinders of the partition you want to preserve. You can think of the OpenBSD fdisk partition as one big contiguous block of sectors. Irrespective of its physical location, it is one single unidimensional series of sectors. Each sector is exactly 512 bytes. OpenBSD fdisk and disklabel unlike the ones found in other OSes always tell us the cylinder boundaries. This has helped me think a bit more clearly. -Girish Thanks, Girish. Believe it or not, I actually thought to do that. I know, miracles never cease. But thanks for reminding me. You know from off list correspondence about how much my memory banks will hold (or won't). ;) -- Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: Fresh install question
On Mon, Nov 17, 2008 at 01:14:46AM -0600, Denny White spoke thusly: I've always tried to do a fresh install any time possible, and then copy all my backed up /home and /data stuff back to the new installed system. I'm just trying to figure out if there's a way to keep those 2 slices intact while wiping out and recreating everything else, i.e., /usr, /var, /tmp. I rebooted on the new 4.4 install cd and tried to see if there was a different way to go about things but couldn't figure it out there. I read up on disklabel fdisk googled around for a couple of days before asking the list. So, if someone knows where I can find some info on it, I'd really appreciate it. Replying to myself to say the advice from Nick, Girish, Jorge, Alexander, and Tom was great. Never went through a smoother reinstall! All /home and /data intact with no need to work this aging box any harder than is necessary. Thanks to all and thanks to Theo and the devs for a great OS! 4.4 is tops, just as expected. -- Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: JDK 1.7
--- On Wed, 11/19/08, Stuart Henderson [EMAIL PROTECTED] wrote: From: Stuart Henderson [EMAIL PROTECTED] Subject: Re: JDK 1.7 To: Marco Peereboom [EMAIL PROTECTED] Cc: misc@openbsd.org Date: Wednesday, November 19, 2008, 8:55 AM On 2008/11/19 07:51, Marco Peereboom wrote: If you rely on that plugin it is a little more than a not a big deal. I for one would love to see it. yay kurt! On Wed, Nov 19, 2008 at 11:45:38AM +, Stuart Henderson wrote: On 2008-11-19, Steve Shockley [EMAIL PROTECTED] wrote: I tried installing the JDK 1.7 package on a -current machine, but couldn't find how to add the plugin to Firefox. Does JDK 1.7 include the plugin? It doesn't. It's not a big deal, 1.6 works just fine, just wondering. oops, trimmed the prefix to the quote. the It's not a big deal was from the original poster. On Mon, Nov 24, 2008 at 07:10:40AM -0800, K H A I spoke thusly: I;ve just compiled jdk-1.5.0.4 I cannot not make plugin works /usr/local/jdk-1.5.0/jre/plugin has 2 files .so cannot remember the name I have copied to to /usr/local/lib/mozilla-plugin also when i exec manually /usr/local/jdk-1.5.0/bin/ControlPanel, I see the table which has: /usr/local/jdk-1.5.0/jre/bin/java enable /usr/local/jdk-1.5.0/bin/java enable When I start firefox, I cannot see java plugin How do i create it? Any help would be greatlly appreciated. Cheers. K.D K.D. Moved your post to the bottom. Makes it a LOT easier to follow a thread as in 'please don't top post'. I don't care but most others do. I built 1.6.0 but it works on the same the principle for you in 1.5.0. Do you mean you copied the actual files there? I'd get rid of them first to keep from any confusion. You have to link back to the actual binary as it needs other stuff which isn't in your plugins directory. Then: ln -fs /usr/local/jdk-1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so \ ~/.mozilla/plugins/ Open firefox in the address bar type 'about:plugins' (minus quotes). Mine looks like so: Java(TM) Plug-in 1.6.0_03-p4-b00 File name: libjavaplugin_oji.so Java(TM) Plug-in 1.6.0_03 Lots of java specs follow below that. Okay? [ Chuc may man! (minus diacritics - just guessing ] Apologies if I'm wrong. ;) -- Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
sshd with authlog error message
Just upgraded to 4.4 the other day. Fresh install, then updated to stable. I have a loopback adapter on the one xp box with a cygwin bash script that runs on boot gets installed as a service. Click Start - Run, type in the ip address and enter and explorer comes up with my file shares on my OpenBSD box. Before in 4.3 there were never any error messages. Now I'm getting this in authlog: Nov 28 13:12:28 badboybox sshd[1280]: channel_by_id: 1: bad id: channel free Nov 28 13:12:28 badboybox sshd[1280]: channel_input_success_failure: 1: unknown I googled around and saw others having that problem, but everything I found had to do with linux. Samba was built with the ssl argument. Did that just for experimentation to see what I could do with it learn something new. I'm also running sshd on a high port rather than on 22 to keep all the script kiddy crap out of the logs. I can run sshd with the -q switch and stop the error message, but I'm not really comfortable with that. Anyone has any idea what's causing it, I'd appreciate any input. I know ssh has moved up to 5.1 in 4.4, and I thought maybe something that had changed in it was causing the problem, but what I don't know. Thanks for any help on it. -- Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: sshd with authlog error message: SOLVED
On Fri, Nov 28, 2008 at 01:30:15PM -0600, Denny White spoke thusly: Just upgraded to 4.4 the other day. Fresh install, then updated to stable. I have a loopback adapter on the one xp box with a cygwin bash script that runs on boot gets installed as a service. Click Start - Run, type in the ip address and enter and explorer comes up with my file shares on my OpenBSD box. Before in 4.3 there were never any error messages. Now I'm getting this in authlog: Nov 28 13:12:28 badboybox sshd[1280]: channel_by_id: 1: bad id: channel free Nov 28 13:12:28 badboybox sshd[1280]: channel_input_success_failure: 1: unknown I googled around and saw others having that problem, but everything I found had to do with linux. Samba was built with the ssl argument. Did that just for experimentation to see what I could do with it learn something new. I'm also running sshd on a high port rather than on 22 to keep all the script kiddy crap out of the logs. I can run sshd with the -q switch and stop the error message, but I'm not really comfortable with that. Anyone has any idea what's causing it, I'd appreciate any input. I know ssh has moved up to 5.1 in 4.4, and I thought maybe something that had changed in it was causing the problem, but what I don't know. Thanks for any help on it. Replying to my own message to say problem solved. Don't know what changed in 5.1 or samba, but the error messages can be gotten rid of by adding the following to the ssh command on a windows loopback connector bash script in cygwin hopefully putty or others if not using cygwin. I don't know since I haven't used putty in a long time. -o TCPKeepAlive=no -o ServerAliveInterval=10 I put 10 since I think sshd checks every 20 seconds or so by default. Anyone correct me if I'm wrong on that. I'd read where the 'no' on the TCPKeepAlive protects against some sort of spoofing. Thought I should explain that since it looks redundant, and very may be with the newer ssh. It wouldn't affect this system anyway, I don't think, since all connections are done using keys rather than passwords. And again, anyone correct me where I'm wrong. Anyway, the error messages are gone. -- Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: OpenBSD 4.4 Console Will Not Clear
On Mon, Dec 08, 2008 at 03:56:21PM -0700, Bret spoke thusly: Greetings I have been running OpenBSD as a firewall/router since 2.5 and have never had any problem with Clearing the console each time a user logs out. I have just installed 4.4 on a system that was running 4.0. I did a complete install from the install CD off the ftp site(s). I then edited /etc/gettytab the same way I have done many times before, following the FAQ instructions. The console will not clear after logging out. I have even rebooted and the same results. I thought I might have screwed the file up editing it so I even did another clean install and ONLY installed pico to edit /etc/gettytab just in case I somehow messed it up using vi... still no go. Looked out on the net and found no reference to this. Any Ideas? Bret I'm assuming you're referring to http://www.openbsd.org/faq/faq7.html#ConsoleClear i.e., To do this you must add a line in /etc/gettytab(5). Change the current section: P|Pc|Pc console:\ :np:sp#9600: adding the line :cl=\E[H\E[2J: at the end, so that it ends up looking like this: P|Pc|Pc console:\ :np:sp#9600:\ :cl=\E[H\E[2J: Now try changing default:\ :np:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200: to default:\ :np:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:cl=\E[H\E[2J: Denny White -- /\ASCII Ribbon Campaign \ /Respect for low technology. X Keep e-mail messages readable by any computer system. / \Keep it ASCII. === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: verify installed packages' binaries integrity ?
On Thu, Dec 18, 2008 at 08:04:05PM +0100, jul spoke thusly: (Note: it is not related to packages integrity when installing) a small question, is there any way to check integrity of installed packages'binaries ? i explain: in the case, i fear my host is compromised and i forgot or have corrupted mtree files, can i ask pkg manager to say if any referenced file has a different checksums than recorded. (+CONTENTS file has md5 and size) i know, this does not concern any base binaries which are the stuff that matter the most, but else ... If no mtree, i think the last option is comparing with binaries from CD hoping they didn't changed. thanks Regards A simple alternative way to check the integrity of files is at: https://calomel.org/ids_mtree.html I use ids.sh out of a nightly cronjob cuss myself out every time I forget to run the script with 'generate' after changing something, as it doesn't miss anything. At least it hasn't yet. ;) And the plus is, it's done with mtree which is in base instead of using something third-party having to fart around with another conf file. Denny White -- /\ASCII Ribbon Campaign \ /Respect for low technology. X Keep e-mail messages readable by any computer system. / \Keep it ASCII. === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
weekly/locate.updatedb problem
I know from past experience and doing a lot of online searching that this problem crops up from time to time. Usually someone just did a new install and doesn't know the locate.datebase isn't created by default. You have to do it yourself to get started. Just stating those things so no one thinks I'm looking for a quick fix without any rtfm or research. I'm getting Not installing locate database; zero size when weekly runs. I've created the database myself several ways: sudo /usr/libexec/locate.updatedb which makes it much larger than the normal size which happens because it's not under the normal constraints it is when run from weekly. Also used sudo su -m nobody /usr/libexec/locate.updatedb which produces the normal size. I haven't done any modifications to weekly. It's straight 'out of the box' from when I installed 4.4. I've looked at the permissions on the pertinent directories and none of them appear to have changed. I've looked at root's crontab and can't find anything wrong there. It's just like it was when I was still running 4.3 and locate.updatedb worked fine from weekly then. Still, when weekly runs, locate.updatedb fails. I've tried running ls from another term when weekly starts and could see /var/db/locate.database.XX. Sometimes locate.update will run for up to 10 or 15 secs, but usually it fails, almost immediately. I should mention, also, that there's no problem with /tmp or /var sizes. /tmp is 1Gib and almost empty. /var is 2GiB, also mostly free. Anyone got any ideas where to look next, I'd appreciate it. Denny White -- /\ASCII Ribbon Campaign \ /Respect for low technology. X Keep e-mail messages readable by any computer system. / \Keep it ASCII. === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: weekly/locate.updatedb problem
On Sun, Dec 28, 2008 at 08:28:52PM +0100, Matthias Kilian spoke thusly: On Sun, Dec 28, 2008 at 12:39:57PM -0600, Denny White wrote: I know from past experience and doing a lot of online searching that this problem crops up from time to time. Usually someone just did a new install and doesn't know the locate.datebase isn't created by default. There's an empty /var/db/locate.database in etcXX.tgz. Didn't you install etcXX.tgz? Ciao, Kili Okay, maybe I worded my question wrong. Sure, I installed all sets including etcXX.tgz. Regardless, I'm still trying to solve the problem of the update failing now. As I said before, I've tried to check every conceivable thing I could come up with that might be causing it and am still coming up emtpy. Weird. And, IIRC, I did have to get it kicked off originally manually. Just for fun I just copied the original empty file to /var/db/ -r--r--r-- 1 root wheel 0 Dec 28 15:16 locate.database and ran weekly again. Did a listing from another term to show it had started and was trying: -rw--- 1 root wheel 0 Dec 28 15:19 locate.database.Hojrmm6565 After about 10 seconds it failed again. I ran top to watch how much load it was creating, not that it ever came anywhere near what it does while kernel or userland building, but just to see at what point it failed in case it would help someone else who was trying to help with the problem. 18714 root 57 0 4324K 5912K run - 0:10 31.49% perl That probably won't help but I'm at the 'shooting in the dark' point here. For the record, here's the locate portion of weekly to show that nothing's been altered. I decreased the indentation to keep within 72 characters: echo if [ -f /var/db/locate.database ]; then TMP=`mktemp /var/db/locate.database.XX` if [ $? -eq 0 ]; then trap 'rm -f $TMP; exit 1' 0 1 15 echo Rebuilding locate database: UPDATEDB=/usr/libexec/locate.updatedb echo ${UPDATEDB} --fcodes=- --tmpdir=${TMPDIR:-/var/tmp} | \ nice -5 su -m nobody 2/dev/null 1$TMP if [ -s $TMP ]; then chmod 444 $TMP chown root:wheel $TMP mv -f $TMP /var/db/locate.database else echo Not installing locate database; zero size fi else echo Not rebuilding locate database; can't create temp file fi else echo Not rebuilding locate database; no /var/db/locate.database fi I'm just wondering, since perl moved to a new number if something's changed there that's causing the problem. At that point I wouldn't know what to do. I did check ulimit to see what the settings were. As a user I get time(cpu-seconds)unlimited file(blocks) unlimited coredump(blocks) unlimited data(kbytes) 524288 stack(kbytes)4096 lockedmem(kbytes)166098 memory(kbytes) 497108 nofiles(descriptors) 128 processes64 and as root time(cpu-seconds)unlimited file(blocks) unlimited coredump(blocks) unlimited data(kbytes) 1048576 stack(kbytes)8192 lockedmem(kbytes)166098 memory(kbytes) 497108 nofiles(descriptors) 128 processes1310 Once again, shooting in the dark. Denny White -- /\ASCII Ribbon Campaign \ /Respect for low technology. X Keep e-mail messages readable by any computer system. / \Keep it ASCII. === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: weekly/locate.updatedb problem: SOLVED
On Sun, Dec 28, 2008 at 1:39 PM, Denny White denny...@cableone.net wrote: Not installing locate database; zero size On Sun, Dec 28, 2008 at 05:54:31PM -0500, Dave K spoke thusly: I've been seeing this on a 4.3 box. After reading your email, and seeing that I'm not the only one with the issue, I've been playing with it today. After making backups of all the scripts involved (/etc/weekly and /usr/libexec/locate.*), I took out the 2 /dev/null and trap ... stuff to be able to see all the errors, and have the various temporary file left behind for analysis. If I run it manually (as root, sh /etc/weekly), it fails with the find in locate.updatedb giving the error find: .:: Permission denied. If I cd into /tmp first, it runs okay. So I added PREVPWD=$PWD; cd /tmp in /etc/weekly before the call to locate.updatedb, and cd $PREVPWD: after. It now has run successfully both when invoked manually, and from cron. I'm going to leave this debug configuration in place to see what happens as time goes on. -- Dave K Unix Systems Network Administrator Mount Laurel NJ Thanks Dave Philip, too, since I'm CC you, for the ideas and help. Y'all will probably want to kick me in the ass when I explain what was causing the problem. But, your messages helped me figure it out, none the less, especially the part about changing directories before running the command. When I recently went from 4.3 to 4.4 installed a new crontab, I copied pasted my own root's stuff into their respective crontabs from a backup. Wrong backup! There was 1 changed line that I never noticed until I read your messages. The crontab for root had HOME=/root I can't remember why in the hell I changed that one day farting around with something here. Long the short is, I copied from the wrong backup. I just changed it back to HOME=/var/log locate.updatedb from weekly works fine once again. My bad. I keep voluminous notes but that one just slipped through the cracks. Sorry for the noise, thanks for the help. [Slinks back into the primordial newbie/troll slime ;)] Denny White -- /\ASCII Ribbon Campaign \ /Respect for low technology. X Keep e-mail messages readable by any computer system. / \Keep it ASCII. === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: awk
On Thu, Jan 15, 2009 at 02:41:24PM +, Andreas Kahari spoke thusly: 2009/1/15 igor denisov denisovigor1...@rambler.ru: Hi there Can not understand. input: 34523 9348 98493 82983 9485 83928 9283 9283 394 39934 293 8347 3456 9238 9283 9283 awk 'NR==1 { for (i = 1; i = NF; i++) {n=$i; next}}; {n-=$i} END {print n}' input output: 21188 it is first column, why? You should really take these questions to an awk forum, not to this mailing list. Your program reads the first record, and assigns its first column to 'n' in a loop that is immediately exited (with 'next') and goes on to read the remaining records. For the remaining records, 'i' being still 1 from the prematurely exited loop, the first column is subtracted from 'n'. Regards, Andreas -- Andreas Kahari Somewhere in the general Cambridge area, UK Deleted original message, so replying to Andreas' message. To sum by columns, do: awk '{for(i=1;i=NF;i++)t[i]+=$i}END{for(i=1;i in t;i++)print t[i]}' \ input If you want to sum by lines, do: awk '{for(i=1;i=NF;i++)t[i]+=$i}END{for(i=1;i in t;i++)print t[i]}' \ input If you want to total all the numbers at once you can do: awk '{for(i=1;i=NF;i++)t[i]+=$i}END{for(i=1;i in t;i++)print t[i]}' \ input If I misunderstood what you want, like do you just want to total the first column, then: awk '{print $1}' input | \ awk '{for(i=1;i=NF;i++)t[i]+=$i}END{for(i=1;i in t;i++)print t[i]}' For another column, just change the '{print $1}' to whatever column you need. The gurus might and probably do know a better way, but that works. Hope this helps. Denny White -- /\ASCII Ribbon Campaign \ /Respect for low technology. X Keep e-mail messages readable by any computer system. / \Keep it ASCII. === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: awk
On Sat, Jan 17, 2009 at 03:13:27AM -0600, Denny White spoke thusly: On Thu, Jan 15, 2009 at 02:41:24PM +, Andreas Kahari spoke thusly: 2009/1/15 igor denisov denisovigor1...@rambler.ru: Hi there Can not understand. input: 34523 9348 98493 82983 9485 83928 9283 9283 394 39934 293 8347 3456 9238 9283 9283 awk 'NR==1 { for (i = 1; i = NF; i++) {n=$i; next}}; {n-=$i} END {print n}' input output: 21188 it is first column, why? You should really take these questions to an awk forum, not to this mailing list. Your program reads the first record, and assigns its first column to 'n' in a loop that is immediately exited (with 'next') and goes on to read the remaining records. For the remaining records, 'i' being still 1 from the prematurely exited loop, the first column is subtracted from 'n'. Regards, Andreas -- Andreas Kahari Somewhere in the general Cambridge area, UK Deleted original message, so replying to Andreas' message. To sum by columns, do: awk '{for(i=1;i=NF;i++)t[i]+=$i}END{for(i=1;i in t;i++)print t[i]}' \ input If you want to sum by lines, do: awk '{for(i=1;i=NF;i++)t[i]+=$i}END{for(i=1;i in t;i++)print t[i]}' \ input If you want to total all the numbers at once you can do: awk '{for(i=1;i=NF;i++)t[i]+=$i}END{for(i=1;i in t;i++)print t[i]}' \ input If I misunderstood what you want, like do you just want to total the first column, then: awk '{print $1}' input | \ awk '{for(i=1;i=NF;i++)t[i]+=$i}END{for(i=1;i in t;i++)print t[i]}' For another column, just change the '{print $1}' to whatever column you need. The gurus might and probably do know a better way, but that works. Hope this helps. Denny White Now I know I'm tired. I overlooked the subtraction part. To subtract down through just the first column, do: awk '{print $1}' input | \ awk 'NR==1 {n=$1; next}; {n-=$1} END {print n}' For a 4 column file, to subtract through all 4 columns, do: awk 'NR == 1 { d1 = $1; d2 = $2; d3 = $3; d4 = $4; next }{ d1 -= $1; \ d2 -= $2; d3 -= $3; d4 -= $4 } END { print d1, d2, d3, d4 }' input And again, hope this helps. Denny White -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A ===
Re: /altroot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Aug 16, 2009 at 09:44:43PM +, 4625 spoke thusly: On Sat, 15 Aug 2009, Philip Guenther wrote: Is it correct string for /etc/fstab? /dev/wd2d /altroot ffs xx 0 0 Assuming /dev/wd2d is the correct partition, yes. (You're looking at the daily(8) manpage, right?) Sure. Original mount string for '/altroot' there was '/dev/wd2d /altroot ffs rw,nodev,nosuid 1 2'. Should df display the /altroot? Only if you mount it yourself. It is not normally mounted and therefore does not appear in 'df' output. (No point in displaying it, what with it being a duplicate of the root filesystem) Ok. Thanks. I do not see any messages about backup. How do I check if backup really happen? -- 4625 It's in daily output mailed to root's account. You got to have access to root's mail. I've got myself in the wheel group and have root's email sent to me instead. Here's some pertinent stuff in root's crontab: ROOTBACKUP=1# backup / to /altroot MAILTO=dennyboy # forward root's mail to me In /etc/mail/aliases, my name is added next to root: root: dennyboy In daily output to root, the section of the message pertaining to the backup should look something similar to this: Backing up root filesystem: copying /dev/rwd0a to /dev/rwd1a 131098+1 records in 131098+1 records out 1073955328 bytes transferred in 51.680 secs (20780520 bytes/sec) Naturally the 2nd line is dependent on your disk setup, fstab so forth as previously discussed in this thread. Denny White - -- === () ASCII ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments === GnuPG key : 0x1644E79A | http://wwwkeys.de.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === iEYEARECAAYFAkqIh3AACgkQy0Ty5RZE55rNAACgn6nB3rWPk5A9Pdl6c3wloMHh 4iMAn26SIqS+5lFH3d3VrBFlDYAxSXQk =HLK7 -END PGP SIGNATURE-
Re: /usr directory: a system or user place?
On Sun, May 02, 2010 at 11:18:01AM +1000, Rod Whitworth spoke thusly: On Sat, 1 May 2010 20:23:50 -0400, Barry Miller wrote: Yes, I know this is somewhat off-topic, but I think it's fascinating, like, Why'd they call it 'awk'? Now there's an acronym for you. Did you leave that as an exercise for the reader ? It's too easy and, although I'm not spoiling the exercise, I'll bet somebody jumps in very soon! Kersplash! I'm in. ;) [A]ho + [W]einberger + [K]ernighan = AWK Possible alternative definitions: Awesome Word Kinesis Awfully Weird Kool-Aid *** NOTE *** Please DO NOT CC me. I am subscribed to the list. Mail to the sender address that does not originate at the list server is tarpitted. The reply-to: address is provided for those who feel compelled to reply off list. Thankyou. Rod/ --- This life is not the real thing. It is not even in Beta. If it was, then OpenBSD would already have a man page for it. -- \\\ /// ( @ @ ) +-oOOo-(_)-oOOo-+ === Denny White - denny...@cableone.net GnuPG key : 0x1644E79A | http://wwwkeys.de.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === () ASCII ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments ===
CD's are here
Yes, we have some new cd's, We have some new cd's today, ole! ;) Prior silly exuberance probably has no meaning to the younger generation. Maybe some other old farts like me will recall the song it's a parodying. ;) Complete package arrived unscathed. Even a cool sticker on the outside of the package. Was able to reuse it on my laptop. Great work as always! -- === Denny White - denny...@cableone.net GnuPG key : 0x1644E79A | http://wwwkeys.de.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === () ASCII ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments ===
Re: pkg_add problems after 4.7 upgrade
On Sat, May 29, 2010 at 10:38:56PM -0400, Casey Allen Shobe spoke thusly: On 29 May, 2010, at 9:19 PM, Jacob Meuser wrote: On Sat, May 29, 2010 at 08:57:28PM -0400, Casey Allen Shobe wrote: I've tried a few mirrors with the same results - this was the last one I tried: export PKG_PATH=ftp://obsd.cec.mtu.edu/pub/OpenBSD/4.7/packages/i386/ ...or as I was trying last as indicated below: export PKG_PATH=ftp://openbsd.org/pub/OpenBSD/4.7/packages/i386/ ^^ of course that one won't work ... maybe that's a typo but that's kinda the point. Sorry, what's the typo? Why won't it work? since you're using ftp, 'ftp $PKG_PATH' should put you in the right directory. does it? Well, I tried `links $PKG_PATH` before - that worked. But with `ftp $PKG_PATH`, it appears to log in correctly, but ls never returns anything. This seems to happen with ANY ftp server actually (just tried a bunch), and is odd because I did use the commandline ftp utility frequently on 4.6 without any issue... So the problem lies with the 'ftp' utility? Cheers, -- Casey Allen Shobe ca...@shobe.info Not really sure what happened with ftp://obsd.cec.mtu.edu/pub/OpenBSD/4.7/packages/i386/ since it worked fine for me including 'ls'. As for the 2nd one you tried which didn't work: ftp://openbsd.org/pub/OpenBSD/4.7/packages/i386/ Try this: ftp://ftp.openbsd.org/pub/OpenBSD/4.7/packages/i386/ -- === Denny White - denny...@cableone.net GnuPG key : 0x1644E79A | http://wwwkeys.de.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === () ASCII ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments ===
Re: pkg_add problems after 4.7 upgrade
On Sun, May 30, 2010 at 12:50:55AM -0400, Casey Allen Shobe spoke thusly: On 30 May, 2010, at 12:15 AM, Denny White wrote: Not really sure what happened with since it worked fine for me including 'ls'. As for the 2nd one you tried which didn't work: ftp://openbsd.org/pub/OpenBSD/4.7/packages/i386/ Try this: ftp://ftp.openbsd.org/pub/OpenBSD/4.7/packages/i386/ Well, I've found that using an HTTP mirror works. However, this is concerning because all of these machines were able to use FTP properly before, some Debian machines on the same network can use FTP mirrors correctly (plus `ftp` to the same OpenBSD mirrors works from Debian), and the links browser on the OpenBSD machines seems to do FTP correctly too. One way or the other, the 'ftp' utility seems to have gotten broken since 4.6. I'd hazard to guess that it might not be supporting passive FTP anymore, since active FTP does not work from the network and this is reminiscent of what would happen if I tried using active FTP from behind a firewall in the past... I've worked around the immediate problem with HTTP for now...but is there any more useful information that I can provide from my end? Cheers, -- Casey Allen Shobe ca...@shobe.info If you're comfortable with it, you could try disabling pf just long enough to see if your ftp works without it. If so you could supply your pf.conf since there have been syntax changes and possibly you have something outdated in it. If you've got good backups you could try doing a fresh install on just one box and see what happens. If the problem goes away you'll know something got screwed up during the upgrades. -- === Denny White - denny...@cableone.net GnuPG key : 0x1644E79A | http://wwwkeys.de.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === () ASCII ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments ===
Re: Opteron 250 Overheating
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Mar 05, 2010 at 09:01:13AM +1100, Rod Whitworth spoke thusly: On Thu, 4 Mar 2010 06:18:30 -0800, J.C. Roberts wrote: I had this problem before, an old Cereal box + Scissors + tape fixed it right up. But your mileage may vary I'm Jealous! --I've always wanted a cereal console. And now you are a cereal offender! *** NOTE *** Please DO NOT CC me. I am subscribed to the list. Mail to the sender address that does not originate at the list server is tarpitted. The reply-to: address is provided for those who feel compelled to reply off list. Thankyou. Rod/ --- This life is not the real thing. It is not even in Beta. If it was, then OpenBSD would already have a man page for it. OpenBSD, Breakfast of Champions! A nutritious kernel in every byte. Cocoa Puffys, even! Okay, exit, stage right. ;) - -- === Denny White - denny...@cableone.net GnuPG key : 0x1644E79A | http://wwwkeys.de.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === () ASCII ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments === iEYEARECAAYFAkuQaU8ACgkQy0Ty5RZE55oKtQCgzGkFQEE/ipgRVWAmnWM595gD Jj8AoLkbWFmTcO2uuZhUTLulRppZXiue =xU6b -END PGP SIGNATURE-
Re: OpenBSD 4.7 pre-orders are live!
On Sat, Mar 13, 2010 at 09:42:06PM -0500, Jason Dixon spoke thusly: https://https.openbsd.org/cgi-bin/order?CD47=1CD47%2b=Add -- Jason Dixon DixonGroup Consulting http://www.dixongroup.net/ 2010/3/14-12:29:45-27293 Way behind the others, but better late than never. ;) -- === Denny White - denny...@cableone.net GnuPG key : 0x1644E79A | http://wwwkeys.de.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === () ASCII ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments ===