?
使用光盘作为yum软件安装源安装X Window
-
挂载光驱
?
[[email protected] ~]# mkdir /media/cdrom
[[email protected] ~]# mount /dev/cdrom /media/cdrom/
?
-
修改/etc/yum.repos.d/目录下文件
?
[[email protected] yum.repos.d]# vi CentOS-Media.repo
?
[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
?
-
安装
?
-
搜索软件包
?
yum --disablerepo=\* --enablerepo=c6-media --disableplugin=fastmirror search httpd
?
[[email protected] ~]# yum --disablerepo=\* --enablerepo=c6-media --disableplugin=fastmirror grouplist
?
-
安装软件包
?
yum --disablerepo=\* --enablerepo=c6-media --disableplugin=fastmirror search httpd
?
-
安装X Window
?
[[email protected] ~]# yum --disablerepo=\* --enablerepo=c6-media --disableplugin=fastmirror groupinstall ‘X Window System‘
?
yum --disablerepo=\* --enablerepo=c6-media --disableplugin=fastmirror install firefox
?
[[email protected] ~]# restart
?
-
输出显示
?
[[email protected] ~]# export DISPLAY=172.16.4.249:0.0
?
[[email protected] ~]# firefox
?
原文地址:https://www.cnblogs.com/gispathfinder/p/10045205.html