I have removed the previous desktop (Xfce 4):
aptitude remove xfce4 reboot
aptitude install xrdp
I have installed MATE.
apt install tasksel apt update tasksel install ubuntu-mate-desktop
echo mate-session > ~/.xsession
I have changed the
I have removed the following lines:
test -x /etc/X11/Xsession && exec /etc/X11/Xsession exec /bin/sh /etc/X11/Xsession
I have added the following line to the end:
service xrdp restart
Then I have connected to Ubuntu 18.04 desktop from using the «Remote Desktop» application in Windows 7.