Install and configure VNC in centos 6
Environment centos6.3
VNC is an excellent remote control tool software on Linux. We usually install VNC client software on Windows to remotely access Linux machines (commonly used Windows client RealVNC ), to remotely connect to Linux, you must first ensure that the VNC server has been installed on Linux. The following uses centos 6 as an example to describe it:
If the above RPM packages already exist, it indicates that the VNC server has been installed. Next, jump to Step 3 and start vncserver. Otherwise, execute step 2.
1. Check whether the VNC Server is installed
[[email protected] ~]# rpm -qa | grep vnc tigervnc-1.0.90-0.17.20110314svn4359.el6.i686 gtk-vnc-0.3.10-3.el6.i686 tigervnc-server-1.0.90-0.17.20110314svn4359.el6.i686 gtk-vnc-python-0.3.10-3.el6.i686
2. Install VNC Server
# yum install tigervnc# yum install tigervnc-server
3. Start vncserver
The first time you start vncserver, you need to enter the password twice.
Error 1: [Dix] cocould not init font path element/usr/share/X11/fonts/MISC, removing from list!
Solution: Install the three packages Yum install libxfont xorg-x11-xinit xorg-x11-fonts-Type1
Then restart:
2. Today, the latest centos version is 6.4. If it is centos6.4 or earlier, run the following command:
After Yum install-y tigervnc * is run, the following error is displayed:
Warning: the first attempt to start xvnc failed, possibly because the font
Catalog is not properly configured. Attempting to determine an appropriate
Font path for this system and restart xvnc using that font path...
Cocould not start xvnc.
/Usr/bin/xvnc: Symbol lookup error:/usr/bin/xvnc: Undefined symbol:
Pixman_composite_trapezoids
/Usr/bin/xvnc: Symbol lookup error:/usr/bin/xvnc: Undefined symbol:
Pixman_composite_trapezoids
This is because the version causes font problems. You need to install and update the X11 package, or check that pixman is prompted to install this package.
Command: Yum install pixman-devel libxfont-y
[[email protected] mnt]# vncserverYou will require a password to access your desktops.Password:Verify:New ‘centos6.xman.org:1 (root)‘ desktop is centos6.xman.org:1Creating default startup script /root/.vnc/xstartupStarting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/centos6.xman.org:1.log
You can see that a desktop: centos6.xman.org: 1 has been generated.
For convenience, you can see that the vncserver is added to the startup service, use setup-> system services, and select vncserver to save.
Enter the above 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 Linux firewall has blocked the firewall, we can disable the firewall or add the VNC service port to the Trust List of the Linux firewall.
This article is from the "David 0512" blog, please be sure to keep this source http://gjr0512.blog.51cto.com/6518687/1568696
Install and configure VNC in centos 6