Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 07-26-2005, 02:01 AM   #1
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
Quick guide to installing LFS 6.0

This guide tells you how to install a base LFS-6.0 system using nALFS the program from Automated Linux From Scratch. (but none of the BLFS program's are covered here)

Note: though this guide is made for LFS-6.0 I think it can still be applied to other versions of LFS as well.

Why use nALFS as opposed to doing it manually?

It's easier and quicker.
It's easier to reinstall (if you back up the files we'll download, create, and edit.)
You can't mess up the commands only the profile can do that.

What you'll need to know:

How to use a terminal.
How to extract files.
How to compile source packages.
How to partition your hard drive.

What you will need to get:

LFS packages and patches + libxml2-2.6.16 --Read the book in "Chapter 3. Packages and Patches"

Verifying file integrity:

Don't forget to download the md5sums and see if the checksums match. Example:
md5sum -c filename.md5sum
Host System Requirements:

linux- compiled with GCC-3.0 or higher, and
libxml2-2.6.0 or higher.

Find out what you have by doing:
cat /proc/version

(This tells you what kernel you have and what version of gcc it was compiled with)

If you don't have "gcc-3.0 or higher", or "libxml2-2.6.0 or higher" I recommend getting your distributions package (binary). If you can't find one get the source (then compile it).

If you don't have linux-, I recommend getting it from
Also, read the "Kernel compiling guide for newbies..." at

Step 1: Create partition with your host system's boot disk
Give half the hard-drive to your LFS partition. Don't mount it yet!

If you have to, don't give it a file system until your host system is completely installed.
In such a case read chapter "2.3. Creating a File System on the Partition".

Step 2: Extract and install nALFS-1.2.4

Step 3: Extract profile-LFS-6.0

Step 4: Create /root/packages directory
cd /root
mkdir packages
Then put all the LFS packages and patches + libxml2-2.6.16 and the .config file from your kernel in the /root/packages directory.

Step 5: Edit the profile
Open profile-LFS-6.0/config/general.ent
then read and make changes where necessary.

Step 6: Edit grub.xml
Open profile-LFS-6.0/config/grub.xml

Remove the <-- above <textdump> and the --> below </textdump>.
Make sure to leave the =. (Think of the = as the edge of the page)

For more help on editing it read chapter "8.4. Making the LFS System Bootable".
Don't neglect to set up your host system in there as well!

Step 7: Open a terminal then cd to your profile and do:
Then press [s] then [n]

When finished press [q] then [y]

Finally reboot

(If you edited the grub.xml right grub should give you the options to boot either LFS or your host system.)

Congratulations you have installed LFS!

nALFS Errors:

If you get an error like this:
E: Expected digest : 5158ecb10e1988ebecc3cb85dd280523
E: Found digest : 5158ecb10e1988ebecc3cb85dd280524
E: Wrong md5 digest of archive: /root/packages/blfs-book-6.0-html.tar.bz2

And you checked the md5sum after downloading it.

Edit the profile with nALFS

Go down to Unpacking press [right arrow] then Unpack [right arrow] then digest [e] then [Delete] the parts you don't need. Copy the "Found digest" and press [F5]. Go up to the package and press [s] then [n] again.

Note: when I say [Delete] I don't mean [Backspace]. Also if you press [right arrow] after going to digest, pressing [e] will take you back.

If you get an error like this:
E: Checking for /root/packages/blfs-book-6.0-html.tar.gz failed:
E: No such file or directory

And you know the package is in that directory. Then it must be named slightly differently.
(ex: blfs-book-6.0-html.tar.gz instead of blfs-book-6.0-html.tar.bz2 or BLFS-book-60-html.tar.bz2)

Edit the profile with nALFS

Go down to Unpacking press [right arrow] then Unpack [right arrow] then archive [e] then [Delete] the parts you don't need. Go to another terminal. cd to the package directory and type
ls | more
to see a list of files you may have. Then back at the first terminal type the name you think it goes by and [F5]. Go up to the package and press [s] then [n] again.
Old 08-02-2005, 03:53 PM   #2
Zenwalk Admin
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Rep: Reputation: 31
How the hell are you learn anything with this?

Automated LFS? Geez!

Can you smell the irony?

This is only for those that have built LFS a few times and don't want to bother going through the whole process again.

I would recommend that Newbies stay away from this at all costs!!
Old 08-03-2005, 01:12 AM   #3
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Original Poster
Rep: Reputation: 30
If you just read the book you will learn a lot.

If you keep failing it the manually way you might what to know for sure that it's you, and not the distro your using or something like that.

Like I said above "You can't mess up the commands only the profile can do that."


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
Quick guide on tar bograt Linux - Newbie 11 01-27-2005 05:15 PM
mplayer a quick guide aus9 Slackware 1 02-18-2004 11:37 AM
quick and dirty guide on installing GRUB markus1982 Linux - Software 1 05-26-2003 11:56 AM
quick and dirty guide on installing grub markus1982 Linux - General 0 04-10-2003 03:56 AM
Quick guide to WordStar?? stephstellar Linux - Software 3 02-19-2003 12:27 AM

All times are GMT -5. The time now is 06:04 AM.

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