Open cypa opened 8 years ago
X11 desktop managers cannot use RDP protocol. They would need to be run in one of the XRDP supported backends. That's another thing that can go wrong and another option to configure.
Once xorgxrdp works really well and most distros ship it, it could be made the default, simplifying the configuration for the beginners.
I don't get you, dear @proski ... but since RDP is similar to VNC in architecture and lightdm supports VNC I guess xorgxrdp could be used with lightdm as well, or not?
I mean that you cannot use LightDM as is. It needs to connect to an X server. For xrdp to use LightDM, it would need to run an X server. xrdp supports 3 backends - Xvnc, X11rdp and xorgxrdp. So xrdp would need to decide which backend to use before it even shows anything to the user. There is no guarantee of either backend being available. So it would need to be configured. And if the configuration is wrong, the user would see nothing, unless xrdp retains some GUI support to show the error message.
I see that LightDM can work as a VNC server. They can add RDP support, but you should be asking the LightDM developers, as most of the work would be on their side. LightDM would accept the connection, authenticate the user, allow some selections (backend, language etc) and then it would run xrdp in a special mode with an existing TCP connection.
xrdp would need to support the connection passed by another process (that would allow xrdp to support xinetd as well), and it would need an option to require autologin. If everything works smoothly, the xrdp GUI code could be eliminated eventually.
Actually, I just realized that LightDM would need to implement the security negotiation. Either LightDM would need to give all the details (not just the socket) to xrdp for smooth transition, or it should incorporate xrdp. That's a massive effort, and I don't expect it to happen any time soon.
well, I agree ... but that efforts worth it, I think
This would ultimately mean that lightdm would have to implement session management as well, including reconnects.
That would be cool because it would allow sharing local and remote sessions, but it is also really complex.
cause configuring another wm environment is a mess, at least on Ubuntu 16.04 ... it is not main profile task for xrdp after all