Skip to content

Instantly share code, notes, and snippets.

@Bes0n
Last active June 23, 2024 20:05
Show Gist options
  • Select an option

  • Save Bes0n/75ab757e6b5049ab4424149ad3014bc6 to your computer and use it in GitHub Desktop.

Select an option

Save Bes0n/75ab757e6b5049ab4424149ad3014bc6 to your computer and use it in GitHub Desktop.
GUI setup on Ubuntu Server based on AWS, with free tier.
  • Step 1. Get Ubuntu Server with Free Tier eligible option.
  • Step 2. Set up everything and access your server
  • Step 3. Run following commands to setup xRDP
sudo apt update &&  sudo apt upgrade

sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config

sudo systemctl restart sshd

sudo passwd <your_username>

sudo apt install xrdp xfce4 xfce4-goodies tightvncserver

echo xfce4-session> /home/<your_username>/.xsession 

sudo cp /home/<your_username>/.xsession /etc/skel

sudo sed -i '0,/-1/s//ask-1/' /etc/xrdp/xrdp.ini

sudo service xrdp restart
  • Step 4. Reboot

NOTES:

  • For security open only port 22 and configure tunneling through the PuTTy.
  • For running daemon in background setsid gnome-calculator
  • For running script in background nohup /path/to/your/script.sh > /dev/null 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment