Should we have a "wish me luck" thread?

If memory serves me well, I thought there was a hint for some sort of a package manager.

Thing with LFS is that the resulting system is quite barebones.

BLFS provides some nice additions, such as X and KDE, but also LibreOffice, and other niceties. However, all must be built by hand, even if you followed the hint about the “package manager” (which only keeps track of filesystem changes).

I don’t know about flatpak or appimage, but don’t these defeat the purpose of a LFS system?

3 Likes

I found this

"The ideal host for building LFS is LFS! The second best one is Slackware.

In theory you can use any distro for the build but you often need to make adjustments to the software. For example LFS requires the host’s system shell to be bash and the system awk to be gawk. Debian-based distros use dash and mawk by default.

Don’t use bleeding-edge distros like Arch, Gentoo or Debian Sid. Their compilation tools will probably be too recent. I’ve heard that Red Hat distros are not very good for LFS builds either but that’s hearsay!

There is a script in the book that tests whether your host has the correct software in the correct versions."

If that is correct, @Daniel_Phillips 's achievement in building LFS from Gentoo is quite remarkable.

I think maybe I should try from Slackware. Never been there

2 Likes

Slackware is something I’ve not tried. There’s only tarballs, no package manager with Slackware?

yes but it would help a lot :innocent:

2 Likes

OK, all of what you posted has been researched and debunked, and proven false, the best two distros for building LFS is either Gentoo or Endeavouros!!! Debian, can be, but it needs help, that being said, one really, does not use the host OS, until LFS boots to the CLI, it is best to use a live usb from either Gentoo or Endeavouros. Gentoo is preferred, just make sure it is an updated ISO.
Yes there is a script that will do a search of the PC and compare the requirements, I often just do it manually, and the script is so long it sometimes will not fit in the prompt window!!! Tell me why!!!
One starts the build from the live usb, and the reason for that, is to isolate the host OS. from experience, one mistake, and you nuke everything.
Now, I could write a book on to what and what not to do!!! I will say, even after one gets LFS to boot the CLI, no shiny new OS, onlly a blinking bash prompt, with nowhere to go, and the adventure begins!!!
PS, LFS can not build LFS, it was possible, but not now!!!

2 Likes

@ihasama
BLFS is just an extesion to LFS, the base system is LFS!!! Until one has a browser or DE, you are in need of a second PC for ssh or work from a virtual terminal from the host PC.

There are some that make that claim, and some say, Gentoo portage can be used, but with any PM, you wind up building something, that is not LFS!!!
The best PM, is either in your head or a pencil and pen and document everything.
Looking forward for you two to join in on my research!!!

3 Likes

@xahodo
It is bare bones for sure!!! I remember my first boot into a LFS CLI, where do I go!!!
Finally had to login to a ftp server and get wget installed, just to be able to start downloading and installing packages.
After I got the wget package I rebooted and started using my Gentoo virtual terminal, along with the --no-check-certificate until the make-ca package is installed.
All in the name of curiosity!!!

2 Likes

:thinking: Maybe I could wipe one SSD from my HTPC for this. It’s not a quick machine, 4 cores i5, 12gb ram but it can be on 24/7

1 Like

Regarding Gentoo you are wrong: while it is rolling release, that does not mean you automatically have the latest. However, it is possible to have the latest of everything (for those masochistically inclined).

2 Likes

I am using a 4 core i5 with 32GB of ram, it has been sufficient, installing LFS to a 120GB SSD.overkill, but it is smallest drive I have, unless I use a thumb drive.

2 Likes

I’ve had that feeling with Arch, Void and Gentoo. I like it!

1 Like

OK , I will stay with Gentoo

I assume that is so you dont mess up Gentoo with a mistake

Of course. Just like Freebsd. That IS the OS… the rest is fancy addons.

I think I would prefer to try in a VM.
How do you think I would go making 2 Linuxes in VM with a multiboot setup inside thd VM?
Then I could stop and save at any stage, and it would not matter if nuked the Gentoo host, I could make snapshots to wind back to.

Why not write an FAQ or an article?

2 Likes

And BSD. All Unix was like that once.

2 Likes

Agree,
Where does LFS get its packages from?
Are they direct from the upstream source like Gentoo?
What form are the packages in?.. are they tarfiles?
That all matters if you want to try and install a PM… it has to be compatable .

1 Like

You could try!!!

Not at this point, I also am still learning!!!

My big problem now is dealing with a Mate terminal that
does not have enough scroll line to put a script in that I desperately am in need of!!!

3 Likes

LFS uses wget to fetch packages from different servers, although blfs servers are very limited!! As for as I know the blfs servers for, North America, are located in Los Angeles and somewhere in Oregon!!!
Although the best way is to copy the URL link and use wget!!!

2 Likes

I have the same problem as you.
I cant really tie up my main machine… and my spare is an i5 with only 8Gb ram… OK for Gentoo, but not LFS I think.

I will test out making a dual booted VM.

3 Likes

That would be iffy with a VM for LFS!!! Might run LFS on bare metal, it would compile Gcc but the tests would be slow!!!
It would seem I have hijacked @ihasama theard, hope he doesn’t mind!!!

3 Likes

The original topic was… updating an old Gentoo… something we should caution against is letting any Gentoo get behind in its updates… read the thread if you want to know why.

It is a tribute to the robustness of portage, that @ihasama actually got it to update.

2 Likes

No worries! I think we are going somewhere with the LFS challenge so it’s good. My original idea for this thread was that anyone who is going to do a big change in their hardware/software could throw few lines before they start the process and people could “be part of it” by wishing luck :grin:

4 Likes

HELP!!!
In the BLFS book, chapter 3, there are some, I think, some bash scripts called
“The Bash Shell Startup Files” that I need to enter!!! The very first one “/etc/profile” file just will
not fit in my terminal without over lapping lines which makes unusable!!!
If I am unable to copy and paste this file into a terminal can it be entered manually at the
bash terminal, if so, how!!!

1 Like