Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
personally, i wouldn't recommend LFS from, well...scratch. Start with an existing distro, then slowly replace each package with the source built equivalent. that's what i did anyway.
Originally posted by ugenn personally, i wouldn't recommend LFS from, well...scratch. Start with an existing distro, then slowly replace each package with the source built equivalent. that's what i did anyway.
You actually have to have an existing distro to build LFS so I guess your getting the best of both worlds.
LFS is great to start off with to learn more about the Linux OS. I recommend it to anyone who already has a distro installed, can read and follow directions and wants to learn more.
Originally posted by trickykid You actually have to have an existing distro to build LFS so I guess your getting the best of both worlds.
LFS is great to start off with to learn more about the Linux OS. I recommend it to anyone who already has a distro installed, can read and follow directions and wants to learn more.
Regards.
True. But doing it strictly the LFS-way is only practical if you have a spare machine. The existing distro is useful for creating the "1st stage" build environment. When you start working on the actual system, and if you're working on your "primary" machine, you'll be using a semi-cripped machine with only the most basic tools for the rest of the build.
I am running RH8 at the moment but I also have slackware 9.1 which I have tried,and liked .
Duncan
One more thing, a good part (IMO) of learning how to fit together a Linux OS is to understand how the init process and startup scripts work. You might want to go thru your existing distro's initscripts to get an idea of what's going on first before attempting LFS.
Originally posted by ugenn True. But doing it strictly the LFS-way is only practical if you have a spare machine. The existing distro is useful for creating the "1st stage" build environment. When you start working on the actual system, and if you're working on your "primary" machine, you'll be using a semi-cripped machine with only the most basic tools for the rest of the build.
I don't necessarily agree in the practical way for LFS is to have a spare machine. There are plenty of people who dual boot for many reasons, have multiple distro's installed, etc.
Some do LFS to learn more about Linux, some do it to create their own distro for special needs or projects and then others do it just to have their own distro how they see fit instead of installing a cluttered existing distro that installs a bunch of packages they will never use.
Actually, you don't have to have a linux distro installed already. This is how I'm doing it as we speak, using a Gentoo x86 Basic CD.... Which reminds me, I came here cause I have a problem... :-) I get sidetracked easy...
Originally posted by trickykid ...........so I guess your getting the best of both worlds.
LFS is great to start off with to learn more about the Linux OS. I recommend it to anyone who already has a distro installed, can read and follow directions and wants to learn more.
Tricky is right, everyone should make an LFS at least once, even if you don't use/keep it on your main box, do it from start to finish and keep notes on what you learned.........
easy peasy........
Distribution: Red Hat 9 or Gentoo 1.4 whatever I can get to work first
Posts: 105
Rep:
Well I installed LFS using a knoppix cd and two blank HD's of course you also have to have two cd-roms. one for knoppix and one for the sources, Took me about 4 days to get the LFS system up. Great learning experience(frustrating as all hell at points though). But sadly when i was done i had to install red hat 9 cuz of work, being as that you have to go through BLFS in order to get a X system up and running and i just didnt have the time. But even if you dont finish the system its a great project just to see how things work.
I had toyed with other distros before but decided that I couldn't stand them. Felt like I had no control. So, as a Linux n00b I downloaded an LFS Boot CD and went to town. I've learned more about Linux than ever, and everyday the learning continues.
I have X installed, along with Fluxbox, Opera, the Gimp, KDE (for software requiring it), the ZSnes emu, Xmms, etc... I'll soon be installing Gnome (or at least the parts needed for Gnome based software) and Open Office and even more.
In my opinion LFS makes a great usable permanent distro. It's not for everyone, but it's great for me.
Back on topic... If I remember right it took me (from start to complete system using X) around a week, but my memory could easily be failing me.
DuncanM,
If you are serious about LFS then I'd recommend learning to build your own kernel on another distro first. I think this might help take some of the pain away when you build LFS.
LFS is absolutely great. It took me, if I remember correctly, about a week or two. But I had slight problems installing awk(it didn't link statically).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.