LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Can I make my own distro using LFS? (https://www.linuxquestions.org/questions/linux-from-scratch-13/can-i-make-my-own-distro-using-lfs-101299/)

flamesrock 10-07-2003 01:13 PM

Can I make my own distro using LFS?
 
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.

trickykid 10-07-2003 01:20 PM

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..

Good luck..

lfslinux 10-07-2003 01:30 PM

Re: Can I make my own distro using LFS?
 
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).

lfslinux 10-07-2003 01:32 PM

Re: Can I make my own distro using LFS?
 
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).

Crazed123 10-07-2003 04:32 PM

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.

pethead 03-17-2013 08:39 AM

Is there a some instruction about to build boot LFS's CD to transfer & install my LFS to other system without repeating to rebuild LFS from zero?
http://www.linuxfromscratch.org/hint...ot-cd_easy.txt

spiky0011 03-17-2013 08:45 AM

Hi

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.

pethead 03-17-2013 08:53 AM

Yes, I talk about transferring LFS between the same arhitects only.
Building my own CLFS (for ARM) is next step after LFS. :)

spiky0011 03-17-2013 08:57 AM

I just use dd to make a copy then dd onto new machine

Keith Hedger 03-17-2013 10:39 AM

Quote:

Originally Posted by pethead (Post 4913328)
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.


All times are GMT -5. The time now is 12:47 AM.