linux桌面 / 未分类 · 2014年5月9日

CentOS6 挂载光盘安装图形界面

mkdir /mnt/cdrom
mount -o loop x2.iso /mnt/iso2
mount /dev/cdrom /mnt/cdrom
cd /etc/yum.repos.d/
vim CentOS-Media.repo

#添加如下内容
file:///mnt/cdrom
yum --disablerepo=* --enablerepo=c6-media groupinstall "Desktop"
yum --disablerepo=* --enablerepo=c6-media groupinstall "X Window System"
yum --disablerepo=* --enablerepo=c6-media groupinstall "Chinese Support"

Enable GNOME
Since the server was previously running on CLI mode, we need to change the initialization process for the machine to boot up in GUI mode.
Open /etc/inittab using a text editor and change following line:
id:3:initdefault:
To:
id:5:initdefault:
1.首先进行光盘的挂载,注意光盘挂载时不会自动建立目录的,所以需要自己建立目录
2、更改本地源地址
cd /etc/yum.repos.d/ #可以看见CentOS-Base.repo和CentOS-Media.repo文件
注意:
CentOS-Base.repo记录着网络上的yum源的地址和路径信息等
CentOS-Media.repo记录着可以从本地作为yum源的介质和路径
不过我安装后好像启动不了
不错的参考 在 ali 看到的 http://help.aliyun.com/view/11108189_13438669.html?spm=5176.7224913.1997283765.4.QwFhG7
http://tycool.blog.51cto.com/696627/627416
http://www.idevelopment.info/data/Unix/Linux/LINUX_AddGNOMEToCentOSMinimalInstall.shtml