Skip to content

Instantly share code, notes, and snippets.

@Resistor52 Resistor52/user-data-file
Last active Dec 13, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.