Ubuntu 19.04: Install MATE for desktop environment

This article will describe installing MATE for desktop environment.

1 Install MATE

The following command will install MATE.

$ sudo apt install -y ubuntu-mate-desktop
check for a default display manager.

  1. gdm3  2. lightdm

Default display manager: lightdm
$ sudo reboot

The following makes selecting display manager be automated.

#!/bin/sh -e

unset TERM
sudo apt install -y expect
cat <<EOF | expect
set timeout -1
spawn sudo apt install -y ubuntu-mate-desktop
expect "Default display manager: "
send "lightdm\n"
expect eof
sudo reboot

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.

#!/bin/sh -e

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