Gentoo installation (3)-Configuration System and gentoo
Configure system information:
Create/etc/fstab
nano -w /etc/fstab
Host name, Domainname, etc
nano -w /etc/conf.d/hostname
Grouping 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
Install system tool software:
- Optional: PCMCIA use lspci to view hardware information:
emerge pcmciautils
emerge syslog-ngrc-update add syslog-ng default
emerge mlocate
rc-update add sshd default
emerge dhcpcd
Configure the startup Item:
emerge sys-boot/grubgrub2-install /dev/sda
Generating GRUB2 configuration:
grub2-mkconfig -o /boot/grub/grub.cfg
- Optional: Using GRUB Legacy:
emerge sys-boot/grub:0
Edit the configuration file:
nano -w /boot/grub/grub.conf
Example grub. conf:
# Which list is selected by default for guidance. 0 indicates the first, 1 indicates the second, and so on. Default 0 # How many seconds to wait before guiding the default list timeout 30 # use a pretty, "bloated" spalsh image to add a little fun :) # If you do not have a video card installed, comment out splashimage = (hd0, 0)/boot/grub/splash.xpm.gz title Gentoo Linux 3.10.10 # root (hd0, 0) partition of the kernel image (or operating system) kernel/boot/kernel-3.10.10-gentoo root =/dev/sda2 title Gentoo Linux 3.10.10 (rescue) # root (hd0, 0) partition where the kernel image (or operating system) is located) kernel/boot/kernel-3.10.10-gentoo root =/dev/sda2 init =/bin/bb # The next four lines only enable Dual boot with Windows . # In this example, the windows system is located in/dev/sda6. Title Windows XP rootnoverify (hd0, 5) makeactive chainloader + 1 # comment out makeactive under win7
Setting up GRUB Legacy using grub-install:
Creating/etc/mtab:
grep -v rootfs /proc/mounts > /etc/mtab
Install GRUB Legacy:
grub-install --no-floppy /dev/sda
Restart the system:
exitcdumount -l /mnt/gentoo/dev{/shm,/pts,}umount -l /mnt/gentoo{/boot,/proc,}reboot