XRDP – How to connect to console or how to connect to Unity Desktop

UnityXrdpLogo

Hello World,

This will be a really short post.  Recently, I have received some questions about xrdp and Unity Desktop.  If you follow me, you know that we have provided quite a lot of information about xrdp and Ubuntu and how to have this working.  However, the main complain people have is that the provided solution does not allow them to connect to their Unity Desktop.

Yes, this is true. with xRDP package, you cannot connect to your 3D Unity Desktop.  This is why we need to install alternative desktop in order to be able to remote into Ubuntu machines while using RDP protocol.  The other complain/question about xrdp and unity desktop is about to make a connection to the console.

So far, we have not found a way to perform this operation.  It’s seems that xrdp indeed does not allow us to perform a connection directly to the console and see the existing session.   I can understand the frustration about that.  xRDP is not a perfect solution but it’s the only one that provide some sort of support for RDP protocol (in a free and open source way).

To fix this issues, xrdp and/or Ubuntu team should work together and develop an new xrdp package that would then allow to connect to Unity Desktop and allow users to connect to console as well.

In the mean time, if you really want to connect to your Unity Desktop using xrdp package, we might offer you a dirty workaround.

Keep reading

How to connect to Unity Desktop using xRDP package ?

Again, please do not get over excited about the title.  Here, we are simply offering a dirty workaround in order for you to connect to your Unity Desktop while using the xRDP software solution.   This solution also offer you the possibility to connect to the console session on your Ubuntu machine remotely

In order to connect to your Unity Desktop using xrdp, you will first need to perform the following actions :

Installing the xrdp package 

If you are planning to use xrdp to only perform console connection and thus having access to the Unity Desktop interface, you can simply install the xrdp package on your machine after configured the vnc server for auto start process.  To install the xrdp package, you simply type in a terminal console

sudo apt-get install xrdp

Note :

If you need to have other users connected to your Ubuntu machine, you should follow the steps described in this post (Ubuntu 14.10 – How to install XRDP and have it working). indeed, you will need to install alternate desktop environment.

Once this is done, you can start your remote desktop connection client, provide the ip address of the Ubuntu machine.  In the xrdp login page, in the Module drop down box, you have to select the option  console  or vnc-any

In our example, we select the option console.  You will be asked for a password.  Type in the password.

Click on Picture for better resolution

If you need to connect to a remote machine (Ubuntu based with vnc configure to start at boot), you might wanna use the vnc-any option.

Click on Picture for better resolution

If everything is configured correctly, you will have access to the Unity Desktop and to the console Session through the xRDP Software.

Click on Picture for better resolution

Click on Picture for better resolution

Final Notes

As mentioned from the beginning, this is a dirty workaround.  We actually using the xRDP software as a proxy and we are accessing the Unity Desktop and the Console session via the VNC protocol.  You are actually performing a vnc connection to your Ubuntu machine. Keep that in mind.

So far, we have not found a better way to perform this operation using xRDP package.

In the last two posts, we have shown how you could connect to console session using

In this post, by configuring x11vnc to boot at startup and by installing xRDP package, we basically achieve the same result as the web based vnc viewer.  Indeed, you can remotely connect to your machine using built-in tool (i.e. remote Desktop client) and you do not need to install any additional software or component on your client machine.

xRDP community or Ubuntu or both should be working on developing more the software solution.  Nowadays, Linux is more and more present in the Enterprise and there is a real need for such a tool.  I know that they are other tools available on the market (x2go,noMachine,…) but we really like the way xRDP provide Remote Desktop capabilities.  xRDP is still work in progress. there is a lot of options that are not working at the moment (such as disconnect option).

I really think that xRDP can be a huge success if the software is developed further and that more and more features are added to it.  Now, I understand that there is a community behind that might not have the time to develop more the solution and that’s a pitty.

Hope that this workaround can be useful to someone

Till next Time

See ya

4 thoughts on “XRDP – How to connect to console or how to connect to Unity Desktop

  1. You may want to explain why you’re reluctant to show this workaround. I don’t know much about VNC and other workings of linux, but the reason for not trumpeting this solution is that there is a performance and/or memory hit with this workaround. Am I on the right track with this line of thinking? If yes, you may want to add a statement to that effect in your article.

  2. Hello PE,

    I’m not really relunctant in using this workaround. It simply as I said a work around and does not provide the rdp experience people might be looking for.
    with this tip, yes, we can access unity and work on the desktop using the xrdp solution and I think that some people might find it useful

    Thank for the visit
    Till next time
    See ya

  3. @Sumana;

    Thank you for visiting our blog and providing some feedback… I do not understand your question… xRDP is a software that allows you to perform remote connection to Linux machine running a destkop interface
    If you have only a linux with a client interface, you could probably still get remote access to the Linux machine but accessing only a Terminal session…. It would be better for such scenario to use tools like ssh

    hope this help
    Till next time
    See ya

Leave a Reply