安装虚拟机,安装系统,成功后启用网卡:
ifconfig eth0 up #启用网卡 (ifconfig eth0 down 关闭)
ping baidu.com #测试网络
设置开机后自动开启网卡:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
ONBOOT=yes #默认为no
安装图形界面:(这里第一次搜索到命令:)
yum groupinstall "X Window System"
yum groupinstall "GNOME Desktop Environment"
#此命令为6.0版之前,没注意看,导致一个错误。应为 $ yum groupinstall "Desktop"
startx
安装图形界面后,startx进入图形界面,结果鼠标键盘不起作用,强行关闭系统一次,结果界面无法再次启动,搜索相关错误信息:
Fatal error: no screens found
终于Google到网页:http://unix.stackexchange.com/questions/56581/x-org-no-screens-found-arch-linux 中:
OK,用root执行 $ X -configure 命令,显示产生一个 xorg.conf.new文件。Try configure it first, as root, do:
X -configure
This would normally create a simple
xorg.conf.new
, and you could copy it to/etc/X11/xorg.conf
继续执行$ cp /root/xorg.conf.new /etc/X11/xorg.conf
重新startx,一切OK。