Re: Excluding files with mtree?
On Wed, 5 Sep 2007, Jeremy C. Reed wrote: Have a look at the "optional" (for files) and "ignore" (for directories) keywords in man page. And see examples in /etc/mtree/special. Generate your entire specification and then modify using "optional" and "ignore" as you wish. Thanks for the info. But I was hoping to use it in a fully automatic script. p.s. Some other implementations of mtree(8) have an exclude feature. Yeah I noticed that too. I tried NetBSD's mtree on OpenBSD but it didn't compile out of the box and it didn't seem like a trivial thing to port. -- Antti Harri
Excluding files with mtree?
Hi, how can I exclude files with mtree? It seems to me it's not possible, is it? I want to make mtree specifications of a directory but I want to skip some files and subdirectories in it. -- Antti Harri
Re: That whole "Linux stealing our code" thing
On Sun, 2 Sep 2007, Siju George wrote: Could somebody please explain about "Running Strings"? [EMAIL PROTECTED]:~$ which strings /usr/bin/strings See strings(1) :-) -- Antti Harri
Re: Unable to connect to the the ISP
On Sat, 1 Sep 2007, Amit Finkler wrote: The contents of my /etc/hostname.fxp0 are: dhcp This should be just "up". 1. How do I disable IPv6? You don't need to, I'm sure that's not the problem. Btw, I suggest you to try the kernel mode pppoe. It's really simple to set up and works like a charm. See pppoe(4). -- Antti Harri
Re: OpenSSH: lost connection
On Fri, 31 Aug 2007, Christoph Egger wrote: Has anyone an idea, what is going wrong? Increase verbosity with -v to get more details. -- Antti Harri
Re: redirecting output to a file in the remote machine while executing command on the remote machine using ssh
On Fri, 31 Aug 2007, Siju George wrote: /usr/bin/ssh 172.16.2.26 -l root diff /usr/logs/fw/squid/access.log /usr/logs/fw/squid/access.log.bak > /usr/logs/fw/squid/access.log.`date "+%Y%m%d"` What should I do to get the redirected output to be got in a file on 172.16.2.26 ? You need to escape the ">" char like this "\>" or IMHO better would be to just surround the whole command with "" so your local shell won't try to interpret the stdout direction. /usr/bin/ssh 172.16.2.26 -l root "diff /usr/logs/fw/squid/access.log /usr/logs/fw/squid/access.log.bak > /usr/logs/fw/squid/access.log.$(date '+%Y%m%d')" PS. I think $() for command execution is preferred instead of backticks. And sorry about the line wrapping, you can fix that yourself :-) -- Antti Harri
Re: ldd will not check shared libraries for dependancies
On Wed, 29 Aug 2007, Markus Hennecke wrote: Antti Harri schrieb: Works for me: [snip] You are doing this on current. 4.1 behaves like Brian described it. Ok, I had a feeling ldd didn't work on 4.1 :-) Anyway readelf exists and works on 4.1. There is no manpage for readelf in 4.1. Sorry. The manual is available from openbsd.org and without arguments one can get short help. -- Antti Harri
Re: ldd will not check shared libraries for dependancies
On Wed, 29 Aug 2007, Brian Bentley wrote: # ldd /usr/bin/more /usr/bin/more: StartEnd Type Open Ref GrpRef Name exe 10 0 /usr/bin/more 00745000 20758000 rlib 01 0 /usr/lib/libcurses.so.10.0 00951000 20985000 rlib 01 0 /usr/lib/libc.so.40.3 068e7000 068e7000 rtld 01 0 /usr/libexec/ld.so # ldd /usr/lib/libcurses.so.10.0 /usr/lib/libcurses.so.10.0: /usr/lib/libcurses.so.10.0: Permission denied /usr/lib/libcurses.so.10.0: exit status 1 # ldd /usr/local/lib/libjpeg.so.62.0 /usr/local/lib/libjpeg.so.62.0: /usr/local/lib/libjpeg.so.62.0: Exec format error /usr/local/lib/libjpeg.so.62.0: exit status 1 Works for me: [EMAIL PROTECTED]:~$ ldd /usr/lib/libcurses.so.10.0 /usr/lib/libcurses.so.10.0: StartEnd Type Open Ref GrpRef Name 0f81c000 2f82f000 dlib 10 0 /usr/lib/libcurses.so.10.0 [EMAIL PROTECTED]:~$ ldd /usr/local/lib/libjpeg.so.62.0 /usr/local/lib/libjpeg.so.62.0: StartEnd Type Open Ref GrpRef Name 09f2e000 29f34000 dlib 10 0 /usr/local/lib/libjpeg.so.62.0 PS. Also check out readelf(1). -- Antti Harri
Re: cvs up, no space left in /tmp
On Mon, 13 Aug 2007, Rickard Dahlstrand wrote: Yes, but on the server. I get the same when using Stackens cvs-mirror. It appears to be broken quite often based on my experiences and what other people have said. -- Antti Harri
Re: searching packages? pkg_grep?
On Thu, 9 Aug 2007, John N. Brahy wrote: If I don't have ports installed, is there a way to do a search of all the available package names to find one I'm looking for? Something like a pkg_grep... Hi, is pkg_mklocatedb(1) what you're looking for? -- Antti Harri
Re: Remote Printing Using CUPS
Some newer Windows versions support IPP protocol so you can skip the Samba-voodoo if you want to print from Windows to a printer connected to an OpenBSD. -- Antti Harri
Re: Live Earth - Power management
On Mon, 9 Jul 2007, Die Gestalt wrote: There are devices out there to measure the consumption of electric devices. Just plug it to the input of your computer and you will get something accurate, including the energy wasted by the power unit itself. Just wanted to say that here in Finland you can borrow such devices from your local electric company for free. But that only gives you the total consumption, powertop can show per process information AFAIK. -- Antti Harri
Re: How to update Xorg?
On Sat, 7 Jul 2007, djgoku wrote: On 7/7/07, Timo Myyra <[EMAIL PROTECTED]> wrote: Is there a easy way to update OpenBSD's Xorg to latest cvs release of it. This because of the added 'avivo' driver for my ATI Mobility Radeon X1400 graphics card. Like from release to stable? If so then I would you anoncvs and checkout Xs most current releases using cvs. Then use the below link to build X. I think he means how to build latest version from *X.org's* CVS. Timo: how about getting the source and following X.org's documentation? -- Antti Harri
Re: pkg_add on macppc stall at end of ftp
The FTP problem has been fixed (worked around) in -current AFAIK. See the archives for ports@ -- Antti Harri
Re: wsmouse cut and paste in X
On Tue, 26 Jun 2007, atstake atstake wrote: Thanks! Pressing first and second button at the same time works great!! Great. Any idea which manpage to find more info on emulate3buttons option? man -k doesn't give anything. Hmm xorg.conf(5) doesn't list it.. I think it's on by default and you can set the behaviour (1st+2nd=paste) off. Someone correct me if I'm wrong.. -- Antti Harri
Re: wsmouse cut and paste in X
On Tue, 26 Jun 2007, atstake atstake wrote: But it doesn't work in X. My window manager is wmii. Try first and second button at the same time to paste. Also see emulate3buttons option. -- Antti Harri
Re: telnetd ?
On Mon, 25 Jun 2007, stan wrote: Yes, I know it's a bad idea, but for reasons beyond my control, I need to provide a telnet service on an OpeBSD 4.0 machine. Unfortunately there does not seem to be a telnetd built by default. Yes it was removed and you could've searched the archives: http://openbsd.org/mail.html How can I get this daemon built? Get it from CVS and compile? -- Antti Harri
Re: find -exec {} help
On Mon, 4 Jun 2007, David B. wrote: I am using 'find' to batch file a sed search and replace. Sed, of course, outputs to stdout, the problem I am having is finding the correct syntax so that I can change the extension of the input file to create the new output file. For example: Find . -name "*.htm" -exec 'sed s/old/new/' > '{}'.new From what I've read, I should be able to use the '{}' as a global replace; so if the input file happens to be smith.htm, then '{}' would be smith.htm and the idea is that the output filename for the sed command would create a new output file called smith.htm.new. Here's a solution with sh+find+sed: for file in $(find . -name "*.htm"); do sed 's/old/new/' $file > $file.new; done -- Antti Harri
Re: hostnames stored in an other file than /etc/hosts ?
On Wed, 16 May 2007, Yggdrasill Senecoen wrote: [snip] So, do OpenBSD save this information in an another file than /etc/hosts ? Check resolv.conf(5) and the "lookup" directive. -- Antti Harri
Re: GRAPE cluster supercomputer + OpenBSD
On Fri, 13 Apr 2007, Joachim Schipper wrote: On Fri, Apr 13, 2007 at 08:20:07AM +0200, Vim Visual wrote: [snip] I forgot to give details, sorry. It's an Areca Raid Controller arc-1220 Well, arc(4) suggests that a lot of similar controllers are supported; [snip] Well if I'm not missing something obvious.. It doesn't support just similar but exactly 1220: http://www.openbsd.org/cgi-bin/man.cgi?query=arc&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html - ARC-1220 PCI Express 8 Port SATA RAID Controller -- Antti Harri
Re: Cannot upgrade from 3.8
On Thu, 5 Apr 2007, Antti Harri wrote: GENERIC (tried .MP too): Last two lines of normal boot with just "verbose" set: > > pciide probe won pciide0 at pci0 dev 15 function 0 "VIA VT6420 SATA" rev 0x80 DMA (hangs) Then "disable pciide*" in ukc makes it hang after uhci2 init. Then "disable pciide*" and "disable uhci*" it finishes kernel boot and panics because root cannot be mounted. Then "disable uhci*" alone and it hangs at pciide. Can I provide more information to help to solve the issue? Anyone got any advice regarding the problem? I'm willing to try the new SATA driver too when/if it becomes available for my SATA chipset. I'd really appreciate help, the installation (3.8) is already unsupported and I'd like to upgrade it without changing any parts. PS. kind thanks to those already replied. -- Antti Harri
Re: Cannot upgrade from 3.8
On Wed, 4 Apr 2007, Jonas Thambert wrote: I have several servers with the same problem. The solution has always been to disable one or two drivers that conflicts. In my opinion it should just work. It works with 3.8 so why not newer.. Anyway I tried disabling devices to get something useful information out of it: GENERIC (tried .MP too): Last two lines of normal boot with just "verbose" set: > > pciide probe won pciide0 at pci0 dev 15 function 0 "VIA VT6420 SATA" rev 0x80 DMA (hangs) Then "disable pciide*" in ukc makes it hang after uhci2 init. Then "disable pciide*" and "disable uhci*" it finishes kernel boot and panics because root cannot be mounted. Then "disable uhci*" alone and it hangs at pciide. Can I provide more information to help to solve the issue? -- Antti Harri
Cannot upgrade from 3.8
slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: spkr0 at pcppi0 sysbeep0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 it0 at isa0 port 0x290/8: IT87 npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: 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 fb6d netmask ff6d ttymask ffef pctr: user-level cycle counter enabled mtrr: Pentium Pro MTRR support dkcsum: wd0 matches BIOS drive 0x80 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 -- Antti Harri
Re: maildrop package (missing components)
On Wed, 28 Mar 2007, Peter Matulis wrote: I have been working recently with the maildrop package. I installed into via ports with the MySQL flavor. Much documentation refer to the associated utility 'maildirmake' but I see that the OpenBSD port does not include it. It comes with courier-utils. -- Antti Harri
Re: wireless mouse for OpenBSD ?
On Sat, 24 Mar 2007, Default User wrote: Recently in a big box computer store, I was disturbed to notice that almost every single mouse was wireless. I use ps/2 and usb wired mice with OBSD, no problem. But I was unable to get OBSD to even recognize a Labtec wireless usb mouse with my laptop. Are any wireless usb mice supported by OBSD? If not, what will happen when wired mice are no longer available? Logitech worked just fine for me. Check your BIOS settings. -- Antti Harri
Re: server crash: ccd + fsck -> data loss?
On Tue, 13 Mar 2007, Sebastian Rother wrote: And I forgot to say: It`s a private Server but even privat can have some value sometimes (and it was too big to backup. bigger HDDs are planed to replace the CCD (later..)). IMO the data cannot be valuable if you don't have backups for it. PS. Good luck with restoring the file(s). Check the package collection for tools. -- Antti Harri
Re: X package sets not listed in MD5
On Fri, 2 Mar 2007, Stuart Henderson wrote: MD5 is built as part of the main OS release (/usr/src/etc/Makefile); X is built separately. I know but appending the information to the existing files would be great. Or even with separate files as Matthew suggested. Another possibility is to have different files for both and have the usual checksum files generated by putting these together. -- Antti Harri
Re: X package sets not listed in MD5
On Fri, 2 Mar 2007, Andris wrote: > IMHO, this should be answered in the FAQ. > > On 3/2/07, Antti Harri <[EMAIL PROTECTED]> wrote: >> What's the reason for not providing MD5 sums >> of X*.tgz sets in the MD5-file of release directories? Hi, I guess my googling and other searching skills sucks then. Can you point me to the entry? Wasn't able to find the answer with "search" of openbsd.org, nor from ftp.html or Package FAQ. -- Antti Harri
X package sets not listed in MD5
Hello, What's the reason for not providing MD5 sums of X*.tgz sets in the MD5-file of release directories? I found only one thread [1] regarding this question from the archives and it didn't answer it really. I want to be able to see if the file has been transferred correctly and I also want to see if a file that has been transferred earlier is up to date. I don't want to use other tools than what is provided in base sets to do this (no regular packages) [1] http://marc.theaimsgroup.com/?l=openbsd-misc&m=113230911219069&w=2 -- Antti Harri
Re: remove sendmail/install postfix
On Thu, 1 Feb 2007, John wrote: I think in OpenBSD, that sendmail is tied in rather tightly to the whole OS. I use exim, and the way I ensure that sendmail isn't "there" is to do: in rc.conf (or rc.conf.local) sendmail_enable="NONE" This doesn't do anything. sendmail_flags=NO Only this is required to prevent sendmail from starting on boot up. ..and reboot [snip] PS. Don't forget the root's crontab. -- Antti Harri
Dump dumps core
Hello, I was able to make `dump` dump core when I pressed control-4, I didn't test any other key combinations. I was able to do this with 3.8-release and 4.0-current: [EMAIL PROTECTED]:~$ dd if=/dev/zero of=/test bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 1.868 secs (56117006 bytes/sec) [EMAIL PROTECTED]:~$ dump -a -0f /test /var/ DUMP: Dumping sub files/directories from / DUMP: Dumping file/directory /var/ DUMP: Date of this level 0 dump: Thu Jan 11 08:17:14 2007 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/rwd0a (/) to /test DUMP: mapping (Pass I) [regular files] ^\Quit (core dumped) -- Antti Harri
USB Keyboard lags when caps lock or num lock is pressed under X
Hello, the subject line pretty much tells it. In console everything works okay except when I do `sudo halt` and it says something like "press any key to reboot". At that point it doesn't accept any input to make it reboot. It isn't supposed to work like that, is it? I think this guy [1] had exactly same problem in 2005 regarding the lag in X. [1] http://archives.neohapsis.com/archives/openbsd/2005-01/0788.html Here's my dmesg, it's snapshot of current: OpenBSD 4.0-current (GENERIC) #1332: Wed Jan 3 21:24:57 MST 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: AMD Athlon(tm) XP 2200+ ("AuthenticAMD" 686-class, 256KB L2 cache) 1.90 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 804810752 (785948K) avail mem = 725516288 (708512K) using 4256 buffers containing 40366080 bytes (39420K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(00) BIOS, date 09/05/03, BIOS32 rev. 0 @ 0xfdaf0, SMBIOS rev. 2.3 @ 0xf0630 (22 entries) bios0: MSI MS-6590 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 30102 dobusy 0 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0x1 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7fb0/240 (13 entries) pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT8237 ISA" rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0xf800 0xcf800/0x4400! 0xd4000/0x1800 acpi at mainbus0 not configured cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "VIA VT8377 PCI" rev 0x80 ppb0 at pci0 dev 1 function 0 "VIA VT8377 AGP" rev 0x00 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "NVIDIA GeForce FX 5500" rev 0xa1 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) emu0 at pci0 dev 10 function 0 "Creative Labs SoundBlaster Audigy" rev 0x03: irq 12 ac97: codec id 0x54524123 (TriTech Microelectronics TR28602) audio0 at emu0 "Creative Labs SoundBlaster Audigy Digital" rev 0x03 at pci0 dev 10 function 1 not configured "Creative Labs Firewire" rev 0x00 at pci0 dev 10 function 2 not configured bge0 at pci0 dev 11 function 0 "Broadcom BCM5788" rev 0x03, BCM5705 A3 (0x3003): irq 10, address 00:0c:76:3e:6d:c4 brgphy0 at bge0 phy 1: BCM5705 10/100/1000baseT PHY, rev. 2 "VIA VT6306 FireWire" rev 0x46 at pci0 dev 14 function 0 not configured pciide0 at pci0 dev 15 function 0 "VIA VT6420 SATA" rev 0x80: DMA pciide0: using irq 11 for native-PCI interrupt wd0 at pciide0 channel 0 drive 0: wd0: 16-sector PIO, LBA48, 238475MB, 488397168 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 pciide1 at pci0 dev 15 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility pciide1: channel 0 disabled (no drives) atapiscsi0 at pciide1 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: SCSI0 5/cdrom removable cd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 2 uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: irq 11 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 16 function 1 "VIA VT83C572 USB" rev 0x81: irq 11 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 uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: irq 12 usb2 at uhci2: USB revision 1.0 uhub2 at usb2 uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: irq 12 usb3 at uhci3: USB revision 1.0 uhub3 at usb3 uhub3: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86: irq 10 usb4 at ehci0: USB revision 2.0 uhub4 at usb4 uhub4: VIA EHCI root hub, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered viapm0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00 iic0 at viapm0 iic0: addr 0x2f 04=00 06=0b 07=00 0c=00 0d=07 0e=84 0f=00 10=c0 11=10 12=00 13=60 14=14 15=62 16=01 17=06 isa0 at mainbus0 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: spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 lm0 at isa0 port 0x290/8: W83697HF 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 cyl, 2 head, 18 sec biomask ff65 netmask ff65 ttymask ffe7 pctr: user-level cycle counter enabled mtrr: Pentium Pro MTRR support uhidev0 at uhub1 port 2 configuration 1
Re: package update trouble
On Fri, 15 Dec 2006, [EMAIL PROTECTED] wrote: Cannot find updates for unarj-2.43 unrar-3.54p0 I installed both by ports (using an old install script for automating some stuff; I guess back then these two did not exist as packages). Strangely, pkg_info shows unarj but not unrar. Any comments? Their license doesn't permit this. You must update these from ports-tree. -- Antti Harri
Re: autoresponder for postfix
On Tue, 5 Dec 2006, Jacob Yocom-Piatt wrote: i need to setup an autoresponder on a 4.0-release machine running postfix 2.3.2. is there anything in ports that does this already? in the meantime, i'm getting [snip] What about vacation(1) ? -- Antti Harri
Re: SFTP only access to sshd
On Thu, 23 Nov 2006, Ingo Schwarze wrote: From time to time, people come here to ask: How can i set up an account for SFTP only, forbidding shell access? You can do sftp only with OpenSSH. See the ForceCommand in sshd_config(5). -- Antti Harri
Minor bug in admtemp(4) ?
Hello, According to the manual I should be seeing only one value: " On i386 machines, this driver also supports the Xeon embedded I2C temper- ature probes. In this case, however, only one temperature value is pro- vided. " $ /sbin/sysctl hw hw.machine=i386 hw.model=Intel Pentium II Xeon ("GenuineIntel" 686-class, 1024KB L2 cache) hw.ncpu=2 hw.byteorder=1234 hw.physmem=536375296 hw.usermem=535314432 hw.pagesize=4096 hw.disknames=sd0,wd0 hw.diskcount=2 hw.sensors.0=admtemp0, External Temp, 42.00 degC hw.sensors.1=admtemp0, Internal Temp, 42.00 degC hw.sensors.2=lm1, VCore, 2.00 V DC hw.sensors.3=lm1, VINR0, 2.02 V DC hw.sensors.4=lm1, +3.3V, 3.33 V DC hw.sensors.5=lm1, +5V, 5.05 V DC hw.sensors.6=lm1, +12V, 11.98 V DC hw.sensors.7=lm1, -12V, -12.36 V DC hw.sensors.8=lm1, -5V, -5.05 V DC hw.sensors.9=lm1, 5VSB, 4.36 V DC hw.sensors.10=lm1, VBAT, 2.91 V DC hw.sensors.11=lm1, Temp1, 32.00 degC hw.sensors.12=lm1, Temp2, 33.00 degC hw.sensors.13=lm1, Temp3, 35.00 degC hw.sensors.17=admtemp1, External Temp, 34.00 degC hw.sensors.18=admtemp1, Internal Temp, 37.00 degC hw.cpuspeed=452 hw.vendor=Micro-Star Inc. hw.product=MS-6135 hw.version=000 hw.serialno= hw.uuid=Not Set -- Antti Harri
Re: openbsd + external sensor (t°, humidity, ...)
On Thu, 9 Nov 2006, Julien TOUCHE wrote: > i've found some (linux) apps > http://www.digitemp.com/software.shtml [snip] The new versions work nicely in OpenBSD (and other BSDs) too. > has anyone advise to find cheap sensors (temperature, but also humdity, > pressure, light, electricity before UPS, ...) which are known to work > with openbsd ? I have DS1820 controller and I use digitemp to get readings from it: [EMAIL PROTECTED]:~$ digitemp -a DigiTemp v3.3.2 Copyright 1996-2004 by Brian C. Lane GNU Public License v2.0 - http://www.brianlane.com Nov 09 15:28:22 :: -1.06 0C Nov 09 15:28:23 :: 20.75 0C Nov 09 15:28:24 :: 23.12 0C The first one is outdoor temperature, second is on the floor and third 1,5m above the floor. The rc file looks like this: [EMAIL PROTECTED]:~$ cat .digitemprc TTY /dev/cua00 READ_TIME 1000 LOG_TYPE 1 LOG_FORMAT "%b %d %H:%M:%S :: %.2C 0C" CNT_FORMAT "%b %d %H:%M:%S Sensor %s #%n %C" HUM_FORMAT "%b %d %H:%M:%S Sensor %s C: %.2C F: %.2F H: %h%%" SENSORS 3 ROM 0 0x10 0x80 0x20 0x88 0x00 0x08 0x00 0x5A ROM 1 0x10 0x6E 0x2D 0x88 0x00 0x08 0x00 0x8C ROM 2 0x10 0x3F 0x23 0x88 0x00 0x08 0x00 0x37 This setup has worked well enough for me :-) My friend has the diagram and the part listing although some texts are in Finnish but I can translate them into English if you want. The parts are pretty cheap, less than 10 euros in here for one sensor, the DS1820 is the most expensive part. -- Antti Harri
Re: new tool: openportd
On Sat, 21 Oct 2006, Nick Guenther wrote: On 10/21/06, Steffen Wendzel <[EMAIL PROTECTED]> wrote: 40tg340503n5 pf/iptables (load some other rules or whatever) So this is like an insecure version of SSH? If you configure it to behave like that, probably. But if you configure it to open a port for a client that knows the key, no. -- Antti Harri
Re: rc.local command for postgres
On Fri, 20 Oct 2006, David B. wrote: trying to get postgres to start up at boot. found this at postgresql's site [snip] su - -c '/usr/local/bin/pg_ctl -D /WEBSITE/DATADIRECTORY start' postgres [snip] at boot the error thrown is "No such login class: /usr/local/bin/pg_ctl -D /WEBSITE/DATADIRECTORY start" From su(1): -c login-class Specify a login class. You may only override the default class if you're already root. Try removing the part that executes su because boot scripts are run by root anyway. -- Antti Harri
/etc/security complaints about login being off
Hello, I have few accounts that are allowed to connect with sftp only. I have password fields set to * and the users have transferred their ssh public keys to enable public key auth. Everything is working just fine except that I get this annoying warning from /etc/security: Checking the /etc/master.passwd file: Login foo is off but still has a valid shell and alternate access files in home directory are still readable. Setting up extremely long password "fixes" this but I don't want such kludge if there's another way. Is there a recommended way of disabling password auth and keep public keys enabled so that /etc/security is happy? -- Antti Harri
Re: Looking for HowTo instructions ...
On Sun, 1 Oct 2006, Jason LaRiviere wrote: $ ls -l /var/log/*.out -rw-r--r-- 1 root wheel 1693 Oct 1 01:31 /var/log/daily.out -rw-r--r-- 1 root wheel15 Oct 1 05:30 /var/log/monthly.out -rw-r--r-- 1 root wheel59 Sep 30 03:32 /var/log/weekly.out Hello everyone, can anyone tell me why this is information is (by default) 644 and not 600 or 640 for example? At least in daily log mailq cannot be run as regular user (with postfix from ports this appears to be possible too). Weekly and monthly logs doesn't seem to contain (I didn't check very thorougly) anything that normal user can't obtain, unless admin has added something to the .local scripts. -- Antti Harri
Re: qcad and qt3
On Thu, 7 Sep 2006, Karel Kulhavy wrote: I tried to install qcad2 and I wonder how to actually install that "qt3" Hi, contact me in private if you want to test the update I wrote for the port. I won't submit it to ports@ until the tree is unlocked. Btw I have tried contacting the maintainer but I didn't get the mail through. -- Antti Harri
Re: Firefox port
On Wed, 30 Aug 2006, stan wrote: Am I overlooking something? I can't seem to find a firefox port in the ports tree. [EMAIL PROTECTED]:/usr/ports$ make search name=firefox Port: mozilla-firefox-1.5.0.1 Path: www/mozilla-firefox Please check the mailing list archives and the documentation on openbsd.org next time. -- Antti Harri
Re: OT hardware IDE RAID cards
On Thu, 17 Aug 2006, Karsten McMinn wrote: interfaces aside, S/P-ATA drive mtbf has gotten much better which makes sata storage really yummy. (mtbfs over 1million hours). You might find http://en.wikipedia.org/wiki/MTBF useful. -- Antti Harri
Re: Tuning OpenBSD network throughput
On Tue, 8 Aug 2006, Matthew R. Dempsky wrote: but running ``iperf -c 192.168.10.1'' under OpenBSD reported a mere 3.8 Mbits/sec---nearly two orders of magnitude less! The version of iperf in ports is broken for at least i386. It needs a patch to run correctly. I wrote one but someone replied it doesn't work on other architecture (amd64 iirc) after that. I didn't bother to look into it as I have only i386 machines. Use version 1.x or write a patch for 2.x and submit it :-) -- Antti Harri
Re: How to make fsck run faster?
On Sat, 22 Jul 2006, Otto Moerbeek wrote: Hmmm, I didn't record the numbers. It could be that fsck is swapping in your case, which will make it very slow. Can your check that? It doesn't start swapping. I was wrong about the speed improvement, currently I have only 2 million files on that disc, but fsck took only 6 minutes with block size of 64k and fragment size of 8k. I didn't try bigger fragment sizes because I wasn't sure if newfs' message about degraded performance was true or not. It wastes a lot of space though, just like you said but that isn't bad because I get about 100 days worth of full backups with the current setup. My script just needs some extra checks so that it won't use up all the inodes on that disc ;-) I also repartitioned my disc to have little root fs and separate partitions for /var /tmp and /backups. /backups is set up so that it doesn't fsck it while booting and noauto flag is also set. At least now it will come back online as fast as possible. Just like Nick suggested earlier. It seems there is something different with newer kernels than 3.8. I tried booting 3.9/bsd.rd and it failed when probing for pciide0. I noticed that it doesn't get the chip's model right, it says VIA VT6420 SATA instead of the 8237. I fetched 20 mins ago snapshot/bsd.rd from openbsd.org and it didn't help. I attached the dmesg from the 3.8 that boots correctly now that I finally got it networked. # dmesg OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: AMD Athlon(TM) XP 1700+ ("AuthenticAMD" 686-class, 256KB L2 cache) 1.47 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE cpu0: AMD Powernow: FID real mem = 267988992 (261708K) avail mem = 237649920 (232080K) using 3296 buffers containing 13500416 bytes (13184K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(48) BIOS, date 06/28/05, BIOS32 rev. 0 @ 0xf1940 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 30102 dobusy 0 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0x1ff2 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf1f20/208 (11 entries) pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C586 ISA" rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0x8000 0xc8000/0x1000 0xcc000/0x4400! cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "VIA VT8377 PCI" rev 0x80 ppb0 at pci0 dev 1 function 0 "VIA VT8377 PCI-PCI" rev 0x00 pci1 at ppb0 bus 1 vga1 at pci0 dev 10 function 0 "Matrox MGA Millennium II 2164W" rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) fxp0 at pci0 dev 12 function 0 "Intel 82557" rev 0x08, i82559: irq 10, address 00:90:27:93:85:c2 inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4 pciide0 at pci0 dev 15 function 0 "VIA VT8237 SATA" rev 0x80: DMA pciide0: using irq 4 for native-PCI interrupt wd0 at pciide0 channel 0 drive 0: wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 pciide1 at pci0 dev 15 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide1 channel 0 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: SCSI0 5/cdrom removable cd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide1: channel 1 disabled (no drives) uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: irq 12 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 16 function 1 "VIA VT83C572 USB" rev 0x81: irq 12 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 uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: irq 4 usb2 at uhci2: USB revision 1.0 uhub2 at usb2 uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: irq 4 usb3 at uhci3: USB revision 1.0 uhub3 at usb3 uhub3: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86: irq 3 usb4 at ehci0: USB revision 2.0 uhub4 at usb4 uhub4: VIA EHCI root hub, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered pcib0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00 vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x78: irq 12 address 04:04:04:04:04:04 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface ukphy0: OUI 0x0090c3, model 0x0005, rev. 4 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 pcppi0
Re: How to make fsck run faster?
On Mon, 17 Jul 2006, Otto Moerbeek wrote: Another thing is to move to larger block and fragment sizes. Depending on the size distribution of your files, this will waste some space, though. I tested 1TB filesystems with varying block and fragment sizes, and it is really nice to see the speedup of newfs anf fsck. Thank you for your response but could you tell me some examples I could try because I've no idea what kind of values to test with newfs? I already tried `newfs -b 65536 -f 8192 -o time` but I didn't notice any speed improvement with `time fsck`. PS. the machine has 256M of DDR ram, Seagate Barracuda 7200.8 200G sata-1 connected to Via VT8237 controller. -- Antti Harri
Re: Web mail
On Wed, 19 Jul 2006, Eric Johnson wrote: Which web mail package is easiest to install and use on OpenBSD? Are there any gaping security holes? Ilohamail works for me and in my opinion it's better than Squirrelmail. There is a demo version on the site. If you have a working (IMAP/POP3) server you can try it out before installing it. I am not aware of its security history though, you have to search that yourself. http://blog.ilohamail.org/ https://ssl.ilohamail.org/devdemo/ (development demo) Antti Harri
Re: How to make fsck run faster?
On Sun, 16 Jul 2006, Nick Holland wrote: nope, you can still likely use multiple partitions. Break your backup job into smaller chunks, put each chunk on its own partition. Or put each machine on its own partition. Or ... Interesting ideas. I didn't think that having the same amount of files in many partitions will reduce the total time to fsck, does it really work that way although it goes through the same amount of files? BTW: Yes, the dmesg could very well have helped. If your disks were not being handled properly or you had insufficient RAM, you can have HORRIBLE problems with fsck performance, adding to your fsck time by a non-trivial multiple. Your times sound excessive to me, but then, I don't think I have that many files on a single partition. Unfortunately the computer isn't at hand right now. I'll check the amount of RAM and add some more if there isn't much. Would changing BUFCACHEPCT help too? Because the computer is dedicated backup server so it can take up all the memory as far as I'm concerned. One idea which has been suggested is to use softupdates, and simply "force" mounting of the volume at boot, and periodically, fsck the thing on your schedule, to reclaim lost disk space. Yes, when you do run the fsck, you will spend a lot of time waiting for it, but you will be able to schedule it. Hmm, actually I am using softupdates. Doesn't it *ever* get corrupted with softupdates even though there is a crash? Keep in mind, partitions need not all be mounted in /etc/fstab, they can be manually mounted "later" in rc.local. Why does your backup machine have to boot "fast"? (I got one with way too little RAM, it needs to use swap to fsck, but that's ok...I'm not in a hurry for this machine to come up). Doing something else with it? Ok, just put the backup partition as noauto in /etc/fstab, and fsck and mount (or just force-mount) the partition in /etc/rc.local. Now, whatever it was that was bothering you about booting so slowly is up quickly, and the backup partition will get mounted in due time. Well, I have it set up so that it comes up once a day and after it finishes doing backups it shuts down itself. So if it crashes and starting up takes too much time the backup job won't fit the window it's supposed to. I'm still working on the server and trying to find the best solution for my needs. Luckily there hasn't been much use for the backups since there hasn't been any real accidents or failures either ;-) PS. Thanks to Nick and others for the advices and ideas. Antti Harri
Re: How to make fsck run faster?
On Sun, 16 Jul 2006, knitti wrote: On 7/16/06, Antti Harri <[EMAIL PROTECTED]> wrote: Kernel is 3.8 GENERIC and there is one large ffs partition on the SATA disc, roughly the size of 180G. Most of the files make smaller slices and mount only the ones r/w which you absolutely need. the bigger a fs is, the longer it takes, and the more memory is consumed by the fsck Thanks for the advice, but then then I cannot hardlink files. I would need many terabytes of storage without using hardlinks. The machine is doing backups, it copies yesterdays backup as hardlinks as base of the new backup and then updates it. I wonder if using database as an extra layer would help? I would need a wrapper but that wouldn't be a problem. Antti Harri
How to make fsck run faster?
Hello, I have a 3.8 machine with millions of files. The exact number of files varies a lot but it's always more than 5M. One day I had a power failure and I had to wait for fsck to complete on reboot. Fsck took more than two hours! At that time there were 8,8M files on the drive. Is there any way to make fsck go faster? The machine is AMD Athlon 1700+ with 200G Seagate Barracuda on SATA slot. Unfortunately I cannot get dmesg at this point but I don't think that's necessary. Kernel is 3.8 GENERIC and there is one large ffs partition on the SATA disc, roughly the size of 180G. Most of the files (approximately 90%) are hardlinks. Disc usage is somewhere between 30G and 170G. Any pointers will be appreciated, thanks in advance! Antti Harri
Re: LZMA and the Install Sets?
On Mon, 17 Apr 2006, Nick Holland wrote: Oh? Where are your numbers? Here's a benchmark about gzip vs lzma vs bzip2: http://tukaani.org/lzma/benchmarks Lasse Collin is also working on a more "sane" tool for the algorithm but I don't have enough information about that so if someone is interested he/she should contact Lasse directly. -- Antti Harri
Re: Music made with OpenBSD
On Sat, 1 Apr 2006, Steven wrote: I know that OBSD is supposed to have some issues playing music in terms of playing speed, but I've never noticed any problems. AFAIK it only occurs on some drivers, or occured as I don't know if it's fixed yet. There was quite long thread about it less than six months ago. If I'm not mistaken the hardware could only do one sampling rate and the driver didn't support on-the-fly resampling. One could use for example mplayer's resampling as a workaround. PS. Correct me if I'm totally wrong :-) Kind regards, Antti Harri
Re: /etc default dir and file permissions.
On Sat, 28 Jan 2006, Anon Y. Mous wrote: I accidentally chmodded my entire /etc/ dir to mode 0777. One possible solution might be to obtain etc38.tgz from FTP site and extract it to some directory (not root /). Then obtain GNU coreutils and use gnu-chmod and its reference option, from the manual: --reference=RFILE use RFILE's mode instead of MODE values This way you would not have to merge any changes, on the other hand this requires compilation of at least the gnu-chmod so mtree might be the best solution as James Strandboge suggested. -- Antti Harri
Re: Assigning static device names for USB devices
On Tue, 18 Oct 2005, Ray Lai wrote: On Sun, Oct 16, 2005 at 09:00:16PM +0300, Antti Harri wrote: assigned dynamically? If it's not possible at all, If it's not possible at all, how does one go about implementing it? s/at all/currently/ Are you happy now, Ray? Other people knew what I meant. I find it odd that you didn't.. Maybe you should focus on more important matters in your life than finding out typos. -- Antti Harri
SOLVED: Assigning static device names for USB devices
On Mon, 17 Oct 2005, Alexander Yurchenko wrote: On Mon, Oct 17, 2005 at 09:29:37AM +1000, Damien Miller wrote: You could try making symlinks using hotplugd(8) attach and detach scripts, but I'm not sure they get called for USB printers (haven't tried) of course they will be called. add usbdevs | grep command to the attach script to make a proper symlink. Hotplugd and usbdevs were the right tools for this job. For the archives here's how the dynamically updating symlink can be done for USB device: printers fall into class 0 (generic) and with the second parameter to the hotplugd's attach script one is able to get the device's name and model by using usbdevs -d. Thanks for all who responded. -- Antti Harri
Assigning static device names for USB devices
Hi, I have two USB printers, is there a way to assign a fixed device name instead of device name being assigned dynamically? If it's not possible at all, are there plans to implement it? -- Antti Harri
Re: finger doesn't print characters right
On Mon, 15 Aug 2005, Antti Harri wrote: I recently noticed that `finger` prints scandinavian characters weird, here's the output: [EMAIL PROTECTED]:~$ finger LoginName Tty Idle Login Time Office Office Phone dummy\366\326\304\344\305 p2 - Mon 00:39 But when specify the user the characters print normally: [EMAIL PROTECTED]:~$ finger dummy Login: dummy Name: vVDdEe That should've been aAoOaA with umlauts and the last one with circle (Swedish 'a'). After looking at the source the first case goes through strvis() function and the second doesn't. What's the logic behind this? Anyone care to answer? Answering to my own post is quite silly.. What ways do I have to get finger to work with these "special" chars that it is escaping? -- Antti Harri
finger doesn't print characters right
Hi, I recently noticed that `finger` prints scandinavian characters weird, here's the output: [EMAIL PROTECTED]:~$ finger LoginName Tty Idle Login Time Office Office Phone dummy\366\326\304\344\305 p2 - Mon 00:39 But when specify the user the characters print normally: [EMAIL PROTECTED]:~$ finger dummy Login: dummy Name: vVDdEe This is 3.8-beta I'm running. Have I forgot to do something or is this a bug in finger? I haven't noticed this behaviour before 3.8-beta.. -- Antti Harri
Re: Odd NIC jupe
On Thu, 11 Aug 2005, Antti Harri wrote: for a long time now. Transferring large amounts of data triggers it and `sh /etc/netstart em0` will fix it temporarily. UPDATE: the watchdog feature in 3.8-beta seems to reset the card succesfully. Can anyone explain what causes the nic to go in this in-operable state that the manual describes too? em%d: watchdog timeout -- resetting The device has stopped responding to the network, or there is a problem with the network connection (cable). -- Antti Harri
Odd NIC jupe
" rev 0x00 vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x78: irq 5 address 00:04:61:72:ab:76 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface ukphy0: OUI 0x004063, model 0x0032, rev. 10 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 pcppi0 at isa0 port 0x61 midi0 at pcppi0: spkr0 at pcppi0 sysbeep0 at pcppi0 lm0 at isa0 port 0x290/8: W83697HF 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 ff65 netmask ffe5 ttymask ffe7 pctr: user-level cycle counter enabled mtrr: Pentium Pro MTRR support dkcsum: wd0 matches BIOS drive 0x80 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 Interrupts: interrupt total rate irq7/em0 232595 17 irq11/pciide0 324165 24 irq14/pciide1 00 irq5/uhci0 00 irq5/uhci1 00 irq11/uhci2 00 irq11/uhci3 00 irq11/ehci0 00 irq5/vr0 549009 41 irq1/pckbc0 1500 irq4/pccom0 165991 irq3/pccom1 00 irq6/fdc0 00 irq0/clock1328738 100 irq8/rtc 1700640 128 Total 4151896 312 To me this seems a bug in the software rather than hardware.. -- Antti Harri