š¾ 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
-=-=-=-=-=-=-
ā 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.
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.
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 š .
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.
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.
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.