Ubuntu 18.04: Install MATE for desktop environment

Table of Contents

1 Install MATE

The following command will install MATE.

$ sudo apt install -y ubuntu-mate-desktop<snip>check for a default display manager. 1. gdm3 2. lightdmDefault display manager: lightdm<snip>$ sudo reboot

The following makes selecting display manager be automated.

$ sudo apt install -y expect$ cat <<EOF | expectset timeout -1spawn sudo apt install -y ubuntu-mate-desktopexpect “Default display manager: “send “lightdmn”expect eofEOF$ sudo reboo

2 Login to MATE

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


MATE is displayed.


3 Uninstall MATE

The following command will uninstall MATE.

$ sudo apt remove -y ubuntu-mate-desktop mate-* ubuntu-mate-* plymouth-theme-ubuntu-mate-* lightdm$ sudo apt autoremove -y$ sudo apt install –reinstall -y gdm3$ sudo reboot

Android | Linux | SDL - Narrow Escape