在Vmware上初装Gentoo

很是白地开装Gentoo,又是一个一无所知的玩意,按M童http://www.douhua.im/2009/11/19/gentoo-x86-install-help-on-vmware-or-fusion/中所写步骤进行。(也可参照http://www.gentoo.org/doc/zh_cn/handbook/handbook-x86.xml?part=1&chap=5&style=printable

1.在Vmware中创建空白的Linux虚拟主机,光驱联好X86的ISO文件,开启虚拟主机

2.查看IP,并开启SSH服务

ifconfig #查看IP信息,如果网络中未设置DHCP,那么可通过以下进行手动设置

ifconfig eth0 192.168.1.10/24 #设置IP地址:192.168.1.10
route add default gw 192.168.1.1 #设置网关:192.168.1.1
echo nameserver 192.168.1.1 > /etc/resolv.conf #设置域名解析

/etc/init.d/sshd start #启动ssh服务
passwd #设置root的密码

3.使用fdisk进行磁盘分配
fdisk /dev/sda #使用到fdisk的基本命令:n 创建一个分区; p 显示所有的分区; a 指定一个分区为启动分区, 显示的时候这个分区标有一个*;d 删除一个分区; t 改变一个分区的类型,Linux swap / Solaris的编号是82;l 显示所有的分区类型。

Leave a Reply

Your email address will not be published. Required fields are marked *

*