LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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

Reply
 
Search this Thread
Old 01-30-2007, 02:02 AM   #1
salakot
LQ Newbie
 
Registered: Jan 2007
Posts: 11

Rep: Reputation: 0
Successful LFS... anyone?


I'm currently working on building LFS as a school project.
And since I'm new to this, I'm only integrating 3 applications with it.

I'm sure that there are people here who successfully built an LFS.
I just would like to ask how long did it take to finish your LFS.

Also, can anybody give me tips in making my own? Thanks

--------
I'm a newbie so please be easy on me
 
Old 01-30-2007, 02:30 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Tip: read everything. Take your time - don't be afraid to try things out. If this is an assigned project, team up with someone also working on it.
http://www.linuxfromscratch.org/lfs/

The time it takes depends on your previous experience with linux and with programming. If you have none of either, it can be very confusing, and you should start your project with a regular linux to get used to it (a few days to a week) before attempting LFS.

The basic system can take hours in experienced hands. Expect to take days or weeks (sometimes it takes months to discover the one thing that was under your nose the whole time...)

You are not alone. The LFS forum and the project pages have a great deal to support a newcomer. Learn to search them for information. Read examples so you know how to ask questions which are likely to be answered. As you learn, start helping others... try finding answers to other peoples questions, you'll learn much faster that way and get a reputation in the bargain.

Oh - and don't do it on a computer that you want to use for anything else.

Above all: enjoy yourself.
Good luck.
 
Old 01-30-2007, 07:49 PM   #3
Angeliqe
LQ Newbie
 
Registered: Jan 2007
Posts: 22

Rep: Reputation: 15
I have a background in programming and have been using Linux and unix for a few years before I came accross LFS. During my first build, I found it completely unchallenging to copy and paste the commands as they all worked fine...until I forgot to do a make install after doing a make...for the package make! Just go slow. I went too fast and that's what screws you up if you miss steps.

Use a LiveCD for the build and you can be 99% sure it will go just as the book says, if you follow the instructions exactly and don't mess up. The other 1% having to do with weird hardware.

My first build took a couple of days. I had X-windows and firefox installed as well as a lot of the blfs tools. I'm now working on HLFS and it took me a week to get past chapter 5. I did try the Development version of LFS and it seems to go through chapter 5 just fine, however, for your first build, stick with stable LFS.
 
Old 01-30-2007, 11:05 PM   #4
Smax
LQ Newbie
 
Registered: Apr 2006
Location: East Texas
Posts: 19

Rep: Reputation: 0
I've built LFS three times and I'll echo what the others said. Take your time and read everything well. In fact, and especially on Beyond Linux From Scratch, read the entire page before you start with the first command. They will sometimes list the meanings of options at the bottom of the page that were not mentioned earlier.
 
Old 01-30-2007, 11:39 PM   #5
salakot
LQ Newbie
 
Registered: Jan 2007
Posts: 11

Original Poster
Rep: Reputation: 0
thanks everyone!

My host system is fedora 4.. is that fine?
the country i'm living in is a bit late in open source tech that's why it's kinda hard to find up to date open source softwares here.

Fedora 4 was the latest that i could find..

Someone please assure me that my build will be successful as long as i exactly follow the LFS book..

Thanks again..
 
Old 01-31-2007, 01:37 AM   #6
salakot
LQ Newbie
 
Registered: Jan 2007
Posts: 11

Original Poster
Rep: Reputation: 0
To All:

what are the mistakes/problems you did/had when building your LFS?

just wondering... just so that i would be cautious in not making same mistakes...
 
Old 01-31-2007, 02:21 PM   #7
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL 5
Posts: 220

Rep: Reputation: 31
As long as you follow the book and read closely you should have no problems. just be aware that on some occasions the book has examples that are locale specific so it is very important to read thoroughly. I have built LFS several times 5.1 was the most successful build i had. It usually takes 2 to 5 days for me to build a LFS system. The mistakes I usually make are forgetting to do a command so basically paying attention!

Good Luck!
 
Old 01-31-2007, 02:53 PM   #8
nifran
LQ Newbie
 
Registered: Jan 2007
Location: Indianapolis, IN
Distribution: RHEL *, Fedora *, Gentoo
Posts: 7

Rep: Reputation: 0
I suggest using their LiveCD as a host system to build from instead of Fedora.

