1. Before installing VNC, first install GNOME on CentOS
Yum " GNOME Desktop " " Graphical administration Tools "
2. Installing Tigervnc and X11
Yum Install tigervnc-server xorg-x11-fonts-type1
3. Copy the VNC configuration file
CP /lib/systemd/system/[email protected]/etc/systemd/system/[email protected]:5. Service
4. Edit the copied file
VI /etc/systemd/system/[email protected]:5. Service
5. Use your own user in place of the <USER> in the configuration file
6. Set the firewall to allow connections
Firewall-cmd--permanent--zone=public--add-port=5905/tcpfirewall-cmd--reload
7. Switch to your account, start VNC, and set the password.
Vncserver
8. Reload Deamon under the root account
Systemctl Daemon-reload
Systemctl start [email protected]:5. Service
SYSTEMCTL enable [email protected]:5. Service
9. Using the VNC Viewer connection under Win7, enter the Ip:5
Windows 7 using VNC to Telnet to CentOS 7 method