VNC Configuration Manual
first, the service side
VNC (Virtual Network Computing) is a Linux system (or BSD, MAC, etc.) commonly used in graphical remote management tools, using the RFB protocol. VNC, like SSH, is also divided into client and server side, we install VNC server on the server that need to be accessed remotely, the client program that installs VNC on other computer is connected with it. In CentOS 6/rhel 6 we use TIGERVNC as our own VNC tool, which is not installed by default, and if we want to use the VNC service, we have to follow the procedure:
1, first we need to install TIGERVNC this tool through Yum: Yum install tigervnc-server
2, after installation VNC configuration file By default is no configuration information, so if we need to use the VNC service, we must modify its configuration information:
vi/etc/sysconfig/vncservers
Add Content: vncservers= "Digital number: username"
3, after the configuration, VNC also need to have a separate VNC password, so we have to create a separate VNC password for each user who enables VNC service, through the VNCPASSWD command ("NOTE:" must be switched to the user, or the VNC service does not start up):
[Email protected] ~]# su-username[[email protected] ~]$ vncpasswd password:verify:
4, for the user set up a separate VNC password, we start this time vncserver this service: Services Vncserver start
5. It is usually necessary to close the Iptables (/sbin/service ipstables stop) or empty the rules inside it, or add a rule to the iptables. Otherwise, you cannot telnet to the VNC server via the VNC client: Iptables-f
"Note" The above configuration also requires modifying a file in order to troubleshoot Remote Desktop and local desktop synchronization issues:
# vim/root/.vnc/xstartup#!/bin/sh# Uncomment the following, lines for normal desktop:unset session_managerexec/etc/x1 1/xinit/xinitrc[-x/etc/vnc/xstartup] && exec/etc/vnc/xstartup[-R $HOME/. Xresources] && Xrdb $HOME/. Xresourcesxsetroot-solid greyvncconfig-iconic &xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &gn Ome-session & #set starting GNOME Desktop#startkde & #kde desktop#twm & #Text interface#/usr/bin/startxfce4#e Xec/usr/bin/fluxbox
After the modification is completed, enter: Service vncserver start
At this point the server is configured OK and then the client is configured.
Second, the client
Client Download: http://download.csdn.net/detail/u010066564/8135121
Fill in the server-side IP: Port number (the "number" vncservers= "Number: username" set in step 2nd above), then connect.
This article read: Baidu, blog Park related blog.
CentOS6.5 and Windows Remote Desktop configuration