Use xrdp to connect to desktop session

Use xrdp to connect to desktop session

up vote 1 down vote favorite

I use Ubuntu on my desktop. When I am away from my desktop, I would like to access the session using my Windows 7 laptop. Currently, I am using xrdp to connect, but it starts up a remote session. Is there any way to just use the same desktop session? I want to be able to pick up where I left off on the desktop.

Thanks

Yes. I believe they are referring to connecting to existing remote sessions upon subsequent logins (which works for me, too). However, I want to connect to the desktop session and reuse that.Jonathan B Jan 4 at 14:41

up vote 1 down vote accepted

Well, I was unable to find a way to do this with pure xrdp, but I did find a nice writeup on how to go about getting this set up as an rdp-to-vnc gateway. It works well enough to suit my purpose.

Taken from http://ubuntuwiki.net/index.php/Xrdp,_installing

  1. Install xrdp and vino

    sudo apt-get update && sudo apt-get install xrdp vino
    
  2. Configure vino so that you can remotely connect to the existing session

    Type vino-preferences from the terminal, check "Allow other users to view your desktop," "Allow other users to control your desktop," and configure the "Security" settings as you like (you will probably want to uncheck "confirm each access to this machine" and check "require the user to enter this password").

  3. Configure xrdp to access vino

    Edit /etc/xrdp/xrdp.ini, adding in the text below. Alter the name to whatever you fancy. Also, make sure that [xrdp1] uses a number that doesn't conflict with an existing configuration.

    # set empty username because VNC auth 
    # doesn't actually use username, so no
    # point in asking the user for one.
    [xrdp1]
    name=Active Local Login
    lib=libvnc.so
    username=
    password=ask
    ip=127.0.0.1
    port=5900
    

up vote 0 down vote

You might want to have a look at this post: http://c-nergy.be/blog/?p=4168 This post describe how to use xrpd and x11vnc to reconnect to the same remote session

Hope this help

Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.Aditya Jun 12 at 20:53

Those are instructions for reconnecting to existing remote sessions. The problem I wanted to solve was connecting to an existing "desktop" session.Jonathan B Jun 13 at 4:37