一. 安装gnome图形化桌面
#yum groupinstall -y "X Window System"
#yum groupinstall -y "Desktop"
#yum groupinstall -y "Chinese Support"
二. 安装vncserver并配置(vnc是一款优秀的远程控制软件)
1.安装vncserver
#yum install -y tigervnc-server
2.配置vncserver
1).配置为开机自启动
#chkconfig --level 345 vncserver on
2).配置vnc密码
#vncserver
You will require a password to access your desktop.
Password:
Verify:
3).配置为使用gnome桌面
修改文件xstratup,把最后的 twm & 删掉 加上 gnome-session &。
#vi /root/.vnc/xstartup
4).配置vncserver启动后监听端口和环境参数
修改/etc/sysconfig/vncservers 文件添加以下内容
VNCSERVERS="1:root"
# 桌面号:用户 监听 590* 端口
VNCSERVERARGS[1]="-geometry 1200x800"
5).重启vncserver服务
#service vncserver restart