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.
I'm not completely sure I understand how LFS works. I've read the website, and from what I gather, LFS is basically a customized distro that you build from the ground up. For personal use.
My dream has always been to create my own distro. Originally I was planning on basing it on something like Slackware, but was later told that LFS isn't that hard to make. About 4 or 5 hours of work.
So I guess my question is-- could I make my own distro and then turn it into something distributable? With an installer and all of that?
Also, how difficult would such an undertaking be? Would it really be 4 or 5 hours of work?
I have other distributions of linux running on my computer, so getting all of the necessary packages is only a matter of mounting the LFS partition and moving the packages into the /usr/share/src. I don't even need an internet connection.
Finally, has anybody had any sort of success doing this? It's true, I am fairly recent to linux but in the past month I have soaked up knowledge on it like a sponge and am willing to learn whatever more that is necessary.
Sure, LFS is a start really. Helps you understand how Linux works, what is required for a working OS, etc. Creating your own custom installation CD and such is up to you for your own distro.
You could probably easily create your own distro and base it off of Slackware.. lots of work though and really the only reason I see anyone in to building or making their own distro is you might want to think how yours will be different from all the others..
LFS is not a customized distribution. It's a book that teaches you how to build a Linux system from the source code of the packages you are installing.
You said something about copying packages from your existing distributions to LFS. If those are binary packages such as RPM, DEB or other formats, you can't use them. You need the source code. Unless you happen to have a source code CD with a distribution. Then you have to make sure the packages are the same versions as we use in LFS.
Yes you can distribute your Linux system if you want, install an installer program (or create your own).
Time needed to install LFS largely depends on your processing speed.
It takes about 5 hours (give or take some, I haven't time this in a while) on my P4-2.2 Ghz with 512 MB RAM.
If you install LFS for the first time you probably want to spend more time to really learn what's going on. LFS isn't primary about getting a Linux system as soon as possible. It's about teaching you the 'why' and 'how'. And along the way you can of course change to suit your own needs (it's going to be your Linux system, not ours. We just present _a_ way of doing it. Not necessarily the way _you_ should be doing it).
You can do it. That's what I'm doing. There's a hint on the LFS web site about making a LFS bootable CD. I'd recommend doing it with a newly installed, pristine LFS so you don't put unnecessary stuff on your CD.
This can be done but not as easy as a live cd "which is not possible" without a lot of work.
I use dd to copy the lfs system and then dd it to new system, There is also work involved in this as well. The new pc would have to have the same architect i.e 32 bit also there might be different hardware which would not be enabled in the kernel, but i have done it.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Originally Posted by pethead
Yes, I talk about transferring LFS between the same arhitects only.
Building my own CLFS (for ARM) is next step after LFS.
There is a lfs embedded book which works ok but uses uclibc instead of glibc which does rather limit what you can install I have been trying to build a full lfs for my pi on and off but have not yet done it I will try again later.