RedHat Linux 6 桌面安装(2)

2.安装桌面
桌面在软件组desktop中,这和rhel5不太一样,rhel5里面好像为gnome
那么就开始安装桌面吧,但之前必须先安装Xwindow软件组
[root@db01 ~]# yum groupinstall “X Window System”
[root@db01 ~]# yum groupinstall “Desktop”

3.启动X:
首先切换到普通用户
 [root@db01 ~] $ startx
4.更改启动模式
这时如果重启的话还是会直接进入命令界面,所以必须调整开机进入桌面还是命令界面
[root@db01 ~]#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 have networking)
#  3 - Full multiuser mode
#  4 - unused
#  5 - X11
#  6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:
 将上面红字部分的  3改成5
 3为命令行界面  5为X window图形界面

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/16373.html