Skip to content

Instantly share code, notes, and snippets.

@Resistor52
Last active December 13, 2018 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Resistor52/726eec699aa06f59b5ed292b376e1888 to your computer and use it in GitHub Desktop.
Save Resistor52/726eec699aa06f59b5ed292b376e1888 to your computer and use it in GitHub Desktop.
Create an Ubuntu EC2 Linux Desktop with xRDP
## Supply this file as the user data when launching an Ubuntu EC2 instance
#!/bin/bash
apt -y update
DEBIAN_FRONTEND=noninteractive apt -y upgrade
apt install -y ubuntu-mate-desktop
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
dpkg -i google-chrome-stable_current_amd64.deb
apt install -y xrdp
systemctl enable xrdp
# NOTES:
# run `sudo passwd ubuntu` to set a password for xrdp
# Lock down the AWS Security Group to just your source IP address for ports 22 and 3389
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment