šŸ’¾ Archived View for aelspire.info ā€ŗ posts ā€ŗ 2024-06-07-openbsd ā€ŗ post.gmi captured on 2024-06-16 at 11:59:45. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

OpenBSD from a Linux user perspective

āš  I would like to notice that this article is not a serious and objective review of BSD systems, but just something written for fun and meant purely for entertainment.

Iā€™ve heard about BSDs many times but never actually understood how they differ from a normal Linux distribution. And BSDs are important piece of technology, especially OpenBSD project. I think most of Linux users know what OpenSSH is, the ones who value simplicity probably is aware of doas existence. And I am personally very found of OpenSMTPD, which I use to selfhost my mail server. All of those applications are developed by The OpenBSD Project.

And there is something like BSDs being direct descendant of the one, true and original UNIX system. But who caresšŸ¤·?

So, Iā€™ve got urge to check what that whole BSD thing is, with some serious skew to check OpenBSD. But Iā€™ve heard that this project is all about security and simplicity, so I wasnā€™t sure how it handles a casual hardware: laptops with WiFi. Because of this uncertainty Iā€™ve started my adventure by checking how should I start with FreeBSD but found opinion that OpenBSD handles a casual hardware better than FreeBSD. Weird I would say? But this finding was very welcomed nonetheless šŸ˜‰. OpenBSD it seems is the way to go! I decided to do quick check of both systems and decide which one Iā€™ll check more seriously after testing what works better on my hardware.

Iā€™ve a big pile of discarded old laptops. Every single one is broken except one which is broken in different sense: Lenovo ideapad S100. This netbook was a crap when it was new, and now it is even worse šŸ˜’. The keyboard need some violent force to notice that a key is pressed but Iā€™ve found a bigger RAM stick for it: 2GiB instead of original 1GiB, so thatā€™s something. It should suffice for my test but Iā€™ll need to take under consideration, how crap this hardware is in my verdict.

OpenBSD

I installed OpenBSD first. Installation process went very smoothly. Except of one step: Automatic disk partitioning.

šŸ‘ Soooooo many partitions šŸ˜®.

Iā€™ve later read that this is for security and those partitions have different mount options (nosuid and friends), so that actually makes sense but I was surprised at first.

And sum of allocated space exceeded size of my HDD.

Wait what šŸ¤Ø?

The biggest partition ā€œcā€ was marked as unused. So Iā€™ve started digging and found that the ā€œcā€ partition is special and means the whole disk and will be always marked as unused. Sorry, but it seems like workaround for me. I like Linux convention better where sda is whole disk and sda1 sda2 and sda3 are partitions on this disk.

Rest of installation process was breeze. Nice one OpenBSD šŸ‘!

I had great time, but my laptopā€™s fan seemingly didnā€™t. It was giving its all and after reboot it started making weird sound. Iā€™ve decided to change thermal paste on CPU and something else connected to the same piece of metal.

Checking sysclt shown me that in result of my operation temperature went from 70Ā°C to 65Ā°C on idle. A little too hot for idle I would say? Iā€™ve enabled apmd and set its flag to -A whatever it means but it didnā€™t helped.

And now, who is at fault? My laptop? Or OpenBSD is doing something weird with power management šŸ¤”?

Iā€™ve decided to ignore this problem for now and check if it will solve itself.

So, after installation OpenBSD was working and started Xorg, how nice!

Butā€¦

Iā€™ve thought that fluxbox was weird at the beginning.

Iā€™ve thought that Enlightment was weird but I have been using it for some time.

My girlfriend cannot use my PC with sway on it, and she think it is weird.

But we all were wrong.

There is the pinnacle of weirdness. The true weird king: The fvmw! It seriously broke my mind. Good thing that xterm was autostarted on loginā€¦

I started clicking things randomly and found few things:

So, OpenBSD went pretty smoothly. Much better than Iā€™ve expected.

FreeBSD

Time for FreeBSD!

Installer of FreeBSD looked nicely. But there was a small issue ā€“ my keyboard wasnā€™t working! Iā€™ve decided to connect external keyboard and finish installation with it and try to solve this issue after installation. So managed to install FreeBSD. Installer was pretty nice, simpler than OpenBSDā€™s one. But FreeBSD after installation is much more minimal than OpenBSD. So no Xorg for me. You want something ā€“ you need to install it yourself.

So, back to keyboard issue.

Iā€™ve checked forum ā€“ no luck.

Iā€™ve checked mailing list ā€“ no luck.

Kayboard not worky.

So Iā€™ve bailed. Sorry FreeBSD, I havenā€™t managed to see your greatness. This laptop is probably too ancient for you šŸ˜….

Alpine Linux for comparison

So, before installing OpenBSD again Iā€™ve decided to see what this crappy laptop is capable to. And check CPU temperature. Mainly check CPU temperature. I throw Alpine Linux in data mode install ā€“ / in RAM and Iā€™ve decided to go with /home and not /var (which is the default in data mode) as real partition on HDD.

System was usable. Iā€™ve installed fluxbox and Firefox to do some check and it was passable. Not great but not too bad. Iā€™ve disabled JavaScript and surfing net was possible with this combination. Lagrange worked too.

And temperature? 45Ā°C ā€“ 49Ā°C on idle. Iā€™ve simulated some light load ā€“ 15% CPU reported by top and temperature went to 64Ā°C. Seems like issue is on both sides. 64Ā°C on such light load is not OK, but it was 65Ā°C on idle with OpenBSD and only 45Ā°C on Linux.

Ok, so Iā€™ve checked what I can expect from this hardware. Time to install OpenBSD again and try to do something on it this time.

OpenBSD again

So Iā€™ve installed OpenBSD again and was dropped to fvwm again. This time I did some light research and found some nice cwm config, which was somewhat similar to ā€œnormalā€ i3/sway. Iā€™ve installed Firefox aaaandā€¦

ā€¦it was unbearably slow.

I know that this laptop is crap but it wasnā€™t that bad on Alpine Linux.

Iā€™ve added myself to staff group, added softdep and noatime to fstab, forced Xorg to use intel driver instead of modesetting one, and forced acceleration on Firefox. And it started to work a little bit better. It was not the performance of Alpine Linux in data mode, but it was somewhat bearable.

Have I wrote how great is OpenBSDā€™s documentation? I think not.

Itā€™s really, really great! On the beginning I still tried to look for info on the web but quickly went man-only.

So, Iā€™ve found that widely-recommended softdep option in fstab does nothing at all:

Use soft dependencies on an FFS filesystem. This flag is provided for compatibility only and has no effect on OpenBSD.

Yeahā€¦

Seriously, this documentation is great. The one on the web is very outdated and web browser worked like crap on this hardware but simple man was doing itā€™s job!

OpenBSD installs applications from ports in /usr/local. And there are filesets which are somewhat read-only parts of system, with ability to patch them but I think I cannot change anything in them, this OS looks similar to immutable Linux distros for me. There is some immutable OS base but split into a few filesets, and mutable ports on top of them. I think I like it.

Fresh installation of OpenBSD is rather fully featured one, few games, xterm, 3 window managers, some Xā€™s apps, etc. Something like some really lightweight but fully-equipped Linux distro. I have mixed feeling about it. I prefer install everything by myself but I on the other hand: fileset with X11 is optional, I can not install it and install what I want from ports.

So, Iā€™ve started digging in this OS and:

There is Wayland in ports. I didnā€™t checked it as Iā€™m almost sure that mesa (which is also in ports) doesnā€™t support this hardware on required level.

Iā€™m also was very pleased that Lagrange is in ports! So, I managed to surf Gemini on OpenBSD. Great!

Default shell: ksh is similar to busyboxā€™ ash. I think itā€™s usable on its own. Bash, dash, fish, zsh and even nushell are available. So, I donā€™t think anybody will miss their preferred shell.

So far, so good. But I also found some things that I liked less:

My personal nitpick: mount always requires superuserā€¦ I donā€™t like it in Linux and donā€™t like it in OpenBSD eitherā€¦ There was option for allowing users to mount filesystem but it was removedā€¦ So no luck here šŸ˜ž.

There is a lot of things in /dev, Many, many disks, every single one with full set of partitions. I think it show everything what might be supported and not what actually was found. Totally confusing for me, I prefer Linux way.

Final Verdict

Despite of everything, I think I liked OpenBSD. Not so much to daily drive it on my PC or worktop.

But.

What I found, and what surprised me in good sense the most is that OpenBSD has excellent support for older hardware. And such old machines are really cheap now. I think this might be ideal niche for OpenBSD. If you need some really cheap computer, want it to be simple, stable and secure I think Linux might be not so great choice anymore. Debian is not very lightweight. *buntus also might have problem with really old hardware. Alpine should work, Puppy Linux probably too, but I donā€™t know anything about it, Iā€™ve just heard that it exists. And OpenBSD is interesting choice with this immutable-like design, fully-featured system just after installation and excellent support for older hardware.

Only problem is that hardware must be a little faster to offset OpenBSD performance loss in comparison with Linux.

I think I caused few brows to rise when Iā€™m writing that OpenBSD is better for older hardware than Linux and mentioning that Linux is more performant. But wait! The applications in Linux distroā€™s repos are usually compiled with a lot of features and a lot of crap and from what I found, ports in OpenBSD comes with lot of unnecessary things disabled! So they usually behaves better on OpenBSD than on Linux. I managed to observe performance loss only on web browser.

Navigation

ā†© Back to home