Test environment:
1. System Version:redhat 6.5
2, Client version:windows 10, VNC Viewer
Configuration steps:
1.
[[Email protected] ~] #yum-y install Tigervnc-server
2.
[Email protected] ~]# Vncserver
You'll require a password to access your desktops.
Password://Enter password
Verify://Enter password again
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//In the configuration write the following two lines save exit
Unset Session_manager
Exec/etc/x11/xinit/xinitrc
4.
[[email protected] ~]# vim/etc/sysconfig/vncservers//write the following two lines in the configuration file to save the exit
vcnservers= "1:root"//If there are multiple users vncserver= "1:root,2:test"
vncserverargs[1]= "-geometry 800x600"
5.
[Email protected] ~]#/etc/init.d/vncserver restart
Terminal configuration:
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/8D/DD/wKiom1itHJOSurQEAABnXTXxsfE226.png-wh_500x0-wm_ 3-wmp_4-s_3178580297.png "title=" 111.png "alt=" Wkiom1ithjosurqeaabnxtxxsfe226.png-wh_50 "/>
Note The IP address is followed by a port number.
Click OK to enter your password
This article is from the "Small Micro" blog, please make sure to keep this source http://guoshiwei.blog.51cto.com/2802413/1900180
VNC Viewer Linux remote connection