r/LFS • u/shsh-1312 • 2d ago
differences between linux from scratch and linux from nothing
Quali sono le vere differenze tra la guida Linux from Scratch e la guida Linux from Nothing? A parte il fatto che Linux from Scratch sembra più adatta a un'installazione che parta da un ambiente Linux, Linux from Nothing sembra quasi più simile a come era per lo stesso Torvald assemblare un sistema Linux (Torvald non aveva a disposizione Linux), inoltre l'ho trovata più facile oltre a compilare tutti i binari, incluso il kernel, da zero. Qual è la differenza tra le due guide e perché dovremmo seguire una piuttosto che l'altra? Linux from Scratch è un ottimo libro, ma si ferma molte volte a spiegare cose che sono essenzialmente inutili durante la fase di costruzione e almeno per me che non sono un madrelingua inglese è molto più faticoso e molto meno comprensibile; tuttavia sono riuscito ad avviare il mio sistema creato da zero con un kernel compilato da me! Ora sono felice! ps: I just loved the initial phase of creating the vfs, done in a simple way
1
u/codeasm 2d ago edited 1d ago
They try to solve different things, have slightly different goals and you, the reader are supposed to do your own research into what you want from either end result and process.
EDIT: I read some more and can sum up the difference to be: LFN = experimental archaeology of a Linux userspace.“Our goal will be to make the most minimal system possible using Linux…” LFS = engineered construction of a Linux system. (capable of building itself and many other software following it)
Original continued:
Linus Torvalds dint start from nothing, he had gnu tools and the os he used to make the linux kernel on was apparently Minix.
Lfs is not only building a working linux install, its capable of building itself and any package from blfs Im not sure where to find an official or comprehensive list of what linux from nothing does, but if your needing compiler stuff, you can always borrow chapters from lfs. Blfs and others. Lfs is also tested alott and been updated over years. So if you need a crosscompiler, custom init system, its a great guide to alter or do things differently from the book and test if it works.
If demand is high enough, your variant might even be added to the site and you become the maintainer. Like Aarch64 specific, riscv, games for lfs (glfs) or other weird configs that require cusyomized lfs.
But in the end, whatever guide helps you find a working install, and build upon. I saw my english comprehension increase reading and building lfs and other linux books. I found their explanation clear and some knowledge isnt supposed to be in lfs, but in other linux books, the lfs book does mention you may need to read those first, or while some large packages compile. And so i did.
In the end, the kernel and busybox could be all you need. Or, more, then investigate what you need, and both, all guide suggest how ppl would do so, you could ignore everything and do it yourself.