http://www.gentoo.org/main/en/mirrors.xml ex) http://mirror.gentoo.gr.jp/releases/x86/2004.3/livecd/install-x86-minimal-2004.3-r1.iso
boot: gentoo(gentoo-nofb) or smp (smp-nofb)
# /etc/init.d/sshd start # ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:01:02:82:DB:58 inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:158606 errors:0 dropped:0 overruns:0 frame:0 TX packets:123666 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:96163883 (91.7 Mb) TX bytes:20863289 (19.8 Mb) Interrupt:11 Base address:0xc000
Partition Fileststem Size Description /dev/hda1 ext3 100M Boot Partition /dev/hda2 swap 2G Swap Partition /dev/hda3 xfs remaining Root Partition
Filesystem | Creation Command |
ext2 | mke2fs |
ext3 | mke2fs -j |
reiserfs | mkreiserfs |
xfs | mkfs.xfs |
jfs | mkfs.jfs |
# mke2fs -j /dev/hda1 (ext3 ·Î ¸¸µé±â) # mkfs.xfs /dev/hda3 (xfs ·Î ¸¸µé±â) # mkswap /dev/hda2 (½º¿Ò¸¸µé±â) # swapon /dev/hda2
# mount /dev/hda3 /mnt/gentoo # mkdir /mnt/gentoo/boot # mount -t ext3 /dev/hda1 /mnt/gentoo/boot
# date 120416102004 (2004³â 12¿ù 04ÀÏ 16:10)
# cd /mnt/gentoo # links2 http://www.gentoo.org/main/en/mirrors.xml
# md5sum -c stage?-*.tar.bz2.md5 (stage 2, 3) # md5sum -c portage-*.tar.bz2.md5 (snapshot)´Ù¿î·Îµå ¹ÞÀº ÆÄÀÏÀÇ ÀÌ»óÀ¯¹« °Ë»ç
# tar -xvjpf stage?-*.tar.bz2 # tar -xvjf /mnt/gentoo/portage-20041202.tar.bz2 -C /mnt/gentoo/usrtarball Ç®±â
# nano -w /mnt/gentoo/etc/make.conf USE="x86 alsa acpi -arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm gtk gtk2 imlib jpeg -kde gnome libg++ libwww mad mikmod motif mpeg ncurses nls nptl oggvorbis mp3 opengl pam pdflib png python -qt quicktime readline sdl slang spell ssl svga tcpd truetype X xml2 xv zlib cjk multichar sse sse2 mmx" GENTOO_MIRRORS="http://ftp.gentoo.or.kr/ http://mirror.gentoo.or.kr/"
# cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
# mount -t proc none /mnt/gentoo/proc # chroot /mnt/gentoo /bin/bash
# env-update/etc/env.d/ µð·ºÅ丮¿¡ Àִ ȯ°æ°ªÀ» ¾÷µ¥ÀÌÆ® ÇØÁÜ
# source /etc/profile/etc/profile Àû¿ë
# emerge --syncportage sync
# ls /usr/share/zoneinfo # ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
# cd /usr/portage/sys-kernel/gentoo-dev-source # emerge gentoo-dev-sources-2.6.9-r9.ebuild (gentoo-dev-source »ç¿ë) # cd /usr/src/linux # make menuconfig
Activating Required Options Code Listing 6: Selecting experimental code/drivers Code maturity level options ---> [*] Prompt for development and/or incomplete code/drivers
Code Listing 7: Selecting correct processor family Processor type and features ---> (Change according to your system) (Athlon/Duron/K7) Processor family
Code Listing 8: Selecting necessary file systems (With a 2.6.x kernel) File systems ---> Pseudo Filesystems ---> [*] /proc file system support [*] /dev file system support (OBSOLETE) [*] Automatically mount at boot [*] Virtual memory file system support (former shm fs) (Select one or more of the following options as needed by your system) <*> Reiserfs support <*> Ext3 journalling file system support <*> JFS filesystem support <*> Second extended fs support <*> XFS filesystem support
Code Listing 11: Activating SMP support Processor type and features ---> [*] Symmetric multi-processing support
Code Listing 12: Activating USB Support for Input Devices USB Support ---> <*> USB Human Interface Device (full HID) support
# make && make modules_installº»°ÝÀûÀÎ Ä¿³ÎÄÄÆÄÀÏ (½Ã°£ÀÌ ¿À·¡°É¸²)
# cp arch/i386/boot/bzImage /boot/gentoo-2.6.9-r9 # cp System.map /boot/System.map-gentoo-2.6.9-r9 # cp .config /boot/config-2.6.9-r9
# emerge coldplug # rc-update add coldplug boot
# emerge hotplug # rc-update add hotplug default
# nano -w /etc/modules.autoload.d/kernel-2.X # modules-update
/dev/hda1 /boot ext3 noatime 1 1 /dev/hda3 / xfs noatime 0 0 /dev/hda2 none swap sw 0 0
# echo ns > /etc/hostname (È£½ºÆ®³×ÀÓ µî·Ï) # echo kkanari.info > /etc/dnsdomainname # echo kkanari.info > /etc/nisdomainname # rc-update add domainname default
# nano -w /etc/conf.d/net (³×Æ®¿öÅ© ¼³Á¤) === static === iface_eth1=¡±192.168.6.17 broadcast 192.168.6.255 netmask 255.255.255.0¡± gateway=¡±eth1/192.168.6.1¡± === dhcp === iface_eth1=¡±dhcp¡±
# passwd # nano -w /etc/rc.conf (ÇØ´çÇ׸ñ¿¡ ÇÊ¿äÇÑ »çÇ×ÀÌ ÀÖÀ¸¸é ¼öÁ¤ÇØ ÁØ´Ù, ¾Æ·¡´Â ³»°¡ ¼öÁ¤ÇÑ ³»¿ª) CLOCK="local" EDITOR="/usr/bin/vim" DISPLAYMANAGER="gdm" XSESSION="Gnome"
# emerge metalog # rc-update add metalog default
# emerge vixie-cron # rc-update add vixie-cron default
# emerge slocate (filesystem indexing) # emerge xfsprogs (xfs filesystem needs)