It's not worth it - there is a better & less painful solution:
I spent at least 8 hours fighting the battle to connect from Windows 10 to Ubuntu 16 via xrpd and Windows rdp. I tried endless "solutions" that I found posted all over the web. I made progress, but never managed to fully solve it. Even if I had, though, it seems that this is weak setup anyway, because:
- You can't use the Unity Desktop, so your rdp has connect you to a completely different OS UI than what you would use as the Ubuntu standard.
- You can't be logged on already with that account. So if you were have a scenerio where sometimes you work directly on the Ubuntu machine, and sometimes you connect remotely, you'd have to be sure to log out to allow for that remote connection.
- From what've read, once you have this, you have also fight a battle to get a "re-connection" mechanism working to re-enter an rdp session you left.
- You have to manually enter credentials every time you log on. There is no way to save them on the client end and just connect instantly.
I've used a pile of different remote connection interfaces, and overall nothing beats the ease and quality of Windows RDP yet to my mind. A such, I was pretty fixated on using that. After fighting this long enough though, and finally throwing in the towel, I found that VNC pretty much works just as well in this context.
As I said initially, on the Ubuntu side I used "x11vnc". Refer to these directions for details on getting that fully setup:
How to setup x11vnc to access with graphical login screen?
On the Windows side, I used RealVNC Viewer: https://www.realvnc.com/en/connect/download/viewer/, which I already had installed and setup for a remote connection to a Mac on my LAN as well.
With this setup, I have NONE of the weaknesses outlined above. Further, in full screen mode, the display is just as good as it would be naturally. I see 0 lag, 0 blurring. I have a bi-directional clipboard working without any effort to get that...
In theory, you are supposed to be able to stack xrpd and x11vnc. See: http://c-nergy.be/blog/?p=5956
I tried that too, just to see if I could get it to work. I had no luck with that either. So I just said the hell with xrpd in the end, uninstalled it, and rolled back all the changes I made to my machine fighting with it (or least so of them).
Unless you have a major reason that you NEED RDP instead of VNC, I strongly recommend going this route I've described instead.