LinuxQuestions.org Member Success StoriesJust spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.
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.
LFS is not a distro - it is a cookbook recipe for installing Linux yourself, from the individual source packages.
Sounds like a lot of work? It surely is - it took me three days just to get my computer into a state where it could boot itself? But is it fun? Heck YEAH!!
Okay, but it sounds difficult, right? Actually you'd be surprised. I had more trouble once trying to install Gentoo. The instructions are very clear, and if you follow them exactly you shouldn't have many problems. The couple of problems I did encounter I quickly found solutions to by searching the LFS mailing lists. No need to ask myself.
The hardest part is the size of the job; there are so many steps to be followed. And it is a lot of compiling - you have to compile gcc and binutils three times, and glibc twice, before you can even make your first boot. But it is very satisfying. Better still, it teaches you so much about your Linux system. You really get an appreciation for the different contributions that go into a working Linux system. Best of all, at the end of it you really feel as if you own your computer. You only get the software installed that you really want. My laptop boots to a console login in a fraction of the time it did before with ANY distro!
There is a live CD you can download which includes a set of tools that are known to work that enable you to build your initial toolset. It also includes copies of all the source packages needed for the basic system, so you don't have to go and collect them all yourself.
Going on from there, there is also "Beyond Linux From Scratch" which gives you instructions on how to add a great variety of applications to your system.
I know exactly what you mean, when I started messing with Linux From Scratch, I found it to be a very educational process, and a lot of fun too. Also, when I tried to install Gentoo, I just couldn't do it, there were times when my CD drive 'forgot' what it was doing and sat idle for hours, I went to sleep, woke up, and it was on the exact same part as when I left it. I installed Slackware 11 instead, and my computer and I are very happy indeed.
When I tried to install Gentoo once, we managed to get the system to boot eventually, but when I tried to do "emerge kde" it failed on a compilation error. I thought, that isn't supposed to happen, and gave up.
By contrast, I got KDE working on LFS without a hitch. Go figure.
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
I have heard abt LFS a lot. I had some basic questions about how it works and as you seem to have just done it could you pls tell me the answers
> What are the prerequisites for LFS? My main concern is how much I have to download? Cos I am behind this stupid university firewall with 10MB download limit. I can ofcourse download from other places which I will for LFS. But is it like everytime in between setting up LFS I have to download something new. Or is there a list of softwares that is there on LFS site that I can download before even starting with LFS and then won't need to download anything else until I go to the "Beyond LFS" part?
> I am really "petrified" by you saying "i wasn't able to boot for 3 days". I run Slack 11 on my comp. Can LFS, coexist with Slack 11, during the time I am compiling everything, the "LFS won't boot" time. If during the time I try to compile and make LFS work, I need to check my mail urgent , can I restart then Check Mail in Slack and then get back to LFs by restarting again?
> Are the LFS forums as good as the LQ forums?
I know the questions aren't that clear but it was the best I could do, as I am very dense regarding LFS.
The prerequisites and host requirements are all listed in the preface of the book.
Quote:
Originally Posted by duryodhan
My main concern is how much I have to download? Cos I am behind this stupid university firewall with 10MB download limit. I can ofcourse download from other places which I will for LFS. But is it like everytime in between setting up LFS I have to download something new. Or is there a list of softwares that is there on LFS site that I can download before even starting with LFS and then won't need to download anything else until I go to the "Beyond LFS" part?
Again all in the book. For current stable the total size of packages is about 180MB, development is 191MB, and yes you are expected to download all packages and patches before cracking on with the building.
Quote:
Originally Posted by duryodhan
I am really "petrified" by you saying "i wasn't able to boot for 3 days". I run Slack 11 on my comp. Can LFS, coexist with Slack 11, during the time I am compiling everything, the "LFS won't boot" time. If during the time I try to compile and make LFS work, I need to check my mail urgent , can I restart then Check Mail in Slack and then get back to LFs by restarting again?
It should be fine until chapter 8, right at the very end where you put grub on the mbr. If you were really worried it might be sensible to ignore all grub steps in the book and use your existing bootloader to boot lfs. This way you can be sure that Slack will always boot.
Quote:
Originally Posted by duryodhan
Are the LFS forums as good as the LQ forums?
I have never been to the LFS forums but the mailing lists are worth a look, they really know what they are doing there.
I am really "petrified" by you saying "i wasn't able to boot for 3 days". I run Slack 11 on my comp. Can LFS, coexist with Slack 11, during the time I am compiling everything, the "LFS won't boot" time. If during the time I try to compile and make LFS work, I need to check my mail urgent , can I restart then Check Mail in Slack and then get back to LFs by restarting again?
The reason I couldn't boot was because I completely cleaned my machine before I started, beginning from a wiped hard disc. Therefore I used the live cd to boot from in order to build the initial tools, which I used then to build the system after chroot-ing into the mounted partition.
A less hairy approach would be to build LFS into a new partition in a machine with an existing Linux installation. The only prerequisite is that your existing Linux installation should have tools (gcc, etc) that are up to the job. If you are using a sensible distro like Slackware I expect you would have no difficulty.
This way you can happily compile away without ever screwing up your system - the only time when you have to take a leap of faith is when you come to install the bootloader. However, as the previous poster said, you could always skip this step and instead configure your existing Lilo/Grub to boot your new partition as well. This way there would be no danger - even if you totally fsck up the LFS installation, your existing installation will be unaffected.
And yes, you can reboot into Slack to check your mail. In fact you don't even have to leave Slack - a chroot-ed session in a Konsole window is all you need, leaving your existing system up and running.
Last edited by vasudevadas; 11-24-2006 at 08:32 AM.
And yes, you can reboot into Slack to check your mail. In fact you don't even have to leave Slack - a chroot-ed session in a Konsole window is all you need, leaving your existing system up and running.
I dont get this! U mean if i run the lfs on another cpu/pc right?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.