gentoo diskless installation notes
Hostname: Dwarf
Machine config:
K6-2 450Mhz
P5M3A+
SD 320MB (not too enough)
TNT2 M64 32M
eth0: RTL8139 (plug nothing)
eth1: RTL8139
hdd: 50X CDROM
Floppy boot (etherboot)
Installation disc: gentoo min 2005.0
Server prepare: nfs, folder for dwarf's root
server # emerge -av nfs-utils
server # vi /etc/exportfs
add
/home/tftpd/dwarf 192.168.0.0/24(async,rw,no_root_squash,no_all_squash)
server # /etc/init.d/nfs start
暫不提供 dhcp config
Step 1: Boot and start ssh
boot the live cd
livecd # net-setup eth1 # (dhcp)
livecd # passwd
livecd # /etc/init.d/sshd start
Step 2: Mount nfs
livecd # mount 192.168.0.1:/home/tftpd/dwarf /mnt/gentoo/ -o nolock
livecd # mkdir /mnt/gentoo/home
livecd # mount 192.168.0.1:/home /mnt/gentoo/home -o nolock
Step 3: Install very basic file
mkdir boot usr opt var tmp
chmod 1777 /mnt/gentoo/tmp
cd /mnt/gentoo/tmp
wget http://mirror.gentoo.gr.jp/releases/x86/2005.0/stages/x86/stage1-x86-2005.0.tar.bz2
cd ..
tar jxvfp tmp/stage1-x86-2005.0.tar.bz2
wget http://mirror.gentoo.gr.jp/snapshots/portage-latest.tar.bz2
cd usr
tar jxvf ../portage-latest.tar.bz2
cd ../etc
cp make.conf.example make.conf (overwrite)
vi make.conf
- USE="X gtk gnome -alsa qt kde mmx 3dnow"
- CHOST="i586-pc-linux-gnu"
- CFLAGS="-march=k6-2 -O3 -pipe" #(need test)
- CXXFLAGS="${CFLAGS}"
- ACCEPT_KEYWORDS="~x86"
- PORT_LOGDIR=/var/log/portage
- PORTDIR_OVERLAY=/usr/local/portage
- GENTOO_MIRRORS="http://mirror.gentoo.gr.jp http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
- SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
- MAKEOPTS="-j2"
- FEATURES="sandbox ccache distcc distlocks autoaddcvs"
- CCACHE_SIZE="512M"
複製代碼 |
|
|