This idea is interesting. I recently started a LFS project but quickly ran into I am traveling a lot right now. Any thoughts on using a virtual machine to practice while I travel? VMWare Fusion?
Show HN: Build your Linux from Scratch inside Docker with one command
11–20 of 30 posts
Re: Show HN: Build your Linux from Scratch inside Docker with one command
#12Seems to defeat the purpose of 'from scratch' if all you do is run a script. I fondly remember building linux from scratch in the early 00's and learning quite a bit about how a system is put together by doing (and troubleshooting) the steps. IIRC bootstrapping the compiler was the trickiest bit since the fedora (or maybe it was still redhat back then) gcc didn't like to play nice with its younger siblings.
What's the difference between writing x commands and hitting enter once, vs writing x commands and waiting for each command to finish? This is a good starting point for people who already know Linux and want a lean self-built system.
Re: Show HN: Build your Linux from Scratch inside Docker with one command
#13First thought was the website http://www.linuxfromscratch.org/ and book. Edit: low and behold under "License"... "This work is based on instructions from Linux from Scratch project and provided with MIT license."
Re: Show HN: Build your Linux from Scratch inside Docker with one command
#14Seems to defeat the purpose of 'from scratch' if all you do is run a script. I fondly remember building linux from scratch in the early 00's and learning quite a bit about how a system is put together by doing (and troubleshooting) the steps. IIRC bootstrapping the compiler was the trickiest bit since the fedora (or maybe it was still redhat back then) gcc didn't like to play nice with its younger siblings.
Re: Show HN: Build your Linux from Scratch inside Docker with one command
#15Re: Show HN: Build your Linux from Scratch inside Docker with one command
#16Seems to defeat the purpose of 'from scratch' if all you do is run a script. I fondly remember building linux from scratch in the early 00's and learning quite a bit about how a system is put together by doing (and troubleshooting) the steps. IIRC bootstrapping the compiler was the trickiest bit since the fedora (or maybe it was still redhat back then) gcc didn't like to play nice with its younger siblings.
What's the difference between writing x commands and hitting enter once, vs writing x commands and waiting for each command to finish? This is a good starting point for people who already know Linux and want a lean self-built system.
I've had a lot of fun with LFS, but if everything goes smoothly it is a bit pointless. When builds broke or I missed components there was an opportunity to better my understanding of the system. Experience with multiple failure modes in a safe environment - it counts for a lot.
It also forces you to learn what the dependency graph looks like and a little bit of why, which can be helpful.
Re: Show HN: Build your Linux from Scratch inside Docker with one command
#17I want to deep dive into building Linux from scratch (step by step, not via a magic script) to get intimately familiar with the OS, but wonder if I ought to invest my time in a more recent version.
Re: Show HN: Build your Linux from Scratch inside Docker with one command
#18Re: Show HN: Build your Linux from Scratch inside Docker with one command
#19Why are the docs at linuxfromscratch.org still based on 4.12 instead of 4.14? Have they just not gotten around to updating, or is 4.12 considered more widely accepted? I want to deep dive into building Linux from scratch (step by step, not via a magic script) to get intimately familiar with the OS, but wonder if I ought to invest my time in a more recent version.
Version 4.12 was from July 2017 until September 2017 (0)
Right now the main line kernel is at 4.14, but it has not changed so much that it really matters for learning Linux.
[0] https://en.wikipedia.org/wiki/Linux_kernel#4.x.y_releases