Skip to main content

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/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 /etc/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

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.