Micro-magic once shared with you a year and a half ago how to install VNC and xfce in Ubuntu (transfer), but since TightVNC was used at the time, this software was small and convenient, in addition, a ready-made package can be installed in the Ubuntu Software source, but it does not support IPv6. For the micro-Magic of campus network users, ipv6 is extremely fast abroad. Therefore, this article chooses RealVNC as the software end of vncserver, which may be a little more complicated than TightVNC in installation, however, it is easy to use.
Install the RealVNC and xfce4 desktop kits in Ubuntu
This article is for test and installation in Ubuntu 14.04.
1. Install xfce and firefox
Apt-get-y install xfce4 xfce4-goodies firefox adobe-flashplugin fonts-wqy -*
For Debian, replace firefox with iceweasel.
2. Download and install RealVNC
Download the RealVNC server (www.realvnc.com/download/vnc/] on the official website. There is a Debian-compatible installation package. Download the tar.gz file. Extract the two deb files and upload the server to VPS. Run the following command to install it.
Dpkg-I specific name. deb
3. Get a license
Although RealVNC is free for personal use, you still need to apply for an authorization license to use it. The method of application is very simple. Simply enter your own information and address (www.realvnc.com/products/vnc/licensing)
Nclicense-add the authorization string just obtained
4. Run RealVNC
It is best to create a user (created by the adduser command) to run VNC, instead of running vnc directly using root as in this article (the logon password is the user password for running vnc)
Vncserver-x11
In this way, the runtime environment of RealVNC + Xfce4 has been set up. The next step is to try to connect with VNC viewer.
How to use VNC?
Download VNCViewer (www.realvnc.com/download/binary/1730/) and enter the ip: 5901 link during connection.
If errors such as 10060/10061/remote host refused occur, it is likely that the VNCServer is not started or the iptables firewall does not allow port 5901 (iptables tutorial), just start