[hr:47c2ac9172]

Building LFS-6.0 with nALFS 1.2.3

[hr:47c2ac9172]


Step 1
1. Make sure you have kernel 2.6 installed and that your booted into it or else
glibc-2.3.4 will fail to build.

2. Make the /mnt/lfs dir and have it mounted on a hard drive partition in your /etc/fstab

[hr:47c2ac9172]

[hr:47c2ac9172]

Step 2
1. Download and install nALFS
http://lfs.osuosl.org/alfs/downloads...-1.2.4.tar.bz2
./configure && make && make install

2. Download the lfs-packages-6.0
ftp://mirrors.angelinacounty.net/pub...ckages-6.0.tar
mkdir /mnt/lfs/tools/LFS-6.0/packages
Extract these packages to /mnt/lfs/tools/LFS-6.0/packages

3. Download libxml2-2.6.16
http://ftp.sayclub.com/pub/X/GNOME/p...2.6.16.tar.bz2
Copy libxml2-2.6.16.tar.bz2 to /mnt/lfs/tools//LFS-6.0/packages

4. Copy nALFS-1.2.4.tar.bz2
to /mnt/lfs/tools//LFS-6.0/packages

5. Copy and extract linux-2.6.8.1.tar.bz2
Copy linux-2.6.8.1 any wheres other than its current dir.
Go to the linux-2.6.8.1 dir you just extracted and make menuconfig
Configure the kernel the way you wan't to then save the .config as linux-config
now copy linux-config to /mnt/lfs/tools//LFS-6.0/packages

6. Download profile-LFS-6.0-1
http://lfs.osuosl.org/alfs/downloads...-6.0-1.tar.bz2
And extract it any wheres you like then open /LFS-6.0-1/config/general.ent <---This file with a text editor
And change..........

[hr:47c2ac9172]


<!-- Location of your LFS packages.
This is the directory in which all the packages downloaded
from ftp.linuxfromscratch.org (or their original servers)
are before running the script. The content of this directory
will be copied in a subdirectory of &LFS; at the beginning of
the build.
IMPORTANT: be carefull about the original packages dir; if you
enter the wrong directory, nALFS will try to download
all the packages in it !!!
-->
<!ENTITY orig_packages_dir "/your/tools/LFS-6.0/packages"> <-----------This to ---------->
<!ENTITY orig_packages_dir "/mnt/lfs/tools/LFS-6.0/packages"> <--------This!

If <!ENTITY orig_packages_dir "/your/tools/LFS-6.0/packages"> doesnt say exactly this no worrys just change it to this anyways <!ENTITY orig_packages_dir "/mnt/lfs/tools/LFS-6.0/packages">
This is the location of the lfs packages you extracted earlyer.


[hr:47c2ac9172]

7. Now just go back to /LFS-6.0-1
chmod +x runit
./runit

(Info when i did this the first i ran into an error in step 7 with MD5SUMS)
Now i am not sure were the MD5SUMS was located the first time but i just copied the one from the
lfs-packages-6.0.tar to here /mnt/lfs and /mnt/lfs/tools here.

As i am writeing this i am only on chapter 5 glibc 2.3.4 because i rebooted and installed slackware 10.1 before i was useing a custom system with xfce only and ladytux was getting eritated not haveing kmail so i restarted.


[hr:47c2ac9172]
Step 3

1. Useing nalfs
┌───────────────────────────────────────────────── ────────┤ LFS.xml ├───┤ nALFS 1.2.4 ├─┐
│-> + LFS.xml │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
├───────────────────────────────────────────────── ──────────────┤ r s w h B ├─┤
│I: Using "/root/.nALFS" directory. │
│I: Using libxml2, version 2.6.9. │
│I: Loading handlers from /usr/local/lib/nALFS. │
│I: Total 38 handlers loaded. │
│I: Total 32 parameters found. │
│I: Parsing LFS.xml... │
│I: Profile added: /root/LFS-6.0-1/LFS.xml │
│I: Using "/root/.nALFS/nalfs.log" for status logging. │
│I: For help, type '?'. │
│ │
│ │
│ │
└───────────────────────────────────────────────── ────────────────────┤ T 00:00:00 [] ├─┘
Hit enter .


┌───────────────────────────────────────────────── ────────┤ LFS.xml ├───┤ nALFS 1.2.4 ├─┐
│ - LFS.xml │
│-> + Chapter 5 - Constructing a Temporary System │
│ + Chapter 6 - Installing Basic System Software │
│ + Chapter 7 - Setting Up System Bootscripts │
│ + Chapter 8 - Making the LFS System Bootable │
│ + Chapter 9 - The End │
│ + Finishing Up │
│ │
│ │
│ │
│ │
├───────────────────────────────────────────────── ──────────────┤ r s w h B ├─┤
│I: Using "/root/.nALFS" directory. │
│I: Using libxml2, version 2.6.9. │
│I: Loading handlers from /usr/local/lib/nALFS. │
│I: Total 38 handlers loaded. │
│I: Total 32 parameters found. │
│I: Parsing LFS.xml... │
│I: Profile added: /root/LFS-6.0-1/LFS.xml │
│I: Using "/root/.nALFS/nalfs.log" for status logging. │
│I: For help, type '?'. │
│ │
│ │
│ │
└───────────────────────────────────────────────── ────────────────────┤ T 00:00:00 [] ├─┘
Press the down arrow key so
│-> + Chapter 5 - Constructing a Temporary System │
Is highlited now if you hold the Shift key and press * <--8 key


