测试环境:
1、System version:redhat 6.5
2、client version:windows 10 、vnc viewer
配置步骤:
1、
[[email protected] ~]#yum -y install tigervnc-server
2、
[[email protected] ~]# vncserver
You will require a password to access your desktops.
Password: //输入密码
Verify: //再次输入密码
xauth: creating new authority file /root/.Xauthority
New ‘localhost.localdomain:1 (root)’ desktop is localhost.localdomain:1
Creating default startup script /root/.vnc/xstartup
3、
[[email protected] ~]#vim /root/.vnc/xstartup //在配置写入以下两行保存退出
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
4、
[[email protected] ~]# vim /etc/sysconfig/vncservers //在配置文件中写入以下两行保存退出
VCNSERVERS="1:root" //如果有多个用户VNCSERVER="1:root,2:test"
VNCSERVERARGS[1]="-geometry 800x600"
5、
[[email protected] ~]#/etc/init.d/vncserver restart
终端配置:
注意IP地址后面加上端口号。
点击OK输入密码即可