Linux From Scratch community project

Is your VM running on Virtualbox or Gnome Boxes or Virtual Machine Manager, I wonder? I’ve found Boxes rock-solid under Debian 10 Stable and am on the verge of switching completely away from Virtualbox, sadly. Just not getting my work done with it :frowning:

Update:
I’ve experimented further with my Virtualbox Debian 10 Stable guest under Debian 10 Stable host and posted how I got best results on another thread, as I’ve been reporting my ongoing experiments there:

Further update - I’ve summarised what works best for me in this tutorial:

Happy LFS + BLFS building everyone!

1 Like

Tried with virtualbox and KVM. Going to do it on Hardware with pop as a build environment.

2 Likes

It was insanely easy on bare metal. I got mine installed dual booted with arch linux, Just the very basic system, nothing extra. It works on reboot, but I obviously have no network or anything. So I’m now in the process of chrooting back in from arch and installing all the extras.
In some ways this is more interesting that building linux itself from scratch, because now I have choices. LFS requires that you do everything the way it says… (Although I skipped grub since it was already installed in arch) BLFS is much more open. Leaves things a little more likely to break!

1 Like

Wow you’ve done it already?! That’s fantastic :slight_smile: I just don’t have the hardware to spare to try it on, so it’ll have to be VM for me!

1 Like

I don’t normally have free hardware, but I had to do a reinstall for some stuff, and figured I’d save 50gb on my hard drive just for this.
It wasn’t hard to do once I got the hang of it. This isn’t really my first rodeo, I’ve fallen off this horse a few times before! Decided this time it was going to happen.
Honestly, the actual base install wasn’t that rough. I mean. I wouldn’t recommend it to someone whose only experience with linux was like, installed pop_OS! in a VM, but if you’ve installed arch or better yet gentoo, you’ll be just fine.
On the other hand, running through Beyond Linux From Scratch so that the system is actually USEFUL, has been much more complex. Everything depends on everything else, and you have to install things, then install something else, then install the original thing again only with the new dependency included…
Hit a bit of a snag for some of it where the makes started failing and I’m not sure why. Had to quit for the night 'cos I’m going cross-eyed and seeing terminals full of scrolling text if I close my eyes…

2 Likes

@onesubtractone I started LFS as an excuse to get my shell-scripting up to scratch. When I reached the networking sections I stopped a bit to delve deeper. Then they released a new version. What I’m really keen on is BLFS for the reason that it could open the door for me to work on some FOSS projects, which is a current goal. Sound’s like you’re doing really well - inspiringly well, actually! Thanks for sharing your progress :slight_smile:

1 Like

What you just said right there is the answer to why people use systems with package management.

I read through the LFS docs with the part generally dissing packages and asking why anyone would use them when they could compile their own. And that’s the answer. Compiling stuff can be a pain in the behind if you want to use your computer to do things other than set up your computer. :laughing:

Don’t get me wrong I’ve done my fair share of compiling packages, but sometimes source won’t compile and the package works so what’s a person to do.

2 Likes

That’s very true from a user perspective. I think the first goal of LFS though, is to learn from. Developers need to be experienced with building their code to be able to target different platforms. LFS folk advocating build from code are only emphasising that there is an option to have near-complete control over one’s system by doing that, though it’s a far stretch from most users’ wants and needs, I think.

2 Likes

I don’t think I’ll be jumping away from package managers permanently any time soon. All this building from scratch stuff is fun for just messing with, but I am an old man and I don’t have the time or the patience to live like this day to day. It’s certainly an experience I don’t regret, and I think it’s a great idea for anyone just to try and see how this whole thing goes together.
But I miss my pacman!

2 Likes

I’ve been dragging my feet and looking at the release date for 9.0, looks like we’re already half-way through the release cycle. I was having a go with the previous version (8.4, not systemd version) and reached p232, section 7.5 on General Network Configuration, which I know almost nothing about, so I paused to do some learning.

I assume everyone in this group’s working on version 9.0? Systemd or non-systemd version, I wonder?

I’m going to have a crack at getting started with 9.0 (non-systemd) and see how that goes, posting updates on here from time to time. Should be relatively straightforward up to the networking section, at least, hopefully!

1 Like

Fri 06 Dec (Completed to end of section 2.2, p 14)

I’m using Debian 10.2 Stable, running Virtualbox 6.0, Debian 10.2 Stable guest VM which will act as host for LFS version 9.0, non-systemd.

Checked and installed required build software on VM host. Corrected symbolic links as required. Ran the test script to ensure ready to proceed.

1 Like

Mon 09 Dec (Completed to end of section 3.3, p27)

Created partition for LFS. Enabled auto-mounting. Exported LFS environment
variable for normal user and root in .bashrc. Used script to download all
source packages and patches.

2 Likes

So I have about a million things on my plate - but I want to do this!!!

2 Likes

We’re chatting with each other on this forum to encourage and support - so I hope you manage to find time for it :slight_smile: The release cycle is about six months, as I said, and we’re about half way through, so in another three months…!

1 Like

I’m also doing LFS non-systemd off Debian 10 in a Virtualbox VM, started last week, done virtually nothing so far because I’ve been doing Linux Academy stuff instead. I’m in the Telegram group but realised that I can’t really be bothered to use Telegram that much :slight_smile:

3 Likes

Yeah - I’m in the Telegram group as well, but it’s hard to be on Telegram often, and between log ins, I see thousands of messages I’ve missed - and I just don’t have the time to look at them!

1 Like

I meant the Linux From Scratch group that was linked in the original post, there’s only 9 members in there, but what I said is still true, and probably what you said as well except for the bit about thousands of messages :slight_smile:

2 Likes

Yeah, not quite as popular as the other destination linux telegram groups! Strange that eh?
My laptop suffered a meltdown, and I had to switch projects to “fix and improve the laptop” Luckily it wasn’t the computer I was doing LFS on, so that’s still fine.
I really want to just write a chroot script to auto chroot and mount everything for me, because I seem to keep having things come up that mean I have to put days between fixes. The actual original install took very little time, but the follow up stuff is dragging for me.
I used arch linux as the bootstrap distro, since you know, I use archlinux for almost everything these days. Maybe soon I’ll be using LFS! Who knows.
Obviously I’m on the telegram, but I keep forgetting to check it particularly frequently, so.

2 Likes

Hearing more from the guys on telegram when they complete would be fantastic encouragement - also how you’re all doing with BLFS too please!

1 Like

Fri 13 Dec (Completed to end of section 5.10, p 50)

Started building the build tools. Completed up to second pass build of GCC.

2 Likes