CentOS 6 installation and configuration of VNC is an excellent remote control tool software on Linux, generally, we install vnc client software on Windows to remotely access Linux machines (RealVNC, a common client on Windows). to remotely connect to Linux, we must first ensure that VNC server is installed on Linux, the following uses CentOS 6 as an example:
1. Check whether VNC server [root @ centos6 ~] is installed # Rpm-qa | grep vnctigervnc-1.0.90-0.17.20110314svn4359.el6.i686gtk-vnc-0.3.10-3.el6.i686tigervnc-server-1.0.90-0.17.20110314svn4359.el6.i686gtk-vnc-python-0.3.10-3.el6.i686 if the above several rpm packages already exist, it means that the VNC server has been installed, next jump to Step 3 to start vncserver on it, otherwise execute Step 2 www.2cto.com
2. install VNC server # yum install tigervnc # yum install tigervnc-server3. to start vncserver for the first time, you need to enter the password twice to start vncserver [root @ centos6 mnt] # vncserverYou will require a password to access your tops. password: Verify: New 'centos6 .xman.org: 1 (root) 'desktop is centos6.xman.org: 1 Creating default startup script/root /. vnc/xstartupStarting applications specified in/root /. vnc/xstartupLog file is/root /. vnc/centos6.xman.org: 1.log www.2cto.com. You can see that a desktop is generated: centos6.xman.org: 1. Then enter the desktop on the VNC client to connect to the Linux desktop. If the connection fails, it may be caused by the following two reasons:
(1) The hostname of remote Linux is not configured in the hosts file of local windows, and the solution is also very simple, you only need to replace the hostname of the desktop with the IP address or add the hosting between the hostname and IP address in the hosts file of the local windows Server (2) because the firewall of Linux is blocked, in this case, we can choose to disable the firewall or add the VNC service port to the Trust List of the Linux Firewall # disable the firewall #/sbin/service ipstables stop how to add the VNC server to the firewall Trust List of Linux, see Linux Firewall policy configuration. Author: DanielXLee