桌面在软件组desktop中,这和rhel5不太一样,rhel5里面好像为gnome
那么就开始安装桌面吧,但之前必须先安装Xwindow软件组
[root@RedHat~]# yum groupinstall “X Window System”
[root@redhat ~]# yum groupinstall “Desktop”
3. 虽然到此就可以启动桌面了,但是linux建议不要让root用户直接登录图形界面
所以,我们最好再创建一个普通用户
[root@redhat~]# useradd kevin
创建kevin的密码
[root@redhat~]# passwd kevin
4.启动X:
首先切换到普通用户
[root@redhat ~]# su- kevin
[kevin@redhat ~]$ startx
5.更改启动模式
这时如果重启的话还是会直接进入命令界面,所以必须调整开机进入桌面还是命令界面
[root@redhat~]#vim /etc/inittab
# 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 havenetworking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:3:initdefault:
将上面红字部分的 3改成5
3为命令行界面 5为X window图形界面
5.删除redhat订阅:
rhel6.1新增了一个redhat订阅,没有用,可以删除
[root@redhat~]# yum remove subscription*
6.安装桌面右键终端:[root@redhat ~]# yum install nautilus-open-terminal

