分类: 系统运维
2013-06-09 14:11:25
chroot /mnt/gentoo /bin/bash
env-update && source /etc/profile
11.修改root密码:passwd
New password: ******
Retype new password: ******
passwd: password updated successfully
12.安装grub到mbrgrub
root (hd0,0)
setup (hd0)
quit
13.清空/etc/conf.d/local.start
cat /dev/null > /etc/conf.d/local.start
14.修改 /etc/fstab/dev/sda1 /boot ext3 defaults 1 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext4 defaults 0 1
15.复制kernel到/boot分区:cp /usr/src/linux/System.map /boot/System.map-genkernel-x86_64-3.3.0-gentoo-r1
cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-genkernel-x86_64-3.3.0-gentoo-r1
genkernel ramdisk
16.修改grub.conf编辑 /boot/grub/grub.conf 內容如下
default 0
timeout 10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 3.3.0-gentoo-r1
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.3.0-gentoo-r1 root=/dev/ram0 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86_64-3.3.0-gentoo-r1
三、修改系统配置:
1.网卡:
vi /etc/conf.d/net
config_eth0=( "192.168.0.188 netmask 255.255.255.0 brd 192.168.0.255")
routes_eth0=( "default via
192.168.0.1")
2.主机名:
vi /etc/conf.d/hostname
# Set to the hostname of this machine
hostname="Gentoo-graphic"
3.DNS:
vi /etc/resolv.conf
nameserver 202.106.0.20
4.禁止系统启动时自动修改root密码:
注释:高级用户: 当 LiveCD 启动后,出于安全原因,root的登录密码是随机设定的,如果你要使用sshd来进行远程登录LiveCD,你必须键入passwd,根据提示来重新设定 Live CD 的 root 登录密码,否则你将无法通过网络远程登录 LiveCD