Step-1: Install XFCE
foc@ubuntu20:~$ sudo apt update && sudo apt upgrade
foc@ubuntu20:~$ sudo apt install xfce4 tasksel -y
foc@ubuntu20:~$ sudo tasksel
Step-2: Install XRDP
foc@ubuntu20:~$ sudo apt install xrdp -y
foc@ubuntu20:~$ sudo systemctl enable xrdp
Synchronizing state of xrdp.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable xrdp
foc@ubuntu20:~$ sudo systemctl start xrdp
Jika menggunakan firewall, silahkan allow untukport RDP
foc@ubuntu20:~$ sudo ufw allow 3389/tcp
Rules updated
Rules updated (v6)
reload firewall
foc@ubuntu20:~$ sudo ufw reload
Firewall reloaded
Step-3: XRDP Configuration
foc@ubuntu20:~$ sudo vi /etc/xrdp/startwm.sh
Jangan lupa tambahkan baris di bawah di atas “test -x /etc/X11/Xsession && exec /etc/X11/Xsession“
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
tambahkan xfce4-session di “.xsession”
foc@ubuntu20:~$ echo xfce4-session >> ~/.xsession
sudo systemctl restart xrdp