Live data from Hacker News

Linux from Scratch 10.0

linuxfromscratch.org

21–30 of 50 posts

Re: Linux from Scratch 10.0

#21
post #16

I 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.

It's not like you will be up to your neck trying to set up dozens of services in LFS, is it? I mean does the choice really matter?

Re: Linux from Scratch 10.0

#22
post #13

This 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.

lmao totally agree. I once took a operating system course on a whim. Built primitives for an mips system. Absolutely loved it but wouldn't do it again :)

Re: Linux from Scratch 10.0

#23
post #13

This 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.

I did it about 20 years ago. It was basically copy and paste. Very little explanation of why are we doing this and what are the options. That is my memory of it.

Re: Linux from Scratch 10.0

#24
post #17

Earlier quoted context omitted.

Do non systemd, then do systemd

Is 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…

If you install to a VM most also have snapshot features you can use.

Re: Linux from Scratch 10.0

#25
post #6

Earlier quoted context omitted.

You 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.

At this point I'd recommend starting with Manjaro. Nothing compares to the AUR.

You don't need the AUR for LFS.

Re: Linux from Scratch 10.0

#26
post #13

This 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.

Why you need to build OS for a new device from scratch? To quadruple efforts needed?

Re: Linux from Scratch 10.0

#27
post #6

They 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.

You 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.

LFS 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.

Re: Linux from Scratch 10.0

#28
post #13

This 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.

>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.

Interesting, 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)

Re: Linux from Scratch 10.0

#29
post #13

This 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.

>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.

Better not learn Lisp then (do, it's worth it).

Re: Linux from Scratch 10.0

#30

Earlier quoted context omitted.

At this point I'd recommend starting with Manjaro. Nothing compares to the AUR.

You don't need the AUR for LFS.

Well, 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.
Post reply on HN