reference:
link:http://blog.csdn.net/gulianchao/article/details/10035337
cd /home/remote # remote is the newly created user.
1. set the desktop when accessing to Ubuntu desktop via Remote Desktop Connect on Windows.
echo "gnome-session" .xsesson # Ubuntu default desktop
or
echo "gnome-session --session=gnome-classic" .xsession # if this, you should install gnome desktop manager first by 'sudoapt-get install gnome-panel'.
or
echo ""xfce4-session" # if this, you'd install xfce4 desktop manager first by 'sudo apt-get install xfce4'.
2. restart xrdp service
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.
来源:oschina
链接:https://my.oschina.net/u/2614657/blog/607669