Installing XRDP
sudo apt-get install xrdp
hit Y and Enter
sudo systemctl status xrdp
sudo apt install xfce4
default display manager: gdm3
sudo update-alternatives --config x-session-manager
Select /usr/bin/startxfce4
You cannot remote desktop into your account while you are logged in through the desktop.
sudo su
cat > /lib/systemd/system/xrdp-root-windows.service <<EOL
################################################################################
# xrdp-root-windows.service
#
# This allows graphical windows run by root to be displayed through the user's RDP.
# Licensed under GPL V2
#
################################################################################
# This program should be placed in /lib/systemd/system directory.
################################################################################
[Unit]
Description=Adds localuser:root to the xhost access control list.
[Service]
ExecStart=xhost +SI:localuser:root
[Install]
WantedBy=multi-user.target
EOL
systemctl daemon-reload
systemctl enable xrdp-root-windows
exit
Now, we will allow applications to be run as Root using the graphical user interface.