檔案系統資訊:
nano -w /etc/fstab
Host name, Domainname, etc
nano -w /etc/conf.d/hostname
Configuring Network
nano -w /etc/conf.d/net
Gentoo uses /etc/rc.conf to configure the services, startup, and shutdown of your system.
nano -w /etc/rc.conf
Root Password
passwd
Gentoo uses /etc/conf.d/hwclock to set clock options.
nano -w /etc/conf.d/hwclock
安裝系統工具軟體:
emerge pcmciautils
emerge syslog-ngrc-update add syslog-ng default
emerge mlocate
rc-update add sshd default
emerge dhcpcd
配置啟動項:
emerge sys-boot/grubgrub2-install /dev/sda
Generating GRUB2 configuration:
grub2-mkconfig -o /boot/grub/grub.cfg
emerge sys-boot/grub:0
編輯設定檔:
nano -w /boot/grub/grub.conf
Example grub.conf:
# 預設選擇哪個列表來引導。0表示第一個, 1表示第二個,以此類推。default 0# 引導預設列表前等待多少秒timeout 30# 使用漂亮、“臃腫”的spalsh映像來增加一點趣味:)# 如果您沒有安裝顯卡,請將這行注釋掉splashimage=(hd0,0)/boot/grub/splash.xpm.gztitle Gentoo Linux 3.10.10# 核心鏡像(或者作業系統)所在分區root (hd0,0)kernel /boot/kernel-3.10.10-gentoo root=/dev/sda2title Gentoo Linux 3.10.10 (rescue)# 核心鏡像(或者作業系統)所在分區root (hd0,0)kernel /boot/kernel-3.10.10-gentoo root=/dev/sda2 init=/bin/bb# 接下來的四行只有在您與Windows系統進行雙啟動的情況下才需要。# 本例中,windows系統位於/dev/sda6。title Windows XProotnoverify (hd0,5)makeactivechainloader +1#win7下注釋掉makeactive
Setting up GRUB using grub-install:
Creating /etc/mtab:
grep -v rootfs /proc/mounts > /etc/mtab
Install GRUB:
grub-install --no-floppy /dev/sda
重啟系統:
exitcdumount -l /mnt/gentoo/dev{/shm,/pts,}umount -l /mnt/gentoo{/boot,/proc,}reboot
6. 安裝X案頭環境:安裝Xorg:
dmesg | grep videolspci | grep -i VGA
- 配置INPUT_DEVICE、VIDEO_CARDS變數:
(For mouse, keyboard, and Synaptics touchpad support)INPUT_DEVICE="evdev synaptics" (對nVidia顯卡)VIDEO_CARDS="nvidia"(或,對ATI Radeon顯卡)VIDEO_CARDS="radeon"(VMware虛擬機器)VIDEO_CARDS="vmware"(VirtualBox虛擬機器)VIDEO_CARDS="virtualbox"
emerge -pv xorg-drivers
First of all, make sure udev is in your USE flags:
echo "x11-base/xorg-server udev" >> /etc/portage/package.use
註:現在比較新的版本的Xorg(大概是 1.5 以後的吧) 使用 evdev 替換了 keyboard 和 mouse ,確保 udev 標記在安裝 xorg-server 時被啟用。
Next, install Xorg:
emerge -av xorg-server
env-update source /etc/profile
- 使用startx:
emerge -v twm xtermstartx安裝案頭環境: