106 points · by lproven · 2y ago · 47 comments
The "build.sh" system for compilation is so easy to use for compiling your own toyOS that I initially felt like I had done something wrong. Linux is a bigger, better funded, wider documented project but the overall ease of specifying output type for a boot image and what platform I was developing for was the second deciding factor for me. The first was being able to compile it (with no weird extra steps) on my Mac (pre Apple Silicon).
In undergrad it became my hackable OS of choice if I wanted to compile something for my old Mac, a server for my bike, or some incredibly niche computer I found by accident. When I had questions, I asked the IRC group. For me, it was a great introduction by practice of the different parts of an OS.
I used to think this, but leave it to me to disprove...
Had an Intel Atom board that would only boot Linux and... OpenBSD. NetBSD (and a number of other OSes) would hang when attempting to load the kernel and refuse to boot - likely due to some firmware bug.
Was it one of those cheap tablets/netbooks that shipped with fully-64-bit-capable CPU (Atom Z3735F) but with dreaded 32-bit-only UEFI firmware?
GRUB can boot NetBSD there, although it's a bit of a hassle to set up.
Edit: to add a bit more detail, I maintain a cross platform tool [1] on GitHub and require a way to build and test it in CI for several platform not natively supported by GitHub.
Currently I use cargo-cross [2] to build it from a Linux OS but this doesn’t work for running the tests.
One option I’m aware of is running a qemu VM on Linux, which is the approach taken by postgres [3].
Another option is using an external CI provider such as Cirrus who claim to have native support [4] for various *BSD.
[1] https://github.com/fujiapple852/trippy
[2] https://github.com/cross-rs/cross
That worked too, albeit not quite as we expected. We got a nightly build, rather than the latest release 124, and it pulled in some unexpected dependencies such as Python 3 and Wayland – although NetBSD doesn't support Wayland.That's a bit of an understatement. NetBSD is primarily about preserving the original Unix spirit with broad compatibility across both hardware and software. This is the antithesis of, say, Fedora. NetBSD spans a vast amount of history, supporting everything from VAX and early Sun workstations to aarch64 and amd64, and from the V7 filesystem (1979) to ZFS. It will run both early SunOS binaries and bleeding edge software.
That being said, what I appreciate most about NetBSD is the dogfooding. Many core developers use vintage hardware or ARM boards, and routinely try the releases on antiquated hardware. Since software behaves like a gas, this helps keep bloat to a minimum. So there you have it: a deliberately old-school Unix that will run modern software yet still work like in the 80s / early 90s on basically anything with a CPU and MMU.
Thus, improving on the original UNIX (more than what POSIX can do, though I dearly await the new iteration that gives us `realpath`/`readlink` and other important goodies in `sh(1)`) isn't that much of a lèse-majesté, in my eyes.
Linux wasn’t.
That is a bold statement, you obviously were not on USENET in the early 90s.
At the time I was using Coherent and comp.os.coherent was being flooded with trolls of Linux users, they were saying Linux was the best thing ever. Linux users were also trolling all other OS groups.
Not a single *BSD user posted a troll about Coherent.
It was so bad, when MWC folded, the Coherent Developers suggested people move to a BSD because they were at least respectful.
Then Linux started transitioning from a patchwork of loosely coupled replaceable components to integrated stacks in the mid-2000s, becoming ironically more and more of a corporate commodity rather than a playground for software freedom. You would need to define "the dark ages", as I understand casual users may prefer this trend, but for me, NetBSD is where the spirit remains. This is an entirely dependable, simple, hackable, grokable system and that's the way I want it to stay.
The main thing was this IDE interface that had a bug. Linux got a workaround within days or weeks.
https://en.wikipedia.org/wiki/CMD640
The BSD people told me that I should buy a SCSI card, SCSI hard drive, SCSI CD-ROM. I was a sophomore in college and I saved every penny to spend $2K on that PC and my parents paid the rest. I didn't have any money for that.
The sound card as you mentioned was another issue.
I remember software based "WinModems" but Linux had drivers for some of these. Same for software based "Win Printers"
When I finally did graduate and had money for SCSI stuff I tried FreeBSD around 1998 and it just seemed like another Unix. I used Solaris, HP-UX, AIX, Ultrix, IRIX. FreeBSD was perfectly fine but it didn't do anything I needed that Linux didn't already do.
I don't know what years you are talking about, but in the early 00s I found audio in FreeBSD with OSS to just work (if you had supported hw), especially compared to the mess that was Alsa, and the ever bigger mess that was Pulseaudio.
It took years for audio in linux to become decent.
> the elitism of the BSD world was infuriating back then.
You do have a point there.
I found it very difficult to try to get FreeBSD up and running well even ~20 years ago, and yes, up to around the Ubuntu era, the BSDs were just a bit too hardcore for me. Linux was hard enough, but one got the feeling that most of them were trying to help, trying to make stuff work and make it easier.
(All right, except Debian. There was a strong attitude of elitism in that community, too, and while traces are still there, Ubuntu has taken Debian more mainstream than any other derivative ever did. Stormix, Corel LinuxOS, Lindows, Libranet... all tried but none quite cut it. Ubuntu made Debian easy, and Debian has benefitted a lot from that, IMHO.)
I cannot imagine a better sales pitch for Linux as an operating system for people who actually want to use a working, reliable, well integrated, featureful, coherently designed, modern operating system to actually get really cool things done as opposed to people that want to endlessly tinker with a giant pile of glued-together parts.
I had a phase when I wanted to use minimal Linux distros and cobble together the individual components of my system of myself, with only what I needed and nothing more and making sure I understood how everything fit together, but I quickly realized that that's just not the way to produce a system that's actually nice to use and useful.
> ironically more and more of a corporate commodity rather than a playground for software freedom
Having an actually integrated set of system components and software stacks may make the system less modular, and so less free in some sense, but I don't think it takes away software freedom in a way that really substantially matters. FLOSS software can be tightly integrated and remain free. Especially when there is still so much modularity, and the trade-off is a much better system, which is worth it in my opinion. Also, I don't see why integrated software stocks are inherently corporate, although it is true that Linux is getting a lot of corporate funding.
> This is an entirely dependable, simple, hackable, grokable system and that's the way I want it to stay.
This desire to be able to understand absolutely everything on your system seems kind of absurd to me.
It is the primitivism, the going to live in a log cabin in the woods completely off grid using 1800s technology, of the software world — both in that the impulse to give up the benefits of the division of labor and modern society and economies, the ability to have people specialize in understanding and building things that you don't have the time to specialize in or build yourself, is just patently absurd and essentially reactionary, born out of a fear of the unknown, and because even such people find themselves inevitably depending on things that they don't fully understand or didn't fully do themselves. I guarantee you that you wouldn't be able to understand the full intricacies of all of the components on your system, including the compilers and the entirety of the kernel and all of the drivers and everything else, and that's not to mention your processor architecture or whatever.
And if your argument is that you understand the high level components and how they fit together, that is precisely as true for a system with larger components. My point is that any system beyond Forth running on bare metal is probably beyond the ability of any single person to actually understand fully and if you are okay with a certain level of abstraction that I don't see the difference.
Why is this so obvious (the first half)?
Second, most BSDs (Esepecially OpenBSD) are not really interested in "getting more users." Theo is probably the biggest example of this, he would still work on OpenBSD if he was the only person using it, because he is making the OS he wants to exist.[*]
Unlike Linux, Windows, and MacOS, BSDs aren't made to take over the world, they're made to be good operating systems.
* Edit to add: That's not to say he's not a self-righteous asshole, but that's a different discussion.
I agree. So does Linus:
https://www.cio.com/article/238985/linus-torvalds-says-gpl-w...
Also, important note: the GPL was not the original license he chose.
It changed with v0.99. Before that it was his own licence.
https://web.archive.org/web/20110721105526/https://www.kerne...
I set up a NetBSD VM (on my Macbook) that I had intended to use but there was just enough friction/lack of pkgsrc knowledge that I never made the leap.
Hopefully we won't have to wait for next major release before that support gets integrated.
It used to be that NetBSD was among the 1st (if not the 1st) to hop onto a new platform. Along with smaller OSes like some RTOS or Forth-based systems. But that hasn't been true for a long time - nowadays Linux usually gets there first.
That said: it's very impressive what NetBSD manages to do & support, given its relatively small user- and developer community. Kudoz to everyone involved!
It's like a good middle ground between Free and OpenBSD. Anyone into "minimal" linux distros might get a kick out of it.
Anyone interested should check out https://www.unitedbsd.com/ It's a bsd forum with a good number of netbsd users and a couple of developers as well.
I have no idea if some of the issues I reported with 9.3 led to those issues being fixed in 10, but I really did appreciate things like my cursor keys working in the shell, right off the boot media. ;-)