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
4
Answers
I got the same problem and after many tries I solved it by:
1) Removing xrdp
2) Reinstall xrdp
3) Very Important Add this lines after install:
I have found an alternative solution:
This will install x2go, which is opensource remote desktop (RDP) server for Linux with
x2goclient
available both for Linux and Windows.But I personally use chrome remote desktop. As the install was straightforward and I have never had any driver/config/software issues with it so far.
This worked perfectly for me in Ubutu 20.04.1 LTS
1. Remove previously installed xrdp:
2. Re-install xrdp & required packages:
You also need to grant access to the /etc/ssl/private/ssl-cert-snakeoil.key file for xrdp user. It is available to members of the ssl-cert group by default.
3. Reboot system:
4. Firewall configuration (optional):
You need to open access on port 3389.
It is more secure to open it only for your IP address or network. For example:
The best practice is to use an SSH tunnel to connect to the remote desktop and make xRDP listen only for local connections.
5. Setup your RDP-client
Please note that in some cases the user who will connect to xRDP must log out before doing so!
Related commands: