- 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 &