How to use xrdp with Unity on Ubuntu 16.04 LTS?

------------------Important Update for this topic : ------------------------

It seems that it's possible to use xRDP and Unity Interface even if there are still some minor issues with such setup. (You can see a demo here)

In order to configure your Ubuntu 16.04 to have xrdp connecting to Unity, you would need to perform the following

  1. install TigerVNC
  2. install XRDP
  3. Configure preferred desktop to be used in xRDP

Full Instructions on how to perform this can be found at http://c-nergy.be/blog/?p=9962

------------------------ End of the Important Update------------------

Remarks : The information provided below is not the most recent information but it still valid. Please be sure to read the Important Update note to get the latest informatioin....

To quickly answer your question, as far as we know Unity desktop cannot be used in conjunction with xrdp. You have no other choices other than installing an alternate desktop environment. Xfce is one option

we prefer to install mate-desktop as altnernate desktop.
With Ubuntu 16.04, you can use mutiny feature of mate desktop to have something similar to Unity (but it's not !) see this post

You could use the xrdp as a proxy server to connect to the Unity desktop using vnc protocol. To be able to perform such configuration, you will need to configure your vnc server to start at bootup and to configure install xrdp on the system you want to access.

In the xrdp login box; you will then need to select the option console instead of Sesman-Xvnc. (all detailed info here) but again here you simply using the xrdp as proxy to basically initiate a vnc connection...

Hope this help


-------------------Important Updates -------------------

see comment above to have XRDP connecting to your Unity Desktop Full instruction on installing xrdp and connecting to Unity Desktop can be found at [http://c-nergy.be/blog/?p=9962]2

-------------------End of Updates ----------------------

This can be helpful to other people...

In Ubuntu 16.04, adding the command about the alternate desktop in the .xsession file does not seem to work anymore. To be able to use xrdp and to connect to the alternate desktop you have installed; you need to edit the following file

  • /etc/xrdp/startwm.sh

If you have installed the mate desktop as alternate option, you would type the mate-session just after the fi line. Your startwm.sh file should look like

#!/bin/sh 
if [ -r /etc/default/locale ]; then
  . /etc/default/locale 
    export LANG LANGUAGE 
fi

#Add this line if you plan to use mate-desktop as alternate desktop 
#insert the appropriate command based on your alternate desktop 

mate-session 
./etc/X11/Xsession

Step by Step Instruction on how to install and Configure Xrdp in Ubuntu 16.04 can be found at this location

Hope this help