RedHat系统文本界面安装图形界面方法

版本:

Linux version 2.6.32-431.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Sun Nov 10 22:19:54 EST 2013

1.配置本地yum源

1)挂载本地镜像

mount /dev/sr0 /mnt

vi /etc/yum.repos.d/rhel-source.repo [rhel-source] name=Red Hat Enterprise Linux $releasever - $basearch - Source baseurl=file:///mnt enabled=1 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [rhel-source-beta] name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

  

2)查看组yum包

yum grouplist  
yum clean all

  

2.安装图像桌面依赖包

1).安装桌面环境相关软件组 

runlevel

yum grouplist | more


ps -A | egrep -i "gnome|kde|mate|cinnamon|lx|xfce|jwm" 
使用yum grouplist 可以看到有Desktop、Desktop Platfrom、X Window System、Graphics Creation Tools等桌面环境有关的软件组件可以安装;

yum groupinstall "Desktop" "Desktop Platform" 
yum groupinstall "X Window System" "Graphics Creation Tools"

  

2).修改系统的启动级别为 5

# inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

id:3:initdefault:
将系统的启动级别从3修改为5,然后重启系统后,重启过后出现下面界面,按照提示操作即可。操作完成后重启系统即OK。

猜你喜欢

转载自www.cnblogs.com/Alexr/p/9390552.html