| V2.1 |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Home
Astronomy VNC to real naitive ... Server Side Mail Fil... Linux Tips and Hints... Convert PSD PDF GIF ... Div or Table Layout ... Enlightenment Window... Portable Headphone O... Web Programming Port... Game and Desktop Scr... YAWBBG (Yet Another ... Walking In Faversham... Wallpapers for the s... Download Half Life ... RTL8187SE Advent 421... Kites and Kite Makin... Linux From Scratch, ... Hacking the Archos G... Political Correctnes... Relaying Denied: Pro... Litestep Themes NOT ... Gatso Speed Cameras ... a page whining abou...
Outdoor Survival Pages
Oasthouse Media Pete Lawrence Astronomy Web Hosting Telescope Focuser Knobs grumpyc*nt.com Creative clicks web design Freelance Web Programming Boats for sale in Kent Crane Rental Services Telescope GOTO Systems Inclusive Mexico Vacation London Escorts Freelance Data Entry Swimming Pool Supplies Kent The Butcher of Brogdale
|
Linux From Scratch, From Scratch.....For more info from the true masters see www.linuxfromscratch.org Right, over the last 6 or so months I have built 2 LFS systems, the original one is now used on a daily basis but has got completely out of hand. I don't know whats installed and what isn't and I've lost ALL the bloody sources to use as a reference. To that end I shall start again from, err, scratch!!! I shall be using the LFS live cd as a base for the build (the only OS I've ever had any luck building with). A 40GiB IDE Toshiba lap top HD connected to an ITE8212 IDE Raid card. The disk will have 2 partitions (once its finidhed it'l be moved onto the main system hard drive using similar sized partitions), a 35GiB EXT3 and a 5GiB swap. The ITE8212 is slotted into an ASUS P5GD1 MoBo with 2.5GiB o RAM and a P4 3.6Ghz brain!!! The resulting system will be an Xwindows Server (SSH, Local Apache, FTP, Samba) / Desktop system using a modular X install and 2 versions of enlightenment window manager DR16 for root work and DR17 for normal use. What I wont be doing is going into loads of detail, the book already covers that, I will however, give you a rundown of what I have done along with any tweaks I have applied to my functioning system that could have been aplied at construction... Thats enough of that, lets go....Logged in as root on the host system i do the following basic steps to get ready. First, mke2fs -j /dev/hde1, then mkswap /dev/hde2. Thats the hard drive ready, now I copy the lfs-sources folder from the cd to the installation drive. Thats the harddisk ready. Linux From Scratch....Now you must follow the LFS book step by step to build the main LFS system. Again, there is no need for me to detail that as it is already covered in the LFS book. Once thing i will point out is that my second LFS build got out of hand because i did not keep the original sources. This time around i will, at least then i know what version are what without having to trawl through man pages sussing out version commands and how to find versions. I have also applied a layout to the directory structure inside my lfs-sources directory: Base: Libs: Apps: Xorg: System-Tools: Daemon: This whole directory structure comes up at about 4.1GiB for my completed system (and i havent really added many apps to the standard X setup yet!). I keep it all on a little USB2.0 CF card hard drive now. All compilation and such is done on that gadget. Always try to get the latest version installed even if it means having to re-install other packages. So, we have the ability to at least track whats installed and at what version!!! Optimisations....During the initial build i did not, nor would i advise, trying to optimise the compiler. The LFS book has instructions for stripping and you should follow those. However, once the initial LFS system is up and running i did a bit of house keeping and set the following environment variables in /etc/profile export CC="gcc -s" export LDFLAGS="-s" export BUILDOPTS="--disable-nls --prefix=/usr" REMEMBER: These variables wont apply to X terminals! Packages....Below is a list of packages installed, they are not in dependancy order so if you get a problem with one package requring another just install as per dependancy requirements. This package list starts AFTER LFS has been fully installed.
As you can see there is a substantial amount of work getting all that built and installed. It took about a week doing a few hours per evening but i do now have a very stable and built to spec OS that i can modularise with ease. I have a much tighter version that was built for my USB stick. That once has a substantial amount of kernel modules because i use it on many different machines! The Brain....Now its kernel time! It helps to install a commercial dist of linux before hand such that you can do an lsmod and record the info to a textfile, this way you can get a kernel more suited to your system compiled. If you are really lucky /proc/config.gz exsits and you can zcat /proc/config.gz > config.current and then use make oldconfig (i normally just hold my finger on the enter key and take the default answers for a make oldconfig). DONT rely on your hard disks (especially on SATA/IDE mix systems) appearing in the same order with a home cooked kernel. In FC9 my IDE drive is hde, in my current LFS its hde but in other os's and my new kernel its hda!?!?! Udev can help with that one!!
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Valid XHTML 1.0 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||