First of all, I am going to show you how to install VNC Server on Linux or Ubuntu OS and run XFCE Desktop Environment on it. By this article, you can run any Linux VPS like a Desktop Version. This tutorial helps you install desktop and VNC on a VPS server. The steps necessary to configure Ubuntu Desktop and TightVNCServer, which will allow you to connect to a Linux desktop from your PC similar to RDP for Windows servers.
This guide explains the installation and configuration of a VNC server on Ubuntu 14.04 server. So you need to have
- Ubuntu VPS with admin access details
- Putty ( How to login to the VPS with Putty )
- Fresh installed Linux OS
Let’s start the installation.
Steps To Install VNC Server
1. Before anything started, update your system. So login your Server on Putty and run this command one by one
2. Install nano (editor) if you don’t have it already.
apt-get install nano
3. Install desktop GUI + VNC server
apt-get install xorg lxde-core tightvncserver
4. Start vnc and set a password (this will start VNC using port 1)
5. Stop vnc
tightvncserver -kill :1
6. Edit VNC config file
Comment out the following line if it isn’t already:
Add the following lines to the end of the file:
lxterminal & /usr/bin/lxsession -s LXDE &
Now your config should look similar to this:
xrdb $HOME/.Xresources xsetroot -solid grey #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #x-window-manager & # Fix to make GNOME work export XKL_XMODMAP_DISABLE=1 /etc/X11/Xsession lxterminal & /usr/bin/lxsession -s LXDE &
7. Reboot your server
8. Start VNC (here you can define your resolution and port)
vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565
9. FINAL STEP
Download TightVNC Viewer to connect to your server.
IP Address: [your server’s main IP]
Port: 1 (or 5901, 5902 for desktop :2, etc)
Password: [the password you set earlier]
In case you forget your password, or want to reset it later:
Now you are done, you can use your VPS like a PC and also you can install google chrome, Mozilla, and other apps also. If you have a Linux VPS then must try this method.
If you have more question or any problem to install please comment here I will help you to resolve the problem.
And Must share with your who like to install VNC desktop on a Linux server.