xRDP – Unofficial xrdp packages – Better Fix xRDP issue on Ubuntu 18.04.2

Hello World, 

 !! Better fix  for xRDP  issue in Ubuntu 18.04.2 !!

Recently, we have discovered an issue with the xRDP package when installing it on top of Ubuntu 18.04.2. The problem is related to some “incompatible” packages.  xRDP when trying to install will not install the xorgxrdp packages because of the presence of additional new version of xserver-xorg-hwe-18.04 packages.  You can find more information in the following post 

We have provided a quick fix (and dirty fix) through our standard scripts  (see links below).  This patch was really a quick way to restore the xRDP functionality….

This fix was really a quick and dirty fix as we have to downgrade some of the Ubuntu 18.04 packages.   This situation might not be acceptable or working for some users.  Luckily, since today (I think), thanks to Thiago Martins, a new “unofficial” xrdp package has been generated which can be run on top of Ubuntu 18.04.2.  The package has been rebuilt and take into account the fact that newer xserver-xorg-* packages exists on Ubuntu 18.04.2.

Get Unofficial packages 

Manual Installation Process

Thiago Martins has recompiled xrdp and xorgxrdp packages and has setup a ppa repository from which you can download these updated version of the packages.  If you want to install the version 0.9.5 of xRDP on your Ubuntu 18.04.2, you can visit this page (https://launchpad.net/~martinx/+archive/ubuntu/xrdp-hwe-18.04) where the instructions to get the new packages can be found.

Based on the instructions provided, you will need to issue the following commands in your Terminal Console 

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

fix_xrdp_18042_1

Click on Picture for Better Resolution

When this is done, you can try to install the newly available package by issuing the following command 

sudo apt-get install xrdp xorg

fix_xrdp_18042_2

Click on Picture for Better Resolution

If everything is fine, you should be able to perform a remote connection with no other actions (even if the first screen ask you to perform some additional actions).   

fix_xrdp_18042_3

Click on Picture for Better Resolution

Here, we have performed a manual installation. This means that all the post installation actions performed by the script (Std-Install-Xrdp.sh) are not processed and you will need to perform the post installation actions manually.

Using Std Installation script with these unofficial packages

If you want to still benefit from the script, you could possibly, perform the following actions

Step 1 – configure your system to look for the unofficial xrdp packages 

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

Step 2 – Run the script version 0.5.1. from the command line 

After updating your repositories, you can try to re-run the previous script version (Std-Install-xrdp-0.5.1.sh) with or without parameters.

  • So, you will have to download the script first from here.
  • Extract the .sh file from the zip file 
  • Mark the script as executable (using Terminal Console issue the following command chmod +x <%Path_for_the_script%>
  • execute the script using one of the following options
    • ./Std-Xrdp-Install-0.5.1.sh 
    • ./Std-Xrdp-Install-0.5.1.sh  -g yes  (to fix some look’n feel issues)
    • ./Std-Xrdp-Install-0.5.1.sh  -s yes  (to get sound redirection)
    • ./Std-Xrdp-Install-0.5.1.sh  -g yes -s yes  (combination of both options above)

This should take care of most of the customization process (no guarantee because we have not tested this approach fully – so you might still have some manual actions to perform….)

Note : 

If you want to use the latest version of xRDP on top of Ubuntu 18.04.2, Thiago has also compiled xRDP from source for the version 0.9.9. The same principle would apply.  Add the repository on your system and perform the installation.  You can download the “xrdp-next” package version (i.e. 0.9.9) at this location

Final Notes

This is again a quick published post with a quick fix.  We are really hesitating in publishing a new version of the script (Std-Xrdp-install) as the new Ubuntu 19.04 will be released shortly.  Based on our first experimentation with Ubuntu 19.04,  a simple standard xrdp installation will work.  However, the sound redirection feature will not work because some of the packages used by the scripts are not (yet ?) available on Ubuntu 19.04 repositories

We really would like to thanks Thiago Martins for acting really fast and providing updated xRDP packages that works on Ubuntu 18.04.2. We hope that this package will make its way in the Ubuntu repository and become the official ones.  We really appreciate the help provided by all the people on this specific topic… 

Till next time 

See ya 

 

6 thoughts on “xRDP – Unofficial xrdp packages – Better Fix xRDP issue on Ubuntu 18.04.2

  1. That’s amazing!! 😀

    Also, don’t forget to:

    adduser xrdp ssl-cert

    …otherwise, the xrdp will not be able ro read the certificates.

    😉

  2. Hey buddy! Something really cool just arrived on Ubuntu 18.04.2!

    QEMU with Virgil 3D support!!! :-O

    I filled a bug report back in 2016 about this:

    https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1540692

    …it’s now fixed! lol

    You just have to enable the Ubuntu Cloud Archive for Stein, like this:

    sudo add-apt-repository cloud-archive:stein
    sudo apt update
    sudo apt full-upgrade

    And enjoy a 3D Enabled QEMU 3.1 on Ubuntu 18.04!

    Look my VM:


    tcmc@vdesk-1:~$ dmesg | grep -i drm
    [ 1.574829] [drm] pci: virtio-vga detected at 0000:00:02.0
    [ 1.576525] [drm] virgl 3d acceleration enabled
    [ 1.586245] [drm] number of scanouts: 1
    [ 1.587199] [drm] number of cap sets: 1
    [ 1.592484] [drm] cap set 0: id 1, max-version 1, max-size 308
    [ 1.606420] virtio_gpu virtio0: fb0: virtiodrmfb frame buffer device
    [ 1.628098] [drm] Initialized virtio_gpu 0.0.1 0 for virtio0 on minor 0

    I’m pretty sure that VDI solutions will be fast with this! Especially the NoMachine (which I just enabled GPU acceleration, inside of a VM, without GPU Passthrough).

    So, I’m wondering here… Do you know if xrdp will benefit from a VM powered by Virgil 3D? Or it doesn’t really matter since it doesn’t share the main VM’s desktop session (like NoMachine does)?

  3. @Thiago,

    if your question is about remotefx support in xRDP, I think that the option is there as I can see that an option rfxcodec can be used when compiling from source. As long as you have a client that can take advantage of remotefx, it should work

    Hope this help
    Till next time
    See ya

  4. @Korean01,

    You can still use the unofficial package to get the proper xRDP software installed but then you will need to perform any post configuration actions needed for your system
    The scripts we are providing have been specifically developed for Ubuntu version and does not include other UBuntu flavors….
    You can still use the scripts but again you might need to perform manual changes in the config files in order to have your mate desktop displayed properly
    Finally, please check on this page for the lastest version of the scripts

Leave a Reply