today we want to install the desktop and XRDP in Raspian Stretch Light, but we encountered some stumbling blocks.
If we have connected our Raspberry to a network and activated ssh, we can connect with the commands "ssh pi@raspberrypi", password "raspberry" and as always first configure with "raspi-config".
Install the GUI with the command "sudo apt-get install raspberrypi-ui-mods -y".
When the installation is finished we make sure with "sudo apt-get purge realvnc-vnc-server" that there is no VNC on the system.
Now we can install the server service for the MSTSC with "sudo apt-get install xrdp" so that we can log in later comfortably and do not need an extra client.
To be able to log in later we still have to enter a permission:
We navigate with "cd /etc/X11/" into the folder and open with "sudo nano Xwrapper.config" the file in which we change the entry "allowed_users=console" into "allowed_users=anybody" and save with Ctrl+O.
After a reboot with "sudo restart now" we connect again and update as usual with: "sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade".
Then make sure that our Raspi boots with GUI by selecting with "sudo raspi-config" item 3 Boot Options, B1 Desktop, B4 Desktop auto login.
After a reboot we can already connect to XRDP:
and log in:
we have done it, we are in the desktop:
[since this is a test installation I have not changed the password here in the example].