To connect to the Linux desktop, VNC connects to the Linux Remote Desktop and, following the steps below, it is very simple, fast, and Linux configures VNC (for example, Redhat, CentOS, Fedora Series).
Linux Platform Installation Vncserver
Windows platform uses Vnc-viewer
Method/Step
1, install Vncserver Server software package on Linux platform.
#yum-y Install VNC *vnc-server*
2. Modify the Vncserver master configuration file
#vim/etc/sysconfig/vncservers
Copy the last two lines and remove the line header comment, and then change to
Vncservers= "1:root"
vncserverargs[1]= "-geometry 1024x768"
3. Set Vncserver remote connection password
#vncpasswd
Enter the same password two times (to connect to the Remote Desktop)
4. Start Vncserver Service
#/etc/init.d/vncserver start
Chkconfig vncserver on//boot up
5, the previous step is completed in the root host directory generated. The hidden directory at the beginning of VNC, which is the root user's VNC desktop configuration file. Open Xstartup Configure desktop
#vim/root/.vnc/xstartup
Change the last line to
Gnome &//(using GNOME Desktop)
6. Open Firewall Vncserver port
#vim/etc/sysconfig/iptables
Add a line under "-A input-m State--state new-m tcp-p TCP--dport 22-j ACCEPT"
-A input-m state--state new-m tcp-p TCP--dport 5901-j ACCEPT
Restart Iptables Service
#/etc/init.d/iptables restart
7, open http://www.realvnc.com/under the Windows client, download the corresponding Platform Vnc-viewer client (the file is green software, no need to install),
In the VNC server column, enter
Xxxxip:1 Click Connect and enter the password in the 3rd step to connect to the Remote Desktop in the small pop-up window.
VNC easy connection to Linux Remote Desktop