Need help with tldrlfs?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

comfies
172 Stars 6 Forks MIT License 72 Commits 1 Opened issues

Description

Too Long; Didn't Read Linux From Scratch

Services available

!
?

Need anything else?

Contributors list

too long; didn't read linux from scratch


too long; didn't read linux from scratch.

tldrlfs is a short guide that will teach you how to build a working operating system using the Linux kernel in much fewer commands and less time than LFS. It's meant to inform the reader, but be much more straight to the point in nature. All that's needed is a little bit of time, some hardware to work on, and if you're so inclined, copious amounts of alcohol if you want a fun drinking game.


While Linux From Scratch is a great book, it provides a fair bit of unnecessary information to an end user. It is filled to the brim with information, and while that's not at all a bad thing, it is very daunting to readers who wish to only have a minimal operating system. At the bare minimum you only need the kernel and a process that runs as PID 1. That's it. Of course, readers probably want a tailored distribution to their needs. Perhaps that's a desktop, a specialized media server -- whatever the case may be, the two components previously mentioned are the greatest common denominator.

This GitHub repository is comprised entirely of README files to guide you through the bare minimum and just a little bit more to get an operating system up and off the ground.


Table of Contents -


There's only two prerequisites to begin tl;dr lfs.

(1) An already running Linux distribution to bootstrap from
(B) A storage medium to install to.

The distribution to bootstrap from does not necessarily need to be installed on anything; you can do this from a live medium if you so choose. If you're not comfortable working on real hardware or want to practice, you can always work with a virtual machine.

To prepare you storage medium you will need to partition the disk, format it, and mount it somewhere on your currently running distribution.

$ mkdir -p ./tldrlfs
$ fdisk /dev/sdX
$ mkfs.ext4 /dev/sdXY
$ mount /dev/sdXY ./tldrlfs
$ export BUILD_DIR=./tldrlfs
$ export THREADS=$(nproc || printf '%s\n' 1)

/dev/sdX
and
/dev/sdXY
refers to a device file for a storage medium. Yours may be
/dev/sdb
,
/dev/sdc
, or anything else. If you do not know the path for your device, you can use
lsblk
.
X
refers to the drive itself, and
Y
is the specific partition you wish to use.

You are not at all tied to using

ext4
as your filesystem,
fdisk
for your partitioning program, or otherwise. Keep in mind, this is a guide, not a legally binding contract. Feel free to supplement your own preferences where applicable.

Just remember: have fun!


tl;dr lfs needs help! feel free to contribute if you find something missing

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.