Last Updated: February 25, 2016
·
5.061K
· ihcsim

XFCE With Headless AWS EC2

I have been experimenting with setting up remote desktop access to headless AWS EC2 from a Windows box. After multiple attempts, I found that XFCE4 is by far the easiest to install and customize.

Here are the installation steps:
1. Launch a new EC2 instance. I tested with the Ubuntu Server 14.04 LTS (HVM) AMI.

  1. Enable SSH access to this instance via the appropriate security group.

  2. Once the new instance is ready, SSH to it and execute the following commands:

    sudo apt-get update

    sudo apt-get install xfce4

    sudo apt-get install xrdp

    sudo service xrdp start

    sudo passwd ubuntu // password to be used for remote desktop access

  3. Assign a security group with the following inbound rule to the EC2 instance to enable remote access:

    Protocol: TCP

    Port Range: 3389 // configuration can be found in /etc/xrdp/xrdp.ini

    Source: <yourmachineip>

  4. Assign an elastic IP to your EC2 instance. You should now be able to remote access to it from your Windows box using your ubuntu username and the password you just set.

Additional customization I did:

  1. Installed the XFCE4 terminal emulator by running sudo apt-get install -y xfce4-terminal

  2. To get auto-complete tabbing to work in the terminal, I had to remove the 'Switch Window For Same Application' shortcut found under Settings > Window Manager > Keyboard.

  3. Install Chrome.

  4. Install Java, Eclipse, git.

  5. Play around with all the awesome themes from xfce-look.