How to Setup an Ubuntu Linux VM in Azure with Remote Desktop (RDP) Access (Ubuntu Desktop GUI)

sudo apt-get update
sudo apt-get install ubuntu-desktop
wget http://c-nergy.be/downloads/xrdp-installer-1.2.1.zip
unzip xrdp-installer-1.2.1.zip
chmod +x xrdp-installer-1.2.1.sh
./xrdp-installer-1.2.1.sh

To implement the sound redirection fix within the xrdp session, use this syntax:

./xrdp-installer-1.2.1.sh -s yes

To implement the lock screen fix for GDM within the xrdp session, use this syntax

./xrdp-installer-1.2.1.sh -g yes

xRDP – How to Fix the Infamous system crash popups in Ubuntu 18.04 (and previous versions)

sudo rm /var/crash/*

Enable RDP in firewall

# ufw enable
# ufw allow 3389/tcp
# ufw status

Credits go to: http://c-nergy.be/blog/?p=12761

Leave a Reply