Last active
December 13, 2018 21:43
-
-
Save Resistor52/726eec699aa06f59b5ed292b376e1888 to your computer and use it in GitHub Desktop.
Create an Ubuntu EC2 Linux Desktop with xRDP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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