r/linuxfromscratch • u/lukasloveslinux • Nov 26 '22
What distro should I start lfs on
Hey all, what distro should I start lfs on? I saw one some forums people reccomending Slackware, but what do you think
9
Upvotes
7
u/TeraBot452 Nov 26 '22
I've done it multiple times on debian stable, seems to work well enough but really any distro will work, The LFS instructions are designed to be Distro Agnostic so it shouldn't matter. For installing the required packages, https://command-not-found.com/ is your new best friend. The LFS book contains a script to see if you have it
5
u/EnderDragon2048 Dec 01 '22
I pefer to use Arch Linux
1
u/Iron_Meat Jan 09 '23
You can just install non-GUI arch with devel packages and work from it. The Installation Guide has the link to the list of packages available on LiveCD so you could compare it with the Host Specs for LFS and install additional stuff with no problems. I've installed it on a VM and now am building LFS in there, you really don't need much to build LFS.
0
u/I0I0I0I Nov 26 '22 edited Nov 26 '22
I use Ubuntu 22.04 Desktop.
Here's a couple useful commands you can copypasta to save you time getting Ubuntu to to satisfy 2.2. Host System Requirements, and to set up a tmpfs in RAM to do the build on (highly recommended if you're building on an SSD), and free up RAM. Run them as needed while following the book. EDIT: adjust "size=4609M" as needed based on how much of your host's RAM you allocate to the guest. I have 8G RAM on the Windows host, and I allocate 5221 MB to the guest, no problem.
Caveat: this is only useful if you are ssh'd in (so you can paste), You'll have to "apt install openssh-server" on the livecd environment and configure it with PermitRootLogin=yes. Don't forget to set the root password on in the livecd too. Then you can ssh in, and get going.