9 Steps total
Step 1: Login to Ubuntu
Login to your Ubuntu Desktop environment.
Step 2: Open the Terminal
Press CTRL+ALT+T and open the terminal. Alternatively you need to open it from the bottom right application list and search for terminal.
Step 3: Update Ubuntu
Run the following commands: sudo apt update sudo apt dist-upgrade
Step 4: Install XRDP Package
Run the following command: sudo apt install xrdp
Step 5: Setup the Xsession File for XRDP
Run the following command: echo xfce4-session> ~/.xsession
Step 6: Allow RDP traffic through UFW Firewall
Run the following command sudo ufw allow 3389/tcp
Step 7: Reboot the Device
Step 8: Test RDP by connecting through RDP
Connect via Remote Desktop on a Windows (Microsoft Remote Desktop Client) or through Remmina on Linux.