Xfce is a free desktop environment for UNIX-like operating systems such as GNU/Linux, NetBSD, OpenBSD, FreeBSD, Solaris and others. It provides a lightweight and modular interface based on the GTK 3 library.
Installing Xfce GUI and XRDP remote desktop on a server running Ubuntu 18.04 operating system involves several steps.
Connect to your server via SSH.
Update the package list and install the updates.
sudo apt update
sudo apt upgrade -y
Install the Xfce workspace.
sudo apt install xfce4 xfce4-goodies -y
Install XRDP.
sudo apt install xrdp -y
Run and configure XRDP to start automatically at system boot.
sudo systemctl enable xrdp
sudo systemctl start xrdp
Define Xfce as the default working environment for XRDP. To do this, create and edit the .xsession file in your user's home directory.
echo xfce4-session > ~/.xsession
Restart the XRDP service.
sudo systemctl restart xrdp
If you have a UFW (Uncomplicated Firewall) installed, open port 3389, which is used by XRDP.
sudo ufw allow 3389/tcp
Check the status of the UFW to make sure the port is open.
sudo ufw status
After completing these steps, you should be able to connect to your server using XRDP and use the Xfce desktop environment.