Update the list of available packages using the following command
sudo apt update
sudo apt install xfce4 xfce4-goodies -y
sudo apt install xrdp -y
sudo systemctl status xrdp
Ensure IPV6 is set to yes in below file
sudo nano /etc/default/ufw
IPV6=yes
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw allow 3389
sudo ufw enable
sudo ufw allow 6000:6007/tcp
sudo ufw allow 6000:6007/udp