1. You can download the vncserver package from the official VNC website. Http://www.realvnc.com/
The downloaded package is vnc-4_1-x86_linux_assist.tar.gz.
2. Unpack and install VNC.
# Tar zxvf vnc-4_1-x86_linux_1_.tar.gz
# Cd vnc-4_1-x86_linux
#./Vncinstall/usr/local/bin
#./Vncinstall/usr/local/bin/usr/local/man
# Mkdir-P/usr/local/VNC/classes
# Cp Java/*/usr/local/VNC/classes
3. Run the VNC server.
Set the client access password: # vncpasswd
Passwd: // The password is not displayed
Verify: // It is not displayed when the password is entered.
$ VI/root/. VNC/xstartup
Change the last line of TWM & to gnome-session & or KDE &
Please note that after the modification, kill the original active process and connect it again.
For example, first open a session, vncserver: 1, and change the last line of TWM & to gnome-session & or KDE &.
Restart vncserver
$ Vncserver-kill: Port Number
$ Vncserver: Port Number
VNC client:
After RealVNC is installed in windows, run vncviewer, enter the IP address and port number of the VNC server, and then enter the password to log on to the X interface.
192.168.1.10: Port Number
If the port number is 1 and the default port number of VNC is 5900, you can write it as 192.168.1.10: 5901 or 192.168.1.10: 1.
Note 1: If the server connection times out and the (10060) error occurs, check whether the server has enabled the firewall to block the VNC port. You can use # services iptables stop to disable the firewall and try again.
NOTE 2: If this error occurs after installation:
Error while loading shared libraries: libstdc ++-libc6.2-2. so.3: cannot open shared object file: no such file or directory
You can download a libstdc ++-libc6.2-2. so.3 copy to the/usr/lib/directory, the specific operation method can be referred to: http://blog.csdn.net/lornice/archive/2008/09/06/2891674.aspx