
I use xrdp to remote desktop into one of my machines (Ubuntu Mate 14.04) when I need to use a gui. This works reasonably well, though xrdp does not allow tasks that require elevated privileges to run as it doesn't seem to properly call the graphical password prompt. Calling the program from the command line with gksudo works fine, but is suboptimal as you need to know the name of the binary you're calling. This post [1] describes one way to solve this little problem, and it works well except for it to work it requires the xrdp service to be restarted (or manually started if it's not started at boot) via ssh after a reboot. I've tried having the xrdp service start late in the boot process in case it depends upon another service, but that doesn't seem to help. I've also tried adding a script to /etc/rc.local to restart xrdp on boot. This appears to work fine but the service is not available after boot. Attempting to restart (or stop / start) it via ssh gives an error that it's already running. Any suggestions on how I can get xrdp to start properly on boot? [1] http://forums.linuxmint.com/viewtopic.php?f=47&t=61971 -- Vote NO in referenda.