18.04.3 LTS XRDP "login failed for display: 0"

I'm trying to connect to my Ubuntu machine from a Windows 10 machine. I'm new to Linux, but have been working at this for a few weeks now.

I have no idea what I need to get this to work. I have installed xrdp and gnome, and am able to remote into the Ubuntu machine. Unfortunately at the login prompt, when I enter the password that I use to connect to my Ubuntu machine, I am receiving a "login failed for display: 0" error. Additionally, how do I even set up a user account to login? Where/how do I set the password? I'm not sure what else I need to set this up.

Would anyone be able to point me in the right direction?


Solution 1:

There is a known issue with Ubuntu 18.04.2 and 18.04.3 and xrdp package found in the repository. When you install xrdp from repository on Ubuntu 18.04.2 and later, the package needs xorg-xserver-core packages while these point releases have the xorg-xserver-core-hw* packages installed

Please note also that since Ubuntu 18.04, xRDP is working fine with the GNOME Desktop and you can perform an xRDP connection to the system.

To fix this issue, you can use one of the following options below

BEST OPTION - Install xorgxrdp-hwe-18.04 package

A new compatible xorgxrdp package has been made available for Ubuntu 18.04.2 and 18.04.3. Install it by issuing the following command

sudo apt-get install xorgxrdp-hwe-18.04

OPTION A - Downgrading packages xorg-xserver-core

We assume that you have already installed xRDP package and you want to fix it

sudo apt-get install xserver-xorg-core
sudo apt-get -y install xserver-xorg-input-all

More info on this blog post

OPTION B - Use compiled packages from Thiago

Note : To use this option, please remove the xrdp package you have installed

sudo add-apt-repository ppa:martinx/xrdp-hwe-18.04
sudo apt-get update
sudo apt-get install xrdp xorgxrdp

more info at this blog post

OPTION C - Use the installation scripts

Note : To use this option, please remove the xrdp package you have installed

You can automate the xrdp installation and have it working nicely with Ubuntu Default Desktop using one of the following scripts

  • To use Ubuntu repository packages, read instructions and download the script at this blog page
  • To compile from source (easy way), read instructions and download the script at this blog page