reference:session
link:http://blog.csdn.net/gulianchao/article/details/10035337this
cd /home/remote # remote is the newly created user.spa
1. set the desktop when accessing to Ubuntu desktop via Remote Desktop Connect on Windows..net
echo "gnome-session" .xsesson # Ubuntu default desktoprest
ororm
echo "gnome-session --session=gnome-classic" .xsession # if this, you should install gnome desktop manager first by 'sudoapt-get install gnome-panel'.blog
orrem
echo ""xfce4-session" # if this, you'd install xfce4 desktop manager first by 'sudo apt-get install xfce4'.get
2. restart xrdp serviceit
if the desktop is innormal after logon by remote desktop connection, try to restart xrdp service.
sudo /etc/init.d/xrdp restart
then you can see the desktop corresponding to setting in /home/remote/.xsession.