r/linuxquestions • u/JMcLe86 • 26d ago
Which Distro? Yet Another Distro Question
I apologize because I myself get tired of seeing questions about "what distro should I choose" etc, but I am having trouble coming to a conclusion on my own.
I have been using Linux for years, mainly Ubuntu derivatives and most recently Pop OS on both my PCs. I am also pursuing an MS in CS with a focus on operating systems, embedded systems, and real-time systems.
I am building a third PC and I want to use it, in part, to become more familiar with operating system internals. I do not know if Arch, LFS, or Gentoo would be a better distro to help accomplish this. I am leaning towards Gentoo or LFS but I would like to hear some opinions from people more knowledgeable on these distrobutions if any of you have time. The goal is to interact more with internals through regular use, not just to have a more difficult installation process.
Edit: I should probably specify that this PC is not replacing my daily driver. It is an additional PC I am building mostly from parts I have had laying around for a while. My main desktop and laptop would still be running Pop OS.
2
u/beatbox9 26d ago
Then continue to use your Ubuntu derivatives and interact more with their internals. Linux is linux; and the entire purpose of distros is to make installing software easier.
So if that is your goal, what do you hope to accomplish by changing to a different distro?
5
u/ipsirc 26d ago
1
u/CosmicFieldDrift_ 25d ago
Have you read the installation guides for each that you are considering? If not why not?
3
u/gordonmessmer Fedora Maintainer 26d ago
You'll learn more about systems internals by developing software than you will as an effect of using a distribution, so focus on the CS work.
You'll learn more about build systems by participating in package management than you will as an end-user of a distribution, so get involved and help out.
You'll learn a lot about software integration by comparing package registries like pypi or crates.io to various distribution systems. And on this point, I think it would be really instructive to compare a package like OpenSSL as offered by Gentoo, to a package in a distribution like Fedora or Debian, and compare that to the way shared components are published and consumed in the Rust ecosystem or in Go.
Most distributions make their work very hard by flattening every component to a single version and forcing humans to do the work of a dependency solver. Because that work is difficult, many distributions adopt an infrequent release cadence. Infrequent release cadences tend to mean that distributions are shipping code that's no longer maintained by its developers, and while distributions back-port *some* security patches, they typically get only a small portion of all known security vulnerabilities, and ship a lot of insecure software to end users who don't know any better because they don't use vulnerability scanners.
3
u/Dakota-Batterlation Void Linux 26d ago
I haven't tried Gentoo, but distros like Void and Arch don't necessarily expose "more" of the system's inner workings to you than a typical distro, though they do have a "DIY" nature (good for learning) when setting things up in the first place.
Arch is pretty bog-standard; if you want something more "Unix-y" and atypical, Void was started by a NetBSD dev to demonstrate the xbps build system (similar to Arch's AUR, but sandboxed and cleaner). It can optionally compile/install packages from source like Gentoo, but doesn't have USE flags. Void also lets anyone contribute to the project and update/maintain packages (great for learning without a barrier to entry).
2
u/getabath 26d ago
Why not stick with Ubuntu? You can get the work done on Ubuntu as you would Arch, etc
You said it yourself, you're familiar with Ubuntu
2
u/proverbialbunny 26d ago edited 26d ago
The advantage of rolling distros like Arch is bleeding edge system libraries. The internals are going to be pretty much the same.
Maybe go with Void Linux if you want an intro deep dive into Linux internals or honestly BSD. BSD will give you more of a deeper dive than most Linux distros will. If you want to go even deeper than those two you’ll want to do Linux From Scratch, but you probably want to work your way there, not start there.
2
u/Janky-Code 26d ago
xv6 first
In your current setup, get a linux vm going with the riscv64 packages. Then,
Read the book as you go: https://mit-pdos.github.io/xv6-riscv-book/
2
u/Lonely-Scarcity-3387 26d ago edited 26d ago
If you want a DIY distro that teaches you a lot and gives you total authorship, your options are Arch, NixOS, Gentoo, Void, and LFS.
Of those, I'd pick NixOS. You configure your perfect system for you, and get atomic updates and rollbacks with none of the usual downsides.
Say you muck about with WiFi settings to dodge a DNS issue and now you can't connect at home. Reboot, pick a previous generation, you're back online. Or you've been going down a rabbit hole and want out — pull your config from last week, rebuild, and the system is exactly as it was before the experiments.
NixOS won't match the granular control of Gentoo or LFS, but the safety nets are something else.
Where Arch and Gentoo scatter config across files and lean on third-party tools for recovery, NixOS defines the entire system in one file. That gives you reproducibility across machines and instant rollback via built-in generations.
And if you're getting a master's in computer science, using a distro that's entirely described by code is pretty enticing.
Oh yeah, and the graphical installer makes setup painless. Plus when you get REALLY good at it, one nix run command will install your whole setup on 20 minutes or less.
2
u/Forward-Scar-7050 26d ago edited 26d ago
Been running gentoo since 2008.
LFS i tried before that.
In my opinion it's a fruitful goal for learning.
What's great about it is you have another pc to research issues specially if you have network challenges.
I didn't back then and I had to print gentoo and LFS docs from uni and bring it home as I only had one pc then.
My only advantage then was I didn't have to ask which distro. I just thought cool I'd like that and go ahead and install. Fried some boot sectors along the way but. After you boot it it's still the same linux.
1
u/seismicpdx 26d ago
Ubuntu, Debian, or a BSD.
1
u/es20490446e Develops Zenned OS 25d ago
Arch, or a derivative.
1
u/Xen__Xaarn 23d ago
Fedora is better I think in this case then arch