环境:Centos6.4_x64
安装:
yum -y install tigervnc*
配置:
#执行vncserver命令,初始化vnc
[[email protected] ~]# vncserver
You will 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
(经上述步骤后,便已启动了VNC Server。如果你想要更改VNC Server的密码,只要执行vncpasswd命令即可。)
编辑配置文件:
[[email protected] ~]# vim .vnc/xstartup
unset SESSION_MANAGER #确保有这两行
exec /etc/X11/xinit/xinitrc
[[email protected] ~]# vim /etc/sysconfig/vncservers
VNCSERVERS="1:root" #配置启动用户和窗口大小,其他行都注释
VNCSERVERARGS[1]="-geometry 800x600"
完成之后:
[[email protected] ~]# service vncserver restart #重启服务,配置成功!
打开windows的vnc客户端,输入 vncserver-ip:1 ,再输入密码即可!
Vnc-server——linux远程桌面配置,布布扣,bubuko.com