There are a couple benefits of doing it that way - they not only provide a stable and tested build structure to start from, but also provide the exact versions of the packages and patches that you need in order to have a successful build.

Mistakes I've made:
- Too new versions of packages that they ask for. Some of the packages that they want are very depenant on the versions of other packages. Since it's your first time building, I would suggest sticking strictly to what they ask for.
- Not paying attention/skipping steps. It gets a tad repetitive with all the configures/make/make test/make installs... don't let it get to you.
 
Old 01-31-2007, 09:20 PM   #9
salakot
LQ Newbie
 
Registered: Jan 2007
Posts: 11

Original Poster
Rep: Reputation: 0
LiveCD ok!

Thanks again everyone!
 
Old 02-01-2007, 02:57 AM   #10
salakot
LQ Newbie
 
Registered: Jan 2007
Posts: 11

Original Poster
Rep: Reputation: 0
I downloaded an LFS LiveCD...
I don't know what to do next..

I think i'm sticking with FC4

Last edited by salakot; 02-01-2007 at 07:48 AM.
 
Old 02-01-2007, 05:47 PM   #11
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
you probably have cdrecord or something similar to write images to CDs, right?
 
Old 02-02-2007, 11:18 AM   #12
smurth
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Rep: Reputation: 0
If you're new to linux's world, I'd suggest you to play a bit with the command line before trying to build a lfs system. lfs is not *hard* by itself but it would be helpfull to be a little confortable with the shell.
Knowing the basic commands and ability to read shell's scripts should be a prerequisite IMHO.
You don't have to be a shell scripter to build lfs, but it'll be usefull to understand how bootscripts works; to understand what is done right after the boot.

Another thing to know is the fact that lfs doesn't provide a package managing solution. Once you've installed all the stuff, there's no easy way to go back without such a tool.
I won't tell you to use *this* or *that* but I guess you'll need something quite simple. Slackware's like distro generaly provide some quite simple but *doing the job* shell scripts. They are easy to adapt to lfs.

There's other points to take care about before switching to lfs:
  • The whole system lay on the triplet binutils - gcc - glibc.
    Choose a combination known to be stable and not too old.
  • When the need will come to upgrade one of these, you'll need to build the whole system from scratch. Be aware of it.
  • And last but not least, you should build your own kernel and test it on a working system to be sure some errors doesn't come from a bad configured one. Such errors are very underhand and a *bad* kernel can make you going mad in searching solutions to problems which are not where you could imaging they are.

Welcome to the new world of the self-made OSes
 
Old 02-03-2007, 07:16 PM   #13
jlgreer1
Member
 
Registered: Aug 2005
Location: Texas & Virginia
Distribution: LFS 7, CentOS 6, OS X
Posts: 116

Rep: Reputation: 15
I have built LFS three times. The first time the host system was Libranet 3.0. It went well but I found it easier to use the LiveCD version during the subsequent builds. The first time took over a week. The builds with the LiveCD both took approximately 2-3 days.

LiveCD version 6.2-5 is pending according to LWN.net. I intend to try another build once it is officially announced.

Jeff
 
Old 02-06-2007, 04:42 AM   #14
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
anybody use ALFS?
 
Old 02-06-2007, 09:28 AM   #15
biniou
Member
 
Registered: Feb 2007
Location: Belgium
Distribution: Ubuntu (7.04), (B)LFS (6.2), ...
Posts: 105

Rep: Reputation: 15
I also recommend using LiveCD as host system ... Just download the iso file and burn it (Nero will do it fine if you're not familiar with burning CDs with Linux), then boot on the CD ...

I took about 2-3 days to build the base system (completing the whole LFS book), and an additional 5 days to have a graphical Gnome running fine with Firefox and all ...

Something realy handy when building LFS is to have GPM and lynx properly installed (to read the book during install and perform copy/paste in console mode)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS 6.2: made mistake when going from lfs to root setup oldgeek Linux From Scratch 4 11-12-2006 09:00 PM
LFS question - lack of activity in LFS Forum nykey Slackware 4 06-05-2006 05:54 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 05:03 AM
cannot login as user 'lfs' [su - lfs] mayasedai Linux From Scratch 2 07-26-2005 06:10 AM


All times are GMT -5. The time now is 11:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration