sudo su
apt-get update
apt-get install xrdp -y
apt-get install xfce4 -y
echo xfce4-session >~/.xsession
nano /etc/xrdp/startwm.sh
-------------------------------------------------------
#!/bin/sh
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi
startxfce4
-------------------------------------------------------
service xrdp restart
hostname -I
Optional Config
iptables -A INPUT -p tcp --dport 3389 -m state --state NEW -j ACCEPT
ufw allow 3389/tcp