Install and configure VNC in CentOS 6

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.