Re: EFI: Booting from other (not the first) GPT partition possible? How? It's an Apple :-O
Thank you Gonzalo. Just to make sure we are talking about the same thing: I was already able to boot OpenBSD in BIOS legacy mode. What I want to achieve is booting OpenBSD current with the new EFI OpenBSD boot loader. Are you sure that following the tutorial you mentioned can be of any help to do this? I will be happy to get enlightened if I am just missing the point. :) Regards Marcel > Hello, > > I'm kinda at the same step, but in a macbookpro12,1 > > I resize my OSX partition, burn a install58.fs on a usb stick, boot > holding ALT, install OpenBSD on the part of resize partition, and then > follow jcs@ tutorial: > > https://gist.github.com/jcs/5573685 > > Now, "El Capitan" have like a 'Secure Level' thing that you can do the > step Mac OS X Encryption -> 3-6. So, you need to boot on Rescue Mode and > disable this new protection from the console on rescue mode: > > # csrutil disable > > Then reboot, and try the "Mac OS X Encryption" step. Install refind and > cross your fingers :) > > > On 16/11, Marcel Timm wrote: > ; Hi there, > ; > ; one thing I would like to try is to boot from created OpenBSD EFI USB stick > ; with > ; > ; boot -a > ; > ; and enter the OpenBSD's root partition on the HD. > ; > ; Unfortunately neither the MacBook Pro 8,2 's integrated > ; nor an external USB keyboard work at the prompt where to enter the > ; root device's location. :( > ; > ; Is there another way of telling the kernel which root device to use > ; (maybe at boot's prompt - although I haven't found anything in man page..)? > ; > ; If this seems to be a XY question to you, I am happy about other proposals. > ; > ; Greetings > ; Marcel > ; > ; On 11.11.2015 16:01, Marcel Timm wrote: > ; >Hello! > ; > > ; >My computer is a MacBook Pro 8,2. > ; > > ; >There is a GPT on the HD (big surprise!) with four partitions, > ; >the last one being of type OpenBSD. > ; > > ; >I managed to put a recent OpenBSD 5.8 snapshot there > ; >by booting and installing from an USB stick via EFI created like that (in > ; >OSX): > ; > > ; >dd if=~/install58.fs of=/dev/rdisk2 bs=1m > ; > > ; >After installing rEFInd 0.9.2 and putting OpenBSD 5.8 snapshot's > ; >BOOTX64.EFI file > ; >to the MacBook's EFI partition the rEFInd boot manager shows the OpenBSD > ; >EFI option. > ; > > ; >Selecting that OpenBSD entry starts the boot programm showing hd0 hd1 hd2 > ; >and hd3. > ; > > ; >Is it possible to boot my "EFI OpenBSD installation" from here? > ; >If so, how to proceed? > ; > > ; >I already played with > ; > > ; >set device hd0d > ; > > ; >etc. - but it did not work. > ; > > ; >I will gladly share more details, if of any help. > ; > > ; >Thanks in advance! > ; > > ; >Marcel > ; > > -- > Sending from my toaster.
FYI: How to use Intel GPU of MacBookPro8,2 via EFI boot
With some EFI boot loader and kernel modifications it is possible to disable the power-hungry Radeon (by accessing GMUX) and use the Intel GPU of a MacBookPro8,2 with OpenBSD 5.9 snapshot. Details: https://photorhino.wordpress.com/2016/02/03/openbsd-on-a-macbookpro82-with-intel-gpu/
vnconfig: /dev/rsvnd0c: Device not configured
Hi everybody, I wonder if anybody knows a solution for this: I had an encrypted partition working wonderfully in my system. my /etc/fstab is: /dev/sdXX /dev/svnd0c vnd rw,noauto,-k 0 0 /dev/svnd0c /mnt/ZZ ffs rw,noauto,nodev 0 0 so I used to do: mount /dev/sdXX Encryption key: enter my key and it would work. Now (after upgrading to 5.0 from the previous release) it returns: mount_vnd: /dev/rsvnd0c: Device not configured I try to configure it again: vnconfig -ck svnd0 /dev/sdXX but it returns again: vnconfig: /dev/rsvnd0c: Device not configured This is probably due to the fact that I overwrote the old /etc folder but I don't know where the problem is... Thanks in advance, Marc
Re: vnconfig: /dev/rsvnd0c: Device not configured
Thx! I renamed svnd to vnd and it worked like a charm. PS. I think I read "vnd(4) removed," oh how bad for them.. svnd will still rock... why should I care to read further? leaving "svnd(4) renamed to vnd(4)" in a world of disregard and darkness. Sorry... PS2. 5.0 rocks for me, it's a professional bitch. On 1/15/2012 8:58 PM, Tobias Ulmer wrote: It's in the fine manual: http://www.openbsd.org/faq/upgrade50.html#vnd
mode 802.11a
hi everyone i want to use openbsd for a link in an urban area in 5ghz frequencies. i try with a wrap + a mini pci atheros ar5212 and a toshiba laptop with a carbus atheros ar5212. (opnbsd 3.9 from the cds on the two hardware) but can't see each other ! there was so much changes in the driver...so i'm not aware of the changes, does 802.11a works with the ar5212 ? and i must select a particular option ? i test one in hostap and try to join the networks but can't see it with -L option thanks for all marc
Re: Which WLAN mini PCI card to use?
On Mon, 17 Jul 2006 15:45:54 -0400 "Jeff Quast" <[EMAIL PROTECTED]> wrote: > > ( on a side note, it apears the use of linux + windows driver wrappers > (madwifi?) on WRAP and soekris is very popular -- the very thought > makes me vomit a little bit in my mouth ) or with freebsd and pfsense (pfsense.com ) :-/ cause my atheros: http://www.atheros.com/pt/AR5002XBulletin.htm (scroll to AR5212 for info) don't work in 11a and 11g mode. the man page was let me thinking it was working, and i bought the stuff. i hope the real open driver will work soon. don't forget that the " ral" radio chipset seems to have poor radio performance (not really sensitive and a lot of power)
Re: OpenBSD 3.8, Soekris net4801 - console boot hangs when keys pressed
same problem but chris tell me that and it works " Your /etc/ttys file probably doesn't have anything in it for: tty00 "/usr/libexec/getty std.19200" vt100 on secure" On Mon, 16 Oct 2006 14:52:56 -0600 Stephen Bosch <[EMAIL PROTECTED]> wrote: > Stephen Bosch wrote: > > Hi: > > > > I have a Soekris net4801 which runs from a compact flash disk. It > > boots to the serial console. I've set everything to 9600 baud, 8 bit > > words, no parity, 1 stop bit. > > > > When left unattended, it boots normally. > > > > If I try to enter anything at the boot> prompt, I see one character > > and then it hangs completely. Only a hard reset fixes it: > > A generous soul has pointed out that flow control causes this problem. > > I have disabled all flow control in the terminal client and this > resolved the problem. > > Thanks! > > -Stephen-
Re: Missile Launcher For OpenBSD?
On Thu, 19 Oct 2006 21:37:03 -0500 "Sam Fourman Jr." <[EMAIL PROTECTED]> wrote: > Does anyone have one of these? > http://www.latestbuy.com.au/usb_missile_launcher.html really fun :) --
Re: java on openbsd
Quoting knitti <[EMAIL PROTECTED]>: On 11/14/06, Marc Ravensbergen <[EMAIL PROTECTED]> wrote: I am having a hard time getting java to work on openbsd. Java is a deal-breaker for me as I use it all day every day for work. What I've done is taken a tar of the linux version, and untarred it in openbsd. I have turned on linux emulation by modifying the variable in /etc/sysctl.conf, and I've mounted the /proc "filesystem". I have also pkg_added redhat-base8.xxx. However, whenever I run java, I get a "Can't detect initial thread stack location - find_vma failed" error. This is for sun's jdk 1.5.06 as well as one of the newer 1.6 versions. IBM's jdk1.4 says it cannot read or write (not sure exactly anymore) to /proc/. I've tried running all three versions as root to check for permission errors, but it makes no difference. I've googled for hours trying to find a solution, but can't seem to fix it. I really don't want to download the source for java and compile... I am on dialup so every byte counts. A little while ago I tried java on netbsd and got it working through linux emulation as well. I had problems with netbsd so it didn't stick around, but I believe that java on bsd through emulation should be possible; probably just an oversight somwhere on my part. I didn't try any linux 1.5/1.6 jdk, but perhaps you missed something for your linux emulation? read man compat_linux, perhaps it helps. the other options you have is having someone mail you the source on cd, or use kaffe (don't know how useful it is for your purposes). --knitti Thanks for your response. Kaffe won't work for me as it is missing a few feature s that I need (most notable swing support is not up to snuff yet). Marc
Re: java on openbsd
Quoting Jeff Quast <[EMAIL PROTECTED]>: On 11/14/06, Marc Ravensbergen <[EMAIL PROTECTED]> wrote: I am having a hard time getting java to work on openbsd. I'll bet. difference. I've googled for hours trying to find a solution, but can't seem to fix it. Lucky for you! My google works: http://www.google.com/search?q=openbsd+java thanks for that... my point was that reading the results that google gives does not help my situation. I really don't want to download the source for java and compile... I am on dialup so every byte counts. I am sorry for this, as this is a very involved process that requires "I agree" several times through the build. I beleive it took me two days work on a fast machine on broadband. Only because of Sun's web pages (which are very hard to navigate using lynx, of course). netbsd and got it working through linux emulation as well. I had problems with netbsd so it didn't stick around, but I believe that java on bsd through emulation should be possible; probably just an oversight somwhere on my part. If anybody can give me some tips or tricks I would really appreciate it. I would, but I would just be (poorly) repeating information that developers have painstakingly documented. http://www.openbsd.org/faq/faq8.html#Programming I've read that info; the "preferred" way of installing java (on openbsd) is by compiling from source. As I am a full time java developer, I use and test several different jdks at once. You might be able to understand why I am hesitant to compile and download all this stuff when openbsd supports linux emulation, and I already have downloaded all the linux jdks that I need. Thanks for your time, Marc If you're just asking for somebody to provide you with a complete binary package of the completed build, then you are asking us to break the law. Sun wants you to build it yourself, so that is what you will have to do. How do you jump to that conclusion from my email? No, never asked for that. Sorry, but this just sounds like you are complaining. What I was doing was asking for tips on getting linux emulation (more particularly, linux jdk binaries) working under openbsd. You should really send your grievences to sun, not openbsd misc. OpenBSD can't change Sun's licensing policies -- they can only abide by them. Maybe all of this hoop jumping will make you realize that using this language is a bad career move? that is laughable, especially considering sun's anouncement yesterday to GPL the entire java stack. Not trying to start a flame war here, but open solaris, nexenta (solaris kernel, debian apps), and a million linux distros all support Java really well. I am trying a java / openbsd combination because I've heard good things about openbsd, and from what I've seen so far I am very happy with it. I understand fully why openbsd has issues with Java. I am not blaming them / you at all. All I asked for was some advice getting this working. If you're going to bash me over the head for that, perhaps you'd consider not replying at all... save both your time and mine. Marc
Re: java on openbsd
Quoting Joachim Schipper <[EMAIL PROTECTED]>: On Tue, Nov 14, 2006 at 08:24:37AM -0800, [EMAIL PROTECTED] wrote: Quoting Jeff Quast <[EMAIL PROTECTED]>: >On 11/14/06, Marc Ravensbergen <[EMAIL PROTECTED]> wrote: >>I really don't want to download the source for java and compile... I am >>on dialup so every byte counts. >>I believe that java on bsd through emulation should be possible; >>probably just an oversight somwhere on my part. >> >>If anybody can give me some tips or tricks I would really appreciate it. > >I would, but I would just be (poorly) repeating information that >developers have painstakingly documented. >http://www.openbsd.org/faq/faq8.html#Programming I've read that info; the "preferred" way of installing java (on openbsd) is by compiling from source. As I am a full time java developer, I use and test several different jdks at once. You might be able to understand why I am hesitant to compile and download all this stuff when openbsd supports linux emulation, and I already have downloaded all the linux jdks that I need. If you're getting paid to develop on this, a little phone bill shouldn't be that problematic, Right now I work for myself, out of my house; time and bandwith cost money which is hard to come by at this point. I'd also rather spend time on "learning" so I can save time the next time I come to a (similar) problem. and you've already wasted as much time here as it would have taken to download it in the first place. hardly, you obviously have no idea what downloading on dial-up is like, especially when other family members need to access the phone as well. If you're so set on using Linux JDKs, use Linux. That's what they are for. If you really want, use Linux under some emulator (qemu is in ports). The fact that NetBSD apparently does manage to run your JDKs doesn't necessarily mean it manages to run them reliably, either. You're missing the point entirely. I already had several jdks in linux, thought I could save some time / bandwith and use them through emulation on openbsd. Forget that I mentioned anything about netbsd, linux, etc. Thanks to the kind souls who offered suggestions or binary downloads. I will have access to high speed for a few hours in the near future, and will try downloading the source then. Marc >You should really send your grievences to sun, not openbsd misc. >OpenBSD can't change Sun's licensing policies -- they can only abide >by them. Maybe all of this hoop jumping will make you realize that >using this language is a bad career move? that is laughable, especially considering sun's anouncement yesterday to GPL the entire java stack. Not trying to start a flame war here, but open solaris, nexenta (solaris kernel, debian apps), and a million linux distros all support Java really well. I am trying a java / openbsd combination because I've heard good things about openbsd, and from what I've seen so far I am very happy with it. I understand fully why openbsd has issues with Java. I am not blaming them / you at all. OpenBSD supports Java really well. Its Linux emulation is not perfect, granted, but that's a wholly different issue. Joachim
Re: [Fwd: Re: java on openbsd]
- Forwarded message from [EMAIL PROTECTED] - Date: Wed, 15 Nov 2006 11:18:36 -0800 From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Subject: Re: [Fwd: Re: java on openbsd] To: Keith Richardson <[EMAIL PROTECTED]> Quoting Keith Richardson <[EMAIL PROTECTED]>: I don't know if you are subscribed to the ports@ list. Thought I would forward you Kurt Miller's response just in case. He is the maintainer of all Java ports on OpenBSD so I would consider his answer authoritative. FWIW - I run java (1.4 and 1.5) and have no problems. Best advice I can give is to download all the packages that build/runtime depends on and java dist files on a fast connection and then build the native java. Here are the packages you will need before building / running on -release # cd /usr/ports/devel/jdk/1.5 # make full-all-depends hicolor-icon-theme-0.5p0 bzip2-1.0.3 help2man-1.29 autoconf-2.57p0 autoconf-2.59p1 metaauto-0.5 libtool-1.5.22p0 libiconv-1.9.2p3 jikes-1.22p0 expat-2.0.0 gettext-0.14.5p1 gtar-1.15.1p4 gmake-3.80p1 pkgconfig-0.19p0 glib2-2.10.3 atk-1.10.3p1 libIDL-0.8.5p0 glitz-0.4.4 jpeg-6bp3 tiff-3.8.2p0 gmp-4.1.4p0 libaudiofile-0.2.6p0 libltdl-1.5.22p1 autoconf-2.13p0 esound-0.2.34p0 unzip-5.52 zip-2.32 openmotif-2.1.30.5p1 png-1.2.12 cairo-1.0.4p0 pango-1.12.3 gtk+2-2.8.20 kaffe-1.1.7p2 mozilla-devel-1.7.13p0 # cd /usr/ports/devel/jdk/1.4 # make full-all-depends bzip2-1.0.3 help2man-1.29 autoconf-2.59p1 autoconf-2.57p0 metaauto-0.5 libtool-1.5.22p0 iodbc-3.52.4 libiconv-1.9.2p3 expat-2.0.0 gettext-0.14.5p1 gtar-1.15.1p4 gcpio-2.6 gmake-3.80p1 popt-1.7p0 rpm-3.0.6p4 redhat_base-8.0p8 jdk-linux-1.3.1_16 unzip-5.52 zip-2.32 ghostscript-fonts-6.0p0 openmotif-2.1.30.5p1 autoconf-2.13p0 nspr-4.4.1p0 Original Message Subject:Re: java on openbsd Date: Tue, 14 Nov 2006 12:20:45 -0500 From: Kurt Miller <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: ports@openbsd.org References: <[EMAIL PROTECTED]> On Tuesday 14 November 2006 8:07 am, you wrote: However, whenever I run java, I get a "Can't detect initial thread stack location - find_vma failed" error. This is for sun's jdk 1.5.06 as well as one of the newer 1.6 versions. IBM's jdk1.4 says it cannot read or write (not sure exactly anymore) to /proc/. I've tried running all three versions as root to check for permission errors, but it makes no difference. I've googled for hours trying to find a solution, but can't seem to fix it. Our linux emulation doesn't support the features needed by linux jdk binaries (1.4 and up). Our native jdk's work quite well (especially devel/jdk/1.5) but you need to build from source. -Kurt That package list helps a lot. I didn't know you could generate a dependency list like that (see my other message today: "packages"). Thanks! Marc - End forwarded message -
Re: Problems with java
Quoting ICMan <[EMAIL PROTECTED]>: Hello, I just compiled (after a whole day) the jdk 1.5.0p19 distribution on OBSD 4.0, and I get the following error whenever I run java or attempt to use the plugin with firefox: "Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine." I have tried "ulimit -d 10", I have tried "java -Xms10M -Xmx10M", "java -Xms100M -Xmx100M", and even "java -Xms1M -Xmx1M". None work. I continue to get the same error. Need help badly. Thanks ICMan. I have just completed a java installation from source as well and got the same error. Setting "ulimit -d 40" cleared that error for me; try a higher value. Marc
Re: Problems with java
Quoting jared r r spiegel <[EMAIL PROTECTED]>: On Thu, Nov 16, 2006 at 09:35:56PM -0500, ICMan wrote: Thank you everyone. I discovered that ulimit -d 20 works on my system. I don't really know what that means, and I have yet to figure out how to set this for all users (so they can use java), but that's stuff I can puzzle out. login.conf(5). / for '-cur' and then scroll up a bit. 'datasize-*' relates to ulimit -d. for a test, i've got a user in the 'staff' group on this box; just changed the 512M to 511M and re-logged in, ulimit -d stock output went from 524288 to 523264. -- jared or, you can add the following line to /etc/profile ulimit -S -d 20 Marc
pc enters unwanted "sleep" mode
My ports test machine exposes "interesting" new behaviour since about two weeks: It enters some sort of power safe mode when it is idle for some time: power led slowly blinks, screen goes into powersafe, and off course the network no longer works. APM is diabled in the bios, the machine never did this before, so it might be related to some recent changes? Any clues? - Marc Balmer dmesg: OpenBSD 3.7-current (GENERIC) #4: Tue Jun 7 07:34:21 CEST 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) 4 CPU 1.50GHz ("GenuineIntel" 686-class) 1.50 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 real mem = 804036608 (785192K) avail mem = 726454272 (709428K) using 4278 buffers containing 40304640 bytes (39360K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(c3) BIOS, date 11/19/01, BIOS32 rev. 0 @ 0xfd72a pcibios0 at bios0: rev 2.1 @ 0xfd6c0/0x940 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/288 (16 entries) pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00) pcibios0: PCI bus #2 is the last bus bios0: ROM list: 0xc/0xf400 0xcf800/0x9c00 0xe/0x1! cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "Intel 82845 Host" rev 0x03 ppb0 at pci0 dev 1 function 0 "Intel 82845 AGP" rev 0x03 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "Nvidia GeForce4 MX 440" rev 0xa3 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb1 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0x12 pci2 at ppb1 bus 2 fxp0 at pci2 dev 8 function 0 "Intel 82562" rev 0x03: irq 11, address 00:02:55:2b:13:17 inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0 xl0 at pci2 dev 12 function 0 "3Com 3c905B 100Base-TX" rev 0x30: irq 5, address 00:04:76:98:f2:77 exphy0 at xl0 phy 24: 3Com internal media interface ahd0 at pci2 dev 14 function 0 "Adaptec AHA-29320LP U320" rev 0x10: irq 11 aic7901: U320 Wide Channel A, SCSI Id=7, PCI 33 or 66Mhz, 512 SCBs scsibus0 at ahd0: 16 targets sd0 at scsibus0 targ 0 lun 0: SCSI3 0/direct fixed sd0: 35003MB, 36703 cyl, 3 head, 651 sec, 512 bytes/sec, 71687340 sec total ichpcib0 at pci0 dev 31 function 0 "Intel 82801BA LPC" rev 0x12 pciide0 at pci0 dev 31 function 1 "Intel 82801BA IDE" rev 0x12: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility pciide0: channel 0 ignored (disabled) atapiscsi0 at pciide0 channel 1 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 uhci0 at pci0 dev 31 function 2 "Intel 82801BA USB" rev 0x12: irq 11 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered "Intel 82801BA SMBus" rev 0x12 at pci0 dev 31 function 3 not configured uhci1 at pci0 dev 31 function 4 "Intel 82801BA USB" rev 0x12: irq 10 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: Intel UHCI root hub, class 9/0, 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 0x12: irq 11, ICH2 AC97 ac97: codec id 0x41445362 (Analog Devices <62>) ac97: codec features headphone, No 3D Stereo audio0 at aisa0 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: 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 ff45 netmask ff65 ttymask ffe7 pctr: user-level cycle counter enabled ulpt0 at uhub0 port 2 configuration 1 interface 0 ulpt0: vendor 0x06bc product 0x1001, rev 1.00/1.04, addr 2, iclass 7/1 ulpt0: using bi-directional mode uhidev0 at uhub1 port 1 configuration 1 interface 0 uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.00, addr 2, iclass 3/1 ums0 at uhidev0: 3 buttons and Z dir. wsmouse0 at ums0 mux 0 ahd0: target 0 synchronous with period = 0x8, offset = 0x7f(RDSTRM|DT|IU|RTI|QAS) dkcsum: sd0 matched BIOS disk 80 root on sd0a rootdev=0x400 rrootdev=0xd00 rawdev=0xd02 uich0
Re: Mini-PC recommendation?
Frank Denis (Jedi/Sector One) wrote: What experiences do people have with OpenBSD and a mini-PC like Biostar's or Soltek's? Most interesting ones seems to based upon Nvidia chipsets, but unfortunately they don't seem to be supported by OpenBSD. This heavily depends on what you use it for. We make good experiences with Geode based systems (like the Soekris 4801) as they are low power devices for router/firewall applications. They don't, however, have much CPU power, e.g. the 4801 board is clocked at 266 MHz. Nvidia bases devices tend to consume more power and thus heat up more. Off course, if you need a full fledged PC with VGA etc. these devices are not a choice. - Marc Balmer
Re: Graphics Editor
Seth Jackson wrote: I was wondering what I should use for graphics editing on OpenBSD. I know there is the GIMP, but I didn't know if there were any other good graphics editing programs for OpenBSD. Also, what was the art on the OpenBSD.org homepage created with? Sodipodi, graphics/sodipodi, is a vector graphics program (using gtk2).
Re: Using crontab to end a process
Steven Manos wrote: something like... kill `ps aux | grep mplayer | head -n 1 | awk {'print $2'}` see pkill(1)
Re: sendmail and clamd
Cristian Del Carlo wrote: Hi list, i am planning to use openbsd as mail server with sendmail and clamd as antivirus on intel machine. What can i use to connect sendmail and clamd? smtp-vilter, which is in ports. I know that there are several methods : milter, amavis etc... Thanks, Cristian Del Carlo
Re: sendmail and clamd
Alexander Bochmann wrote: I'm successfully using smtp-vilter as milter for clamav, but I haven't followed the latest development on OpenBSD pthreads, and people used to say that there's problems with the thread implementation (search the archives for specifics) - so going with milters might not be the optimal solution for a high-volume system. We serve 20'000+ user without problems here.
Re: Network performance on WRAP boards
On Thu, 19 Jan 2006 14:51:04 -0800 Chris Cappuccio <[EMAIL PROTECTED]> wrote: > > at the smallest packet sizes, that sounds about right, if not slightly > low good information, in time before i build one, this is better on a soekris hardware ?45xx or 48xx ?
Re: Communicate with an UPS
Per-Olov Sjvholm wrote: Can OpenBSD communicate with any UPS units over the serial port? Does OpenBSD support shutting down the OS if an UPS runs out of power? Yes, it can. You might want to take a look at the network UPS tools, a port in sysutils/nut. - Marc Balmer
firefox/lynx is extremely slow loading urls but not with IP's
Hello all, I'm connecting to the internet with a standard internet router using an ethernet cable and a very strange (to me!) thing is happening: [I have a windows system in the same computer and I can browse the internet without any problem (all pages load fast)] On my openbsd-amd64 system: My hostname.XXX file is configured with dhcp and /etc/netstart successfully assigns me a IP and writes the gateway to resolv.conf. "route -n show" also apparently shows the right thing: Internet: DestinationGatewayFlags Refs Use Mtu Prio Iface default192.168.1.1UGS1 1005 - 8 re0 127/8 127.0.0.1 UGRS 00 33160 8 lo0 127.0.0.1 127.0.0.1 UH 24 33160 4 lo0 192.168.1/24 link#2 UC 10 - 4 re0 192.168.1.1XX:XX:XX:XX:XX:XX UHLc 2 391 - 4 re0 192.168.1.60 127.0.0.1 UGHS 00 33160 8 lo0 224/4 127.0.0.1 URS00 33160 8 lo0 (XX:XX:XX:XX:XX:XX masks the real value) All the values match the ones that windows also uses. BUT if I use firefox/lynx/konqueror I can open IP's fast BUT I CANNOT open any normal urls such as http://google.com in a reasonable period of time. It just takes a ridiculously huge amount of time: sometimes I have to wait 10min or so. I tried "traceroute http://google.com"; and it leads me to the correct IP very quickly, so apparently the nameserver is configured correctly. Can anybody point me out what might be happening or which diagnosis tools could help me figure it out? Thanks much in advance, marc
(bug?) slow internet: IPv6 was not detected and it didn't switch to IPv4
Hello, I've been struggling to make the internet run faster for a few days now... I was using a new network and it was ridiculously slow with OpenBSD but not with other OS. After reading similar reports on the internet, I solved it changing the firefox settings: about:config > network.dns.disableIPv6 I've read there is a cleaner solution adding "family inet4" to resolv.conf but I would prefer to add it as a parameter to the dhcp command in /etc/hostname.XXX. Any ideas on how to do it? Wouldn't you agree that this is a bug? thnx, marc
obtaining openbsd.pbr from windows 7
Dear all, I was reading through the docs on how to boot openbsd with the windows 7 boot loader so I learned I have to execute: dd if=/dev/sd0a of=openbsd.pbr bs=512 count=1 but I can't do it: * If I do it from the existing openbsd in my drive, /dev/sd0a, I get device busy. * If I boot with the cd rom neither msdos nor ntfs are available so I can't write the .pbr file to an accessible place from windows. * If I boot with the cd rom and write the .pbr file in the bsd filesystem, I can't read it from windows 7 (I couldn't find a program to mount bsd filesystems which works with windows 7). Does anybody have a solution to any of these problems or a 4th way? Thanks marc
Re: obtaining openbsd.pbr from windows 7
Hi Janne, Thanks a lot for your answer. I did read this section (actually subsection 'Windows 7') so I'm afraid I'm the only one getting it wrong... I had the impression that the command: < bcdedit /set {0154a872-3d41-11de-bd67-a7060316bbb1} path \openbsd.pbr>> requires that the openbsd.pbr file is at located at the root of c:\. Am I wrong? Thanks again, Marc > 2011/3/7 marc > >> Dear all, >> >> I was reading through the docs on how to boot openbsd with the windows 7 >> boot loader so I learned I have to execute: >> dd if=/dev/sd0a of=openbsd.pbr bs=512 count=1 >> > > Then you learned wrong. > The FAQ has the solution for you: > > http://www.openbsd.org/faq/faq4.html#Multibooting > > >> but I can't do it: >> >> > If you can, trace the bad information back to whoever is handing out bad > advice and make them read the FAQ also, so we don't get more users getting > non-working advice. > > -- > To our sweethearts and wives. May they never meet. -- 19th century toast
Re: obtaining openbsd.pbr from windows 7
On 3/7/2011 9:03 PM, Joachim Schipper wrote: I have no idea what you think you've been told, but: a) do NOT post private mail publicly - it's rude; Sorry. I didn't realize. b) follow the FAQ, including the 'r' in /dev/rsd0a - it works. Thanks Joachim. That's it, it works. I didn't know what rsd0a meant as fdisk and disklabel were refering to sd0a... I think it would be nice to add a little note in the docs explaining what 'r' stands for and that you should add it in front of your device name to access it while being used. I also think it would be great to add msdos and ntfs support in the installation cdrom (no it's not there). Ubuntu has it, it should be possible. openbcd looks interesting but it's a shame it's not open source... thanks everybody for your comments, best marc
Re: obtaining openbsd.pbr from windows 7
First of all, thanks for all the feedback. (at FAQ 4.9) I still think that adding a note that rsd0 is the name of the raw character device associated to the device sd0 and that consequently you can find the correct parameter for dd in your system by adding an 'r' to the device listed in disklabel which is associated to /, would be useful to future illiterates like me. On 3/9/2011 2:04 PM, Stuart Henderson wrote: On 2011-03-09, marc wrote: I also think it would be great to add msdos and ntfs support in the installation cdrom (no it's not there). msdos support *is* there on most arch. not on amd64 (OpenBSD 4.8)... I doubled checked. There are only mount_cdf9660,mount_ffs,mount_udf. ntfs support wouldn't be worth the space, considering you can't safely write files with it. Ubuntu has it irrelevant. well Ubuntu has it, and I never had problems writing files with it. if there is open source code around that works, I don't think this is irrelevant... It might provide some great inspiration... (even if it is probably hard work).
Re: obtaining openbsd.pbr from windows 7
On 3/9/2011 10:39 PM, Rod Whitworth wrote: On Wed, 09 Mar 2011 13:01:17 +0100, marc wrote: openbcd looks interesting but it's a shame it's not open source... Is that an alternate bcdedit or a typo meaning OpenBSD? dislexia. I meant easybcd. The FAQ (4.9, Windows 7) steps work perfectly though and they are very simple once you get the .pbr file and place it at c:\openbsd.pbr. *** NOTE *** Please DO NOT CC me. I 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.
Re: obtaining openbsd.pbr from windows 7
I appreciate your help. On 3/10/2011 1:03 AM, Eric Furman wrote: On Wed, 09 Mar 2011 19:09 +0100, "marc" wrote: First of all, thanks for all the feedback. (at FAQ 4.9) I still think that adding a note that rsd0 is the name of the raw character device associated to the device sd0 and that consequently you can find the correct parameter for dd in your system by adding an 'r' to the device listed in disklabel which is associated to /, would be useful to future illiterates like me. Read a book on UNIX. Seriously. Knowing the difference between raw and block devices sorta falls under the category of basic UNIX knowledge. When using a utility like dd, OpenBSD man pages assume you have basic UNIX knowledge. The man pages nor the FAQ are considered to be tutorials in the use of UNIX. I'm not trying to be a smartass. I'm trying to help you before some one is actually rude to you if you persist in this line of argument.
Re: obtaining openbsd.pbr from windows 7
(This is the complete email... Sorry. No offense intended. I had connection problems!) On 3/10/2011 2:31 AM, Nick Holland wrote: > On 03/09/11 13:09, marc wrote: >> First of all, thanks for all the feedback. >> >> (at FAQ 4.9) I still think that adding a note that rsd0 is the name of >> the raw character device associated to the device sd0 and that >> consequently you can find the correct parameter for dd in your system by >> adding an 'r' to the device listed in disklabel which is associated to >> /, would be useful to future illiterates like me. > > The most important section of 4.9 is often ignored, in spite of my > putting it in the first paragraph: > > "Multibooting is having several operating systems on one computer, and > some means of selecting which OS is to boot. It is not a trivial task! > If you don't understand what you are doing, you may end up deleting > large amounts of data from your computer. New OpenBSD users are strongly > encouraged to start with a blank hard drive on a dedicated machine, and > then practice your desired configuration on a non-production system > before attempting a multiboot configuration on a production machine. FAQ > 14 has more information about the OpenBSD boot process." > > Note the 2nd, 3rd and 4th sentences. Multibooting is not for novice > users. This section is not for teaching you how OpenBSD works or any of > dozens of other OSs that could be multibooted with OpenBSD. It is to > provide guidance for people who are very familiar with all the OSs they > are planning on using on one machine. > Well I'm a novice user and I did it. I just was writing here what made it possible. It might be useful to add too that I used an Ubuntu live CD to launch gparted and partition the disk to make space for openbsd before running the openbsd installer. It worked great and it seemed safe to me (libparted and gparted have code you can read). Note: Not everybody has 2 computers. Let me thank you for the tutorial too, it was helpful. Best marc
Choosing a window manager...
Hi all, I'm deciding between kde, xfce, gnome, and fluxbox (in order of preference). Any experiences? Any relevant security issues on any of them? Thanks, Marc
Re: Choosing a window manager...
thx bryan. btw. im atheist. > On Tue, Mar 15, 2011 at 11:50 AM, marc wrote: >> Hi all, >> >> I'm deciding between kde, xfce, gnome, and fluxbox (in order of >> preference). Any experiences? Any relevant security issues on any of >> them? > > what's wrong with afterstep? ;-)
Re: Choosing a window manager...
> If there's a beginning to time then what started it or what made what > started time. What made what made dark matter. are you talking about the console? :)
ntfs support on amd64?
Hello everybody When I try to mount a ntfs partition, "mount /dev/sd1i /mnt/win" I get: mount_ntfs: /dev/sd1i on /mnt/x: Operation not supported I formated it with Windows 7. It works on windows and ubuntu linux. Any ideas on this? I'm running openbsd 4.8. on amd64. ntfs is supposed to be there (http://openbsd.org/faq/faq14.html#foreignfs). # dmesg OpenBSD 4.8 (GENERIC) #182: Mon Aug 16 09:02:40 MDT 2010 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC RTC BIOS diagnostic error 80 real mem = 2946756608 (2810MB) avail mem = 2854522880 (2722MB) Thanks much, marc
Re: ntfs support on amd64?
Hi > http://marc.info/?l=openbsd-misc&m=129951700232105&w=2 It was confusing to me... > /usr/src/sys/arch/amd64/conf/GENERIC > > #option NTFS# Experimental NTFS support > This is the perfect answer. Thanks! On 04/21/11 10:15, Richard Toohey wrote: On 21/04/2011, at 7:36 PM, Guillaume Duali wrote: On Thu, 21 Apr 2011 08:00:43 +0200, marc wrote: Hello everybody Hi, When I try to mount a ntfs partition, "mount /dev/sd1i /mnt/win" I get: mount_ntfs: /dev/sd1i on /mnt/x: Operation not supported I formated it with Windows 7. It works on windows and ubuntu linux. Any ideas on this? Maybe you need to build a custom kernel ? Yes, NTFS is not on by default in amd64 in 4.8. $ dmesg OpenBSD 4.8 (GENERIC) #0: Thu Nov 18 10:51:27 NZDT 2010 xxx...@x.yy.co.nz:/usr/src/sys/arch/amd64/compile/GENERIC ... /usr/src/sys/arch/amd64/conf/GENERIC #option NTFS# Experimental NTFS support And this was discussed a month ago ... http://marc.info/?l=openbsd-misc&m=129951700232105&w=2 Look : "Once you have determined which partition it is you want to use, you can move to the final step: mounting the filesystem contained in it. Most filesystems are supported in the GENERIC kernel: just have a look at the kernel configuration file, located in the /usr/src/sys/arch//conf directory. If you want to use one of the filesystems not supported in GENERIC, you will need to build a custom kernel." I'm running openbsd 4.8. on amd64. ntfs is supposed to be there (http://openbsd.org/faq/faq14.html#foreignfs). Some of that info is for 4.9 ... HTH. # dmesg OpenBSD 4.8 (GENERIC) #182: Mon Aug 16 09:02:40 MDT 2010 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC RTC BIOS diagnostic error 80 real mem = 2946756608 (2810MB) avail mem = 2854522880 (2722MB) Thanks much, marc Guillaume.
Re: Like OpenBSD? Like to see new stuff happening? You really need to order a CD today :)
I'm late to read this thread but I just want to say I'm very grateful for all the work you've done, specially because you don't confuse me with business tricks. About business, I dont think you should expect people to be 'good', but I also think that when what you are doing makes good to people, it isn't that hard to make them feel uncomfortable. I would suggest making donation 'buttons' ominipresent when you navigate openbsd.org. Put it visible in places that people will need: download, documentation. For example, I'm quite on a budget but for example wikipedia.org completely got me. I use it so often that I couldn't read any more 'we need your donations' and ignore it when there was no more advertising on the site. My five cents, marc
Pour votre information
NewsLetter
Re: Version skew?
On Fri, May 05, 2017 at 11:01:18PM -0400, Donald Allen wrote: > Also, if you look at the pkg_add man page, PKG_PATH is documented > without any mention that it is deprecated. That's because it isn't.
Re: OT: Recommendations for a CMS?
Actually, I used to need a CMS for my former job, ended up going with Drupal. Not incredibly awful, especially since it's php. The design makes sense, it's actually reasonably clean, maintained, with lots of modules. And it *is* a CMS, as in you can have a full database of documents organized, and some interesting publishing tracks. (I went with drupal because I really needed to have custom roles, and neither wordpress nor joomla nor zope did what I needed, and the drupal code WAS actually cleaner). One major advantage over "do it yourself" html is that you don't have to deal with all the gooey stuff, like helping non technical people handle their jobs, since everything has a web interface. Now for the drawbacks: - there's a shitload of contributed modules. Sometimes it's hard to find the one you want. And they're not all the same quality. - every major version of drupal is a pain. They generally don't have any kind of same migration plan from version to version. Especially the user interface, which changed a lot, so you're often better off reimporting your data and starting the menu design from scratch.
Re: OT: Recommendations for a CMS?
On Mon, May 08, 2017 at 11:33:52AM +1200, Wiremu Demchick wrote: > > I should mention that Drupal has a not-very-nice security track > record. A particularly good example: > https://www.drupal.org/SA-CORE-2014-005 This is maybe the only big security problem I've seen while working with drupal. Their security advisory list is fairly active, but apart from this bad boy, most of their CVE correspond to very specific cases of privilege escalation, with complicated administrative models (all those cases where you've given some users JUST some fairly comprehensive rights and don't want them to fully become root on the website)... so unless you're in that specific case, it is generally rather solid apart from that issue.
Re: syspatch ideas
On Mon, May 15, 2017 at 08:36:21AM +, Michal Bozon wrote: > I think the justification is: > > Why do i even need to revert a patch? Only because something got broken > by the last syspatch command, that may have applied multiple patches. > I might not now which patch caused the problem. > > If the problematic patch was not the last one from the set, > reverting with -r does not help, because it reverts single last patch only. > > Well, applying `syspatch -r` repeatedly is a sort of solution as well. scratching head. well, we're talking patches on top of *stable*. The release is originally rather well tested. patches on top of that are applied conservatively, only to fix actual issues. I would really start worrying about our process if you actually need to 'revert patches until you find out which one causes the problem'.
Re: No 008 patch on ftp.eu.openbsd.org yet
Am 05/21/17 um 10:28 schrieb Andreas Kusalananda Kähäri: > Hi, > > I had to switch to ftp.openbsd.org to get the 008 patch for -stable > since my preferred mirror, ftp.eu.openbsd.org, doesn't seem to be > updating. The timestamp file says last update was run on 1495188001 > (Fri May 19 12:00:01 CEST 2017). > > There is no contact address in > https://ftp.eu.openbsd.org/pub/OpenBSD/README so I'm hoping that someone > who know someone who knows how the mirroring is performed will spot this > and get them to fix it. > > I would also be interested in knowing how often this mirror is > *supposed* to update (usually it's something like every two hours, > right?). > > > > Regards, > Kusalananda > unfortunately, same is true for https://ftp.halifax.rwth-aachen.de/openbsd
Re: Can I use OpenBSD as a desktop system?
On Sat, Jun 10, 2017 at 12:55:04PM +0200, Nicolas Schmidt wrote: > > >> On 06/09/17 15:39, SOUL_OF_ROOT 55 wrote: > >> Can I use OpenBSD as a desktop system? > > > > You? No, I doubt it. > ... > > But, you are welcome, and invited > ... > > Nick. > > Nick, I don't think you were being either welcoming or inviting there. Oh, come on this list isn't politically correct, and Nick's answer was very funny. If the original poster doesn't see the humor, well, he's probably not right for OpenBSD in any case. And yeah, you must be this tall to run OpenBSD pretty much says it all actually.
Re: inquiring about setting wxallowed on /home mountpoint
WXNEEDED is already a compromise. More compromise is fairly unlikely to happen...
Re: A question of lock usage in OpenBSD kernel code
On Fri, Jul 07, 2017 at 10:02:44PM -0400, Ted Unangst wrote: > J Doe wrote: > > Ok, thank you for clarifying that for me. I will proceed with development > > in C. As an aside - do OpenBSD developers track with the latest standard > > (C11), or is another standard preferred ? > > mostly c89. in particular, don't mix code and declarations. Rather C99. In particular, you can take advantage of stdint.h and inttypes.h which means consistent numeric type names, and %zu for printing out size_t instead of dangerous casts.
Re: A question of lock usage in OpenBSD kernel code
There are actually parts of style(9) that are frequently ignored. I just read over the 'declaring variables' and I'm puzzled. I don't do things that way. The "sorting by size" is from another era, especially when it contradicts itself by mixing up types and pointer to types, which is definitely not sorting by size. And I try to avoid declaring pointers and non-pointers variables on the same line, because it's fairly easy to misread, even when you know what you're doing. Initializing variables wherever it can be done directly as a constant is also something I do all the time.
Re: reordering libs failed - cannot find -lcompiler_rt
On Sat, Jul 29, 2017 at 08:24:41PM +0200, Mark Patruck wrote: > Short info. Installating comp61.tgz makes reorder_libs() work. > Somehow, nobody tested on arm64 without comp. Theo just fixed this, thanks (libcompiler_rt.a should indeed be in base)
Re: Changing default compiler for usr/ports buiding
On Mon, Jul 31, 2017 at 05:47:59PM +0300, Denis wrote: > I'm trying to change default compiler to build some ports. > Tried to do it using bsd.port.mk and by system variables CXX=eg++ > CPP=egcc, but nothing changes while building a port. > > How can I force the default gcc 4.2 to egcc (gcc 4.9)? > > Thanks You can't. Things generally won't work. Current uses clang on i386 and amd64. And that's wildly incompatible with gcc 4.2 or 4.9...
Re: ftp.eu.openbsd.org no longer accepts anonymous ftp?
On Sat, Aug 19, 2017 at 12:16:14PM +0200, Peter N. M. Hansteen wrote: > On 08/19/17 11:44, Andreas Thulin wrote: > > Also, yesterday's > > > > # pkg_add -u > > > > failed for me, apparently for that same reason. > > Yes, that would happen. Then again, changing ftp:// to https:// in > /etc/installurl would make pkg_add -u work. https is currently a disaster for pkg_add... unless you really need the anonymity, stick with http. proper signatures means there won't be any package tampering in any case.
Re: What decides which port becomes a package?
I'm just discovering the issue and the thread with it. I don't quite understand why we don't talk it over with Colin Percival.
Re: regarding the default path for pkg_add in -current
On Wed, Sep 27, 2017 at 08:57:10PM -0600, and...@quickstick.net wrote: > Hello Folks !! > > Regarding GENERIC.MP #115 > > I have a feeling you are about to roll into 6.2, however I just want to > bring the following to your attention in case it matters. > > I just did a clean install of -current using the bsd.rd dated 2017-09-27. > Within the install sequence of questions, the default download path has been > hardcoded to ../6.2/... as opposed to ../snapshots/.. > > I manually changed it to ../snapshots/ and it installed as expected. > > Also, after login, pkg_add is very determined to use to the same ../6.2/.. > directory path. For the benefit of others who might find themselves in the > same spot, the workaround is to use the full path while using pkg_add. In my > case, it is: > > $ doas pkg_add \ > https://ftp3.usa.openbsd.org/pub/OpenBSD/snapshots/amd64/pkgname Unless you have good reasons to care about confidentiality, I'd advise against https for pkg_add right now for performance reasons.
Re: the whole greylisting, spam filtering thing
On Mon, Oct 02, 2017 at 07:16:43AM +, rosjat wrote: > Hi there again, > > so I will try to ask the question about implementing rspam on a dedicated > machine oder at the mailsystem again because I don't know if it was lost in > the converstion :). How is you setup now? Do you do any analysis or antivirus checking at all? I would start to put it on the same machine, as it is designed to use less resources. If the machine bogs down, take another one and implement it there. Nobody knows your mail volume or your machines or your actual setup you're running now except from you ;). hth, Marc > > Is there some effort in NOT run rspamd on the same machine as the > mailsystem? I was just wondering because it could make some transitioning a > little easier but if the amount of "workarounds" to relays mails through > another instance is not worth it then I will go with spamfilterting on the > mailsystem. > > regards > > -- > Markus Rosjatfon: +49 351 8107223mail: ros...@ghweb.de > > G+H Webservice GbR Gorzolla, Herrmann > Königsbrücker Str. 70, 01099 Dresden > > http://www.ghweb.de > fon: +49 351 8107220 fax: +49 351 8107227 > > Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before you > print it, think about your responsibility and commitment to the ENVIRONMENT >
Re: X turn off monitors automatically, not with mplayer running
On Sat, Oct 07, 2017 at 06:52:53AM -0300, x9p wrote: > Hi > > If am running a video with mplayer, pause it, and lock X with xlock - my > monitors are not turned off for inactivity. > > If mplayer is not running, after a couple of minutes my monitors are > automatically turned off. > > I am trying to disable the energy saving without mplayer, so I run the > command: > > $ xset -dpms > > But it did not worked for me. Any hints on the proper way? > > cheers. > Have you tried switching to mpv ? I've given up trying to make modern things work with mplayer, the mpv "fork/reimplementation" is much better behaved with respect to most things.
Re: tar: file is too long for ustar
On Mon, Oct 09, 2017 at 10:23:08AM +, Max Power wrote: > Hi guys. > OpenBSD never ceases to amaze me...!! > > Solved the problem about maximum compression with bzip2 by tar, there's > another... > while tar run [tar cvvf - directory | bzip2 -9 -v > directory.tbz2], at a > certain point, return: > tar: file is too long for ustar > The file that creates the problem is 30GB. > > What happen? > How Can I fix this problem...? > Thanks. Base tar is only capable to pack files <10GB. You can switch to archivers/gtar.
Re: gtar: ambiguous package
We still ship a few packages with a static flavor, for the paranoid who wants a version that will work even if they manage to fuck up most of everything else on their system. I'll admit I find fewer and fewer valid use cases to these, as opposed to rebooting on bsd.rd and fixing things another way.
Re: A stupid question, re: xargs(1)
As Theo said already, the main issue there is that it's totally non-standard, so you end up writing scripts that won't work anywhere but on OpenBSD. The problem you're trying to solve is quoting in shell. It's basically broken by design. There will always be fun patterns in names that do various fun things in shell. the find -print0 / xargs -0 couple was designed to solve that problem a long time ago in one specific case. Yep, it does not play with filters in the middle. So what ? you can create a list with the specific case of *newlines* using lots of shell constructs e.g., find . | while read i; do ...; printf "$i\0"; done|xargs -0 is yet another way to skin this cat. In general, when I need to do this kind of things, I get a "scripting" language that doesn't have any of those issues, for instance perl.
Re: pkgconfig not available
On Sun, Oct 15, 2017 at 09:55:40AM -0400, Daniel Villarreal wrote: > re: pkgconfig not available > > I see pkgconfig as being available in OpenBSD 6.2 when I run pkg_mgr, > but I don't see it in several mirrors. Please advise. > > Thanks, > Daniel Villarreal Did you try running it ? pkgconfig is part of the base system, as a complete rewrite. No wonder you won't find it in packages.
Re: Japanese Input in xterm
On Sun, Oct 15, 2017 at 08:56:36PM +0200, Niels Kobschaetzki wrote: > On 17/10/15 19:43, Cág wrote: > >Niels Kobschaetzki wrote: > > > >>Thanks a lot. But you are using sakura and not xterm for typing > >>Japanese. I want to use xterm so that I can leave more dependencies > >>behind :) > > > >You can build st (recommended) as it doesn't have any dependencies that > >aren't in the install, if I amn't mistaken; or try rxvt-unicode. > > > >xterm is an unholy mess and shouldn't be used by anybody. > > But xterm is in base unlike urxvt or the VTE-terminals. Maybe OpenBSD > should change to urxvt in base. Seems to me, from the user-perspective, > that it would be a simmilar change as from screen to tmux. > > Niels You're talking nonsense. rxvt-unicode is GPLv3, so that's a no-no.
Re: chronium ports
On Mon, Oct 16, 2017 at 05:28:19PM +0900, Tuyosi T wrote: > i build my openbsd snapshots machine from source > (kernel , userland and xenodm ) > > the PC complied from source works more correctly > as if ready made suite is not my just size , > tailered one is very fit , so i think . Unless you have masochistic tendencies, use pkg_add. If you tailor ports to your own usage, you're very likely to end up with incompatible versions thanks to unnecessary tweaks. Oh, and you're also likely to kill your machine slowly, because it takes a lot of cpu. Most port builders these days (I mean developers being part of the project) use really fast machines in clusters to build ports. chromium took you 18 hours ? that's slightly less than the time I need to rebuild the full package collection. Think about it.
Re: About WPA2 compromised protocol
On Mon, Oct 16, 2017 at 12:58:45PM +0200, Stefan Sperling wrote: > On Mon, Oct 16, 2017 at 12:45:24PM +0200, Erik van Westen wrote: > > But did every manufacturer make the same mistake then? > > Yes. To sum up what I know: - WPA2 is still sound cryptographically; - there was no formal analysis of the protocol itself, in terms of exchanged messages; most everybody forgot that bugs in there can be as deadly as cryptographic error. - in some cases, you get some stuff to resend, but it should repeat the same thing, so not a bug per-se; - WPA2 strongly suggests zeroing memory areas that used to hold secrets. The common implementation error is to zero some memory areas holding secrets that you have to retransmit, thus leading to establishing a bunch of zeroes as an actual secret.
Re: chronium ports
On Tue, Oct 17, 2017 at 04:27:55AM +0900, Tuyosi T wrote: > what a fast machine Espie uses ! Nope, it's called a dedicated cluster... I don't even pay for it, fortunately. But there are a few clusters dedicated to either building package snapshots OR to quickly test various things, fortunately. Mostly so that you don't feel the pain. Don't get me wrong, playing with the ports tree is fun, but we have working packages, and it's often not worth the pain. Almost everyone uses the snapshots in production.
Re: nobreak powers down openbsd
On Mon, Oct 23, 2017 at 06:08:56PM +, Friedrich Locke wrote: > When i wrote nobreak, i really meant UPS. > I don't have a model; may some one suggest a model that power off openbsd ? > > Thanks. You can use NUT (network UPS Tools). It's in ports and supports a lot of different brands. hth, Marc
dhclient expects IPv4 address in dhclient.conf
Hi misc, dhclient hates me. I would like to prepend an IPv6 nameserver in the dhclient configuration on my router when connecting to my ISP, but dhclient gives me following error: em1: /etc/dhclient.conf line 17: expecting IPv4 address. em1: prepend domain-name-servers "::1" em1: ^ dhclient.conf ist plain simple: ~ $ grep -v "#" /etc/dhclient.conf supersede host-name "router"; prepend domain-name-servers 127.0.0.1; prepend domain-name-servers "::1"; Is this intended? Best, Marc -- dmesg: OpenBSD 6.3 (GENERIC.MP) #1: Sat Apr 21 14:26:25 CEST 2018 r...@syspatch-63-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8151306240 (7773MB) avail mem = 7897186304 (7531MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeaf40 (52 entries) bios0: vendor American Megatrends Inc. version "0306" date 08/18/2011 bios0: ASUSTeK Computer INC. E45M1-I DELUXE acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT acpi0: wakeup devices SBAZ(S4) UAR1(S4) P0PC(S4) UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4) PE21(S4) RLAN(S4) PE22(S4) PE23(S4) BR14(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1650.41 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache cpu0: 8 4MB entries fully associative cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative acpitimer0: recalibrated TSC frequency 1649918204 Hz cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 199MHz cpu0: mwait min=64, max=64, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1649.93 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache cpu1: 8 4MB entries fully associative cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative cpu1: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 0 pa 0xfec0, version 21, 24 pins , remapped to apid 0 acpimcfg0 at acpi0 addr 0xe000, bus 0-255 acpihpet0 at acpi0: 14318180 Hz acpihpet0: recalibrated TSC frequency 1649928660 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 3 (PE20) acpiprt2 at acpi0: bus 4 (PE21) acpiprt3 at acpi0: bus -1 (PE22) acpiprt4 at acpi0: bus -1 (PE23) acpiprt5 at acpi0: bus -1 (BR15) acpiprt6 at acpi0: bus -1 (PCE6) acpiprt7 at acpi0: bus -1 (PCE7) acpiprt8 at acpi0: bus -1 (PCE8) acpiprt9 at acpi0: bus 1 (BR14) acpicpu0 at acpi0: C2(0@100 io@0x1771), C1(@1 halt!), PSS acpicpu1 at acpi0: C2(0@100 io@0x1771), C1(@1 halt!), PSS acpibtn0 at acpi0: PWRB "PNP0C14" at acpi0 not configured cpu0: 1650 MHz: speeds: 1650 1320 825 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00 radeondrm0 at pci0 dev 1 function 0 "ATI Radeon HD 6320" rev 0x00 drm0 at radeondrm0 radeondrm0: msi azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi azalia0: no supported codecs ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi pci1 at ppb0 bus 1 em0 at pci1 dev 0 function 0 "Intel 82576" rev 0x01: msi, address 90:e2:ba:e9:1a:3a em1 at pci1 dev 0 function 1 "Intel 82576" rev 0x01: msi, address 90:e2:ba:e9:1a:3b ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 0 int 19, AHCI 1.2 ahci0: port 0: 6.0Gb/s ahci0: port 1: 6.0Gb/s scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 0 lun 0: SCSI3 0/direct fixed naa.50014ee60409ed8f sd0: 953869MB, 512 bytes/sector, 1953525168 sectors sd1 at scsibus1 targ 1 lun 0: SCSI3 0/direct fixed naa.50014ee604099ed2 sd1: 953869MB, 512 bytes/sector, 1953525168 sectors ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 0 int 18, version 1.0, legacy support ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 0 int 17 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "
Re: dhclient expects IPv4 address in dhclient.conf
Am 2. Mai 2018 16:24:50 MESZ schrieb Janne Johansson : >2018-05-02 16:06 GMT+02:00 Marc Peters : > >> Hi misc, >> dhclient hates me. I would like to prepend an IPv6 nameserver in the >> dhclient configuration on my router when connecting to my ISP, but >> dhclient gives me following error: >> >> em1: /etc/dhclient.conf line 17: expecting IPv4 address. >> em1: prepend domain-name-servers "::1" >> em1: ^ >> dhclient.conf ist plain simple: >> ~ $ grep -v "#" /etc/dhclient.conf >> >> supersede host-name "router"; >> >> prepend domain-name-servers 127.0.0.1; >> >> prepend domain-name-servers "::1"; >> >> Is this intended? >> >> >Seems common on other dhcpd's too: >https://lists.isc.org/pipermail/dhcp-users/2012-May/015511.html This looks like a server issue and fixed in the meantime, otherwise the Windows Clients won't get any v6 nameservers, as they don't get it from the RAs. My issue is with dhclient setting something in /etc/resolve.conf. -- Sent from my cell phone
Re: dhclient expects IPv4 address in dhclient.conf
On Wed, May 02, 2018 at 04:24:50PM +0200, Janne Johansson wrote: > Seems common on other dhcpd's too: > https://lists.isc.org/pipermail/dhcp-users/2012-May/015511.html > ah, the option has a different name for IPv6 nameservers. Does the base dhclient recognize these different options, or do i have to give isc-dhcp-client a try for this?
Re: dhclient expects IPv4 address in dhclient.conf
On Thu, May 03, 2018 at 10:31:27AM +0200, Janne Johansson wrote: >Since manpage doesn't mention v6 namespace at all, I'd wager you would >have to >run something else to pick up v6 resolvers. Yeah, that's right. Maybe, i stick to v4 resolvers for now or add it by hand, when i reboot it.
Re: dhclient expects IPv4 address in dhclient.conf
On Thu, May 03, 2018 at 12:05:40PM +0200, Paul de Weerd wrote: > Stick a v6 recursor in /etc/resolv.conf.tail. When dhclient updates > /etc/resolv.conf, it'll append the contents of /etc/resolv.conf.tail > to it and you will have your v6 resolver availble that way. You could > even ignore the v4 nameserver and use your manually configured > nameservers only. See resolv.conf(5). > > The only thing I don't think is possible with base tools is having > your v6 recursor listed *before* the dhcp offered recursor. > > Cheers, > > Paul 'WEiRD' de Weerd Thank you for your answers. Actually, i would like to keep them as backup, when doing upgrades or the bind package is not working as expected. I will take a deeper dive into resolv.conf to have a look. I thought, that an /etc/resolv.conf.head file would do the trick, but it seems to be ignored on OpenBSD.
Re: pkg_add with packages created by ports
On Wed, May 09, 2018 at 01:08:49PM +, Mik J wrote: > Thank you Martijn for this quick answer.So should I do something likeexport > TRUSTED_PKG_PATH=/usr/ports/packages/amd64/all/ More or less, yep. That's not done by default because you should make sure which packages you built yourself, traceability being important. You could also sign your own packages, which isn't that hard to do, though generally not that useful, especially since you can install them on the network thru a safe protocol (scp:// urls)
Re: Viewport for man.openbsd.org -- readability on phones
On Wed, May 16, 2018 at 12:26:10AM +0200, Solene Rapenne wrote: > > x...@dr.com writes: > > > The "viewport" meta tag significantly improves readability and > > usability on my phone when I add it to http://man.openbsd.org pages: > > See no offence here, I wonder what is the context leading to read man > pages on a phone? Happened just monday, got students checking some stuff about some system functions and showing the documentation to me on their phone during recess. In that specific case, it was more practical for them than lugging the laptop outside.
Re: Viewport for man.openbsd.org -- readability on phones
On Tue, May 15, 2018 at 10:51:43PM +0200, Ingo Schwarze wrote: > Hi, > > x...@dr.com wrote on Tue, May 15, 2018 at 07:47:45PM +0200: > > > The "viewport" meta tag significantly improves readability and > > usability on my phone when I add it to http://man.openbsd.org pages: > > > > [meta name="viewport" content="width=device-width, initial-scale=1.0"] > > There is no way i will use that. > > It is not defined in any standard. As someone pointed it out, it is in a proposal, improves things on several devices, and is harmless on others. You quite well know that the web evolves by practice first, and standardization later. We are talking about something that's currently already written, will likely become a standard in some months, and helps using tools. Why resist ?
Re: pledge violation in firefox-60 on snapshots
On Wed, May 16, 2018 at 08:41:17AM +, Stuart Henderson wrote: > On 2018-05-16, William Orr wrote: > > Clicking the password field will consistently cause that tab in firefox > > to crash with a pledge violation (calling fork): > > > > firefox[75379]: pledge "proc", syscall 2 > > firefox[99617]: pledge "proc", syscall 2 > > firefox[89996]: pledge "proc", syscall 2 > > firefox[29564]: pledge "proc", syscall 2 > > firefox[58111]: pledge "proc", syscall 2 > > firefox[97980]: pledge "proc", syscall 2 > > firefox[37363]: pledge "proc", syscall 2 > > > > Is anyone else seeing something similar? I've repro'd this in safe mode > > with add-ons disabled. I'm runnning a snapshot as of 3 days ago with > > firefox from packages. > > > > % pkg_info firefox > > Information for inst:firefox-60.0 > > > > Following is a full dmesg. Let me know if there's other info that I can > > provide. There are other firefox pledge violations in there, but I have > > no indication that they're related. > > The Firefox port currently includes some experimental pledge code, > see https://marc.info/?l=openbsd-ports&m=152623658627250&w=2 for > information about debugging and a way to disable it without > recompiling. > >From what I've seen, I'm reasonably sure the experiment should be turned off for now, while landry fixes the most obvious bad cases that various people have reported, then turn it back on for finer-grained issue. More reports of the same thing are useless/counter-productive. We're reaching the point of diminishing returns where it takes longer to answer emails/classify failures into "already known/new"... ... which is a recipe for issues to fall between the cracks, because people WON'T report new issues, or they will be dismissed as the same as something that's already known... BTW, if you're supposed to start dbus BEFORE firefox, that's cool, but then the firefox code should be tweaked to display "please start dbus" instead of the "helpful" error message "firefox crashed in a pledge violation (proc)".
Re: Viewport for man.openbsd.org -- readability on phones
On Tue, May 22, 2018 at 06:35:17AM +0300, li...@wrant.com wrote: > For younger UNIX users, the real reason is technical limits of hardware then. > > https://en.wikipedia.org/wiki/Punched_card#IBM_80-column_punched_card_format_and_character_codes > https://en.wikipedia.org/wiki/Characters_per_line#History > > People tend to forget quickly historic evolution is the only reason there is. The actual "readability limit" is around 60 signs for variable-width fonts, that's what you use in typography, conventionally, to decide whether you want two columns text or one column. Longer than that, it becomes for your eyes to reset to the correct start of line. I suspect that somewhat larger text on screen with fixed width fonts has a somewhat bigger threshold, nobody knows exactly which, the cursor probably helps a bit. 80 looks like a good compromise.
Re: build and ports mismatching ?
On Fri, May 25, 2018 at 07:51:15AM +, Stuart Henderson wrote: > That is at least detected by package tools and more easily fixed :) The package tools err on the side of caution because we've been burnt too many times. There is often whining about it from other developers because sometimes it's a pain to keep everything in synch, but it saves the ass of end users.
protection fault trap with OpenBSD 6.3
idle10 45748 454035 0 0 7 0x40014200idle9 54073 393691 0 0 7 0x40014200idle8 87089 365014 0 0 3 0x40014200idle7 97616 177114 0 0 7 0x40014200idle6 39223 228216 0 0 7 0x40014200idle5 27490 337203 0 0 7 0x40014200idle4 7984 105880 0 0 7 0x40014200idle3 4166 275780 0 0 3 0x40014200idle2 99281 400787 0 0 3 0x40014200idle1 10472 350367 0 0 3 0x14200 bored sensors 57340 225566 0 0 3 0x14200 netlock softnet 18261 38185 0 0 3 0x14200 bored systqmp 30844 512458 0 0 3 0x14200 bored systq *96641 425212 0 0 7 0x40014200softclock 74313 24593 0 0 3 0x40014200idle0 1 294427 0 0 30x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper Typing "boot reboot" didn't work and i had to power reset the machine after waiting several minutes. I would really like to move forward with my setup to 6.3 and get the advantage of the speed gains in recent releases. You can find a dmesg at the end of this mail. If you need more information, i will be happy to provide. Best, Marc -- dmesg: OpenBSD 6.3 (GENERIC.MP) #3: Fri May 18 00:06:26 CEST 2018 r...@syspatch-63-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 34306961408 (32717MB) avail mem = 33260150784 (31719MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xbfbdb000 (180 entries) bios0: vendor HP version "P71" date 07/01/2015 bios0: HP ProLiant DL360p Gen8 acpi0 at bios0: rev 2 acpi0: sleep states S0 S4 S5 acpi0: tables DSDT FACP SPCR MCFG HPET SPMI ERST APIC SRAT BERT HEST DMAR PCCT SSDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT acpi0: wakeup devices PCI0(S5) IPT1(S5) IPT2(S5) IPT3(S5) IPT4(S5) IPT5(S5) IPT6(S5) IPT7(S5) IPT8(S5) PCI1(S5) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimcfg0 at acpi0 addr 0xc000, bus 0-255 acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 4 (boot processor) cpu0: Intel(R) Xeon(R) CPU E5-2643 v2 @ 3.50GHz, 3492.07 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN cpu0: 256KB 64b/line 8-way L2 cache acpihpet0: recalibrated TSC frequency 3491602665 Hz cpu0: smt 0, core 2, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE cpu1 at mainbus0: apid 6 (application processor) cpu1: Intel(R) Xeon(R) CPU E5-2643 v2 @ 3.50GHz, 3491.60 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 3, package 0 cpu2 at mainbus0: apid 8 (application processor) cpu2: Intel(R) Xeon(R) CPU E5-2643 v2 @ 3.50GHz, 3491.60 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 0, core 4, package 0 cpu3 at mainbus0: apid 16 (application processor) cpu3: Intel(R) Xeon(R) CPU E5-2643 v2 @ 3.50GHz, 3491.60 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 0, core 8, package 0 cpu4 at mainbus0: apid 18 (application processor) cpu4: Intel(R) Xeon(R) CPU E5-2643 v2 @ 3.50GHz, 3491.60 MHz cpu4: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,
Re: Programming for OpenBSD
On Wed, May 30, 2018 at 11:41:00PM -0400, Kevin Burke wrote: > Hey guys, fell asleep waiting for a point.
Re: chromium and firefox - myths and facts?
On Mon, Jun 11, 2018 at 01:28:04PM +0200, Marko Cupa�? wrote: > Hi, > > over last few years, I got an impression that OpenBSD project seem to > favour Chromium over Firefox. For example, in: > > https://www.openbsd.org/papers/BeckPledgeUnveilBSDCan2018.pdf > > "We know it's right when we can do chrome." > "[...]chrome - the stuff we use frequently" > > I don't understand neither browser's code. However, current propaganda > that reaches me goes along the lines "Firefox is made by non-profit > organization with users' freedom in mind, while Chromium is made by > for-profit organization for the purpose of extraction of users' > personal information". I trust OpenBSD project and it's users more than > big vendors' pitches, so I'd like to ask: > > Is the above untrue? Am I, as a user, more vulnerable to security and > privacy violations using Firefox than Chromium on OpenBSD? > > Or is this question off-topic, as OpenBSD cares about technical > correctness of the code in regard to overall security of a computer > system, not outcome of users voluntarily running technically correct > code, even when it compromises their personal security? Chrome is a relative newcomer to browser land, and it was designed from the start from a security point of view, so it got a headstart there. The guys running the https part of google, even if we don't always agree with them, tend to try and make things more secure. Adam Langley's blog is fairly interesting. Niels Provos has done some nice work on the malware sites discovery part. It's been my understanding that firefox is finally catching up. Namely, they've put a reasonably secure architecture in place. And they are getting rid of their old large extension language to try and use the same architecture as chrome. The gap is much smaller than it was a year ago. In short, I feel that most of chrome's focus is on making things reasonably secure (as far as confidentiality and attacks go) so that people trust the browser, whereas firefox's focus is waaay more dispersed. Competition is good.
Re: sgtty.h
On Mon, Jun 11, 2018 at 05:05:02PM +0200, Pau wrote: > Hello: > > I am trying to compile a very old piece of software, supermongo, on -current. > > The first complain I get from gmake is that > > get1char.c:26:14: fatal error: 'sgtty.h' file not found > #include > ^ > 1 error generated. > *** Error 1 in devices (Makefile:5 'get1char.o') > > > My first guess is that it's been removed from current because it was a > very old thing and maybe with security holes. What would be a > workaround? I guess that quite a few codes still need that? Old bsd-style tty. You'll have to replace it with stuff from termios. In the ports tree, games/nethack/3.4 still has (unused) old sgtty code...
Re: Enabling ngx_http_addition_module on OpenBSD?
On Thu, Jun 28, 2018 at 10:26:12AM +0300, Özgür Kazancci wrote: > I don't want to build Nginx from source. I cannot do that - it's a > production server. > If this server is that important, that you can't afford the downtime for a restart (to load the new binaries), you should consider a loadbalancer and a second nginx, which you can update. If you update the other, the loadbalancer should recognize and don't forward any traffic. If you don't have machines for this, you could even do it on the same machine. Setup a local loadbalancer and two nginx instances to loadbalance. If the hardware dies, you will have your downtime anyways. But remember: Every downtime is your maintenance window ;). hth, Marc
Re: "Cannot allocate memory" error when memory is enough
On Tue, Jul 03, 2018 at 05:31:22PM +0800, Nan Xiao wrote: > Hi all, > > Greeting from me! > > I am running OpenBSD 6.3, and don't know from when, loading some > binary will prompt "Cannot allocate memory": > > $ egdb > ksh: egdb: Cannot allocate memory > > $ cmake > ksh: cmake: Cannot allocate memory > > But the memory seems enough: > $top > .. > Memory: Real: 57M/1365M act/tot Free: 2546M Cache: 925M Swap: 0K/4103M > .. > > I try to use "ktrace/kdump" tool, but can't find something special: > .. > 21881 ktrace NAMI "/usr/local/bin/egdb" > 21881 ktrace RET execve -1 errno 12 Cannot allocate memory > .. > > Could anyone give some clues? Thanks very much in advance! > Best Regards > Nan Xiao Check your limits. ulimit -a from the shell will tell you what's wrong. you might also need to brush up on login.conf and get your user into a different class.
reminder: -current
If you want to run -current packages, *you must run a -current base snapshot*. In particular, there have been a *ton* of commits to the package tools over the last two months. Quite a few new-fangled features, which are pervasive in the ports tree, rely *heavily* on stuff that wasn't there 2 months ago, and wasn't working properly two weeks ago. If you mix-and-match, too bad. You lose.
Re: cannot get re(4) to use 1000baseT
On Wed, Jul 18, 2018 at 04:27:45PM +0200, Jan Stary wrote: > This is 6.3-current on and amd64 PC (dmesg below), using > > re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL > (0x2c80), msi, address 50:e5:49:36:ec:0d > > as the NIC. With a hostname.re0 that says > > inet 192.168.11.3 255.255.255.0 > > it gets configured fine, but only uses 100baseTX. > Now that I got me this 1000Mbps switch, I would like to have 1000baseT. > > Why is it that the autoselect chooses 100baseT > when both the NIC and the switch it is connected to > are capable of 1000Mbps? > > When I change the hostname.re0 to > > inet 192.168.11.3 255.255.255.0 192.168.11.255 media 1000baseT > > (and run 'doas sh /etc/netstart re0'), it becomes > > re0: flags=8843 mtu 1500 > lladdr 50:e5:49:36:ec:0d > index 1 priority 0 llprio 3 > groups: egress > media: Ethernet 1000baseT (none) > status: no carrier > inet 192.168.11.3 netmask 0xff00 broadcast 192.168.11.255 > > and indeed, I lose all conectivity. > > Is anyone seeing the same? > Is there something obvious I am missing? > > All I found on this was this old thread: > http://openbsd-archive.7691.n7.nabble.com/Forcing-re-driver-to-1000baseT-no-connection-4-4-release-td79375.html > > Jan Got a similar one running up until 6.2, when i switched to a intel dualport without any problems. As the other two said, check the cable. Both devices need to have the same media settings, ie autoneg turned on or off. If you just turn it off on the card, the switch maybe doesn't get it right and disables the port. If you turn out the autoneg on the card, do so on the switchport, too. The most common error is a broken cable or a "special" cable from a vendor with only 4 cable cores for 100MBit without pins 4/5 and 7/8. hth, marc
Re: How to implement CARP master/backup with IPv6 RAs from OpenBSD firewall pair?
On Thu, Jul 26, 2018 at 04:57:09PM -0400, Martin Gignac wrote: > Hi, > > How does one implement a redundant OpenBSD firewall pair with IPv6? > > With IPv4 I would use CARP to have one of the boxes be the > master/active while the other one is backup/standby. But with IPv6 I > want to use Router Advertisements so that hosts on the internal > network can use SLAAC for IPv6 address autoconfiguration. Therefore > hosts will receive RAs from both OpenBSD boxes and set both as > possible default GWs in their routing table. > > In that case, how do I get the internal hosts to send all traffic to > the "primary" firewall? I've configured the CARP interface on the box > with IPv6, but the RAs are still sent from both boxes (master and > backup) so the RA-configured hosts don't end up using the IPv6 CARP > VIP at all and I seem to end up with possible asymmetric firewall > flows. > > Thanks, > -Martin rtadvd will only start on the master, because the interface has to be active. With ifstated, you can automate this (starting, stopping). I don't know, if rad is also dependent on the interface, but once you have the ifstated in place, you would just need to change the name of the daemon and restart ifstated. hth, Marc
Re: lsof alternative for listing open files?
On Thu, Aug 09, 2018 at 06:29:04PM -0500, Edward Lopez-Acosta wrote: > Hi Ingo, > > I was looking to port bleachbit, system cleanup tool, to OpenBSD and one > function is to make sure certain files are not in use before it proceeds. An > example would be cache files by a browser which would need closed. > > Beyond that though it was more of an educational exercise on my part as I > continue becoming familiar with OpenBSD and its workings. > > Edward Lopez-Acosta > > On 8/9/18 6:17 PM, Ingo Schwarze wrote: > >Hi Edward, > > > >Edward Lopez-Acosta wrote on Thu, Aug 09, 2018 at 05:41:04PM -0500: > > > >>I am aware of fuser and fstat but these seem to only give me inodes. > >>Is there an equivalent to the Linux application `lsof`? So, how is this actually a problem for the case at hand ? Is bleachbit so badly designed that it can't be made to work with fstat output ? If I understand your problem correctly, bleachbit is going to build a list of files it wants to remove, then try its best to check whether these files are actually in use by the system. There, inode/devno information is exactly what you need. You just need to coerce bleachbit into pairing that information correctly.
Re: make(1) and multiple outputs
On Fri, Aug 31, 2018 at 09:23:33AM +0200, Kristaps Dzonsons wrote: > Short: is there a way to manage multiple outputs from a single command > with OpenBSD's make(1)? > > Longer story. I have a site that generates a few hundred articles using > sblg(1). Each output article is indexNNN.html, which depends upon every > input indexNNN.xml. So a change to any indexNNN.xml must result in > rebuilding all indexNNN.html using a single command. > > In GNU make, I can use the pattern substring match to effect this: > > all: index001.html index002.html > > index001%html index002%html: index001.xml index002.xml > sblg -L index001.xml index002.xml > Our make is perfectly happy generating several targets with one rule. The only thing we're actually missing wrt % is suffixes rules with multiple results. See any Makefile that generates .h and .c file from .y, for instance lib/libkeynote/Makefile a line like: k.tab.c k.tab.h: keynote.y keynote.h signature.h $(YACC.y) $(YACCFLAGS) ${.CURDIR}/keynote.y looks exactly like what you want. If you need to generate a fairly long list, .for loops and variables ought to help you...
Re: how to install perl modules w/ dependencies that mix packages & CPAN
On Fri, Aug 31, 2018 at 05:52:57PM -0700, Jonathan Thornburg wrote: > What's the "OpenBSD way" to install Perl modules which don't exist > as packages? > > The usual Perl idiom for "install module foo & all of its (recursive) > dependencies" is "cpan install foo", but this fetches all dependencies > from CPAN, ignoring any OpenBSD packages which may exist. What I'd like > is something like "cpan install foo", but with the semantics that for > each dependency, if there's OpenBSD package in /etc/installurl which > is the same module version as the latest CPAN version, then install > the OpenBSD package instead. Is there a utility already around which > does this? Nope, we don't have this kind of thing so far. One small problem being that the cpan semantics for dependencies are less stringent than OpenBSD's, so you can't really distinguish between BUILD and RUN depends. The only automated tool dealing with cpan we have is the GSoC work from Giannis Tsaraias, portgen
Re: make(1) and multiple outputs
On Mon, Sep 03, 2018 at 12:14:45PM -0900, Philip Guenther wrote: > On Mon, Sep 3, 2018 at 5:23 AM Marc Espie wrote: > > > Our make is perfectly happy generating several targets with one rule. > > > > The only thing we're actually missing wrt % is suffixes rules with > > multiple results. > > > > See any Makefile that generates .h and .c file from .y, for instance > > lib/libkeynote/Makefile > > > > a line like: > > > > k.tab.c k.tab.h: keynote.y keynote.h signature.h > > $(YACC.y) $(YACCFLAGS) ${.CURDIR}/keynote.y > > > > looks exactly like what you want. > > > > Classically, a rule like that doesn't mean one invocation will generate > both targets, but rather that the same recipe can be invoked for each > target (with different values for $@, etc). In default single-job mode (no > -jN) this works out fine as after the first invocation 'make' will notice > the second file is already up-to-date, but with -jN some makes could decide > to build both of the targets at the same time and invoke yacc twice, > possibly resulting in truncated/corrupted output files. > > Does our make have some logic in the -jN handling to detect and prevent > that, Marc? Philip, is that a rhetorical question ? You know quite well it does. There's code that looks at the target line for presence of $@, to desambiguate multiple targets rules from "macro-like" behavior, and the other targets get locked out while one target is built, so that in effect all targets get updated at once. Oh, and it's documented in the man page RTFM. It was actually somebody from NetBSD (not remembering who) who pointed out that make extended description in POSIX changed at some point to actually allow for sane behavior wrt multiple targets. > Otherwise, the workaround has been as Geoff noted: have all the target > files depend on a timestamp file which has the real recipe and > prerequisites. That's still recommended for GNU make users when there's no > reasonable set of patterns that can match the generated files. People > occasionally pine for the SunOS 4.x 'make' feature of "targ1 + targ2 [+ > targN...]" functionality, but it's not a great syntax and no one has done > the work. I used to think so before the above changes were pointed out to me.
Re: Downloadable CIDR network calculator
On Tue, Sep 11, 2018 at 11:59:04AM -0600, Andrew wrote: > > FWIW: a small network calculator without a python dependency is already > in packages. > > $> pkg_info ipcalc > Information for inst:ipcalc-1.4p0 > > Comment: > small network calculator > > Description: ipcalc is a small tool that operates on IPv4 networks. It > can operate in one of four modes: network describing, netmask > describing, finding or splitting. > > Maintainer: The OpenBSD ports mailing-list > > WWW: https://github.com/pyr/ipcalc If you need IPv6 functionality, there's sipcalc in packages without any extra dependencies.
Re: unix hosting
On Fri, Sep 14, 2018 at 11:00:04PM -0300, Friedrich Locke wrote: > Dear OBSD friends, > > right now i am hosting my site within geekisp. There i provided with a unix > shell, using openbsd. > > I am in need to change my hosting provider, may some here suggest an obsd > hosting service that besides email, web (with php), mysql DBMS and unix > shell ? > > Of course, i am not looking for free service, just paid. > > Thanks in advance. There is OpenBSD Amsterdam https://openbsd.amsterdam. They provide OpenBSD VMs, so you would need to do the configuration of the services on your own. hth, Marc
Re: PF possibly causing weird SSL issues ?
On Tue, Sep 18, 2018 at 09:02:23PM +, Tim Jones wrote: > My PF is simple as follows (there is no NAT here, its fully routable) : > match in all scrub (no-df random-id) > block drop > set block-policy drop > set syncookies always > pass from to any flags S/SA modulate state (pflow) > Can you try your setup with a default pf.conf (you can find it in /etc/examples). If this works, then try adding the rules you've got one by one to see, if and which one is causing your troubles. hth, Marc
Re: Pkg_add
On Mon, Sep 17, 2018 at 03:33:06PM +0200, Johan Mellberg wrote: > Den sön 16 sep. 2018 kl 09:40 skrev Solène Rapenne : > > > > Le 2018-09-16 03:33, Michael Ayres a écrit : > > > Thanks to everyone who has replied in helping me. I have read up on > > > the man pages and I understand what I need; it is: > > > > > > 1) I want to install some packages on OpenBSD 6.0 which I have > > > operational on a Parallels VM on my precious MacBookPro High Sierra. > > > > are you using 6.0? If so, it's no longer supported and packages are not > > available anymore. > > Sure they are, but it can depend on the mirror. See for example > http://ftp.eu.openbsd.org/pub/OpenBSD/6.0/packages/i386/. It's a very bad idea anyway, especially security-wise, but also we switched to clang as a base compiler since, so there have been a lot of improvements. and bug-fixes. and issues fixed. There is no LTS on OpenBSD, by design. Security improvements move too much for that to make any sense. Upgrade. *especially* on 32 bit architectures with the cramped address space.
Re: Latest snapshot pkg_add issue
On Sat, Oct 06, 2018 at 09:27:47AM -0400, Ken M wrote: > I just installed the latest snapshot and when I run a pkg_add it doesn't find > anything as it is trying to look in 6.4 for packages. > > $ uname -r > 6.4 > > Not sure if this is an issue in the latest snapshot or I stupidly missed some > information. It's looking in the not yet there release folder for 6.4. You can use -Dsnap to get snapshot packages. hth, Marc
Re: pkg_add exit status reporting
On Tue, Oct 09, 2018 at 02:12:48PM -0700, Greg Steuck wrote: > Hi Marc, > > I was trying to automate an installation script around pkg_add > <https://github.com/google/syzkaller/blob/master/tools/create-openbsd-gce-ci.sh#L33>[0] > and noticed some cases where error reporting and/or documentation could be > improved. In particular, I want to have an "unattended" mode with a simple > way to check that all my package installations were successful. So far I > can't seem to do better than grepping pkg_add output. E.g. > > ci-openbsd$ doas pkg_add foobar; echo $? > https://cloudflare.cdn.openbsd.org/pub/OpenBSD/6.4/packages/amd64/: no such > dir > Can't find foobar > 0 > > Thanks > Greg > > 0) Known issue. Will get fixed eventually :( grep syslog messages instead, pkg_add/delete records everything it installs/deletes.
Re: Libreoffice package missing in i386 tree
On Mon, Oct 22, 2018 at 10:03:44AM +0200, Peter Hessler wrote: > Packages for i386 are finalized and are uploaded to the mirrors. What > you see, is what was built. > > > On 2018 Oct 22 (Mon) at 08:15:18 +0300 (+0300), Kihaguru Gathura wrote: > :Hi, > : > :Is the LibreOffice package in the i386 tree expected for OpenBSD 6.4? > :not listed the mirrors so far. > : > :Kihaguru > : BROKEN-i386=undefined refs to operator new/delete in libuno_cppuhelpergcc3.so (since 27-aug-17) seems like nobody found/looked for a solution since then. Sorry. -- Marc
Re: Benchmarking kernel, userland and Xenocara build processes
On Mon, Oct 29, 2018 at 08:11:03AM +0200, Jyri Hovila [Turvamies.fi] wrote: > Hi, > > just for the record, and to inform others who may still be at loss regarding > this matter: when compiling stuff (particularly Big Stuff, such as the > userland) on an OpenBSD machine with several CPU cores, it's important to > pass the '-j ' argument to the make command, in order to > benefit from the (much) reduced compiling time. > > It would probably make sense to add a tip to the Building the system from > source FAQ and/or the release man page. > > I feel so, so newbie... =P This assumes everything is parallel-make safe. It didn't use to be, and I'm pretty sure make release is still not parallel safe on all architectures... The number of jobs in make is NOT that straightforward either. You'll have to measure to figure out the best number. On high numbers of cores, going THAT high with -j is generally counter-productive...
Re: X won't start with latest snapshot as user (Solution provided)
On Sat, Nov 10, 2018 at 10:42:57PM -0600, Andrew wrote: > Personally I use spectrwm, so I can't speak for other the wm's. In my > case, all I had to do was: > > $> cp .xinitrc .xsession > $> chmod +x .xsession > > ... and it "just worked" as expected :-) You were lucky to not have something interesting in your .profile That one got me.
Re: X won't start with latest snapshot as user (Solution provided)
On Sun, Nov 11, 2018 at 09:26:32AM -0600, Edgar Pettijohn III wrote: > > On 11/11/18 12:59 AM, Marc Espie wrote: > >On Sat, Nov 10, 2018 at 10:42:57PM -0600, Andrew wrote: > >>Personally I use spectrwm, so I can't speak for other the wm's. In my > >>case, all I had to do was: > >> > >>$> cp .xinitrc .xsession > >>$> chmod +x .xsession > >> > >>... and it "just worked" as expected :-) > >You were lucky to not have something interesting in your .profile > >That one got me. > > > you weren't alone. took me a while to figure out why stuff didn't work how > it did before. :) Well, it was mostly that it happened at the exact same time the unveil bug broke doas, so for a moment I thought more shell scripts got broken. Turns out I just lost $HOME/bin from my PATH.
Re: python3 script not running as root
On Thu, Nov 15, 2018 at 09:36:45AM +0100, Markus Rosjat wrote: > Hi Martin and Daniel, > > Am 15.11.2018 um 09:24 schrieb Martin Sukany: > >Hi, > > > >you'd fix this by defining PATH variable in your crontab, or specify the > >full path to python3 interpreter instead using env. > > > as daniel also suggested I will try the the PATH crontab approach and this > is because scripts with a full path in the shebang seem to run anymore on > 6.4 6.4, or snapshot ? there was an unveil snafu with doas a few days ago.
Re: Portslist
On Sat, Nov 24, 2018 at 02:32:02PM +0100, Jan Betlach wrote: > Hi all, > > strange problem. I am running -current. I have downloaded latest ports > tree .tar.gz to /temp, then tar xzf in /usr. > All ports are where they belong (/usr/ports). > However when searching anything (make search key=package) I get > following error: > Please install portslist > pkg_add portslist > *** Error 1 in /usr/ports (Makefile:80 '/usr/local/share/ports-INDEX': > @exit 1) > > Any help is appreciated. Thank you > > Jan So why don't you read the error message and do just that ?
Re: Portslist
On Sat, Nov 24, 2018 at 07:22:09PM +0100, Jan Betlach wrote: > Because when I tried to add the portslist package, it has not been found ( > ftp.spline.de mirror) yesterday. I have tried adding it again now after > reading you message and it has been successfully installed. Ah, so your reporting was very sloppy. Mirrors do tend to get out-of-date from time to time.