Install vncserver on Linux

Source: Internet
Author: User

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

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.