Skip to content

Instantly share code, notes, and snippets.

@kntjspr
Created February 10, 2026 19:45
Show Gist options
  • Select an option

  • Save kntjspr/9fd524b6309e83b7896befebe6863a4c to your computer and use it in GitHub Desktop.

Select an option

Save kntjspr/9fd524b6309e83b7896befebe6863a4c to your computer and use it in GitHub Desktop.
aws ubuntu intial setup
# update and install XFCE + XRDP
sudo apt update && sudo apt upgrade -y
sudo apt install -y xfce4 xfce4-goodies xrdp xvfb python3-pip
# configure XRDP to use XFCE
echo "xfce4-session" > ~/.xsession
sudo adduser xrdp ssl-cert
sudo systemctl restart xrdp
# install chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install -y ./google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb
# install Python dependencies for Selenium & Virtual Display
pip3 install selenium pyvirtualdisplay webdriver-manager --break-system-packages
# enable X11 Forwarding for my host connection
sudo sed -i 's/#X11Forwarding no/X11Forwarding yes/' /etc/ssh/sshd_config
sudo sed -i 's/X11Forwarding no/X11Forwarding yes/' /etc/ssh/sshd_config
sudo systemctl restart ssh
# set rdp password (a prompt will appear)
echo "--- PLEASE SET A PASSWORD FOR REMOTE DESKTOP (User: ubuntu) ---"
sudo passwd ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment