r/openbsd • • 0m ago

How to go about testing new changes under /usr/src without rebuilding the whole world?

1 Upvotes

I'm trying some pf-related changes¹ that require modifying files in /usr/src/sbin/pfctl/ and corresponding files in /usr/src/sys/net/pf*.[ch].

However, when I went to (re)build pfctl, it complained about a missing field because it was finding the original/unmodified /usr/include/net/pfvar.h file instead of the modified /usr/src/sys/net/pfvar.h file.

Is there some method that devs use to build a subset of things without rebuilding the whole world? Or do I have to kick off a "build the whole OpenBSD snapshot release image" process, then boot into that snapshot/kernel somehow to test my updated pf.conf/pfctl?

⸻

¹ The goal is to have a way to specify that any connection to a port triggers an overload and add the remote address to a table. Currently max-src-conn and max-src-conn-rate require at least one connection before they kick in and pfctl balks if I try to specify a value of 0 in pf.conf—tweaking the source for either of those so that they accept 0 as a minimum limit has a lot of snarled code because it assumes that limit=0 means we're not limiting. Adding a 3rd prohibited option seemed like the cleanest route to getting the "if you merely connect once, you've triggered overloaded" I was hoping for.


r/openbsd • • 4d ago

OpenBSD System management bus (SMBus) access via Python

17 Upvotes

Hi there.

