I installed xrdp on my ubuntu 14.04 machine using the below commands. I can now remote desktop from my windows machine easily into my ubuntu machine.
However, what I notice is when I close the remote desktop connection and login again with same credentials, it would start a fresh new session. I was expecting to see the screen where I left. Is there anything specific I need to do to preserve the session?
sudo apt-get install xrdp sudo apt-get update sudo apt-get install xfce4 echo xfce4-session >~/.xsession sudo service xrdp restart