Ubuntu 20.04: Install KDE for desktop environment

This article will describe installing KDE for desktop environment.

1 Install KDE

#!/bin/sh -e

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

2 Login to KDE

You can select other desktop environment.

0001_lightdm.png

KDE is displayed.

0002_kde.png

3 Uninstall KDE

#!/bin/sh -e

sudo apt remove -y kubuntu* kde* libkde*
sudo apt autoremove -y
sudo apt install --reinstall -y gdm3
sudo reboot