xRDP – Install xRDP the easy way on Ubuntu 19.04 (Scripted Installation – Version 0.6)

  The script hereafter is outdated and has been replaced by a newer version.  Please Check the Download page for latest version.

 

Hello world,

Finally, it’s time to reveal the updated version of the famous standard xrdp installation script (i.e. Std-Install-xrdp-0.6.sh).  After spending some time in performing a manual installation and finding some issues in Ubuntu 19.04, we have been improving the script in order to provide a better solution when installing xRDP packages and still taking into accounts the user experience aspect that’s left out from the manual installation process.  

In our previous posts, we have described our installation approach (manual first) and then we have explained, described and fixed all the small issues we have encountered when installing xRDP on top of Ubuntu 19.04.  To know more about our findings, you can have a look at the following posts 

The updated version of the standard installation script basically integrates all these findings and the end result is an optimized installation script which still provide the best user experience when using xRDP on top of Ubuntu operating system. 

Time to reveal this updated version… Let’s go ! 

Note :  Please always check this page, to get the latest version of the script

The Standard Installation Script – Version 0.6

Overview

The standard installation script aims to simplify xrdp installation process while performing some additional post configuration tasks that will provide the most relevant user experience. The release of Ubuntu 19.04 has forced us to update the script.  Initially, the script would only include support for Ubuntu 19.04 and would have been labelled version 0.5.4.  However, because some interesting changes have been made in the code, we have decided to move to version 0.6. 

First, we have updated the code that was used to enable Ubuntu Desktop with Dock and Yaru theme when performing the remote connection.  The code has been simplified and reduced quite a lot through the usage of xsessionrc X startup script.  Then, a positive side effect of using this approach has been discovered.  There is no need to fix the gdm login look n’ feel between local session and remote session using complex code.  Again, xsessionrc X startup script fixes the issue which help reducing number of lines in the code.    

Sound redirection function has been re-written because the xrdp-pulseaudio-installer package (which was used in the previous version of the script) is not available on Ubuntu 19.04.  So, instead of waiting for a possible release of this package, we have modified the code for the sound redirection part and we are now compiling directly from the sources.. 

Prerequisites and assumptions

We assume that you have internet connection available and that you are indeed running one of the following version of Ubuntu 

  • Ubuntu 18.04 (up to Ubuntu 18.04.2)
  • Ubuntu 18.10
  • Ubuntu 19.04 
  • We have performed the test on a Virtual Machine running on Virtual box (on Windows 2012 R2) with Sound enabled !!!
  • No additional Desktop interface will be used. The remote desktop session will display the Ubuntu tweak Gnome Desktop interface

The script version 0.6

Important Note :

If you copy/paste the script, you might encounter some issues because font formatting might be not maintained during the copy/paste operation. Please ensure that format is  accurate before launching the script. A downloadable version of the script is available at the bottom of the post

Disclaimer : As usual, use this at your own risk !!

#!/bin/bash
#####################################################################################################
# Script_Name : Std-Xrdp-install-0.6.sh
# Description : Perform an automated standard installation of xrdp
# on ubuntu 18.04 and later
# Date : October 2018
# written by : Griffon
# Web Site :http://www.c-nergy.be - http://www.c-nergy.be/blog
# Version : 0.6
# History : 0.6 - Added support for Ubuntu 19.04 
#               - New code for Look'n feel using xsessionrc method
#               - New code for enabling Sound Redirection - compiling from source 
#               - Removed -g parameter 
# : 0.5.3 - Using Unoffical xRDP packages for Ubuntu 18.04.2 issue
# : 0.5.2 - Quick Fix for Ubuntu 18.04.2
# : 0.5.1 - Add support to Ubuntu 18.10 
# : 0.5 - Add logic to enable sound redirection 
# - re-write code logic to include functions
# - Removed support for Ubuntu 17.10 as reached end of support
# : 0.4 - Add logic to fix GDM lock screen + minor change
# : 0.3 - Adding logic to fix theme and extensions for any users login through xrdp
# 0.2 - Added Logic for Ubuntu 17.10 and 18.04 detection 
# - Updated the polkit section
# - New formatting and structure 
# 0.1 - Initial Script 
# Disclaimer : Script provided AS IS. Use it at your own risk....
####################################################################################################
#---------------------------------------------------#
# Detecting if Parameters passed to script .... 
#---------------------------------------------------#

while getopts s:u: option 
do 
case "${option}" 
in 
s) fixSound=${OPTARG};;
u) unofficialRepo=${OPTARG};; 
esac 
done

#---------------------------------------------------#
# Script Version information Displayed #
#---------------------------------------------------#

echo
/bin/echo -e "\e[1;36m !-------------------------------------------------------------!\e[0m"
/bin/echo -e "\e[1;36m ! Standard XRDP Installation Script - Ver 0.6                 !\e[0m"
/bin/echo -e "\e[1;36m ! Written by Griffon - May 2019 - www.c-nergy.be              !\e[0m"
/bin/echo -e "\e[1;36m !-------------------------------------------------------------!\e[0m"
echo

#--------------------------------------------------------------------------#
# -----------------------Function Section - DO NOT MODIFY -----------------#
#--------------------------------------------------------------------------#

#-----------------------------------------------------#
# Function 0 - Quick and Dirty Patch Ubuntu 18.04.2 #
#-----------------------------------------------------#

install_xservercore() 
{
echo
/bin/echo -e "\e[1;33m !----------------------------------------------------------!\e[0m"
/bin/echo -e "\e[1;33m ! Installing xserver-xorg-core Packages...Proceeding... !\e[0m"
/bin/echo -e "\e[1;33m !----------------------------------------------------------!\e[0m"
echo
sudo apt-get install xserver-xorg-core -y
echo
/bin/echo -e "\e[1;33m !----------------------------------------------------------!\e[0m"
/bin/echo -e "\e[1;33m ! Installing xserver-xorg-input-all pkg...Proceeding... !\e[0m"
/bin/echo -e "\e[1;33m !----------------------------------------------------------!\e[0m"
echo
sudo apt-get -y install xserver-xorg-input-all 
}

#---------------------------------------------------#
# Function 1 - Install xRDP Software.... 
#---------------------------------------------------#

install_xrdp() 
{
echo
/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m"
/bin/echo -e "\e[1;33m ! Installing XRDP Packages...Proceeding... !\e[0m"
/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m"
echo
sudo apt-get install xrdp -y 
}

#---------------------------------------------------#
# Function 2 - Install Gnome Tweak Tool.... 
#---------------------------------------------------#

install_tweak() 
{
echo
/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m"
/bin/echo -e "\e[1;33m ! Installing Gnome Tweak...Proceeding... !\e[0m"
/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m"
echo
sudo apt-get install gnome-tweak-tool -y
}

#--------------------------------------------------------------------#
# Fucntion 3 - Allow console Access ....(seems optional in u18.04)
#--------------------------------------------------------------------#

allow_console() 
{
echo
/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m"
/bin/echo -e "\e[1;33m ! Granting Console Access...Proceeding... !\e[0m"
/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m"
echo
sudo sed -i 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config
}

#---------------------------------------------------#
# Function 4 - create policies exceptions .... 
#---------------------------------------------------#

