8 ms·
Linux from Scratch 10.0
- johnklos 6y agoI've often wondered how one can do this. Good resource.
- cogman10 6y agoI followed it as a teenager. LFS is excellent at teaching you all the ins and outs of how linux works. As you build your own linux distro, you get a great feel for what goes into standard distros.
- giancarlostoro 6y agoThey used to have a live CD for this but not anymore. What kinda setup does anybody who does this go for? I been wanting to try LFS for a while.
- cogman10 6y agoYou just need a linux distro. I did it back in the day with mandrake linux. Probably easiest to start with ubuntu. LFS walks through isolation when you are building the system, so it doesn't really matter what you start with.
- chromedev 6y agoAt this point I'd recommend starting with Manjaro. Nothing compares to the AUR.
- Vogtinator 6y agoYou don't need the AUR for LFS.
- n0rbwah 6y agoWell, the ultimate achievement when building an LFS system is to plug it to an existing package manager so you don't have to keep updating stuff manually.
- Jaruzel 6y agoLFS works best on Unbuntu/Debian I find. The biggest issue with doing it is the time it takes. Some of the compiling can take ages, and you tend to forget you are waiting for it, and get busy with something else, only to come back 3 days later with no idea what stage you got to! My advice is to use the fastest machine you have as the host for the LFS build process - it'll take a lot of the pain away.
- rawoke083600 6y agoMandrake ! Now there is a name I haven't heard in a long time :D
- hnarayanan 6y agoRedHat + KDE! :D
- natcombs 6y agoI don’t think they intent is to use it for a daily driver OS, but rather to teach/learn how Linux works,Or at least that’s what my mentors have told me
- johnisgood 6y agoFound a typo: "gccc-10.2.0" is supposed to be "gcc-10.2.0".
- jagged-chisel 6y agoah, the GNU Crazy Compiler Collection
- rantwasp 6y agoisn’t that GCC :)))
- dang 6y agoThe project itself was discussed a couple weeks ago here: https://news.ycombinator.com/item?id=24238015 https://news.ycombinator.com/item?id=24238015 and a month before that here: https://news.ycombinator.com/item?id=23787526 https://news.ycombinator.com/item?id=23787526. If curious see also: 2019 https://news.ycombinator.com/item?id=20149111 https://news.ycombinator.com/item?id=20149111 2016 https://news.ycombinator.com/item?id=11829373 https://news.ycombinator.com/item?id=11829373 2012 https://news.ycombinator.com/item?id=4488162 https://news.ycombinator.com/item?id=4488162 2012 https://news.ycombinator.com/item?id=3677350 https://news.ycombinator.com/item?id=3677350 2011 https://news.ycombinator.com/item?id=3171448 https://news.ycombinator.com/item?id=3171448 2010 https://news.ycombinator.com/item?id=1779665 https://news.ycombinator.com/item?id=1779665
- rawoke083600 6y agoThe fact that it, got "promoted/voted" to the front-page(again) is that not in itself proof that is is valuable and still worthwhile to be submitted again ?
- chrisweekly 6y agoYou seem to think @dang is in disagreement, but by sharing the relevant previous posts, he's both supporting the new post, and helping reduce the number of kneejerk "but this was already posted" responses.
- dang 6y agoNo, it's definitely not in itself proof of that. If we went with that standard, the front page would be mostly dupes. The few most popular/sensational stories would get upvoted over and over again. And then the threads would mostly be full of complaints about the dupes. Posts about new releases by well-known projects are something of a grey area, but if you want to read a long explanation of how we treat them, one is here: https://news.ycombinator.com/item?id=23071428 https://news.ycombinator.com/item?id=23071428.
- rawoke083600 6y ago
- geertj 6y agoI never followed this but in ca 1995 I built a Linux boot / rescue floppy disk from scratch. The amount of confidence this gave me with Linux was insane, and I benefit from it to this day.
- lmilcin 6y agoI have similar experience. I did couple LFS build around 2000 and the understanding of how everything is put together profits to this day. I would suggest anybody thinking seriously about Linux (if you want to call yourself devops or SRE) to go through a full build at least once.
- 2bluesc 6y agoThis is a great resource for those building embedded systems and want to understand how everything is really put together. Did this years ago and learned a ton, that said I'd probably never do it again. Once you know, you know. And sometimes you wish you knew less.
- Abishek_Muthian 6y ago>And sometimes you wish you knew less This is how I felt when learning Go, coming from a background of OOP languages. But it was worth it.
- reticentraccoon 6y agoInteresting, what about Go made you feel that you wished you knew less and why was it worth it? (I am mostly familiar with OOP languages and not so much with Go)
- cultofmetatron 6y agoprobably because Go lacks a lot of features for abstraction that more powerful languages have. Once you've worked with generics for instance, its hard to go back to copy-pasting entire code snippets for data structures only to change a few lines here and there.
- Abishek_Muthian 6y ago@reticentraccoon Parent has answered the first part of your question. As for why Go was worth the trouble, is because of its Utility nature, it has been the perfect replacement for Python as it doesn't have performance limitations(no need to find C extensions) and I'm rolling out production applications faster than ever before with Go.
- globular-toast 6y agoBetter not learn Lisp then (do, it's worth it).
- dgfitz 6y agoWhile it isn’t LFS I’ve been building custom OS distros with bitbake/openembedded for a work project recently. I’d be curious if someone here has done both LFS and used bitbake/OE to see what their thoughts are comparing the two.
- whytaka 6y agoI am eager to try this out. As a self-taught developer, I'm in a big turtles-all-the-way-down phase and I feel learning the ins-and-outs of Linux will give me intellectual satisfaction. I would appreciate some thoughts on whether to go by the systemd route or the non-systemd route. The pros and cons.
- ghthor 6y agoDo non systemd, then do systemd
- _huayra_ 6y agoIs it possible to do the systemd book and then non-systemd? I did the systemd one a few weeks ago and I think that besides a few small affordances for some systemd quirk, the main issue was installing all the prereqs for building systemd (namely meson, ninja, which openrc probably doesn't require). They give a nifty tar command to snapshot the disk, which could help create a "fork point" for the setup. `pixz` is very helpful addition in this case (e.g. `tar -cp $LFS | pixz -9 > my_backup.tar.xz`)
- tinus_hn 6y agoIf you install to a VM most also have snapshot features you can use.
- whytaka 6y agoThank you. Could you also tell me why you suggest this? I'm genuinely curious.
- CameronNemo 6y agoI'm not sure what you mean by the ins and outs of Linux. I assume you mean the userspace plumbing rather than the kernel? In any case, I would only go the systemd route if it is what you want to learn. Otherwise just use runit -- much simpler and probably a bit easier to bootstrap. That leaves you time and energy to spend on other areas.
- mlang23 6y agoLFS and buildroot taught me a lot about how linux is build from scratch. A very valuable learning experience. Thanks to both projects for their work.
- kazinator 6y agoI put together and maintained a from-scratch embedded distro in the 2006-2010 time frame. I took a hint or two from Linux from Scratch. I introduced the idea of using quilt for applying all the patches. I've noticed more recently that OpenEmbedded and Yocto do the same thing.