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 > /etc/init.d/usr/local/lib/systemd/system/xrdp-root-windowswindows.service <<EOL
#! /bin/bash
### BEGIN INIT INFO################################################################################
# Provides: xrdp-root-windowswindows.service
#
Required-Start:# \$local_fsThis \$syslogallows graphical windows run by root to be displayed through the user's RDP.
# Required-Stop:Licensed \$local_fsunder \$syslogGPL V2
#
Default-Start: 2 3 4 5################################################################################
# Default-Stop:This 0program 1should 6be placed in /usr/local/lib/systemd/system/.
# Short-Description:Create startsa xrdp-root-windowssymlink #to Description:it startsfrom xrdp-root-windowsthe using/etc/systemd/system start-stop-daemondirectory.
###################################################################################
END[Unit]
INITDescription=Adds INFOlocaluser:root to the xhost access control list.
[Service]
ExecStart=xhost +SI:localuser:root
exit[Install]
0WantedBy=multi-user.target
EOL
chmod 755 /etc/init.d/xrdp-root-windows
update-rc.d xrdp-root-windows defaults
exit
Now, we will allow applications to be run as Root using the graphical user interface.