create_polkit()
{
echo
/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m"
/bin/echo -e "\e[1;33m ! Creating Polkit File...Proceeding... !\e[0m"
/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m"
echo

sudo bash -c "cat >/etc/polkit-1/localauthority/50-local.d/45-allow.colord.pkla" <<EOF
[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes

[Allow Package Management all Users]
Identity=unix-user:*
Action=org.debian.apt.*;io.snapcraft.*;org.freedesktop.packagekit.*;com.ubuntu.update-notifier.*
ResultAny=no
ResultInactive=no
ResultActive=yes
EOF

}

#---------------------------------------------------#
# Function 5 - Fixing Theme and Extensions .... 
#---------------------------------------------------#

fix_theme()
{
echo
/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m"
/bin/echo -e "\e[1;33m ! Fix Theme and extensions...Proceeding... !\e[0m"
/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m"
echo
sudo sed -i.bak "4 a #Improved Look n Feel Method\ncat <<EOF > ~/.xsessionrc\nexport GNOME_SHELL_SESSION_MODE=ubuntu\nexport XDG_CURRENT_DESKTOP=ubuntu:GNOME\nexport XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg\nEOF\n" /etc/xrdp/startwm.sh
echo
}

#---------------------------------------------------#
# Function 6 - Enable Sound Redirection .... 
#---------------------------------------------------#

enable_sound()
{
echo
/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m"
/bin/echo -e "\e[1;33m ! Enabling Sound Redirection... !\e[0m"
/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m"
echo

# Step 1 - Enable Source Code Repository
sudo apt-add-repository -s 'deb http://be.archive.ubuntu.com/ubuntu/ '$codename' main restricted'
sudo apt-add-repository -s 'deb http://be.archive.ubuntu.com/ubuntu/ '$codename' restricted universe main multiverse'
sudo apt-add-repository -s 'deb http://be.archive.ubuntu.com/ubuntu/ '$codename'-updates restricted universe main multiverse'
sudo apt-add-repository -s 'deb http://be.archive.ubuntu.com/ubuntu/ '$codename'-backports main restricted universe multiverse'
sudo apt-add-repository -s 'deb http://be.archive.ubuntu.com/ubuntu/ '$codename'-security main restricted universe main multiverse'
sudo apt-get update

# Step 2 - Install Some PreReqs
sudo apt-get install git libpulse-dev autoconf m4 intltool build-essential dpkg-dev -y
sudo apt build-dep pulseaudio -y

# Step 3 - Download pulseaudio source in /tmp directory - Do not forget to enable source repositories
cd /tmp
sudo apt source pulseaudio

# Step 4 - Compile
pulsever=$(pulseaudio --version | awk '{print $2}')
cd /tmp/pulseaudio-$pulsever
sudo ./configure

# step 5 - Create xrdp sound modules
sudo git clone https://github.com/neutrinolabs/pulseaudio-module-xrdp.git
cd pulseaudio-module-xrdp
sudo ./bootstrap 
sudo ./configure PULSE_DIR="/tmp/pulseaudio-$pulsever"
sudo make

#Step 6 copy files to correct location (as defined in /etc/xrdp/pulse/default.pa)
cd /tmp/pulseaudio-$pulsever/pulseaudio-module-xrdp/src/.libs
sudo install -t "/var/lib/xrdp-pulseaudio-installer" -D -m 644 *.so
sudo install -t "/usr/lib/pulse-$pulsever/modules" -D -m 644 *.so
echo

}


fix_ssl() 
{ 
echo 
/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m" 
/bin/echo -e "\e[1;33m ! Fixing SSL Cert Issue ...                   !\e[0m" 
/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m" 
echo 
sudo adduser xrdp ssl-cert 
}
#--------------------------------------------------------------------------#
# -----------------------END Function Section -----------------#
#--------------------------------------------------------------------------#
#--------------------------------------------------------------------------#
#------------ MAIN SCRIPT SECTION -------------------# 
#--------------------------------------------------------------------------#
#---------------------------------------------------#
#-- Step 0 - Try to Detect Ubuntu Version.... 
#---------------------------------------------------#

version=$(lsb_release -sd) 
codename=$(lsb_release -sc)

echo
/bin/echo -e "\e[1;33m |-| Detecting Ubuntu version \e[0m"

if [[ "$version" = *"Ubuntu 18.04"* ]];
then
/bin/echo -e "\e[1;32m |-| Ubuntu Version : $version\e[0m"
echo
elif [[ "$version" = *"Ubuntu 18.10"* ]];
then
/bin/echo -e "\e[1;32m |-| Ubuntu Version : $version\e[0m"
echo
elif [[ "$version" = *"Ubuntu 19.04"* ]];
then
/bin/echo -e "\e[1;32m |-| Ubuntu Version : $version\e[0m"
echo
else
/bin/echo -e "\e[1;31m !------------------------------------------------------------!\e[0m"
/bin/echo -e "\e[1;31m ! Your system is not running Ubuntu 18.04 Edition and later !\e[0m"
/bin/echo -e "\e[1;31m ! The script has been tested only on Ubuntu 18.04 and later !\e[0m"
/bin/echo -e "\e[1;31m ! The script is exiting... !\e[0m" 
/bin/echo -e "\e[1;31m !------------------------------------------------------------!\e[0m"
echo
exit
fi

/bin/echo -e "\e[1;33m |-| Detecting Parameters \e[0m"

#Detect if argument passed
if [ "$fixSound" = "yes" ]; 
then 
/bin/echo -e "\e[1;32m |-| Sound Redirection Option...: [YES]\e[0m"
else
/bin/echo -e "\e[1;32m |-| Sound Redirection Option...: [NO]\e[0m"
fi

if [ "$unofficialRepo" = "yes" ]; 
then 
/bin/echo -e "\e[1;32m |-| Unofficial Repo...........: [YES]\e[0m"
else
/bin/echo -e "\e[1;32m |-| Unofficial Repo...........: [NO]\e[0m"
fi
echo

#---------------------------------------------------------#
# Step 2 - Executing the installation & config tasks .... #
#---------------------------------------------------------#

echo
/bin/echo -e "\e[1;36m !-------------------------------------------------------------!\e[0m"
/bin/echo -e "\e[1;36m ! Installation Process starting.... !\e[0m"
/bin/echo -e "\e[1;36m !-------------------------------------------------------------!\e[0m"
echo
/bin/echo -e "\e[1;33m |-| Proceed with installation..... \e[0m"
echo

if [[ "$version" = *"Ubuntu 18.04.2"* ]];
then
/bin/echo -e "\e[1;32m |-| Ubuntu Version : $version\e[0m"
echo
/bin/echo -e "\e[1;36m !-------------------------------------------------------------!\e[0m"
/bin/echo -e "\e[1;36m ! Applying Installation Patch for Ubuntu 18.04.2 Only !\e[0m"
/bin/echo -e "\e[1;36m !-------------------------------------------------------------!\e[0m"
echo
if [ "$unofficialRepo" = "yes" ];
then
/bin/echo -e "\e[1;32m => Downloading Unofficial xRDP packages (Thiago Martins) !\e[0m"
echo
sudo add-apt-repository ppa:martinx/xrdp-hwe-18.04 -y
sudo apt-get update
install_xrdp
install_tweak
allow_console
create_polkit
fix_theme
fix_ssl
else
/bin/echo -e "\e[1;32m => Downgrading to previous xserver-xorg-* packages !\e[0m"
echo
install_xservercore
install_xrdp
install_tweak
allow_console
create_polkit
fix_theme
fi
else
install_xrdp
install_tweak
allow_console
create_polkit
fix_theme
fix_ssl
fi

if [ "$fixSound" = "yes" ]; 
then 
enable_sound
fi

#---------------------------------------------------#
# Step 9 - Credits .... 
#---------------------------------------------------#
echo
/bin/echo -e "\e[1;36m !------------------------------------------------------------------------------!\e[0m"
/bin/echo -e "\e[1;36m ! Installation Completed !\e[0m" 
/bin/echo -e "\e[1;36m ! Please test your xRDP configuration.A Reboot Might be required... !\e[0m"
/bin/echo -e "\e[1;36m ! Written by Griffon - May 2019 - Ver 0.6 - Std-Xrdp-Install-0.6.sh !\e[0m"
/bin/echo -e "\e[1;36m ! !\e[0m"
/bin/echo -e "\e[1;36m ! Thanks to Thiago Martins who provided Updated xRDP packages for 18.04.2 :-) !\e[0m"
/bin/echo -e "\e[1;36m !------------------------------------------------------------------------------!\e[0m"
echo

How to Use the Script

Again, script usage is basically the same as the previous versions.  We will not go into details here but simply explain how to use it and how to execute it. 

Step 1 – Set Execute Right on the script

Download the Std-Xrdp-install-0.6.sh script to your system, extract content and mark it as executable . To do this, perform the following action in a terminal console

chmod +x  ~/Downloads/Std-Xrdp-Install-0.6.sh

Note : Adjust the path where the Std-Xrdp-Install-0.6.sh script to reflect your environment

Step 2 – How to execute the script ? 

With this version of the script, you can decide to pass no parameters or pass 2 parameters (which are -s  -u). The following section explains what are these options   

Standard way

To perform a standard installation, you execute the script with no parameters.  Open a Terminal console, browse to the location where the script has been downloaded and issue the following command 

 ./Std-Xrdp-Install-0.6.sh

When the xrdp installation package will start, you be requested to enter your password. Provide the password and proceed with the installation. Wait for completion of the script.  The machine will not reboot automatically when done so you can review the actions performed by the script….

This installation mode will downgrade to older Ubuntu packages that can be used with xRDP and xorgxrdp packages if you are running Ubuntu 18.0.4.2.  This installation mode uses the quick and dirty fix…. 

Advanced way – Sound redirection 

If you want to use sound redirection within your remote session, you will need to run the script with the -s parameter.  When the -s parameter is passed, the sound redirection function will be executed and all the necessary actions would be performed by the script that will allow sound redirection.  To enable this additional feature within your remote desktop session, you will need to user the following syntax

To implement the sound redirection fix  within the xrdp session, use this syntax

./Std-Xrdp-Install-0.6.sh -s yes

When script execution is completed, the machine will not reboot so you can review the installation and detect possible elements that’s preventing the script execution.  At completion, it’s recommended to reboot the machine so the changes made to the system can be applied accordingly. 

Custom Option – using unofficial xRDP packages (use it if running Ubuntu 18.04.2)

If you are running Ubuntu 18.04.2, you know that a small issue has been detected when installing the standard xrdp packages.  The issue will prevent the installation of the xorgxrdp package which will result in not being able to perform remote connection.  The script will detect this operating system and will take corrective actions in order to ensure that xrdp functionality will work after the installation process. 

However, the remediation process implies that some packages will be downgraded to a working version.  Some people might not like this approach.  So, we have included in the version 0.6 of the script the possibility to use unofficial xRDP packages that will be compatible with Ubuntu 18.04.2 while keeping the most recent version of needed packages to have xrdp installed properly. 

 If you want to use the unofficial xRDP packages, you will need to issue the following command 

./Std-Xrdp-Install-0.6.sh -u yes

This command will add some additional ppa repositories and will use these packages to perform the xRDP installation.  It’s important to note that this option will only work when running the script on Ubuntu 18.04.2.  The script will check if you are running this version specifically and if you have used the -u option, unofficial packages will be used.

Obviously, you can combine the -s and -u parameters if you are running Ubuntu 18.04.2 operating system and you want to use sound redirection as well… 

./Std-Xrdp-Install-0.6.sh -u yes -s yes

Step 3 – Test your configuration 

After the script has run and after the reboot, it’s time to test and see if you can indeed perform a smooth remote connection to your Ubuntu machine.  Remember that a user can either be logged on locally or logged on remotely on the machine when working with xRDP solution.  If the user, performing the remote connection, is logged into the system locally the remote connection will start but will be terminated immediately.  This is the way it works nowadays. 

So, ensure that the user performing the test is not locally logged on, start your favourite remote desktop client and perform your connection.  You will be presented with the green login screen. Enter your credentials.  If everything is ok, you should then see your Ubuntu desktop displayed in the remote session.  You should be good to go and start performing some of your work.  If you disconnect from your session, you should be able to reconnect to the same session and proceed with the work you were doing.   

Download the Script 

Please download the script :  Std-Xrdp-Install-0.6.zip (support up to Ubuntu 18.04.2)

Please download the script :  Std-Xrdp-Install-0.6.1.zip

 

Final Notes

This is it for this post !   

We have included Ubuntu 19.04 support in our famous easy to use installation script and we managed to bring some improvements as well.  We are quite happy with the results.  The next step is to publish the version of the script that can be used to perform an installation from source files.  Obviously, we will integrate the same improvements in the custom installation script.  If you have some time, give it a try and provide feedback.  If you find a bug or an issue with the script, let us know as well so we can try to fix it 

Stay tuned as other stuff are coming as well…..

That’s is for today 

Till next time 

 

 

 

31 thoughts on “xRDP – Install xRDP the easy way on Ubuntu 19.04 (Scripted Installation – Version 0.6)

  1. Thanks for this. Will the script work on any of the Ubuntu 19.04 flavors? I would like to use xRDP on Kubuntu, but may use another flavor if I need to.
    Also, what is the procedure for connecting to a currently logged in user session on the local desktop?

    Thanks again for all your hard work!

    buzz

  2. @Buzzra,

    These scripts have been specifically designed and tested for Ubuntu Operating system. In the past we were providing scripts or procedure in order to use and configure xRDP on other Ubuntu Flavors. Because of time constraint, we decided to focus on one Ubuntu flavor only and we have tried to provide the best install/config script for it.

    As far as we know, it’s not possible to use xRDP software in order to connect to the console session (currently logged on user on the local desktop). Actually, you cannot have the same user logged on locally and logged on remotely at the same time. This will fail and you will get disconnected immediately if trying so. A single user can be logged either on the local computer or through a remote session

    Hope this help
    Till next time
    See ya

  3. Hi, I’ve a question.
    Is it possible to choose the default session for the xrdp connection?
    I’ve Ubuntu 18.04.02 and the script work well, but it connect with unity 3d and it is slow in remote connection.
    I want to switch to gnome-fallback session.

    Regards

  4. @Riccardo,

    are you sure you are using Unity 3D and not the gnome Desktop interface with the new Ubuntu dock menu ? We would be surprise that you are using the Unity 3D Interface (but it s possible if you have configured it or if you have upgraded from Ubuntu 16.04)

    The script use the function called fix_theme in order to configure xRDP to use gnome Desktop.. If you want to use another Desktop interface, you will need to modify the changes made by the script in the /etc/xrdp/startwm.sh and you will need to delete the file ~/.xsessionrc (ie rm ~/.xsessionrc)… Then you have to install the new desktop interface on your ubuntu (ex. sudo apt-get gnome-session-flashback) and then add the necessary commands in either ~/.xsession file or in the /etc/xrdp/startwm.sh…

    We used to provide information for different desktop interfaces. You might want to have a look at the following links
    xrdp and gnome classic Desktop and xrdp and gnome Classic Desktop – option 2

    Not sure if this still works, you will need to test….:-)
    Hope this help
    Till next time
    See ya

  5. Oh boy, I still get gray (green?) screen when trying to login from my Windows 10 remote desktop application. I get xrdp window opened and I input my credentials, but all I get is window to dissapear then I get a new window after couple of minutes saying, there is a problem. I tried with echo gnome-session > .xsessions, but now results. I definitely want to use gnome session not any fallback options. Any ideas?

  6. @bmandl,

    first, you do not need to put anything in your .xsession file because this file is not used anymore with Version 0.6 of the script.
    By default, with no configuration at all, you will use the gnome desktop environment….(the script is just used to tweak it a little bit so it looks like the Ubuntu Desktop you are using when locally connected…
    So, based on your comments, we assume that you are running UBuntu 19.04 and you have used the custom installation script => right ?
    So, the xrdp package has been installed with no errors (because you can reach the xrdp login dialog box) -> right ?
    on the xRDP login page (green background with grey login box), are you using the default option for the session (i.e. Xorg) – > Right ?
    have you checked the logs ? Can you look at the /var/logs/xrdp.log and /var/logs/xrdp-sesman.log and see if there are any hints/info that could lead us to troubleshoot the issue ?
    Please provide us more info and logs so we can try to help you

    Hope this help
    Till next time
    See ya

  7. Hello, @Griffon, thanks for your reply.
    I am running Ubuntu 18.04.2. I tried custom installation script (3.0) and also standard script (0.6). Same results with both. Xrdp has been installed with no errors. I am selecting default option (Xorg).
    Directory var/logs/ doesn’t exist on my system.

  8. And I am also sure, that no user is logged in and no session is runing, because I checked with ssh connection and who command. I also killed all running sessions from ssh connection.

  9. @bmandl,

    Check again there must log files called /var/log/xrdp.log and /var/log/xrdp-sesman.log..
    Provide us extract of these files….
    When you have used the script, did you use the unofficial package (-u option) or you went for the quick and dirty quick fix ?
    are you running Ubuntu on Physical machine with NVIDIA Graphic cards or is it a virtual machine ?

    till next time

  10. I am using lightdm with mate-desktop on a small x86 Atom SoC Up-board (I supposed soon mate-desktop will be popular on small SoC such as RPi 3/4 too). This kind of desktop environment confused xrdp and its startwm.sh quite a lot.

    I studied on the Internet, and found a weird workaround, not very sure if this is a normal solution.
    In /etc/xrdp/startwm.sh, at the end of script:
    #test -x /etc/X11/Xsession && exec /etc/X11/Xsession
    #exec /bin/sh /etc/X11/Xsession
    exec /usr/sbin/lightdm-session

    In ~/.xsession
    mate-session

    In ~/.xsessionrc
    export XDG_SESSION_DESKTOP=mate
    export XDG_DATA_DIRS=/usr/share/mate:/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop
    export XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg
    unset SESSION_MANAGER
    unset DBUS_SESSION_BUS_ADDRESS

  11. @Cyanryak,

    We will need to test this procedure for Ubuntu and Desktop Mate. Thank you for sharing this….
    As we are focusing on the Ubuntu version only (so far), we cannot tell you if this would be working or not…
    Actually, you can use either ~/.xsession file or the ~/.xsessionrc…..

    In the past, we have been using heavliy the ~/.xsession file and we were indeed adding the line mate-session (see this post).. Then xRDP has improved and we found out that it was not necessary to add anything in the startwm.sh or ~/.xsession or ~/.xsessionrc file (check this old post

    The procedure you are mentioning should be working as we are basically using a similar approach for the standard Ubuntu Distribution (Gnome with Ubuntu dock)

    Hope this help
    Till next time
    See ya

  12. Thank for all the useful articles about installing xrp!
    I installed using Std-Xrdp-Install-0.6.sh on Ubuntu 19.04. Script installed without issues, but there are issues starting xrdp:

    $ sudo systemctl status xrdp
    ● xrdp.service – xrdp daemon
    Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
    Active: active (running) since Sun 2019-09-15 09:12:39 CEST; 1min 5s ago
    Docs: man:xrdp(8)
    man:xrdp.ini(5)
    Main PID: 8028 (xrdp)
    Tasks: 1 (limit: 4915)
    Memory: 1.5M
    CGroup: /system.slice/xrdp.service
    └─8028 /usr/sbin/xrdp

    sep. 15 09:12:38 klp-ubuntu-04 xrdp[8027]: (8027)(139696440600384)[DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
    sep. 15 09:12:38 klp-ubuntu-04 xrdp[8027]: (8027)(139696440600384)[DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
    sep. 15 09:12:38 klp-ubuntu-04 systemd[1]: xrdp.service: Can’t open PID file /run/xrdp/xrdp.pid (yet?) after start: No such file or directory
    sep. 15 09:12:39 klp-ubuntu-04 systemd[1]: Started xrdp daemon.
    sep. 15 09:12:39 klp-ubuntu-04 systemd[1]: /lib/systemd/system/xrdp.service:8: PIDFile= references path below legacy directory /var/run/, updating /var/run/xrdp/xrdp.pid → /run/xrdp/xrdp.pid; please update the unit file accordingly.
    sep. 15 09:12:40 klp-ubuntu-04 systemd[1]: /lib/systemd/system/xrdp.service:8: PIDFile= references path below legacy directory /var/run/, updating /var/run/xrdp/xrdp.pid → /run/xrdp/xrdp.pid; please update the unit file accordingly.
    sep. 15 09:12:40 klp-ubuntu-04 xrdp[8028]: (8028)(139696440600384)[INFO ] starting xrdp with pid 8028
    sep. 15 09:12:40 klp-ubuntu-04 xrdp[8028]: (8028)(139696440600384)[INFO ] listening to port 3389 on 0.0.0.0
    sep. 15 09:12:40 klp-ubuntu-04 systemd[1]: /lib/systemd/system/xrdp.service:8: PIDFile= references path below legacy directory /var/run/, updating /var/run/xrdp/xrdp.pid → /run/xrdp/xrdp.pid; please update the unit file accordingly.
    sep. 15 09:12:40 klp-ubuntu-04 systemd[1]: /lib/systemd/system/xrdp.service:8: PIDFile= references path below legacy directory /var/run/, updating /var/run/xrdp/xrdp.pid → /run/xrdp/xrdp.pid; please update the unit file accordingly.

    When I try to connect from an RDP client I just get a black screen and the following error from service:

    sudo systemctl status xrdp
    ● xrdp.service – xrdp daemon
    Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
    Active: active (running) since Sun 2019-09-15 09:16:51 CEST; 9min ago
    Docs: man:xrdp(8)
    man:xrdp.ini(5)
    Process: 1193 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)
    Process: 1215 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS)
    Main PID: 1217 (xrdp)
    Tasks: 2 (limit: 4915)
    Memory: 13.1M
    CGroup: /system.slice/xrdp.service
    ├─1217 /usr/sbin/xrdp
    └─3553 /usr/sbin/xrdp
    sep. 15 09:23:17 klp-ubuntu-04 xrdp[3553]: (3553)(139628221527872)[DEBUG] xrdp_wm_log_msg: connected ok
    sep. 15 09:23:21 klp-ubuntu-04 xrdp[3553]: (3553)(139628221527872)[ERROR] xrdp_mm_connect_chansrv: connect failed trying again…
    sep. 15 09:23:21 klp-ubuntu-04 xrdp[3553]: (3553)(139628221527872)[DEBUG] Closed socket 18 (AF_UNIX)
    sep. 15 09:23:25 klp-ubuntu-04 xrdp[3553]: (3553)(139628221527872)[ERROR] xrdp_mm_connect_chansrv: connect failed trying again…
    sep. 15 09:23:25 klp-ubuntu-04 xrdp[3553]: (3553)(139628221527872)[DEBUG] Closed socket 18 (AF_UNIX)
    sep. 15 09:23:29 klp-ubuntu-04 xrdp[3553]: (3553)(139628221527872)[ERROR] xrdp_mm_connect_chansrv: connect failed trying again…
    sep. 15 09:23:29 klp-ubuntu-04 xrdp[3553]: (3553)(139628221527872)[DEBUG] Closed socket 18 (AF_UNIX)
    sep. 15 09:23:33 klp-ubuntu-04 xrdp[3553]: (3553)(139628221527872)[ERROR] xrdp_mm_connect_chansrv: connect failed trying again…
    sep. 15 09:23:33 klp-ubuntu-04 xrdp[3553]: (3553)(139628221527872)[ERROR] xrdp_mm_connect_chansrv: error in trans_connect chan
    sep. 15 09:23:33 klp-ubuntu-04 xrdp[3553]: (3553)(139628221527872)[DEBUG] Closed socket 16 (AF_INET6 ::1 port 58804)

  13. @G400,

    Ok, so you are not the first one mentioning an issue with xRDP and the black screen syndrom…
    This seems to be a recent behavior so maybe a patch has changed something….

    As we want to fix it, please provide feedback if one of the solution is working for you….

    You can check the following…

    1/ ensure that the user account used to perform the remote connection is not logged on locally on the Ubuntu machine (A user can be either logged on locally or remotely not both). If the user is logged on locally while trying to perform a remote desktop session, you will get the black screen and then get disconnected

    2/ In version 0.6 of the script, we have replaced our previous code with a startup script. This might be causing the issue…. so, please bear with me….
    Edit the /etc/xrdp/startwm.sh and remove section about improving look n’ feel look for code similar to the following (should be located at the beginning of the file)
    cat < ~/.xsessionrc
    echo export GNOME_SHELL_SESSION_MODE=ubuntu
    export XDG_CURRENT_DESKTOP=ubuntu:GNOME
    export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
    EOF

    Then, check if the file ~/.xsessionrc exists. if it exists, delete it
    Reboot your system and try to login again….

    If this startup script is indeed preventing the xRDP connection, you should then see the default Gnome Desktop interface (no dock bar visible and theme will be/might be different in the remote session)….
    To display the Dock bar, simply start the Tweak Utility and you will be able to enable Dock Extensions and select the proper themes

    Waiting for your feedback….
    Hope one of these options will fix your issues….

    Till next time
    See ya

  14. @Griffon

    “1/ ensure that the user account used to perform the remote connection is not logged on locally on the Ubuntu machine (A user can be either logged on locally or remotely not both). If the user is logged on locally while trying to perform a remote desktop session, you will get the black screen and then get disconnected”
    G400 – I rebooted the machine and no user was logged on locally

    “2/ In version 0.6 of the script, we have replaced our previous code with a startup script. This might be causing the issue…. so, please bear with me….
    Edit the /etc/xrdp/startwm.sh and remove section about improving look n’ feel look for code similar to the following (should be located at the beginning of the file)
    cat < ~/.xsessionrc
    echo export GNOME_SHELL_SESSION_MODE=ubuntu
    export XDG_CURRENT_DESKTOP=ubuntu:GNOME
    export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
    EOF"
    G400 – This section was duplicated in the script. I commented out both (# in pos 1 of each line)
    "Then, check if the file ~/.xsessionrc exists. if it exists, delete it"
    G400 – Existed and was deleted

    Status:
    Still get a black screen that times out after a
    Telnet to port 3389 on the Ubuntu machine connects, so the xRDP service is alive and responding
    sudo service xrdp status
    ● xrdp.service – xrdp daemon
    Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
    Active: active (running) since Mon 2019-09-16 21:28:14 CEST; 9min ago
    Docs: man:xrdp(8)
    man:xrdp.ini(5)
    Process: 1165 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)
    Process: 1180 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS)
    Main PID: 1183 (xrdp)
    Tasks: 1 (limit: 4915)
    Memory: 3.0M
    CGroup: /system.slice/xrdp.service
    └─1183 /usr/sbin/xrdp

    sep. 16 21:33:31 klp-ubuntu-04 xrdp[3585]: (3585)(139645453117248)[DEBUG] TLSv1.2 enabled
    sep. 16 21:35:08 klp-ubuntu-04 xrdp[3585]: (3585)(139645453117248)[DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.4 port 3389)
    sep. 16 21:36:09 klp-ubuntu-04 xrdp[1183]: (1183)(139645453117248)[INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.40 port 4451
    sep. 16 21:36:09 klp-ubuntu-04 xrdp[1183]: (1183)(139645453117248)[DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.4 port 3389)
    sep. 16 21:36:09 klp-ubuntu-04 xrdp[4044]: (4044)(139645453117248)[DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
    sep. 16 21:36:09 klp-ubuntu-04 xrdp[4044]: (4044)(139645453117248)[INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
    sep. 16 21:36:09 klp-ubuntu-04 xrdp[4044]: (4044)(139645453117248)[INFO ] Using default X.509 key file: /etc/xrdp/key.pem
    sep. 16 21:36:09 klp-ubuntu-04 xrdp[4044]: (4044)(139645453117248)[DEBUG] TLSv1.3 enabled
    sep. 16 21:36:09 klp-ubuntu-04 xrdp[4044]: (4044)(139645453117248)[DEBUG] TLSv1.2 enabled
    sep. 16 21:37:52 klp-ubuntu-04 xrdp[4044]: (4044)(139645453117248)[DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.4 port 3389)

    Content of /var/log/xrdp.log:
    [20190916-21:22:58] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
    [20190916-21:22:58] [DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
    [20190916-21:23:00] [INFO ] starting xrdp with pid 7857
    [20190916-21:23:00] [INFO ] listening to port 3389 on 0.0.0.0
    [20190916-21:27:43] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
    [20190916-21:28:13] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
    [20190916-21:28:13] [DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
    [20190916-21:28:15] [INFO ] starting xrdp with pid 1183
    [20190916-21:28:15] [INFO ] listening to port 3389 on 0.0.0.0
    [20190916-21:31:49] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.40 port 4317
    [20190916-21:31:49] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.4 port 3389)
    [20190916-21:31:49] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
    [20190916-21:31:49] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
    [20190916-21:31:49] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
    [20190916-21:31:49] [DEBUG] TLSv1.3 enabled
    [20190916-21:31:49] [DEBUG] TLSv1.2 enabled
    [20190916-21:31:49] [DEBUG] Security layer: requested 11, selected 1
    [20190916-21:31:49] [INFO ] connected client computer name: KLP-WIN10-WS-01
    [20190916-21:31:49] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
    [20190916-21:31:49] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
    [20190916-21:31:49] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
    [20190916-21:31:49] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
    [20190916-21:31:49] [INFO ] TLS connection established from ::ffff:192.168.0.40 port 4317: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
    [20190916-21:31:49] [DEBUG] xrdp_00000b55_wm_login_mode_event_00000001
    [20190916-21:31:49] [INFO ] Loading keymap file /etc/xrdp/km-00000414.ini
    [20190916-21:31:49] [WARN ] local keymap file for 0x00000414 found and doesn't match built in keymap, using local keymap file
    [20190916-21:31:49] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
    [20190916-21:31:50] [INFO ] xrdp_wm_log_msg: sesman connect ok
    [20190916-21:31:50] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait…
    [20190916-21:31:50] [DEBUG] return value from xrdp_mm_connect 0
    [20190916-21:31:50] [INFO ] xrdp_wm_log_msg: login successful for display 10
    [20190916-21:31:50] [DEBUG] xrdp_wm_log_msg: started connecting
    [20190916-21:31:50] [INFO ] lib_mod_log_peer: xrdp_pid=2901 connected to X11rdp_pid=2936 X11rdp_uid=1006 X11rdp_gid=1006 client_ip=::ffff:192.168.0.40 client_port=4317
    [20190916-21:31:50] [DEBUG] xrdp_wm_log_msg: connected ok
    [20190916-21:31:54] [ERROR] xrdp_mm_connect_chansrv: connect failed trying again…
    [20190916-21:31:54] [DEBUG] Closed socket 20 (AF_UNIX)
    [20190916-21:31:58] [ERROR] xrdp_mm_connect_chansrv: connect failed trying again…
    [20190916-21:31:58] [DEBUG] Closed socket 20 (AF_UNIX)
    [20190916-21:32:02] [ERROR] xrdp_mm_connect_chansrv: connect failed trying again…
    [20190916-21:32:02] [DEBUG] Closed socket 20 (AF_UNIX)
    [20190916-21:32:06] [ERROR] xrdp_mm_connect_chansrv: connect failed trying again…
    [20190916-21:32:06] [ERROR] xrdp_mm_connect_chansrv: error in trans_connect chan
    [20190916-21:32:06] [DEBUG] Closed socket 18 (AF_INET6 ::1 port 56144)
    [20190916-21:32:06] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.4 port 3389)
    [20190916-21:32:06] [DEBUG] xrdp_mm_module_cleanup
    [20190916-21:32:06] [DEBUG] Closed socket 19 (AF_UNIX)
    [20190916-21:32:06] [DEBUG] Closed socket 20 (AF_UNIX)
    [20190916-21:33:30] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.4 port 39746
    [20190916-21:33:31] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.4 port 3389)
    [20190916-21:33:31] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
    [20190916-21:33:31] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
    [20190916-21:33:31] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
    [20190916-21:33:31] [DEBUG] TLSv1.3 enabled
    [20190916-21:33:31] [DEBUG] TLSv1.2 enabled
    [20190916-21:35:08] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.4 port 3389)
    [20190916-21:36:09] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.40 port 4451
    [20190916-21:36:09] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.4 port 3389)
    [20190916-21:36:09] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
    [20190916-21:36:09] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
    [20190916-21:36:09] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
    [20190916-21:36:09] [DEBUG] TLSv1.3 enabled
    [20190916-21:36:09] [DEBUG] TLSv1.2 enabled
    [20190916-21:37:52] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.4 port 3389)

  15. @G400,

    We probably need to investigate this one.. maybe recent patches has introduced a change and might have broken xRDP…..

    Are you using Nvidia graphic cards ? If yes, there as some known issues when combining xrdp and nVIDIA
    Can you ensure that xorgxrdp has been installed ? run this command dpkg -l |grep xserver-xorg-core, what’s the output ?
    can you share /var/xrdp-sesman.log file ?

    We will try to perform some tests this week and see if we can reproduce your issue

    Till next time
    see ya

  16. Hi Griffon, sorry for my English. I’m from Brazil.
    I connected from windows on Ubuntu.
    The file copy / paste procedure does not work.
    Do I need to do something to work or just run the script?
    Thank you very much.

  17. @Toni Lima,

    How do you perform the copy/paste operation drag and drop, copy then paste between machines or are u using the mapped drives ?
    Please note copy paste only work between windows and linux …..
    We have seen in the past that indeed the copy/paste get stuck and we needed to reboot the linux machine….when this is not working properly, we tend to use network share approach …..

    till next time
    See ya

  18. Hi Griffon, thanks for answering.
    I connect remotely on linux. If I right click on the file and copy the file, I can paste it into windows, it works.
    Most copying from windows to linux does not work.
    Is there any way to remotely transfer files to linux?

    Thank you very much
    See ya

  19. Hi Griffon,

    Im trying to setup xrdp in a ubuntu virtual machine in a synology device. i got the 0.6 script running without issues.

    I log in with xorg but I get a greeen screen with a error in connection log “connection problem, giving up some problem”

    log from xrdp.log

    [20190926-12:40:51] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.10.27 port 58683
    [20190926-12:40:51] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.10.240 port 3389)
    [20190926-12:40:51] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
    [20190926-12:40:51] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
    [20190926-12:40:51] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
    [20190926-12:40:51] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
    [20190926-12:40:51] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
    [20190926-12:40:51] [DEBUG] TLSv1.2 enabled
    [20190926-12:40:51] [DEBUG] Security layer: requested 11, selected 0
    [20190926-12:40:51] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.10.240 port 3389)
    [20190926-12:40:51] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.10.27 port 58684
    [20190926-12:40:52] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.10.240 port 3389)
    [20190926-12:40:52] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
    [20190926-12:40:52] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
    [20190926-12:40:52] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
    [20190926-12:40:52] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
    [20190926-12:40:52] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
    [20190926-12:40:52] [DEBUG] TLSv1.2 enabled
    [20190926-12:40:52] [DEBUG] Security layer: requested 0, selected 0
    [20190926-12:40:52] [INFO ] connected client computer name: Silver-Dollar
    [20190926-12:40:52] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
    [20190926-12:40:52] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
    [20190926-12:40:52] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
    [20190926-12:40:52] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
    [20190926-12:40:52] [INFO ] Non-TLS connection established from ::ffff:192.168.10.27 port 58684: encrypted with standard RDP security
    [20190926-12:40:52] [DEBUG] xrdp_000006d0_wm_login_mode_event_00000001
    [20190926-12:40:52] [INFO ] Loading keymap file /etc/xrdp/km-00000816.ini
    [20190926-12:40:52] [WARN ] local keymap file for 0x00000816 found and doesn’t match built in keymap, using local keymap file
    [20190926-12:40:52] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
    [20190926-12:40:53] [INFO ] xrdp_wm_log_msg: sesman connect ok
    [20190926-12:40:53] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait…
    [20190926-12:40:53] [DEBUG] return value from xrdp_mm_connect 0
    [20190926-12:40:55] [INFO ] xrdp_wm_log_msg: login failed for display 0
    [20190926-12:40:55] [DEBUG] xrdp_mm_module_cleanup
    [20190926-12:40:55] [DEBUG] Closed socket 16 (AF_INET6 ::1 port 47122)
    [20190926-12:41:03] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
    [20190926-12:41:03] [INFO ] xrdp_wm_log_msg: sesman connect ok
    [20190926-12:41:03] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait…
    [20190926-12:41:03] [DEBUG] return value from xrdp_mm_connect 0
    [20190926-12:41:03] [INFO ] xrdp_wm_log_msg: login successful for display 10
    [20190926-12:41:03] [DEBUG] xrdp_wm_log_msg: started connecting
    [20190926-12:41:07] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:41:10] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:41:14] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:41:17] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:41:21] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:41:25] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:41:28] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:41:32] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:41:35] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:41:39] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:41:42] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:41:46] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:41:49] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:41:53] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:41:56] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:00] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:03] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:07] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:10] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:14] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:17] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:21] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:24] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:28] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:31] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:35] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:38] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:42] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:46] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:49] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:53] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:42:56] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:00] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:03] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:07] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:10] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:14] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:17] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:21] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:24] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:28] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:31] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:35] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:38] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:42] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:45] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:49] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:52] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:56] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:43:59] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:44:03] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:44:07] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:44:10] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:44:14] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:44:17] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:44:21] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:44:24] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:44:28] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:44:31] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:44:34] [DEBUG] xrdp_wm_log_msg: connection problem, giving up
    [20190926-12:44:34] [DEBUG] Closed socket 17 (AF_UNIX)
    [20190926-12:44:34] [DEBUG] xrdp_wm_log_msg: some problem
    [20190926-12:44:34] [DEBUG] xrdp_mm_module_cleanup
    [20190926-12:44:34] [DEBUG] Closed socket 16 (AF_INET6 ::1 port 47124)
    [20190926-12:50:37] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
    [20190926-12:50:38] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.10.240 port 3389)
    [20190926-12:50:38] [DEBUG] xrdp_mm_module_cleanup
    [20190926-12:51:29] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
    [20190926-12:51:29] [DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
    [20190926-12:51:31] [INFO ] starting xrdp with pid 882
    [20190926-12:51:31] [INFO ] listening to port 3389 on 0.0.0.0
    [20190926-12:51:36] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.10.27 port 59790
    [20190926-12:51:36] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.10.240 port 3389)
    [20190926-12:51:36] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
    [20190926-12:51:36] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
    [20190926-12:51:36] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
    [20190926-12:51:36] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
    [20190926-12:51:36] [DEBUG] TLSv1.2 enabled
    [20190926-12:51:36] [DEBUG] Security layer: requested 11, selected 1
    [20190926-12:51:48] [INFO ] connected client computer name: Silver-Dollar
    [20190926-12:51:48] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
    [20190926-12:51:48] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
    [20190926-12:51:48] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
    [20190926-12:51:48] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
    [20190926-12:51:48] [INFO ] TLS connection established from ::ffff:192.168.10.27 port 59790: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
    [20190926-12:51:48] [DEBUG] xrdp_00000407_wm_login_mode_event_00000001
    [20190926-12:51:48] [INFO ] Loading keymap file /etc/xrdp/km-00000816.ini
    [20190926-12:51:48] [WARN ] local keymap file for 0x00000816 found and doesn’t match built in keymap, using local keymap file
    [20190926-12:51:48] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
    [20190926-12:51:49] [INFO ] xrdp_wm_log_msg: sesman connect ok
    [20190926-12:51:49] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait…
    [20190926-12:51:49] [DEBUG] return value from xrdp_mm_connect 0
    [20190926-12:51:50] [INFO ] xrdp_wm_log_msg: login failed for display 0
    [20190926-12:51:50] [DEBUG] xrdp_mm_module_cleanup
    [20190926-12:51:50] [DEBUG] Closed socket 20 (AF_INET6 ::1 port 58456)
    [20190926-12:51:57] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
    [20190926-12:51:57] [INFO ] xrdp_wm_log_msg: sesman connect ok
    [20190926-12:51:57] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait…
    [20190926-12:51:57] [DEBUG] return value from xrdp_mm_connect 0
    [20190926-12:51:57] [INFO ] xrdp_wm_log_msg: login successful for display 10
    [20190926-12:51:57] [DEBUG] xrdp_wm_log_msg: started connecting
    [20190926-12:52:01] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:04] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:08] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:11] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:15] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:18] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:22] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:25] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:29] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:32] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:36] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:39] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:43] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:46] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:50] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:53] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:52:57] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:01] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:04] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:08] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:11] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:15] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:18] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:22] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:25] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:29] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:33] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:36] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:40] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:43] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:47] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:50] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:54] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:53:57] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:01] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:04] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:08] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:11] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:15] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:19] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:22] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:26] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:29] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:33] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:36] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:40] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:43] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:47] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:50] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:54] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:54:57] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:55:01] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:55:05] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:55:08] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:55:12] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:55:15] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:55:19] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:55:22] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:55:26] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:55:29] [DEBUG] xrdp_wm_log_msg: connection problem, giving up
    [20190926-12:55:29] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-12:55:29] [DEBUG] xrdp_wm_log_msg: some problem
    [20190926-12:55:29] [DEBUG] xrdp_mm_module_cleanup
    [20190926-12:55:29] [DEBUG] Closed socket 20 (AF_INET6 ::1 port 58468)

  20. @Francisco,
    Are you trying to install xrdp on top of Ubuntu 18.04.3 ? If this is the case, we have detected a minor issue in the script 0.6…. that will be fixed this weekend…..
    The script is specifically checking version 18.04.2 to apply the xrdp fix…

    So, if you are trying to setup xrdp on Ubuntu 18.04.x, please try to execute the following command…
    sudo apt-get install xorgxrdp…..

    If you see in the screen that install fail because dependencies packages are missing, you have then two options….
    option 1 – rerun the script version 0.6 using the -u option
    Option 2 – finalize your installation by executing the following command
    sudo apt-get install xserver-xorg-core -y
    sudo apt-get -y install xserver-xorg-input-all
    sudo apt-get xorgxrdp -y

    Sorry for the inconvience, as mentioned, an updated version of the script will be made available this week
    Waiting for your feedback still – let us know if this is working for you
    Till next time
    see ya

  21. @Toni Lima,

    Even if not perfect, you can use the drive redirection within xRDP (not working 100% but still good)
    The other way is to map within your Linux machine a network drive to your windows machine
    Open Nautilus> go to Other Location, at the bottom, type smb://name of the windows machine/ShareName
    Provide credentials and then you can copy/past files between windows and Linux

    Hope this help
    Till next time
    See ya

  22. Hi Griffin,

    regarding option 1 – I’ve run option 1 – rerun the script version 0.6 ./script -u yes
    With no change to the login issue it keep on giving the same error

    [20190926-16:43:45] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
    [20190926-16:44:44] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
    [20190926-16:44:44] [DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
    [20190926-16:44:46] [INFO ] starting xrdp with pid 882
    [20190926-16:44:46] [INFO ] listening to port 3389 on 0.0.0.0
    [20190926-16:46:52] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.10.27 port 58240
    [20190926-16:46:52] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.10.240 port 3389)
    [20190926-16:46:52] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
    [20190926-16:46:52] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
    [20190926-16:46:52] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
    [20190926-16:46:52] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
    [20190926-16:46:52] [DEBUG] TLSv1.2 enabled
    [20190926-16:46:52] [DEBUG] Security layer: requested 11, selected 1
    [20190926-16:46:52] [INFO ] connected client computer name: Silver-Dollar
    [20190926-16:46:52] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
    [20190926-16:46:52] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
    [20190926-16:46:52] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
    [20190926-16:46:52] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
    [20190926-16:46:52] [INFO ] TLS connection established from ::ffff:192.168.10.27 port 58240: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
    [20190926-16:46:52] [DEBUG] xrdp_0000059b_wm_login_mode_event_00000001
    [20190926-16:46:52] [INFO ] Loading keymap file /etc/xrdp/km-00000816.ini
    [20190926-16:46:53] [WARN ] local keymap file for 0x00000816 found and doesn’t match built in keymap, using local keymap file
    [20190926-16:46:53] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
    [20190926-16:46:53] [INFO ] xrdp_wm_log_msg: sesman connect ok
    [20190926-16:46:53] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait…
    [20190926-16:46:53] [DEBUG] return value from xrdp_mm_connect 0
    [20190926-16:46:54] [INFO ] xrdp_wm_log_msg: login failed for display 0
    [20190926-16:46:54] [DEBUG] xrdp_mm_module_cleanup
    [20190926-16:46:54] [DEBUG] Closed socket 20 (AF_INET6 ::1 port 38608)
    [20190926-16:47:13] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
    [20190926-16:47:13] [INFO ] xrdp_wm_log_msg: sesman connect ok
    [20190926-16:47:13] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait…
    [20190926-16:47:13] [DEBUG] return value from xrdp_mm_connect 0
    [20190926-16:47:14] [INFO ] xrdp_wm_log_msg: login successful for display 10
    [20190926-16:47:14] [DEBUG] xrdp_wm_log_msg: started connecting
    [20190926-16:47:17] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:47:21] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:47:24] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:47:28] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:47:31] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:47:35] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:47:38] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:47:42] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:47:45] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:47:49] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:47:52] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:47:56] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:47:59] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:03] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:06] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:10] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:13] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:17] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:21] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:24] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:28] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:31] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:35] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:38] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:42] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:45] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:49] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:52] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:56] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:48:59] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:49:03] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:49:06] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:49:10] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:49:13] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:49:17] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:49:20] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:49:24] [DEBUG] Closed socket 21 (AF_UNIX)
    [20190926-16:49:27] [DEBUG] Closed socket 21 (AF_UNIX)

    regarding option 2 – When I try to execute:

    francisco@Ubuntu-Bau:/var/log$ sudo apt-get install xserver-xorg-core -y
    [sudo] senha para francisco:
    A ler as listas de pacotes… Pronto
    A construir árvore de dependências
    A ler a informação de estado… Pronto
    xserver-xorg-core is already the newest version (2:1.19.6-1ubuntu4.3).
    0 pacotes actualizados, 0 pacotes novos instalados, 0 a remover e 0 não actualizados.
    francisco@Ubuntu-Bau:/var/log$ sudo apt-get -y install xserver-xorg-input-all
    A ler as listas de pacotes… Pronto
    A construir árvore de dependências
    A ler a informação de estado… Pronto
    xserver-xorg-input-all is already the newest version (1:7.7+19ubuntu7.1).
    0 pacotes actualizados, 0 pacotes novos instalados, 0 a remover e 0 não actualizados.
    francisco@Ubuntu-Bau:/var/log$ sudo apt-get xorgxrdp -y
    E: Operação xorgxrdp inválida
    francisco@Ubuntu-Bau:/var/log$ sudo apt-get install xorgxrdp -y
    A ler as listas de pacotes… Pronto
    A construir árvore de dependências
    A ler a informação de estado… Pronto
    Alguns pacotes não puderam ser instalados. Isso pode significar que
    você solicitou uma situação impossível ou se você está a usar a
    distribuição unstable em que alguns pacotes pedidos ainda não foram
    criados ou foram movidos do Incoming.
    A seguinte informação pode ajudar a resolver a situação:

    Os pacotes a seguir têm dependências não satisfeitas:
    xorgxrdp : Depende: xorg-video-abi-24
    Depende: xserver-xorg-core-hwe-18.04 (>= 2:1.18.99.901) mas não vai ser instalado
    E: Não foi possível corrigir problemas, você tem pacotes mantidos (hold) estragados.
    francisco@Ubuntu-Bau:/var/log$

  23. @Franscisco,

    Based on the logs, problem is that xorgxrdp is not getting installed on your system and this is causing the failure when connecting through xRDP…
    Please provide the following information to us,
    Which version of Ubuntu are you running ? (run from terminal console the following command lsb_release -sd
    Which version of xrdp are you running (if running) => run from terminal console, the following command xrdp -v
    which version of xorgxrdp are you running (if running) => run from terminal console the following command dpkg -l |grep xserver-xorg-core and provide output

    Waiting for the info and then we can see which packages and which procedure we could use to install xrdp and make it working

    Till next time
    see ya

  24. Hi Griffin,

    lsb_release -sd – Ubuntu 18.04.3 LTS
    xrdp -v – xrdp 0.9.9
    dpkg -l |grep xserver-xorg-core:
    ii xserver-xorg-core 2:1.19.6-1ubuntu4.3 amd64 Xorg X server – core server
    rc xserver-xorg-core-hwe-18.04 2:1.20.4-1ubuntu3~18.04.1 amd64 Xorg X server – core server

  25. @Franscisco,

    I was expecting something like this…So now you are in mixed configuration and setup….
    The login failure is because you are indeed missing the xorgxrdp package that cannot be installed because you are missing some dependencies….

    Before performing this action, do a backup of your installation

    What I would try to do is
    1/ remove xrdp package (using sudo apt-get remove xrdp)
    2/ run the custom install script (see this post – http://c-nergy.be/blog/?p=13663) => This script should download all the necessary package and should be able to install xorgxrdp package….

    We will update the Std install script this weekend. You could try to use it but I think you might end up with the same situation as some pre-reqs or dependencies will not be met…..
    Waiting for your feedback…

    Hope this help
    Till next time
    See ya

  26. Dear Griffin,

    Script worked out and gave no error output. However xprdp and xorgxrdp failed to start due to beeing masked.

    I solved the matter by googling and checking at https://github.com/neutrinolabs/xrdp/issues/846

    Thank you for your time and dedication. As a sugestion you could place an address of a cryptocurrency like BAT in order to give some reward for your time spent.

    Best wishes
    Francisco

  27. @Francisco,

    Ah Thank you for the feedback and your time as well… we are about to release an updated version of the script to support Ubuntu 18.04.3… The version 0.6 was only checking up to 18.04.2 because we thought that Canonical would have fixed the xrdp package by now….. But apparently, this is not the case….

    See you around and enjoy your working xRDP solution 🙂

    Till next time

  28. I can’t connect desktop,
    login successful but Blank Screen

    log file
    Closed socket 17 (AF_UNIX)
    Closed socket 17 (AF_UNIX)

    hum, what is problem?

  29. @Kim,

    First, there is a new version of the script that can be found at http://c-nergy.be/blog/?p=14093. You might want to have a look at it….
    Can you check that you have the xorgxrdp package installed on your system… (dpkg -l | grep xorgxrdp)
    If you do not see any results, this might be your problem….try to install it manually from Terminal….sudo apt-get install xorgxrdp
    You might end up with an error that dependencies are missing…
    So, if you get this issue, I would recommend you to use the latest version of the script

    Hope this help
    Till next time
    See ya

Leave a Reply