Error when installing and running XRDP (Remote Desktop) with Gnome Ubuntu: I encounter a Black Screen

Jalau picture Jalau · Dec 17, 2019 · Viewed 23.4k times · Source

I'm trying to connect to a remote desktop (Gnome Ubuntu) using XRDP (Remote Desktop Protocol). However, when I connect with either Apache's Guacamole or Microsofts Remote Desktop, I encounter a black screen with a cursor.

I can verify that my Ubuntu server is running healthily through logs as well as ssh'ing in and running a test (proxmox interface).

Interestingly, when I use xfce4 instead of gnome, I am able to connect. However, I can't get the terminal to work properly for some reason. If I am logged into gnome using the proxmox interface I can see the terminal popping up in my gnome session when I start it in my xfce xrdp session.

Possible issues:

Possible issues may include my startup/installation script:

# placeholder for script

Answer

yehudama picture yehudama · Feb 11, 2020

I got the same problem and after many tries I solved it by:

1) Removing xrdp

$sudo apt-get remove xrdp

2) Reinstall xrdp

$sudo apt-get install xrdp

3) Very Important Add this lines after install:

$echo gnome-session > ~/.xsession

$chmod +x ~/.xsession