2005年1月25日 星期二

Linux Building Note

1.Install Fedora Core 3(bought from http://www.tenlong.com.tw/)

[Caution]

a.Remember to install GCC(Choose Development Suite during installation)and leave others as more as possible

b.be sure to note the Kernel&GCC version of host OS

c.VMWare has some problems with X-windows support (CPU loading causing Error circumstance)

2.Download LFS 6.0 package&print out the instruction menu (for taking notes freely)

3.Prepare another VM hard-drive and install in VM-Setting

4.Start Fedora VM and log in as root

5.use fdisk utility to set the partition of the second hard-drive (LFS target drive)

6.format the target drive

[Action]

mke2fs /dev/hdb1

[Caution]

a./dev -directory means the system support hardware list

b."hdb1" --hd: means hard drive ; --b: means IDE 0:1 (c donate 1:0 ; d donate 1:1 ....for so on) ; --1: means primary or first partition

c.if you there isn't enough space for different space, forced to use swap. there must be different usage (please refer to the LFS menu)

7.Mount new partition

assign a mount point for LFS (environment variable)

[Action]

export LFS=/mnt/lfs

mount LFS drive

[Action]

mkdir -p $LFS

mount /dev/hdb1 $LFS

8.Get sources files &Set sources directory "Sticky"

[Action]

mkdir $LFS/sources

chmod a+wt $LFS/sources

[Caution]

a.put all sources tar files in $LFS/sources directory

b.install all componant in $LFS/tools directory (not yet created)

9.Create $LFS/tools & set symlink on host system

[Action]

mkdir $LFS/tools

ln -s $LFS/tools

10.Add user "lfs" (all the process will base on user lfs not root for dependency free)

[Action]

groupadd lfs

useradd -s /bin/bash -g lfs -m -k /dev/null lfs

passwd lfs

{enter whatever you want for password}

chwon $LFS/tools

chown $LFS/sources

su - lfs

(login as user lfs for now on)

沒有留言: