Installation of Xubuntu desktop 20.04 on DigitalOcean Droplet

I wanted to install Xubuntu on my DigitalOcean droplet of 8GB RAM, 4vCPUs and 50 GB HDD but unfortunately not able to get success
I followed the below steps:-

  1. XRDP installation
  2. Tasksel installation
  3. Installed Xubuntu desktop using Tasksel
  4. restarted XRDP services

Now when I RDP this machine, I am not able to reach XUbuntu login screen. The system goes till xrdp screen. Can anyone help me please.

Any logs you can provide?

Can you run the following and post its output here:

inxi -Fxmz
System:    Kernel: 5.4.0-73-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Console: tty 0
           Distro: Ubuntu 20.04.2 LTS (Focal Fossa)
Machine:   Type: Kvm System: DigitalOcean product: Droplet v: 20171212 serial: <filter>
           Mobo: N/A model: N/A serial: N/A BIOS: DigitalOcean v: 20171212 date: 12/12/2017
Memory:    RAM: total: 7.78 GiB used: 651.4 MiB (8.2%)
           Array-1: capacity: 8 GiB slots: 1 EC: Multi-bit ECC max module size: 8 GiB note: est.
           Device-1: DIMM 0 size: 8 GiB speed: type: RAM
CPU:       Topology: Quad Core model: DO-Premium-Intel bits: 64 type: MCP arch: Skylake rev: 4 L2 cache: 4096 KiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19953
           Speed: 2494 MHz min/max: N/A Core speeds (MHz): 1: 2494 2: 2494 3: 2494 4: 2494
Graphics:  Device-1: Red Hat QXL paravirtual graphic card driver: N/A bus ID: 00:02.0
           Display: server: X.org 1.20.9 driver: N/A tty: 168x44
           Message: Advanced graphics data unavailable in console for root.
Audio:     Message: No Device data found.
Network:   Device-1: Intel 82371AB/EB/MB PIIX4 ACPI vendor: Red Hat Qemu virtual machine type: network bridge driver: N/A
           port: c080 bus ID: 00:01.3
           Device-2: Red Hat Virtio network driver: virtio-pci v: 1 port: c0c0 bus ID: 00:03.0
           IF: eth0 state: up speed: -1 duplex: unknown mac: <filter>
           Device-3: Red Hat Virtio network driver: virtio-pci v: 1 port: c0e0 bus ID: 00:04.0
           IF: eth1 state: up speed: -1 duplex: unknown mac: <filter>
Drives:    Local Storage: total: 160.00 GiB used: 4.81 GiB (3.0%)
           ID-1: /dev/vda model: N/A size: 160.00 GiB
Partition: ID-1: / size: 154.90 GiB used: 4.80 GiB (3.1%) fs: ext4 dev: /dev/vda1
Sensors:   Message: No sensors data was found. Is sensors configured?
Info:      Processes: 141 Uptime: 27m Init: systemd runlevel: 5 Compilers: gcc: N/A Shell: bash v: 5.0.17 inxi: 3.0.38

Please suggest next steps

Can you run the following and post its output here:

grep -v 'DEBUG' /var/log/xrdp.log
grep -v 'DEBUG' /var/log/xrdp-sesman.log

