Because in the Linux VPS installation wine to achieve hitleap hang machine earn points, Firefox surf the need to make money, search a lot of domestic web site tutorial materials, found that is too old, still stay in the CentOS 5 era, or simply installed not successful, so have to self-taught, Try the simplest way, the most concise code, to complete the installation of the LXDE+VNC desktop environment in a Linux VPS host.
According to many of the foreigner coder recommended, LXDE is the most lightweight Linux desktop environment, small and efficient, so choose LXDE plus tightvncserver to make this tutorial.
First, the preparatory work
1, the hardware environment: a Linux VPS host, at least 256 megabytes of memory above, recommended 512 megabytes of memory or higher
2, System environment: Install Debian or ubantu system, recommended Ubuntu 14.04 64-bit version (tested)
3. Tool Software: Putty, VNC Viewer
Ps: In putty, click the right mouse button, you can paste the copied code into the putty, press ENTER to execute the Linux command.
Second, the installation process
1. Use putty to connect to the VPS host and log in with the root admin account.
2. Uninstall or remove unnecessary system services:
apt-get purge apache2* bind9* samba*
In this step, you will see a prompt to continue with the installation, shown as do you want to continue? [y/n], enter Y and press ENTER to confirm the installation.
3. Upgrading Debian or Ubantu systems:
apt-get update
apt-get upgrade
In this step, the execution Apt-get upgrade will appear one time whether to continue the installation prompts, the operation as above;
4. Install the Nano Editor:
apt-get install nano
5, install lxde+tightvncserver desktop environment:
apt-get install xorg lxde-core tightvncserver
In this step, you will see a prompt to continue with the installation, as in the previous operation.
6. Start the VNC desktop:
tightvncserver :1
In this step, you need to set the VNC password, according to enter the password two times, and then go out would you want to enter a view-only password (y/n), enter n press ENTER to pass the exit.
7. Stop the VNC service:
tightvncserver -kill :1
8. Open the VNC configuration file:
nano ~/.vnc/xstartup
9. Paste the following code text to the end of the contents of the file:
lxterminal &
/usr/bin/lxsession -s LXDE &
Press the key combination ctrl+x, enter Y, press two times to save and exit the file editor.
10. Restart the VPS Host:
reboot
11. Re-login with putty to start the VNC service:
vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565
The installation process is complete, then, in the local computer to open the VNC software, remote connection VPS host, see the LXDE+VNC desktop environment after the installation of the effect.
Third, connect the desktop
1, open the VNC viewer software, enter your VPS host IP address plus port number, usually in the form of: xx.xx.xx.xx::5901.
2, click Connect Connection, in the Pop-up dialog box to enter the installation of the password, confirm login. After successful login, you will be presented with a classic LXDE desktop, such as:
Debian or Ubantu system installation LXDE+VNC Desktop Environment Tutorial