CentOS 6.8 has the default installation of VNC located on port 5900:
System, preferences, Remote Desktop
Tick the [share] option, uncheck the [Security] option, and then add port 5900 to the firewall.
Basic can be used, using the VNC viewer directly enter the service IP address can be connected to the
But always appear click to double click, copy and paste files that cannot share the clipboard,
It's also full of troubles!!!!
And then he TigerVNC the installation.
1. Installing Tigervnc-server
Yum Install Tigervnc-server
2. Configure the display resolution, products and users, edit the configuration:
Vim/etc/sysconfig/vncservers
vncservers= "2:root"vncserverargs[2]= "-geometry 1024x768-nolisten TCP"
Here directly refer to the last two lines of the configuration file is written, the first line of the user name I directly write the root (System account, if there is no need to add an account to Linux), the second line to remove the -localhost .
3. Configure the VNC desktop environment and password
Configure the user name to log on to Linux, and then start Vncserver, then vncserver load the corresponding user's local path and environment information, so that the user's VNC authentication, log and other storage to the appropriate path.
Command line execution:
$ vncserver
The first time you will be prompted to set a password, follow the prompts to enter a good password.
The. VNC directory and several files are automatically generated in the current user directory.
4. Start/stop VNC Server Service
Log on as an administrator and stop the service first
Service Vncserver Stop #停止服务service vncserver start #启动服务
5. Configure Firewall ports
The default port is: 5902 Add to Firewall
Then use the Vncviewer connection, fill in the Address bar:
ip:5902
Can connect
PS: However, the problem of clicking on the double-click is resolved, but the Clipboard is still only Windows to Linux and Linux is not available to Windows,fuck. What are you doing?
CentOS 6.8 Installation Tigervnc implement Linux Remote Desktop