/r/openbsd

Photograph via snooOG

General OpenBSD community subreddit. For gaming-related discussion, visit /r/openbsd_gaming.

If you have genuine questions or concerns, you're always welcome. Tone matters.

Dicussion about OpenBSD: the free multi-platform 4.4BSD-based UNIX-like operating system focusing on portability, standardization, correctness, proactive security, and integrated cryptography.

If you have genuine questions or concerns, you're always welcome. Tone matters.

OpenBSD related links:

/r/openbsd

18,973 Subscribers

18

Will My X Hardware work on OpenBSD? If X=Nvidia, then no. Other answers inside.

First off. Your Nvidia graphics card won't work with OpenBSD except maybe as a VESA or UEFI framebuffer. No acceleration. Period. Nvidia themselves writes proprietary binary drivers for Linux and FreeBSD, but not OpenBSD. Will that change? Ask Nvidia. It's rather unlikely though.

Does OpenBSD support 3d Acceleration? Yes. As of this writing (7.6 was just released) OpenBSD has the DRM drivers from the Linux 6.6 stable branch. So it has the most up to date DRM drivers of the BSDs. As of 7.6 there's even GPU acceleration of video for AMD and Intel GPUs.

Will X random laptop work? If it's an X-series or T-series thinkpad that wasn't released as new in the last month, probably. See above about Nvidia graphics though. Will other thinkpads work? Probably. The X and T series are most popular with developers so get the most attention. I've had good success with HP ProBooks, but rock a T490 Thinkpad currently. Framework laptops tend to work too.

Will X desktop work? Probably. Try it. I've run it on any number of HP business desktops with great success. Intel graphics works great. AMD graphics should work well.

Will my X Wifi work? If it's Intel, probably. Most of the Intel chipsets support 802.11ac speeds. Even the ax chipsets should work, but only at ac speeds. Why Intel? Someone contracted stsp@ to get them working well. Other stuff, works, but may be restricted to 802.11g speeds.

Will your random temu-bought ARM board work? Who knows. Try it. arm64 RPi boards tend to work although at this time the RPi5 doesn't. It's too new and too different from the earlier boards.

There's no bluetooth support currently. Not because of security issues, but because when we last had bluetooth, it was unmaintained and a mess. If someone can come along with a decent bluetooth stack that is good, maintainable code, we'd take it. No one has stepped up so far.

HDMI audio could work but doesn't currently. Mainly because HDMI audio would get detected before regular audio and would become default audio. Most folks don't use HDMI audio though, so that change would break audio for most users and only benefit a handful.

This should cover the majority of hardware questions that keep getting asked. I'll edit it and try to keep it up to date.

2 Comments
2024/11/03
05:19 UTC

4

Equivalent luks etc

Hi guys , I am thinking about to try openbsd. I am Debian user for long time. I wonder if I can use anything like luks for fde? Also one more question - is openbsd support btrfs?

2 Comments
2024/11/02
22:21 UTC

5

Iphone usb tethering

I was told that openbsd does not support this by default for security reasons. But I have a couple of questions. 1. Is this true. 2. If so, could I buy a device to be able to do this without breaking the security of my system?

I wanna do an interesting project. I need to be able to use openbsd on a powermac g5 with iphone tethering with usb.

6 Comments
2024/11/02
16:38 UTC

9

recent intrest in OpenBSD

i'm running an nvidia rtx 3060 ti, from the research ive done, i won't have a good time, but i would like to know if i could at least run minecraft and firefox reasonably? (i plan on getting an amd card in within a year or two) and would AMD have full 3d acel and everything i expect in (gnu/)linux? and if not what would i be missing? (sorry for bad post im typing this on touch)

20 Comments
2024/11/02
15:03 UTC

3

How to install Goxel?

I've tried pkg_add goxel but it is not there. I tried "git clone https://github.com/guillaumechereau/goxel/releases/tag/v0.15.1" but that didn't work either.

Does anyone know how I can install it, if possible?

3 Comments
2024/11/02
09:27 UTC

9

upgrade from pre-7.x ...?

So yeah, I've been unattentive and now I have a box stuck on 6.9. This is what happens when a system is too reliable... 😅

