livecd linux # cd /etc livecd etc # nano -w fstab /dev/sda1 /boot ext2 noauto,noatime 1 2 /dev/sda3 / ext3 noatime 0 1 /dev/sda2 none swap sw 0 0
livecd linux # cd /etc livecd etc # nano -w fstab /dev/md1 /boot ext2 noauto,noatime 1 2 /dev/md3 / ext3 noatime 0 1 /dev/sda2 none swap sw,pri=1 0 0 /dev/sdb2 none swap sw,pri=1 0 0 /dev/vg/usr /usr ext3 noatime 1 2 /dev/vg/portage /usr/portage ext2 noatime 1 2 /dev/vg/distfiles /usr/portage/distfiles ext2 noatime 1 2 /dev/vg/home /home ext3 noatime 1 2 /dev/vg/opt /opt ext3 noatime 1 2 /dev/vg/tmp /tmp ext2 noatime 1 2 /dev/vg/var /var ext3 noatime 1 2 /dev/vg/vartmp /var/tmp ext2 noatime 1 2
livecd etc # cd conf.d livecd conf.d # echo 'config_eth0=( "192.168.1.10/24" )' >> net livecd conf.d # echo 'routes_eth0=( "default via 192.168.1.1" )' >> net livecd conf.d # rc-update add net.eth0 default(네트워크 카드 드라이버를 모듈로써 컴파일하였다면, 그 이름을 /etc/modules.autoload.d/kernel-2.6에 추가하여 줍니다.) livecd conf.d # echo r8169 >> /etc/modules.autoload.d/kernel-2.6(만약 재부팅 후에도 원격 컴퓨터에서 ssh로 접속 할수 있게끔 하려면은 부팅시 sshd를 자동시작하게끔 설정합니다.) livecd conf.d # rc-update add sshd default
livecd conf.d # passwd New UNIX password:비밀번호 입력 Retype new UNIX password:비밀번호 재입력 passwd: password updated successfully
livecd conf.d # nano -w /etc/conf.d/clock TIMEZONE="Asia/Seoul"
livecd conf.d # nano -w /etc/rc.conf livecd conf.d # nano -w /etc/conf.d/rc livecd conf.d # nano -w /etc/conf.d/keymaps
RAID와 LVM2 도구들을 설치합니다.
livecd conf.d # emerge mdadm lvm2
livecd conf.d # time emerge syslog-ng vixie-cron real 1m54.099s user 1m2.630s sys 0m34.620s livecd conf.d # rc-update add syslog-ng default livecd conf.d # rc-update add vixie-cron default
앞서 설치 한 파일 시스템의 종류에 따라, 필요한 도구들을 설치하고 (
livecd conf.d # emerge xfsprogs(만약 XFS를 사용한다면) livecd conf.d # emerge jfsutils(만약 JFS를 사용한다면) livecd conf.d # emerge reiserfsprogs(만약 ReiserFS를 사용한다면) livecd conf.d # emerge dhcpcd(만약 DHCP 클라이언트가 필요하다면) livecd conf.d # emerge ppp(만약 PPPoE ADSL 연결이 필요하다면)
livecd conf.d # time emerge grub real 1m4.634s user 0m39.460s sys 0m15.280s livecd conf.d # nano -w /boot/grub/grub.conf
default 0 timeout 10 title Gentoo root (hd0,0) kernel /boot/kernel root=
livecd conf.d # grub Probing devices to guess BIOS drives. This may take a long time. grub> root (hd0,0) Filesystem type is ext2fs, partition type 0xfd grub> setup (hd0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/ grub/menu.lst"... succeeded Done. grub> quit
livecd conf.d # grub Probing devices to guess BIOS drives. This may take a long time. grub> root (hd0,0) Filesystem type is ext2fs, partition type 0xfd grub> setup (hd0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/ grub/menu.lst"... succeeded Done. grub> root (hd1,0) Filesystem type is ext2fs, partition type 0xfd grub> setup (hd1) grub> quit