Xrdp: Can xrdp connect to an existing Xorg session?

Created on 22 Nov 2017  路  9Comments  路  Source: neutrinolabs/xrdp

Existing session in this case is my normal/console Xorg session.

Most helpful comment

Is there any chance this functionality would be implemented? It would be very helpful if XRDP would behave same way as Windows RDP does, when user can connect to existing session (that was started from console).

All 9 comments

You can use x11vnc as the 'backend' to connect to an existing X session.

I use it directly, calling it with the following options (read the man page for more...), replacing :0 as appropriate.

x11vnc -noxdamage -display :0 -safer  -once

I've not tested this, but something like this should work:

# xrdp.ini
[xrdp1]
name=X11vnc
lib=libvnc.so
ip=127.0.0.1
port=5900
username=ask
password=ask

# sesman.ini
[X11vnc]
param=x11vnc
param=-noxdamage 
param=-display
parasm=:0
param=-safer
param=-once

As @mrichar1 say, can't connect to existing Xorg session because the xorgxrdp extension is not loaded to the existing Xorg session. Using other application such as x11vnc, it is possible.

I have not used xrdp yet so I struggling a bit to keep up, but this looks similar to what
tigervnc does, or am I mistaken?
I was looking to use RDP instead of VNC as I am hoping RDP is more efficient than VNC

You can use xrdp for such purpose. But forget the existing Xorg session. xrdp raises xrdp's own Xorg session and you can connect to the session.

That is a good start, but I also like to connect to my existing session.
Is there any chance that could work in the future or is it just out of scope for xrdp?

Maybe not. Connecting to existing session is a different purpose. Let's suppose GNU screen or tmux. Have you ever used either of them? It create its own session and users can attach to CLI which is run under screen/tmux but can't attach to the session not in screen/tmux such as physical console. xrdp does very similar with screen/tmux, works like a GUI version of screen/tmux.

You can also connect to localhost:3389 via RDP from your existing console session and run all applications in xrdp session. It will provide you to attach to your session remotely and locally.

If you really want to connect to existing session, you need to use other softwares such as x11vnc and connect like this.

[your client]--(network)--[xrdp as RDP-VNC proxy]--[x11vnc]--[existing Xorg session]

What about loading xorgxrdp modules in the local X session and set up dual-screen with it?

What about loading xorgxrdp modules in the local X session and set up dual-screen with it?

xorgxrdp must be loaded when Xorg startup currently.

Closing due to out of scope. See https://github.com/neutrinolabs/xrdp/issues/960#issuecomment-347373531 for the intended use case.

Is there any chance this functionality would be implemented? It would be very helpful if XRDP would behave same way as Windows RDP does, when user can connect to existing session (that was started from console).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jerry-kiwi picture Jerry-kiwi  路  4Comments

zilongo picture zilongo  路  7Comments

Kaydub00 picture Kaydub00  路  8Comments

faya9551 picture faya9551  路  9Comments

donkey picture donkey  路  6Comments