Sysupgrade doesn't work, because the signatures and everything are not on openbsd.org/pub anymore. Is there any way to upgrade this box, or am I condemned to reuilding it?

15 Comments
2024/11/01
22:59 UTC

8

Simple questions about OpenBSD

Guys, I'm confused.

Help me out. I have looked through so many things for the evening, videos, manuals and so everyone has everything different and I have errors :)

  • I want to install I3wm + polybar on a freshly installed openBSD system. How do I do it? You can text me these few commands?
  • The second question is, I need to add my user to the config, right?

Thanks!

7 Comments
2024/11/01
18:00 UTC

5

apple silicon m2 install boot

How to install openbsd on apple silicon m2?

I did follow the steps with the asahi linux installer but i cant manage to start the installation from a usb or sd card. I did a dd of install76.img but cant boot. Any tip is appreciated… i want to give it a try on this hw

Thanks!

0 Comments
2024/11/01
13:34 UTC

5

Is there a way to setup unofficial bluethooth ?

Like using a Linux VM and foward the bluethooth or using the Net or Free BSD Bluethooth Stack.

13 Comments
2024/11/01
08:08 UTC

25

macppc ports 7.6 are here

fot those waiting the updated packages for 7.6...they have arrived!

thank you to the devs!

0 Comments
2024/10/31
17:56 UTC

1

Access to IPv6 addresses on the internet without changing internal network?

I have an OpenBSD router, which has served me well for many years, but I set it up when IPv6 was more of a curiosity. Now I would really like to access IPv6 servers on the internet, but I honestly quite like having my internal LAN the way it is set up right now with IPv4 addresses. Is there a simple way to keep my internal network as-is, while allowing machines on it to access outside stuff at IPv6 addresses?

My ifconfig output looks like this, so I assume am good to go ISP-wise:

ix0: flags=2a48843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF6TEMP,AUTOCONF6,AUTOCONF4,LRO> mtu 1500
lladdr 12:34:56:78:9a:bc
description: internet
index 1 priority 0 llprio 3
groups: egress
media: Ethernet autoselect (autoselect rxpause,txpause)
status: active
inet6 1234::5678:9abc:efgh:ijkl%ix0 prefixlen 64 scopeid 0x1
inet 123.123.123.123 netmask 0xffffff00 broadcast 123.123.123.255
3 Comments
2024/10/31
07:51 UTC

0

Impossible to install package with pkg_add in OpenBSD 7.6

I'm trying to install node.js (20) with pkg_add in OpenBSD 7.6, after syspugrade, it seems to working (seems to install dependencies) but in the end no package is installed...

I did pkg_check -f, removed the old node version (18) and checked the /etc/installurl file

10 Comments
2024/10/29
19:53 UTC

10

Relayd and certs

For several releases, I have been having to ...

# cd /etc/ssl
# ln -s foo.com.fullchain.pem foo.com.crt

after I perform an # acme-client -v foo.com but before I restart relayd. If I don't do this, relayd -n won't pass.

