Configure the Desktop
# Install the GNOME desktop environment
Yum Groupinstall desktop-y
# Install Chinese Language Support package (optional)
Yum Groupinstall ' Chinese support '-y
# Set the system default language to Chinese (optional)
Sed-i '/lang/c\lang= ' ZH_CN. UTF-8 "'/etc/sysconfig/i18n
source/etc/sysconfig/i18n
?
?
?
?
Configure VNC Server
#安装vncserver包
Yum Install Tigervnc Tigervnc-server–y
#开启自启动
Chkconfig Vncserver on
You can access the Remote Desktop via the UltraVNC Viewer, TigerVNC Viewer, or RealVNC viewer.
#确认vncserver包已经安装
[Email protected] ~]# Rpm-qa | Egrep-i VNC
Tigervnc-server-1.1.0-16.el6.centos.x86_64
[Email protected] ~]#
#确认rpm包配置文件路径
[Email protected] ~]# RPM-QL tigervnc-server-1.1.0-16.el6.centos.x86_64
/etc/rc.d/init.d/vncserver
/etc/sysconfig/vncservers
/usr/bin/xvnc
/usr/bin/vncconfig
/usr/bin/vncpasswd
/usr/bin/vncserver
/usr/bin/x0vncserver
/usr/share/man/man1/xvnc.1.gz
/usr/share/man/man1/vncconfig.1.gz
/usr/share/man/man1/vncpasswd.1.gz
/usr/share/man/man1/vncserver.1.gz
/usr/share/man/man1/x0vncserver.1.gz
?
?
?
#root用户启动vncserver
#输入以root用户登录vncserver时的密码
[Email protected] ~]# Vncserver
?
You'll require a password to access your desktops.
?
Password:
Verify:
Xauth: (stdin): 1:bad display Name "Su172:1" in "Add" command
?
New ' su172:1 (root) ' Desktop is su172:1
?
Creating default startup Script/root/.vnc/xstartup
Starting applications specified In/root/.vnc/xstartup
Log file Is/root/.vnc/su172:1.log
?
[[Email protected] ~]# CD. vnc/
[email protected]. vnc]# ls
passwd Su172:1.log su172:1.pid Xstartup
#普通用户启动vncserver
[[Email protected] ~] $vncserver
#普通用户需要手工改密码
[Email protected] ~]$ VNCPASSWD
Password:
Verify:
?
?
?
?
?
?
?
?
?
?
?
?
?
#root验证
?
?
?
?
#普通user验证
?
?
?
?
#在Server端进行端口验证
?
#确认vcn进程
?
?
#kill VNC Process Verification
?
?
?
?
?
?
#参考
Http://www.centoscn.com/image-text/config/2014/1120/4151.html
Configuring VNC under CentOS