Written by 8:07 am How-tos, Show me the code

Install xrdp on Ubuntu 20.04

NOTE: Before installing xrdp add any secondary language you need to your system
by using, NOT an RDP connection, but a direct access to it, i.e. through a console of the virtualization system if it’s a VM

# install xrdp
sudo apt install xrdp -y
sudo systemctl status xrdp 

# the xrdp user must be a member to the "ssl-cert" group
sudo usermod -a -G ssl-cert xrdp  

# if UFW firewall is in use,
# then you shoud open the RDP port 3389 for your LAN network
# so google for "what is my public ip address" to find you public IP
sudo ufw allow from PUBLIC_IP_ADDRESS to any port 3389
sudo ufw reload 

# if you experience the black screen issue
# then edit the /etc/xrdp/startwm.sh
sudo nano /etc/xrdp/startwm.sh  

# by adding the following lines
# just before the commands that test and execute XSession 


# do not forget to restart the service (or the machine)
sudo systemctl restart xrdp

A glitch

Switching languages does not work properly, at least when connecting from a MS Windows 10 system to Ubuntu through xrdp.

If you use the X button, upper right corner, to close the Windows RDP window, then the next time you connect to Ubuntu switching languages stops working.

The work-around I found is to NOT close the RDP window, but to log-out from Ubuntu, which closes the RPD window too by the way.

Tested on:

  • Ubuntu 20.04 with GNOME 3.36.8
(Visited 45 times, 1 visits today)
Share the Post
Last modified: September 20, 2022