Environment: centos6.4_x64
Installation:
Yum-y Install tigervnc*
Configuration:
#执行vncserver命令, Initialize VNC
[Email protected] ~]# Vncserver
You'll require a password to access your desktops.
Password: #输入密码
Verify: #确认密码
New ' X ' Desktop is linux:1 #启动第1个vnc终端
Creating default startup Script/root/.vnc/xstartup
Starting applications specified In/root/.vnc/xstartup
Log file Is/root/.vnc/linux:1.log
(After the above steps, VNC Server has been started.) If you want to change the password for the VNC server, simply execute the VNCPASSWD command. )
To edit a configuration file:
[[email protected] ~]# vim. Vnc/xstartup
unset Session_manager #确保有这两行
Exec/etc/x11/xinit/xinitrc
[Email protected] ~]# vim/etc/sysconfig/vncservers
vncservers= "1:root" #配置启动用户和窗口大小, other lines are commented
vncserverargs[1]= "-geometry 800x600"
After completion:
[[Email protected] ~]# service vncserver Restart #重启服务, the configuration is successful!
Open the VNC Client for Windows, enter Vncserver-ip:1, and then enter the password!
This article is from the "Fate" blog, so be sure to keep this source http://czybl.blog.51cto.com/4283444/1433616