This article will describe installing KDE for desktop environment.
Table of Contents
1 Install KDE
The following command will install KDE.
#!/bin/sh -e unset TERM sudo apt install -y expect cat <<EOF | expect set timeout -1 spawn sudo apt install -y kubuntu-desktop expect { "\\\\\\[More\\\\\\]" { send "\n"; exp_continue; } "Default display manager: " { send "sddm\n"; } } expect eof EOF sudo reboot
3 Uninstall KDE
The following command will uninstall KDE.
#!/bin/sh -e sudo apt remove -y kubuntu* kde* libkde* sudo apt autoremove -y sudo apt install --reinstall -y gdm3 sudo reboot