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.

 

cat > /etc/init.d/xrdp-root-windows <<EOL
#! /bin/bash
### BEGIN INIT INFO
# Provides:       xrdp-root-windows
# Required-Start:    \$local_fs \$syslog
# Required-Stop:     \$local_fs \$syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts xrdp-root-windows
# Description:       starts xrdp-root-windows using start-stop-daemon
### END INIT INFO

xhost +SI:localuser:root

exit 0
EOL

chmod 755 /etc/init.d/xrdp-root-windows

update-rc.d my-start-script defaults

 



Now, we will allow applications to be run as Root using the graphical user interface.