Readvnc software Download: http://down.51cto.com/data/2270937
1. Install the VMC service with Yum.
# yum Install tigervnc-server-y
2. Edit the VNC service configuration file.
Vi/etc/sysconfig/vncservers
My computer has two user root and Roott.
A User configuration:
vncservers= "1:root" vncserverargs[1]= "-geometry 1024x768-alwaysshared"
Two user configurations:
vncservers= "1:root 2:roott" vncserverargs[1]= "-geometry 1024x768-alwaysshared" vncserverargs[2]= "-geometry 1024x768 -alwaysshared "
Parameters:-alwaysshared is for anyone to connect
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/8B/C3/wKioL1hYhSSgJow9AAAdO2fe9qA243.png-wh_500x0-wm_3 -wmp_4-s_37305729.png "title=" Vncservers.png "alt=" Wkiol1hyhssgjow9aaado2fe9qa243.png-wh_50 "/>
3. Set the remote connection password for the VNC user.
Attention:
1) to login to the corresponding user to execute the Set password command when modifying. To set a password for Roott, log in to the Roott user.
2) to enter the password two times.
# VNCPASSWD
4. Set up the connected desktop.
Vi/root/.vnc/xstartup
To the last row. Add the # number to the TWM & before commenting out. Adding a line "Gnome-session &"
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8B/C3/wKioL1hYiXbRKvgcAAAR4jkhkjc279.png-wh_500x0-wm_3 -wmp_4-s_640042894.png "title=" Xstartup.png "alt=" Wkiol1hyixbrkvgcaaar4jkhkjc279.png-wh_50 "/>
Note: The other user's. VNC is in the home directory, such as Roott.
Vi/home/roott/.vnc/xstartup
5. Start Vncserver.
/etc/init.d/vncserver Start or service vncserver start
Boot up
Chkconfig Vncserver on
6.VNC remote connection, this tutorial RealVNC to link
127.0.0.1 is IP, the following: 1 is the root user for the link, that is, in the/etc/sysconfig/vncservers set vncservers= "1:root 2:roott" corresponding users.
If you want to link Roott users then write 127.0.0.1:2
Then enter the password you set for step 3.
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8B/C7/wKiom1hYi12y-bsWAAC1EM7Ybk8049.png-wh_500x0-wm_3 -wmp_4-s_1265606124.png "title=" VNC connection. png "alt=" wkiom1hyi12y-bswaac1em7ybk8049.png-wh_50 "/>
Reference:
Http://www.cnblogs.com/cutelinux/p/5754835.html
https://linux.cn/article-5335-1.html CentOS7 VNC Installation
This article is from the "Enlightened Grocery store" blog, please be sure to keep this source http://wutou.blog.51cto.com/615096/1884144
CentOS (Linux) Installation VNC Server service VNC download