How to install X2Goserver on Ubuntu 14.04 Linux Remote Desktop

This installation guide has been tested in 12.04, 14.04 and 16.04 LTS and working.


This document describes how to use X2Goserver as an alternative of VNC. I will install and configure X2Goserver on Ubuntu 14.04. X2Go enables us to access a graphical desktop of a computer over a low bandwidth (or high bandwidth) connection. X2Go is a Remote Desktop solution, which some vendors vaguely call Remote Control. This is not to be confused with Microsoft Remote Desktop Connection, which is a competing Remote Desktop solution and protocol. With X2Go, we can access Linux computers. The Linux computer we are accessing is the X2Go Server. The best part is that it supports sound transmission over remote connections.

We can connect from a computer running Linux, Windows or Mac OS X. This computer is the X2Go Client. Multiple users/clients can access a single X2Go Server at the same time, with each user/client having an individual Desktop session by default – however, Desktop sharing (Remote Assistance) is also possible.

I do not issue any guarantee that this will work for you!


1 Preliminary Note

This tutorial is based on Ubuntu 14.04 server, so you should set up a basic Ubuntu 14.04 server installation before you continue with this tutorial. The system should have a static IP address. I use as my IP address in this tutorial and as the hostname with user root and administrator having password howtoforge for both. Additionally I will be connecting to the Ubuntu Server through an Ubuntu 14.04 Desktop and a Windows-7 machine. So both desktops are also required.

2 X2Goserver Installation

I will be installing X2Goserver in my Ubuntu 14.04 Server as follows:

apt-get update
apt-get install python-software-properties
add-apt-repository ppa:x2go/stable

[email protected]:~# add-apt-repository ppa:x2go/stable
Quick howto to turn your machine into an X2Go server:

sudo apt-add-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install x2goserver x2goserver-xsession
sudo apt-get install x2golxdebindings lxde lxdm  # if you use LXDE/lubuntu

Quick howto to install the x2goclient:

sudo apt-add-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install x2goclient

More info:
Press [ENTER] to continue or ctrl-c to cancel adding it  <–ENTER

gpg: keyring /tmp/tmpyyi5xx5q/secring.gpg' created
gpg: keyring
/tmp/tmpyyi5xx5q/pubring.gpg’ created
gpg: requesting key 0A53F9FD from hkp server
gpg: /tmp/tmpyyi5xx5q/trustdb.gpg: trustdb created
gpg: key 0A53F9FD: public key “Launchpad PPA for x2go” imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
[email protected]:~#

It will add the X2Goserver repository, Now install it as :

apt-get update
apt-get install x2goserver x2goserver-xsession

Now we need to install the graphical Desktop environment  in the Ubuntu Server, for that install:

apt-get install xfce4

After reboot we are ready for the connection.

3 X2Go connection with Ubuntu Desktop

Now we are going to connect with the Ubuntu 14.04 server with the X2Goclient from my Ubuntu 14.04 desktop. We will install the X2Goclient in the Ubuntu Desktop as follows:

sudo apt-get install x2goclient

It will install the X2Goclient in my machine, if you are using any distribution older than Ubuntu 12.04 then you need to add the repository of X2Goserver same as done above.

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install x2goclient

After successful installation of the client, open the X2Goclient in the desktop as:

Give details as follows:-

Session name : New session (any name)
Host : (Your IP)
Login : administrator (or any user on your Ubuntu Server)
SSH port : 22 ( if not altered at Ubuntu Server)
Session type : XFCE

Now put the user’s credential as in my case it was user=administrator and password=howtoforge :

It will initiate the process of the connection.

It will ask for authenticate the ssh key just press Yes


Press  Use default config:

It will provide us the graphical connection with the Ubuntu Server.

4 Connection through Windows machine

Now I will connect my Windows- 7 machine with the help of X2Goclient to the Ubuntu 14.04 Server. First we need to install the X2Goclient in windows machine. I will install it from link. I will install x2goclient-

Just download the package and install simply with administrative rights.




Now we will connect to the Ubuntu Server by giving the same details as:

Host :
Login : administrator
SSH port : 22
Session type : XFCE

Put the credentials as user=administrator and password=howtoforge as in my case.

We are connected the Ubuntu Server graphically.

Congratulations! We are connected the Ubuntu Server graphically with both Ubuntu and Windows desktop. Now we can perform administrative task graphically also 🙂




Leave a Reply