I Built Linux from Scratch
thesloth.me
I Built Linux from Scratch
1–10 of 105 posts
Re: I Built Linux from Scratch
#2Re: I Built Linux from Scratch
#3I highly recommend building an LFS. It was one of my first big personal endeavors with computers. In the article, the author says they didn't learn stuff that'll _necessarily help them in their day-to-day_, which I can echo, but I definitely learned a lot about different commands, the file structure of linux, `hier`, changing root, cross-compiling, toolchain building... it's really an awesome and fun process, and is…
Re: I Built Linux from Scratch
#4I had a lot of fun doing this. You really get a feel for the evolution of build systems -- from older software that uses automake/make to newer programs that use meson/ninja/cmake etc. It was also cool to learn how to bootstrap a bespoke set of development tools tuned for your hardware.
It took me a solid weekend to get everything built. I was able to get a basic LFS system built on a Saturday, and on Sunday I did the "Beyond Linux From Scratch" edition. At one point I got stuck trying to debug a weird interaction between systemd and PAM that took me a while to unravel. That was humbling, I thought I knew just about everything about Linux, but turns out there are large areas where I just don't have a clue.
The docs are well written and maintained, so there wasn't a lot of frustration there. Even if you're not an old hand at Linux you can likely get pretty far by just diligently following the instructions.
I struggled a lot more trying to make a decent desktop environment than I did getting the OS setup. I spent so much time trying to get a nice-looking toolbar (polybar) and basic stuff (like how patched fonts work) took me an embarrasingly long time to sort out. I also didn't know what a compositor was, or why you might want one. I enjoyed figuring out the basics of compton, which allowed me to get cool transparent backgrounds on windows[0], although I never did quite figure out how to get rounded corners.
Re: I Built Linux from Scratch
#5The "package manager" is just a shell script. The installation process[1] is entirely manual, so you control every step as you bootstrap up to building your own kernel and installing each subsystem, all the way up to compiling and running Firefox. It's pretty neat.
Re: I Built Linux from Scratch
#6Use the advanced install feature and only select the packages you need. Build the other software yourself. You can choose your own difficulty this way. You can also follow the distro's way of packaging up software (build scripts), or build it the software developer's way. The main advantages of building software yourself are:
1. You are a developer who wants to customize the software.
2. You want to practice.
3. You want to contribute to a project.
4. You want to have a better understanding of what the code does.
Slackware 15 is a modern platform to build upon.
Re: I Built Linux from Scratch
#7Re: I Built Linux from Scratch
#8I ended up using the system for a few months until it collected enough cruft that I started over with some other distro.
Re: I Built Linux from Scratch
#9I highly recommend this to anyone interested in 'computers'.
Re: I Built Linux from Scratch
#10If you need something more practical, but still challenging, try Slackware. Use the advanced install feature and only select the packages you need. Build the other software yourself. You can choose your own difficulty this way. You can also follow the distro's way of packaging up software (build scripts), or build it the software developer's way. The main advantages of building software yourself are: 1. You are a dev…