Create a headless X11 setup in the cloud and on your workstation
Getting X11 up and running on a headless linux machine can sometimes be pretty tricky and time consuming, especially if the machine is not accessible or impossible to connect a display even temporarily. One particlar case are linux instances on public cloud providers like Amazon or Softlayer. Those instances come with a baremetal linux installation without X11 support and the internet is full of desperate souls looking for solutions to install X11 on their VMs, so they can remote into their instances using VNC or B11. Dullahan is here to help! It is a simple installer that makes the task of installing X11 for headless servers really easy.
At the moment Dullahan only exists for Debian and only has been thoroughly tested on Ubuntu but RPM based distributions are to come soon. It has been tested on Amazon Ubuntu Server 14.04 / 16.04 LTS and on SoftLayer Ubuntu 14.04 / 16.04 instances as well as on standalone workstations.
Just get it from here (right-click and Save Link as...)
Only necessary if you want to modify the installer, you can ignore this if you downloaded the prebuild installer already as mentioned in 'Download the Dullahan installer'.
After cloning the repo, just do
./makepkg.sh
and the script will create a debian package under installer/
Use gdebi to install Dullahan:
-
Update your distro:
sudo apt-get update
-
Install gdebi:
sudo apt-get install gdebi
-
Install Dullahan:
sudo gdebi installer/<distro>/dullahan_<..>.deb
-
reboot:
sudo reboot
After the reboot, your system should run X11 headless and if you use a remote tool like vnc or b11, you can connect to your system and interact with its desktop. You can verify this by 'ps -ef | grep Xvfb'. As part of the installation the account 'ubuntu' will be set up to auto login.
Just double click the installer package (installer/ubuntuxx/dullahan_<..>.deb) and follow the online instructions.
In order to actually see the desktop of your newly setup x11 instance, you would have to install remoting software. Remoting software we like and recommend: