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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Vijay - you have a stack of posts asking questions about LFS. LFS is a system you compile specifically for your hardware, this means that the system requirements are whatever you have. If you have an old, slow pc you would compile with less intensive apps (no KDE or Gnome, for example). If you have a newer system, you would compile and install for that system.
Slackware is like Gentoo in that it is very configurable, will run on older kit and is very popular.
Initially, when I came on here over a year ago, the same happened. I asked quite a few questions, then took the plunge, learned/installed Linux. After that I remained mostly a lurker here for a long time but for occassional posts.
Yeah, I've got Slack10 on a P100/32MB but X was such a hassle that I took it off. A minimal X is doable but just not worth it. So you could get LFS to do the same except you're faced with the need to cross-compile or spend a few years on the project. Compiling just a kernel on a P100 can take what may have been up to 8 hours. (I dunno - I fell asleep both times.) Plus, LFS requires a lot of build space which you may not have on a old box. I compiled those kernels with Core, which is a bare minimum prebuilt system which then requires a kernel compile and space was tight in 812MB. I didn't have room for kernel sources and compiling with Vector, for instance.
Regarding Slack, LFS, and Gentoo - LFS is a source-by-hand distro. Gentoo is a source-by-package-management distro. It's much more automatic and I found fine-grained control harder to exercise. Granted, I probably did not invest in learning the package system to the extent I should have but that's what I didn't like about it. Learning Gentoo may *help* with all things but it mostly applies to Gentoo. Building LFS or even compiling on top of Slack is a worthwhile investment because what you learn applies to the basic universal Linux build tools without a special layer on top. And Slackware is a binary distro that's just very compile-friendly. In a weird sense, it's kind of like Core in that way. You can slap on as minimal a system as you'd like and build as much as you'd like. Or kind of like Gentoo from a stage 2 or 3 or whatever (I built mine from the ground up, so forget what stage is what).
I don't really know what you want, so I can't say which is most suited, but those are some key differences. Core or Gentoo from a certain stage or a minimal Slack will give you a fast prebuilt binary base and Gentoo from another stage or LFS will give you a purely source-built system - one 'automatically' and one 'manually'. Compiling will take longer on an old box, but *any* of these systems should run. And probably none of them would run X all that well on a very old box.
I see LFS as nothing more than an educational tool, be warned of that before you install it. If you want a system with all the speed benefits of LFS (but also most of the pain in configuring it) I recommend that you try Gentoo.
Originally posted by uman I see LFS as nothing more than an educational tool, be warned of that before you install it. If you want a system with all the speed benefits of LFS (but also most of the pain in configuring it) I recommend that you try Gentoo.
I am beginning to believe this. However, LFS is a great lerning experience. I read a part of the Gentoo manual for change today briefly. After reading LFS, Gentoo seems to be much easier. So once a user knows LFS, I feel that the Linux experience becomes a whole lot better.
Originally posted by digiot Yeah, I've got Slack10 on a P100/32MB but X was such a hassle that I took it off. A minimal X is doable but just not worth it. So you could get LFS to do the same except you're faced with the need to cross-compile or spend a few years on the project. Compiling just a kernel on a P100 can take what may have been up to 8 hours. (I dunno - I fell asleep both times.)
There is really no reason to cross-compile unless you are switching architectures completely, ie going from i386 to sparc and etc. I recently built an entire LFS 6.0 system for a Pentium II 300 by sharing the Pentium 300's hard drive via NFS, on my Pentium 4 2.53ghz system running Slackware 10. I used a Knoppix LiveCD to boot the Pentium 300 PC and setup the NFS share. There are a few hurdles such as not being able to install the bootloader remotely of course, but all in all it went well and beats the hell out of waiting for days/weeks for packages to compile. In the past I've also physically removed a hard drive, placed it in a faster PC, built the system on it and put it back without issue. You just have to be careful to not hose your host system.
Edit: Oops, I spoke too soon. The 300 and and 2.53ghz are both technically i686's...hehe. But anyway, still seems like alot less trouble to build for a different target than to spend days/weeks compiling.