This manual step feels like I am missing something... is this an old workaround at this point? Should I be setting something in `relayd.conf' so this step can be avoided?

2 Comments
2024/10/29
03:10 UTC

3

CWM: multiple commands bound to one key

I'm currently in the process of trying to optimize my workflow with just the core system as /u/gumnos strives for, and I'm at the point where I want to wean myself off DWM and sxhkd, moving to cwm

Is there a way to bind multiple commands to one key? Example: open terminal, maximized vertically, and snapped to the left. A poor man's tiling window manager. I can really do it with 3 cwm built- in commands, and have tried all the logical things (separated by colons, semi-colons, escaped semi-colons, ...), but nothing works

I'm trying to avoid tracing through the code and/or writing a patch. TIA

14 Comments
2024/10/28
23:22 UTC

8

how to trace the kernel

Hello, I want trace the syscalls to the kernel or to the libray by the browser (firefox or chrome).
I would like to understand if it is possible to trace the calls to the SSL libraries made by the browser and which are used to encrypt the HTML. I would like to do this in order to clearly see which types of data the browser exchanges with the outside. I know that for this type of activity there are two ways. Either the Ktrace/KDUMP couple or with GCC. I would just like to have a track, but even before knowing if this is theoretically feasible.

7 Comments
2024/10/28
02:56 UTC

3

How would you handle authentication and authorization in a slowcgi app?

I have been playing around writing an app using HTML / CSS / httpd / slowcgi / awk / sqlite / shell scripts. I am wondering - how would you handle authentication and authorization in an app using that stack?

My current thoughts are:

  • Slowcgi supports TLS and http basic auth so I could use those to authenticate. Maybe combine this with timing out passwords every so often and resending a new password to the user's email.
  • I could set up a SQLite file that had user names and roles. As authorization, query to see if the user has the right role before running other logic.

I am messing around with this stack to try the idea of "write once, run forever" software i.e. software written with tools that are pretty well settled and that won't require a bunch of updates or rewrites to keep up with the tools. So I would be biased towards authentication or authorization solutions that fit in with those goals.

Do you know of any other OpenBSD tools I might want to try and use, or have any other ideas?

33 Comments
2024/10/27
02:37 UTC

22

Migrating to OpenBSD (HomePC and laptop), there are a few questions..

Hey, everybody!

A little bit of background.

A long time ago I started my journey with windows 95, then ubuntu, gentoo (long time). Then it was work and Windows again. Now I'm using Arch Linux. But in the light of the recent events of the linux community and the rights of some countries, I thought about the safety of the code, purity and freedom of the distribution. My choice is OpenBSD.

Since I'm a regular user, I have the following questions, hopefully I can find some answers here.

  1. My hobby is astronomy, are there any openbsd packages or similar (g2photo and v4l2loopback) to push canon 450d to laptop?

  2. In the future I plan to buy a more professional astrocamera, maybe there are people here with a hobby like me, and will tell me which model is better for openbsd.

  3. What does the situation look like with drivers for AMD processors and graphics cards, specifically 7800x3d and 7900xtx.

  4. Games? Pleasant but not critical, I have only 2 games are path of exile and Hunt: Showdown, which I play. I guess running it under wine won't be a problem, right?

A heartfelt thank you to everyone for your advice!

p.s. I remember long ago there were jokes about patching KDE to BSD, but as I see now there are no problems with it :-)

8 Comments
2024/10/26
19:26 UTC

5

Is Raspberry Pi 5 supported by OpenBSD 7.6?

I ask, because it is not on the official list (outdated?).

https://www.openbsd.org/arm64.html

But highly likely it should be supported (intuition).

4 Comments
2024/10/26
16:03 UTC

2

Milk-V Jupiter support?

Since the 7.6 supports the Milk-V Pioneer board now, can it be installed on a much less fancy Milk-V Jupiter? Where can I read more about that?

1 Comment
2024/10/26
12:15 UTC

5

Cannot install OpenBSD 7.6 on a virtual machine (amd64, install76.iso)

Hi everyone. Today I tried to install OpenBSD 7.6 on a virtual machine multiple times using the AMD64 installation image (install76.iso), without success.

The problem occurs while copying the file sets into the new disk. While doing so, it starts rebooting out of nowhere. This problem is present using both the BIOS and UEFI boot methods. The image's SHA256 checksum matches.

To manage my virtual machines I use virt-manager on Debian. I created the virtual machine with a 32GB disk, 2GB of RAM, and 2 CPUs. The rest of the virtual machine options is unchanged from the default configuration provided by virt-manager.

I made two screenshots. In one of them, the operating system successfully syncs disks and reboots but soon after it won't boot into the new disk (obviously). In the other, it gets stuck while syncing.

Edit (solution): The solution, as suggested by some comments, was to change the disk controller in the virtual machine from IDE to SATA on both the removable drive (install76.iso) and the internal drive. I didn't try with controllers other than SATA.

8 Comments
2024/10/25
19:37 UTC

1

Sound not working on freshly installed 7.6

Greetings, I am having problems with audio: when trying to run mixerctl, it outputs "mixerctl: /dev/audioctl0: Device not configured". Does this mean I do not have the drivers for my audio card? How can I get audio working? Thanks in advance.

2 Comments
2024/10/25
19:14 UTC

1

Anonymous CVS timeout

I tried to download the xenocara source tree via anonymous CVS using the instructions on the OpenBSD AnonCVS page and whatever mirror I try times out. Is the functionality broken, am I missing something, or doing something wrong?

Yes, I know I can get it from GitHub (which I did) but just curious if the CVS instructions are still relevant. After all, we pride ourselves on the quality of our documentation as well.

7 Comments
2024/10/25
18:43 UTC

23

Any 32 bit SPARC users out there? I'm thinking about installing OpenBSD on a SPARCstation IPX and wanted feedback.

I've used NetBSD in the past and call me crazy, but I feel like it tends to be a little bloated, particularly stock kernels. I migrated from Solaris 10 to FreeBSD for a ZFS server and really like it. That said, what kind of expectations should I have for OpenBSD on older SPARC platforms? Yes, I know this is an old and slow computer, but I'm very much into retro UNIX workstations, so yeah. I also understand 5.9 is the last release for 32 bit SPARC systems, and an older release isn't a problem, and as it won't be a production machine, I don't need the latest and greatest in security updates either.

21 Comments
2024/10/24
19:05 UTC

2

Struggling to use router as DNS server with IPv6

Hello

I'm trying to advertise my router as the DNS server for my IPv6 lan clients because my router uses DNS over TLS (DoT) to forward the requests to a provider that blocks malware, ads, adult content. This is for a home / family network.

I've tried a few things after reading the man pages for hostname.if and rad.conf but I keep getting errors. I'm not sure what to try next.

My router is configured with em0 = WAN and em1 = LAN

2 Comments
2024/10/24
17:42 UTC

5

unveil on httpd/slowcgi?

is it possible to apply unveil to slowcgi in a way so the running scripts take in a unveil listing?

i am not sure if i entirely understand unveil. if this should be a feature added or there is already some wrapper software.

for something like this

location "*.php" {
    fastcgi socket "/run/php-fpm.sock"
}

have it so that anything that hits that specific fastcgi rule to apply a unveil list to it

fastcgi socket "/run/php-fpm.sock" unveil "/path/to/unveil.list"

this way if i have multiple webapps running inside the chroot.
/www/pwnd/ will be on fire but cant see anything in /www/notpwnd/

i have a feeling it wont be to useful if hacker-skid could just spawn in a shell or something else, but if app2 has flat files or some sensitive config file and app1pwnd can only dump out continence of a file then, cant they just dump out app2's password file and reach into it?

1 Comment
2024/10/24
15:57 UTC

1

Does CWM need Colormaps installed to display coordinate/dimensions correctly?

I recently switched from DWM (with a couple modifications) to CWM, and I'm finding it quite agreeable. I have however run into a weird cosmetic issue that I would like to understand: when moving and resizing windows, only some windows display coordinates or window size (as appropriate) correctly. Some windows instead show that bit transparent if picom is active with transparency, all black if not.

Applications where it displays correctly: xterm, urxvt, xeyes, xclock, pcmanfm

Applications where it displays incorrectly: firefox, chromium, iridium, alacritty

The pattern made me suspect that more "oldschool" applications seemed more likely to make it work. I then inspected the windows with xwininfo and found a pattern: Windows where it works correctly displays something like:

Colormap: 0x20 (installed)

While windows where it does not work correctly displays something like:

Colormap: 0x800002 (not installed)

Reading around what I could find (including man XInstallColormap, and some bug reports for random things via google), I'm reaching the conclusion that this is not something I can fix locally on my system, rather something that would have to be set up in the applications themselves.

Questions: Is this correct? Am I barking up the wrong tree based on a spurious correlation? Is there actually an easy fix and I've just managed to overlook it?

System summary: Running 7.6 RELEASE, with xenodm, cwm and picom, on Intel 11th Gen laptop, integrated graphics with hardware acceleration active, a Framework 13.

0 Comments
2024/10/21
20:22 UTC

0

DWM do not working after upgrade to 7.6

When I log in with xenodm I get redirected to the login screen...

There is a way to log in CLI mode ?

Thank you for you helping ! :)

15 Comments
2024/10/20
23:36 UTC

Back To Top