┌───────────────────────────────────────────────── ────────┤ LFS.xml ├───┤ nALFS 1.2.4 ├─┐
│ * - LFS.xml │
│ * + Chapter 5 - Constructing a Temporary System │
It will now look like this.
Now just press the s key.
┌───────────────────────────────────────────────── ────────┤ LFS.xml ├───┤ nALFS 1.2.4 ├─┐
│ * - LFS.xml │
│ * + Chapter 5 - Constructing a Temporary System │
│-> + Chapter 6 - Installing Basic System Software │
│ + Chapter 7 - Setting Up System Bootscripts │
│ + Chapter 8 - Making the LFS System Bootable │
│ + Chapter 9 - The End │
│ + Finishing Up │
│ │
│ │
│ │
│ │
├───────────────────────────────────────────────── ──────────────┤ r s w h B ├─┤
│I: Using "/root/.nALFS" directory. │
│I: Using libxml2, version 2.6.9. │
│I: Loading handlers from /usr/local/lib/nALFS. │
│I: Total 38 handlers loaded. │
│I: Total 32 parameters found. │
│I: Parsing LFS.xml... │
│I: Profile added: /root/LFS-6.0-1/LFS.xml │
│I: Using "/root/.nALFS/nalfs.log" for status logging. │
│I: For help, type '?'. │
│I: Run (m)arked elements, element and it's (c)hildren, element's children │
│I: and (n)ext elements, or (f)orce running of current element? │
│ │
└───────────────────────────────────────────────── ────────────────────┤ T 00:00:00 [] ├─┘
Now the screen will change at the bottom to this.
│I: Run (m)arked elements, element and it's (c)hildren, element's children │
│I: and (n)ext elements, or (f)orce running of current element? │
And do what it says press the m key to run the elements we marked above and presto you lfs-6.0 system will start building.


[hr:47c2ac9172]

You could off cource shift and * on LFS.xml and it will run every prosses automaticly or you could select and section indapendently.

The reason for libxml2 and nALFS in the /mnt/lfs/tools//LFS-6.0/packages
dir is that nALFS also prepairs your lfs system to be able to mass produce other
lfs systems from your lfs system.

You can also use the nALFS system that will be installed in your new lfs system so that you can download a Beyound Linux From Scratch Profile and use nALFS to build everything BLFS provides.

So basicly you can auto build LFS-6.0 and BLFS

8 Hours later i am on section 6 building
-> * > + Package gcc 3.4.1
After gcc is done build wich takes forever the rest of the system will fly threw the build even thou this take 12 or more hours sure beats the typeing and the normal 48 hours it took the first time i built it succsesfully makes one appreciate package builders and binary based distros like slackware.

The best part comes when you get a desktop up like kde or gnome or xfce and you start playing with lfs hints.
My favorit part latly has been building Apache mySQL PHP and testing Content management systems.

Ill be back to building the custom package manager soon finaly got my google api key with a 1000 hits a day i might be able to come up with a new and cool feature useing it in my package manager.

I am still considering wether i should use gtkfb and ruby/gtk for a gui installer or qt embeded my skills with widgets are still lacking but i am determand so it will be done sooner or latter anyways the point to this off topic discusion is if and when the build is done ill be moveing on to building an lfs live cd and i will be takeing linuxfoo on the ride also so we will hopefully all be on the same page custom linux distros..

Ahhh finaly 13Hours 9Minutes & 10Seconds later chapter 6 is done
now i am just going to check some config scripts in the nALFS dir to insure chapter 7 threw 9 go as well.
Chapter 7 whent fine chapter 8 seems to be compileing my kernel.
And chapter 9 sets nALFS up on my lfs system.

So my review on nALFS is that it is good when you have all the proper packages and profiles and the proper profile config scripts are configured properly but still nALFS did shave dam near 36 hours and a lot of reading and typeing off and know that i am familer with it i could most defanently use it again.

Its bad points arnt with the program but with the lazyness of the developers and there extream lack of documentation besides that with what documentation thay do provide it is all wrong dont follow it or you will just be disapointed the way i have shown you is the proper way.

And read general.ent in the /LFS-6.0-1/config dir because you set your host name your ip your partition yourswap partition and package dir and time zone all in there and if you run into a md5 problem you can change it in the package.ent file to match the problem package.

If anyone has any question or problems anything at all no fear in asking k
Take advantage of nALFS because lfs is a super system to have.

[hr:47c2ac9172]