First post on Reddit, so please be gentle. I want to access SMBus via Python, which works with the smbus3 package on Linux-based OSs. But because the /dev/i2c-0 device does not exist on OpenBSD, the smbus3 package does not work. I found out that the iic driver (https://man.openbsd.org/iic.4) can access SMBus on OpenBSD, but I don't know how to get there from Python. Is there someone that can either give some kind of translation from smbus3-based code to iic-based code or come up with a rudimentary Python package that adapts smbus3 to OpenBSD? Maybe one can call the iic functions from Python in a wrapper type way? Maybe one can generate the /dev/i2c-0 with the iic driver? Sorry, but this is far beyond my capabilites.

Cheers, tandoori

EDIT: From this post (https://www.reddit.com/r/openbsd/comments/vv6gkx/can_i_access_i2c_from_userland/), it seems like there is no userland access for iic/SMBus. Only a "kernel framework for writing drivers" (https://man.openbsd.org/iic.9) is mentioned. Or can one use exactly this framework to get a iic device for userland as the thread creator asked?


r/openbsd • • 5d ago

OpenBSD +Spectrwm

Thumbnail
gallery
87 Upvotes

Hi as you can see my former post where I, asked which wm to install my choice felt on Spectrwm why well muscle memory I am long time dwm/dwl user and this wm has long roots in OpenBSD if I am not mistaken. Here is my system finished and ready. I use nextdns unbound and pf in workstation mode. Librewolf alacritty and yt-x to watch YouTube and Darktable for work. Man it’s awesome be home again.


r/openbsd • • 5d ago

OpenBSD Mangowm

18 Upvotes

Hi
I am not a new user I just made a new account. Because Reddit being Reddit. And I have question about Mangowm on OpenBSD what is you guys experience? Or should I just stick to the good old dwm ? The reason I ask is more to try out how it works and I miss running OpenBSD.


r/openbsd • • 5d ago

i enjoy bspwm.

Post image
116 Upvotes

This is my first time using bspwm and actually it was on openbsd lol


r/openbsd • • 5d ago

Has this error been observed? Is the cause known? Boot command fails in the installer.

Post image
6 Upvotes

Hardware is a Thinkpad L420 with the latest bios and a I7-2640M. I have installed OpenBSD 8.0 on a Mac Pro 5,1 and got through it, but fauls almost immediately on this laptop.


r/openbsd • • 7d ago

first ever bsd booted on a phone? Spoiler

Post image
91 Upvotes

hello, and yes all of this is true. i think i am the first (or one of the first) person to boot openbsd on a actual phone.

some details about this setup:

phone model: asus zenfone3 (ZE520KL)

cpu: snapdragon 625

i got it working with chainloading, it's something like this: aboot → lk2nd → U-Boot → OpenBSD

currently this is working: screen and usb
currently it's not on github or any where but it will be uploaded soon.

(if any of you zenfone3 owners are reading this, here's my guide to unlock the bootloader https://github.com/proshiv85-byte/UnlockZenfone3 )


r/openbsd • • 8d ago

Dependency

Post image
15 Upvotes

When im trying to update,this pop up and say cant update. Can someone explain this to me and help me pls?


r/openbsd • • 8d ago

OpenBSD on a Thinkpad T60

14 Upvotes

Was searching around for laptops with 'taller' monitors and it looks like the T60 was the last thinkpad with a 4:3 monitor. I have an old one in the basement -- digging it out for a Sunday afternoon workout. I expect I can use it for most of daily tasks -- documents / spreadsheets and browsing (dont really care about streaming videos etc)

Anyone running on a T60 these days ?

UPDATE 11/12 - After upgrading the CPU to 64bit (T7600) I was able to install 8.0 amd64 with the packages needed. Everything "works" out of the box after the install. Will max out the RAM to 3g and if only there was way to control the fan noise......Definitely will not replace my current daily driver ...but works in a pinch and of course a head turner on the daily transit.


r/openbsd • • 8d ago

Daily driver use: practical concerns

25 Upvotes

Dear r/openbsd,

I've been using the OS since around 5.5 on a number of my servers, and I've always greatly enjoyed it. Such an amazingly awesome OS.

Recently I've been seriously considering running it as a daily driver on my Thinkpad with a Ryzen 4750U inside, but there are some practical concerns that worry me.

I would like to hear from those of you who have been running it as a daily driver for a while.

Most of the online world is web-based, so Slack, Teams, whatever, none of that should be a problem, with Firefox and Chromium in the package repos. Correct?

How do you deal with exchanging files? From what I gather reading from, and writing to, fat32/ext4 from OpenBSD, and ffs2 from Linux, is cumbersome and hacky and incomplete functionality - how do you solve the problem of flash drives, mounting the other dual-booted OS's drive to fix things, etc?

Thank you very much for giving me some perspective on this.


r/openbsd • • 8d ago

OpenBSD after one week.

101 Upvotes

Hello everyone. I'm currently using OpenBSD 8.0 on my Thinkpad T420 for about a week now. I am just LOVING how this system feels. It's just stable and polished. The only problem i had was about UVM memory envolving firefox, but i solved it myself by putting the process count on 1. I'm currently using CWM, and, honestly, i'm veeeery satisfied. The wifi just works great, hibernation and brightness are perfect. I REALLY DON'T WANT GOING BACK TO LINUX OR FREEBSD!! My daily uses on my laptop basically are:

-A browser (watching videos, reddit, chatting on forums, youtube music, reading docs...);
-A PDF viewer like Zathura;
-Terminal (currently using XTERM);
-Other simple stuff (File Manager (nnn), xclock, etc).

I loved the community too. In that first week, you guys helped me a lot on understanding the system and troubleshooting problems. Special big thank you for u/linetrace and other guys for explaining me the basis and pointing me the correct documentation. Big thx.

A screenshot of my current setup:


r/openbsd • • 9d ago

OpenBSD refuse to boot

Thumbnail
gallery
22 Upvotes

I installed OpenBSD 8.0 on this i386 machine with the sets pulled from ftp.openbsd.org. I let the default autolayout disk setup and didn't used disk encryption. When asked if I wanted X, I replied yes, and also yes when asked if I want Xenodm to launch X. First picture is the last thing I see before my screen turn off. Second picture is detail about my hardware. Note : even though the screen turn off, the power button light stay on and the fans also keep rotating. If someone could help me, it would be nice.


r/openbsd • • 9d ago

I intend to migrate to OpenBSD, but I want to confirm certain doubts I have about drivers.

20 Upvotes

After I started using FreeBSD on my PC, I wanted to use FreeBSD on my laptop, but it doesn't have Wi-Fi support, so I gave up. But a friend of mine said that OpenBSD fully supports my laptop, so I did some research:

It's a Lenovo Thinkpad E14 Gen 7 - AMD

APU - Ryzen 5 220 + Radeon 740M. From what I've read, it seems to support OpenBSD normally. Has anyone used OpenBSD on hardware with this APU?

Ethernet - Realtek RTL8168, already works on FreeBSD, and on OpenBSD as well, from what I've read, so I have no doubt it will work.

Wi-Fi (my biggest concern) - MEDIATEK MT7922, from what I understand, the mwx driver is what supports my Wi-Fi chip, but it seems it was only tested on the MEDIATEK MT7921, and it's also unclear if it's already available in OpenBSD 8.0 or only from OpenBSD 8.1 onwards.

Could someone who uses OpenBSD or follows the project more closely clarify this? Thank you for your patience!


r/openbsd • • 9d ago

iwx firmware on 8.0

13 Upvotes

I used a USB drive to get the firmware fw_update worked normally and ls /etc/firmware/iwx* does give me all the files is this a problem on 8.0?

I keep getting iwx0: could not load firmware, 35

iwx0: failed to load init firmware


r/openbsd • • 10d ago

OpenBSD 8 macppc packages

14 Upvotes

I’ve been trying to install things on OpenBSD installed on a ppc mac, but it says it can’t find the packages.

My network connection works fine so I checked the FTP server and a my surprise, there are no macppc packages. (https://ftp.openbsd.org/pub/OpenBSD/8.0/packages/ there should be a folder called powerpc)

Does anyone know why they aren’t there? Will they be back?


r/openbsd • • 10d ago

I have installed OpenBSD on my iBook G4! It's somehow slightly more usable than I thought it would be lol

Post image
202 Upvotes

r/openbsd • • 11d ago

What ThinkPad X1 Carbon Newer Gen Have Good Support Already

28 Upvotes

tl;dr see last sentence

While I've always ran OpenBSD on my personal servers I only recently moved to it as my daily driver and development machine and I ended up with a X1 Carbon Gen 7 since several blogs (especially jcs) showed it had good support.

And good support it has! Holy fuck, this is almost flawless (except for the microphone). I should have moved over from Linux years, if not decades, ago. The main thing holding me back was gaming, Docker and cloud sync.

I don't really game much anymore and I'll just buy a Steam Deck if it ever comes up again. Docker works surprisingly well in a Linux VM and the Docker client on OpenBSD. And Rclone has bisync now!

Anyway, while the Gen 7 is nice, it is not sufficient for my needs. I need more RAM and also a bit more speed (and ideally less power consumption and/or more battery, but this last point is just a nice to have).

Looking online and in this Reddit it looks like up to Gen 9 is very well supported. Gen 10 perhaps and after that it is not clear to me. (This includes the dmesgd site, which is very succinct and doesn't list everything I'm interested in.)

Are there people here running an X1 Carbon Gen 10+ where every thing "just works" like on the earlier generations?


r/openbsd • • 11d ago

Update to let Prism Launcher work with Minecraft 26.x sent to ports

Thumbnail marc.info
11 Upvotes

r/openbsd • • 12d ago

kernel panic envolving"uvm_glue.c"

Post image
20 Upvotes

so, i'm currently using OpenBSD 8.0 with CWM on Thinkpad T420 and after some hours this just happened (happened twice today). I really don't know what's happening.

(ignore the other errors)


r/openbsd • • 12d ago

Declarative configuration

22 Upvotes

I am wondering if there are projects for a declarative configuration with Openbsd (nix like)?


r/openbsd • • 12d ago

[ANN] `swupdate` utility v0.8 released

17 Upvotes

I had intended to release this important update to my swupdate utility for OpenBSD at least a week ago, but at least it's been well tested at this point:

https://github.com/morgant/swupdate-openbsd/releases/tag/0.8

This adds support for OpenBSD's new dbupdate(8) utility and ensures that it is always run before any other updates are requested/fetched.


I haven't really spread the word about this utility as it was just to scratch my own itch and the -d (download-only) option is currently useless. I have pending improvements to address that, but -- now that we yet another important tool with a specific order of operations when updating software on OpenBSD -- I feel like it has increasing utility and should get more eyes, testers, and feedback.


r/openbsd • • 13d ago

Are you running Minecraft 1.13-1.19.2 on OpenBSD?

Thumbnail reddit.com
9 Upvotes

r/openbsd • • 14d ago

Just Installed OpenBSD in my T420!

47 Upvotes

Hello to everyone! So, yesterday i installed OpenBSD 8.0 with XFCE on my ThinkPad T420 (i'm coming from FreeBSD) and i think it should be a good daily driver... I have some GREAT first impressions such as out-of-the-box brightness and lid suspension. My daily tasks consists basically in:

-Web Browsing

-Writing

-Some coding

-Reading

-Playing some games (Quake, hl1 and CS 1.6, nothing more than that)

Any tips for an beginner user? All of them would help me so much.

Which FAQ and Man Pages do you guys recommend me to read at first?

Thank You!!!


r/openbsd • • 17d ago

I2C touchpad

Post image
34 Upvotes

This is my first time using openbsd,my i2c touchpad not working,it say like on the pic,when im trying to research,someone say use -current but it not fixing the problem