How to connect to Ubuntu 20.04 using Remote Desktop


Install Xrdp

To install Xrdp, run the following command.

apt update

apt install xrdp


root@vps:~# apt install xrdp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
Suggested packages:
  guacamole xrdp-pulseaudio-installer
The following NEW packages will be installed:
  xorgxrdp xrdp
0 upgraded, 2 newly installed, 0 to remove and 45 not upgraded.
Need to get 488 kB of archives.
After this operation, 3,212 kB of additional disk space will be used.
Do you want to continue? [Y/n] y

To enable Xrdp on start up, use the command below.

systemctl enable xrdp


root@vps:~# systemctl enable xrdp
Synchronizing state of xrdp.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable xrdp

To check Xrdp status using the command below.

systemctl status xrdp


root@vps:~# systemctl status xrdp
● xrdp.service - xrdp daemon
     Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: >
     Active: active (running) since Fri 2020-05-08 20:48:58 UTC; 1min 17s ago
       Docs: man:xrdp(8)
   Main PID: 45020 (xrdp)
      Tasks: 1 (limit: 1074)
     Memory: 1.1M
     CGroup: /system.slice/xrdp.service
             └─45020 /usr/sbin/xrdp

Connect via Windows

Open Windows Remote Desktop Connection (RDP) Software and login to the desktop hostname or IP address.


Enter the username and password to connect using Xorg.


GUI welcome page will appear and you can access the ubuntu server.