LXDE is a lightweight desktop environment for Linux. If you would like to have a graphical interface, especially on a low-budget VPS, LXDE is a good choice. For more details about LXDE, you can check its offical website here .
We use xrdp here to control the VPS remotely. Xrdp provides a graphical login to remote machines using RDP (Microsoft Remote Desktop Protocol). For more details about xrdp, you can check its offical website here .
Login your VPS as root#
#Update the system
apt-get update
apt-get upgrade
#Install LXDE
apt-get -y install lxde
#Install xrdp
apt-get -y install xrdp
#Check if xrdp is running
systemctl status xrdp
netstat -lptn | grep 3389
#change your password
passwd
Configure your firewall to allow remote connections#
An RDP connection serves on TCP/IP port 3389. Below are ufw firewall commands.
#Check if ufw is already installed
ufw version
#Install ufw
apt install ufw
#Check ufw status. ufw is disabled by default.
ufw status
#Disable the firewall
systemctl stop ufw
#Allow port 3389 (tcp/udp)
sudo ufw allow 3389
#Deny port 3389 (tcp/udp)
sudo ufw deny 3389
Now, you can use Microsoft Remote Desktop to control it remotely.