Remote desktop on an Ubuntu VPS
In most Linux hosting environments, there is no need for the bloat of a graphical user interface. Everything can be done directly from the command line, or failing that via a web based control panel such as cPanel or Webmin. However, for those who need a shared development or testing environment, or simply a remote server to browse from, installing remote desktop on Linux may be the best solution.
This post is going to describe the simple steps I took to turning my Ubuntu VPS into a Ubuntu remote desktop. Firstly, start with an apt-get update to make sure your sources are up to date. If you’re with Crucial, you should use our mirrors.
As Ubuntu Server as provisioned with no desktop pre-installed, you’ll need to first install your favourite desktop interface on your VPS. The easiest way of doing this is to install the *-desktop metapackages available in Ubuntu.
As this is a remote server environment and I don’t need the graphical bells and whistles, I’m going to install xubuntu-desktop.
apt-get install –no-install-recommends xubuntu-desktop
The “–no-install-recommends” flag ensures Ubuntu doesn’t install extras such as Office, productivity and media software. Even without the extras, it will take a little while to download and install the Xfce desktop.
Once Xfce is installed, it’s time to install and configure our remote desktop. At this point, it is important to distinguish between ‘remote desktop’ and ‘desktop sharing’. Desktop sharing will allow you to control a server remotely using the VNC protocol, but will only allow a single connection. This means if two people connect at the same time, they will be battling for control of the mouse and keyboard. Desktop sharing is handy for remote desktop support, but not ideal for a server environment. I’m going to be using RDP, which similar to Windows Remote Desktop, allows multiple separate sessions on the server at the same time. Luckily, there is a great open source implementation of RDP called xrdp. To install it, ssh into your VPS and run the following command:
apt-get install xrdp
It’s that easy, now xrdp is installed and ready to connect. Open up your remote desktop client (available in Windows, Mac and Linux), enter the IP address of your VPS and click Connect. You should be greeted with the xrdp login box, followed by your shiny new Xfce desktop.
-
Haris
-
Leonardo
-
sam
-
liam
-
Sergiu
-
Amri
-
İlker Akın ÖZDEMİR