Created
February 10, 2026 19:45
-
-
Save kntjspr/9fd524b6309e83b7896befebe6863a4c to your computer and use it in GitHub Desktop.
aws ubuntu intial setup
This file contains hidden or 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
| # 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