Gentoo Linux x86 源码安装
Gentoo Linux x86 源码安装
根据 gentoo 官方进行细化。
1. 介绍
本指南包含了完成一次从stage3开始安装Gentoo要用到的所有命令。你需要连接到Internet以下载stage3包和Portage快照。重要: 新手应当阅读手册,其中有关于安装过程更完整的描述。这篇快速安装指南是为那些只需要遵循一个核对清单的有经验用户设计的。 |
代码 1.1: 测试机器的规格 |
(下述配置和耗时情况帮你粗略估计完成整个安装过程大概需要的时间) # grep bogo /proc/cpuinfo bogomips : 3337.81 # hdparm -tT /dev/sda /dev/sda: Timing cached reads: 1100 MB in 2.00 seconds = 549.97 MB/sec Timing buffered disk reads: 224 MB in 3.01 seconds = 74.36 MB/sec # grep MemTotal /proc/meminfo MemTotal: 509248 kB |
代码 2.1: 引导最小光盘 |
Gentoo Linux Installation LiveCD http://www.gentoo.org Enter to Boot; F1 for kernels F2 for options. boot: gentoo-nofb (或在有问题的情况下) boot: gentoo-nofb nodetect |
代码 2.2: 载入必要的模块 |
livecd root # lspci (根据lspci的输出查看需要哪些模块) (以下只是个例子,实际以具体硬件为准) livecd root # modprobe 3w-9xxx livecd root # modprobe r8169 |
代码 2.3: 通过向导配置网络 (我觉得还是命令方便,所以可以跳过这一步。) |
livecd root # net-setup eth0 |
代码 2.4: 手动配置网络 (配置目的是要保证可以上网) |
livecd root # ifconfig eth0 192.168.1.10/24 livecd root # route add default gw 192.168.1.1 livecd root # echo nameserver 192.168.1.1 > /etc/resolv.conf |
代码 2.5: 启动sshd (完成这一步后,就可以通过PuTTY工具远程连接了。) |
livecd root # time /etc/init.d/sshd start * Generating hostkey ... (sshd生成密钥并显示更多输出) * starting sshd ... [ok] real 0m13.688s user 0m9.420s sys 0m0.090s |
代码 2.6: 设置root密码 (在用PuTTY连接时,必须要密码,空密码是不允许的。所以要先设置好密码,用root用户连接,当然设置root密码了。) |
livecd root # passwd New UNIX password: 输入密码 Retype new UNIX password: 输入密码 passwd: password updated successfully |
代码 2.7: 从另一台电脑连到你的新机器 (这里的例子是通过另外一台Linux连接那台要安装gentoo的机器,我们如在windows下,就用PuTTY这个工具就可以了。) |
(使用你新机器的IP地址) $ ssh root@192.168.1.10 The authenticity of host '192.168.1.10 (192.168.1.10)' can't be established. RSA key fingerprint is 96:e7:2d:12:ac:9c:b0:94:90:9f:40:89:b0:45:26:8f. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.1.10' (RSA) to the list of known hosts. Password: 输入密码 |
|
评论暂时关闭