r/linuxquestions • • 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.

4 Upvotes

21 comments sorted by

2

u/beatbox9 26d ago

The goal is to interact more with internals through regular use, not just to have a more difficult installation process.

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?

1

u/JMcLe86 26d ago

Less abstraction was the goal, but I don't know if you'd actually get something like that from LFS or Gentoo, or if it would effectively be the same as Ubuntu. Plus I'd rather avoid breaking my daily driver, considering I still need it to do work.

1

u/beatbox9 26d ago

I really don't know what you mean by "less abstraction." Which part of any debian-based / ubuntu-based distro is 'abstract'?

If this is going to be your daily driver, definitely go for a reliable distro that you can actually maintain rather than something difficult.

I personally learned much more about Linux after I stopped using Slackware and Gentoo around 20-30 years ago. Just because you are forced down a rabbit hole or troubleshooting doesn't mean you necessarily learn anything.

1

u/JMcLe86 26d ago

I have been up a while so I am probably not as clear as I need to be. I also probably should have specified this PC is not replacing my daily driver, and I will still have my main desktop and laptop running pop os.

By less abstraction I meant, for example, the update process. In Pop, I can just go to pop store and click "update all." It has a lot of added convenience that abstracts some of the workings behind the scenes, which makes it easier for the user who does not really need to know what the system is doing and only needs it to work. I realize I do not have to update as such in pop, and I do it through the CLI usually, but this is an attempt at an example of what I mean by abstract. I would like to see more of what the system is doing when I tell it to do something, and I would like to see more of the internal structure when I want to change something.

Again, I know this is still possible in Pop, but given this will be a separate system and I won't be as dependent on it being stable, I wanted to look into something more minimal and hands on by default.

2

u/beatbox9 26d ago edited 26d ago

Since you keep responding with essentially the same thing, just build your own system via LFS, or go with nixOS or Gentoo or Slackware or anything else that requires lots of deliberate user decisions. Avoid anything that was designed to be easier or allow you to reuse the decisions of others, so no Arch, no Debian, no Fedora.

1

u/CosmicFieldDrift_ 25d ago

Have you read the installation guides for each that you are considering? If not why not?

1

u/JMcLe86 25d ago

Because I am more interested in how it operates when you are using it. If I were basing the question off of installation, I already know LFS would win.

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. 

1

u/Dakota-Batterlation Void Linux 26d ago

Agreed, I've been dragging my feet on learning Net/FreeBSD because it really shows how many assumptions you make after using Linux for years. Like, I did not expect super basic commands like lsblk to be Linux-specific.

2

u/Janky-Code 26d ago

become more familiar with operating system internals

xv6 first

In your current setup, get a linux vm going with the riscv64 packages. Then,

git clone https://github.com/mit-pdos/xv6-riscv.git
cd xv6-riscv
make qemu

Read the book as you go: https://mit-pdos.github.io/xv6-riscv-book/

1

u/Dakota-Batterlation Void Linux 26d ago

Very interesting, how does it compare to e.g. Minix? Though that's only x86 (and ARM more recently).

2

u/Janky-Code 26d ago

xv6 is monolithic kernel like linux. If the eventual goal is to understand linux, xv6 can be thought of as a simplified model of the same concepts.

Minix is architecturally different because of the microkernel design. It's useful to study but I don't think it is as helpful as a foundation for understanding linux.

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