Since the current desktop manager of Ubuntu does not work with xRDP, an alternative desktop manager needs to be installed. In this post, we will use XFCE.
Install xRDP and XFCE
sudo apt-get install xrdp xfce4 xfce4-terminal gnome-icon-theme-full tango-icon-theme
First, create an
.xsession file in the home directory.
echo xfce4-session >~/.xsession
Then edit the startup file for xRDP