redhat gdm安装教程
1.安装gnome面板
使用安装光盘进行安装
mount /dev/cdrom xxx(自定文件夹)
cd xxx/Packages
rpm -ivh gnome-session-xsession-2.28.0-18.el6.x86_64.rpm
rpm -ivh gnome-panel-2.30.2-14.el6.x86_64.rpm
进入gnome面板使用终端操作
2.修改yum源
此时在root目录下操作
下载所需软件包
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-41.el6.noarch.rpm
如果出现404错误,那么去http://mirrors.163.com/centos/6/os/x86_64/Packages/这个网站里查找对应安装包的版本号
卸载RedHat自带的 yum
rpm -qa | grep yum | xargs rpm -e --nodeps
注:a、xargs是一条[Unix](http://baike.baidu.com/view/8095.htm)和类Unix操作系统的常用命令。它的作用是将参数列表转换成小块分段传递给其他命令,以避免参数列表过长的问题
b、--nodeps 强制卸载,不管依赖性
安装刚才装好的安装包
rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
rpm -ivh yum-*
如果上面的版本号改变了,下面安装包的版本号也要跟着改变
下载CentOS6-Base-163.repo文件
不要管这里,固定是CentOS,这肯定是RedHat教程
进入yum.repos.d文件夹
cd /etc/yum.repos.d
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
使用vi修改CentOS6-Base-163.repo文件
这是修改好的文件
# CentOS-Base.repo
#
# The mirror system uses the connecting IP addressof the client and the
# update status of each mirror to pick mirrors thatare updated to and
# geographically close to theclient. You should use this for CentOSupdates
# unless you are manually picking othermirrors.
#
# If the mirrorlist= does not work for you, as afall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-6 - Base - 163.com
baseurl=http://mirrors.163.com/centos/6/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-6 - Updates - 163.com
baseurl=http://mirrors.163.com/centos/6/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-6 - Extras - 163.com
baseurl=http://mirrors.163.com/centos/6/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality ofexisting packages
[centosplus]
name=CentOS-6 - Plus - 163.com
baseurl=http://mirrors.163.com/centos/6/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-6 - Contrib - 163.com
baseurl=http://mirrors.163.com/centos/6/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
修改yum源的最后操作
yum clean all
yum makecache
3.安装gdm
yum install gdm
根据提示继续完成即可