Ubuntu 20.04: Install LXDE for desktop environment

This article will describe installing LXDE for desktop environment.

1 Install LXDE

#!/bin/sh -e

cat <<EOF | sudo tee /etc/X11/default-display-manager
/usr/bin/sddm
EOF
sudo DEBIAN_FRONTEND=noninteractive apt install -y lubuntu-desktop
sudo reboot

2 Login to LXDE

After reboot, lightdm-gtk-greeter will be started. You can select other desktop environment.

0001_lightdm.png

LXDE is displayed.

0002_lxde.png

3 Uninstall LXDE

#!/bin/sh -e

sudo apt remove -y lubuntu* lxde* lxqt* liblxqt* openbox sddm
sudo apt autoremove -y
sudo apt install --reinstall -y gdm3
sudo reboot