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.
I want to create my own linux distro which will contain at least following :
Quote:
1. KDE gui and a Media player with MP3 support and a Movie viewer.
2. Kernel Source and gcc compiler (so that user can build custom application, driver)
3. PDF support, PPP/ADSL and network support with samba.
4. Apache web server with perl,php support and a FTP server
I have downloaded LFS 6.1 eBook from their site and Currently I am using Mandrake 10.1 Official Release and want to use this as my base system because it is working fine with my hardware. My system configuration is :
Quote:
Celeron 2.0 Ghz Processor
256 MB SDRAM
Intel 845 Chipset motherboard with Onboard Graphics (intel extreme) and Onboard Sound (AC'97).
Just start by doing everything in the Linux From Scratch book.
When you have done this you will have the most basic linux system that exists.
After that read the Beyond Linux From Scratch book.
It explains how to install and configure various aspects of a linux system ranging from basic security to graphical browsers.
I just finished my LFS-system and am now busy with BLFS-book.
Some basic advice:
* Do a lot of sanity check when the book says so
* Download a copy of the book version you are going, that way you won't have a problem when the stable version changes
* Download all archives from the LFS-website at once to make sure you have exactly the same version in the book
I wish you good luck and hope you enjoy creating your once distro as much as I have and am doing.
The book should just about give you enough knowledge to make your own distro
Quote:
Originally posted by hoes
...* Download all archives from the LFS-website at once to make sure you have exactly the same version in the book...
The book says not to do that because you'll slow down their servers. They only make them available on their site because other sites might not be carrying them anymore.
So only get the ones you can't find anywhere else.
Just make sure to get the exact versions and check the md5sums.
Being that I'm doing this right now, my suggestion is to use the LiveCD. If you read the book online, it states that you won't even need a working internet connection; just the LiveCD and an empty partition in which you plan on installing your LFS. I downloaded the .pdf 6.1 book and made sure I had the 6.1 LiveCD for my host system.
I wish you luck in whichever advice you choose to adhere to! I'm not sure if I messed up my LFS and will have to start over or if the mistakes I made while following the book are recoverable. Just be prepared to spend a lot of time working on it. I'm currently going on over a week installing this, but then again, my system specs aren't as good as yours.
Thanks for supporting and encouraging me. Brennan, I must use the LiveCD, because when I read some chaps of book, I found that I need to download approx 120 MB minimum in order to start. And here I don't have so good network connection. . So I am going to Order LFS LiveCD 6.1.
I know that it will take more and more time, also serval messups will be there. But I am eager to build my own distro and planning to give 3 hrs per day.
I just got the LFS Live CD 6.1.2 , purchased from a linux vendor. When I boot my system from disk, It starts the LFS and gave me a console. I found the /root/README and found that ino and XFCE gui is available in CD.
where the all packages are ? means in which directory, LFS packages are located so that I don't need them to download.
I located all packages source in sources directory. and Now I am on chapter 5.7. One question I have is when to remove a package source ?
I copied source folder to my LFS partition and now I am unpacking that and compiling one-by-one as per book and a hint (install-lfs-fromcd).
In book, it is given not to remove binutils-build directory, not to remove gcc-build directory in 1st pass. but what about other packages ? Can I remove source directories of other packages, once i <i> make ; make install </i> them ?
In book, it is given not to remove binutils-build directory, not to remove gcc-build directory in 1st pass. but what about other packages ? Can I remove source directories of other packages, once i <i> make ; make install </i> them ?
you can all remove the other build directory's you only have to leave them if the book tells you to.
Just follow the book word by word and you will have a shiny full working distro.
One more question , Is it required to install all packages listed in Chapter 5 ? Or can I choose what to install and what to not ?
Also It seems that in Chapter 6 again same package is compiled and installed which was done in chapter 5. What is difference in both ? is this due to chroot ?
One more question , Is it required to install all packages listed in Chapter 5 ? Or can I choose what to install and what to not ?
It is highly recommed to install all the packages from LFS,
Otherwise the build will fail.
Chapter 5 is the toolchain , a set of tools to build the LFS system. these tools will be used to build the packages in Chapter 6.
Quote:
Also It seems that in Chapter 6 again same package is compiled and installed which was done in chapter 5. What is difference in both ? is this due to chroot ?
In chapter 6 all is done in a chroot, so the host keeps clean and it uses it's own tools.
This is the base LFS system.
========================================================================
If you plan to quit with it you have to chroot again.
If you start to build remember your host system needs some packages to build the toolchain.
The tools that are needed is noted at the top of each source you are going to install it is noted as Installation depends on:
Last edited by mr_demilord; 10-14-2005 at 07:25 AM.
Thanks for being back to me. Infact I am following that hint because I am doing my LFS in shifts and keep shutting down my system. I also found it easier to create scripts rather than keep typing bunch on commands again and again to console each time I boot my system from LFS live cd.
Currently I am at topic 6.11 and Probably will complete my lfs by coming two - three days.
One question: Do you only use script for setting things up or also for installing packages?
If you use it only for setting things up when booting no harm will be done.
I however had a problem using script for building programs.
If you configure gcc for c and c++ (Chapter 5: Pass 2 Gcc) "./configure --languages=c,c++"
and put it in the script exactly as it is on internet, c++ support won't be build.
I had this problem and noticed it several packages later and had to do a lot off things over.
Originally posted by hoes One question: Do you only use script for setting things up or also for installing packages?
If you use it only for setting things up when booting no harm will be done.
I however had a problem using script for building programs.
If you configure gcc for c and c++ (Chapter 5: Pass 2 Gcc) "./configure --languages=c,c++"
and put it in the script exactly as it is on internet, c++ support won't be build.
I had this problem and noticed it several packages later and had to do a lot off things over.
So if you use scripts, be careful.
Hoes
GCC is indeed a pain in the ass to compile, it will only work if you copy past.
xorg is also known to fail in a chroot environment and there are also other packages that will fail like cups.
however the most will build succesfully.
BTW to clean some confusion, I only talked about entering the chroot environment for chapter 6.
I didnt talk about installation scripts
Last edited by mr_demilord; 10-16-2005 at 06:09 AM.
Yesterday I got my LFS system Bootable and fully working. I have also registered this to LFS site
and get counted. Now I am moving towards BLFS to expand CLI to GUI.
At this moment, I found that I have to download individual packages from different locations ( isn't there any ISO image like LFS ?), I am thinking that is it possible to use RPMs rather then packages ?
I know that LFS means to get rid of useless applications installed by other distros, but for example downloading all KDE app are sized approx 300 MB , while I have fedora , mandrake, RHL 9 disks and I think they are included in those distro in RPM format.
So can I get from there for BLFS ? If so then I must have to compile and install RPM command first. Can any one guide me for this ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.