[20210624-15:10:24] [INFO ] address [0.0.0.0] port [3389] mode 1
[20210624-15:10:24] [INFO ] listening to port 3389 on 0.0.0.0
[20210624-15:10:24] [INFO ] xrdp_listen_pp done
[20210624-15:10:26] [INFO ] starting xrdp with pid 23731
[20210624-15:10:26] [INFO ] address [0.0.0.0] port [3389] mode 1
[20210624-15:10:26] [INFO ] listening to port 3389 on 0.0.0.0
[20210624-15:10:26] [INFO ] xrdp_listen_pp done
[20210624-15:30:34] [INFO ] address [0.0.0.0] port [3389] mode 1
[20210624-15:30:34] [INFO ] listening to port 3389 on 0.0.0.0
[20210624-15:30:34] [INFO ] xrdp_listen_pp done
[20210624-15:30:36] [INFO ] starting xrdp with pid 50947
[20210624-15:30:36] [INFO ] address [0.0.0.0] port [3389] mode 1
[20210624-15:30:36] [INFO ] listening to port 3389 on 0.0.0.0
[20210624-15:30:36] [INFO ] xrdp_listen_pp done
[20210624-15:31:06] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:103.211.54.245 port 54062
[20210624-15:31:06] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20210624-15:31:06] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20210624-15:31:06] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[20210624-15:31:08] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:103.211.54.245 port 54064
[20210624-15:31:08] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20210624-15:31:08] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20210624-15:31:08] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[20210624-15:31:08] [INFO ] connected client computer name: PEEYUSH-PC-BD-0
[20210624-15:31:08] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
[20210624-15:31:08] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20210624-15:31:08] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20210624-15:31:08] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
[20210624-15:31:09] [INFO ] Non-TLS connection established from ::ffff:103.211.54.245 port 54064: encrypted with standard RDP security
[20210624-15:31:10] [INFO ] Cannot find keymap file /etc/xrdp/km-00004009.ini
[20210624-15:31:10] [INFO ] Cannot find keymap file /etc/xrdp/km-00004009.ini
[20210624-15:31:10] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20210624-15:31:10] [WARN ] local keymap file for 0x00004009 found and doesn't match built in keymap, using local keymap file
[20210624-15:31:23] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20210624-15:31:23] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20210624-15:31:23] [INFO ] lib_mod_log_peer: xrdp_pid=51046 connected to X11rdp_pid=51089 X11rdp_uid=0 X11rdp_gid=0 client_ip=::ffff:103.211.54.245 client_port=54064
[20210624-15:42:46] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:165.227.136.212 port 61194
[20210624-15:42:46] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20210624-15:42:46] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20210624-15:42:46] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[20210624-15:44:28] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:165.227.136.212 port 52171
[20210624-15:44:28] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20210624-15:44:28] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20210624-15:44:28] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[20210624-15:46:12] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:165.227.136.212 port 59508
[20210624-15:46:12] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20210624-15:46:12] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20210624-15:46:12] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[20210624-15:47:54] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:165.227.136.212 port 50481
[20210624-15:47:54] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20210624-15:47:54] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20210624-15:47:54] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[20210624-16:24:57] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:167.172.31.96 port 61000
[20210624-16:24:57] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20210624-16:24:57] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20210624-16:24:57] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[20210624-16:27:05] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:45.76.125.37 port 51585
[20210624-16:27:05] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20210624-16:27:05] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20210624-16:27:05] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied

[20210624-15:10:24] [INFO ] starting xrdp-sesman with pid 23721
[20210624-15:10:24] [INFO ] listening to port 3350 on 127.0.0.1
[20210624-15:30:34] [INFO ] shutting down sesman 1
[20210624-15:30:34] [INFO ] starting xrdp-sesman with pid 50936
[20210624-15:30:34] [INFO ] listening to port 3350 on 127.0.0.1
[20210624-15:31:23] [INFO ] A connection received from ::1 port 55762
[20210624-15:31:23] [INFO ] ++ created session (access granted): username root, ip ::ffff:103.211.54.245:54064 - socket: 12
[20210624-15:31:23] [INFO ] starting Xorg session...
[20210624-15:31:23] [INFO ] calling auth_start_session from pid 51083
[20210624-15:31:23] [INFO ] /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20210624-15:31:24] [CORE ] waiting for window manager (pid 51088) to exit
[20210624-15:31:24] [CORE ] window manager (pid 51088) did exit, cleaning up session
[20210624-15:31:24] [INFO ] calling auth_stop_session and auth_end from pid 51083
[20210624-15:31:24] [INFO ] ++ terminated session:  username root, display :10.0, session_pid 51083, ip ::ffff:103.211.54.245:54064 - socket: 12

Read through these posts and apply each solution or workaround found, one by one, starting with the least invasive one, until one helped:

https://bbs.archlinux.org/viewtopic.php?id=265922

https://bugzilla.redhat.com/show_bug.cgi?id=1575792

I was able to connect via X2go client