
Step-1: Install XFCE
[email protected]:~$ sudo apt update && sudo apt upgrade
[email protected]:~$ sudo apt install xfce4 tasksel -y
[email protected]:~$ sudo tasksel

Step-2: Install XRDP
[email protected]:~$ sudo apt install xrdp -y
[email protected]:~$ 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
[email protected]:~$ sudo systemctl start xrdp
Jika menggunakan firewall, silahkan allow untukport RDP
[email protected]:~$ sudo ufw allow 3389/tcp
Rules updated
Rules updated (v6)
reload firewall
[email protected]:~$ sudo ufw reload
Firewall reloaded
Step-3: XRDP Configuration
[email protected]:~$ 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”
[email protected]:~$ echo xfce4-session >> ~/.xsession
sudo systemctl restart xrdp