How to use xrdp with Unity on Ubuntu 16.04 LTS?

95,188

Solution 1

------------------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

Solution 2

-------------------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

Share:
95,188

Related videos on Youtube

user5071535
Author by

user5071535

Embedded software developer

Updated on September 18, 2022

Comments

  • user5071535
    user5071535 over 1 year

    I'd like to remotely connect to an Ubuntu 16.04 LTS system over xrdp using the Unity desktop environment.

    I have a 14.04 LTS system that I configured to use Xfce for xrdp connections, but I prefer Unity and would like to avoid installing another desktop environment if possible.

    Is this possible? And if so, what are the steps to configure it correctly?

  • Arst
    Arst about 7 years
    HI..I am stuck in this line: ln -s contrib/packages/deb/ubuntu-xenial/debian chmod a+x debian/rules sudo apt install -y -o 'apt::install-recommends=true' \ dpkg-checkbuilddeps 2>&1 | \ sed -e 's/.*build dependencies://g' -e 's/([^)]*)//g'`` Can you shed light on this for me? hiroom2.com/2016/08/28/…
  • Ingo
    Ingo almost 7 years
    worked perfectly well for 17.04 on azure too ... thanks a lot
  • abu_bua
    abu_bua over 5 years
    Welcome to Ask Ubuntu! I recommend to edit your question to expand it with specific details about what you do. Link-only answers are discouraged here.
  • WhisperingChaos
    WhisperingChaos over 5 years
    I understand but it's a lengthy process that seemed atypical when compared to the majority of other posts. Also, wanted to avoid maintaining two copies. Would a summary help and then provide the link?