To interact with the system, whether remote or on-premises, we need some interface. There are two different types of interfaces to interact with the system, command-line interface (CLI) and graphical user interface (GUI). For beginners, a graphical user interface is much easier to use. The graphical user interface comes with different types of desktop environments like GNOME, KDE Plasma, MATE, Budgie, Xfce, Cinnamon, etc.

A Desktop Environment is the collection of components like icons, files, folders, etc. Different desktop environments provide different types of components like icons, files, and folders, etc. These environments determine what your operating system looks like and how you can interact with your operating system. Without a desktop environment, your operating system is just a terminal, and you can interact with your system using only commands.

MATE Desktop Environment is free and open-source software specially built for Linux and UNIX-like operating systems. The MATE project was forked and continued from GNOME2. In this article, we will set up the MATE Desktop Environment on our EC2 instance.

Connect to Instance over SSH

When you launch an EC2 instance on the cloud, it usually comes with a command-line interface only. So you have to connect to the instance over SSH to configure the Desktop Environment. Before connecting to the instance over SSH, change the permission of the private key pair.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image1-27.png" data-lazy- height="158" src="data:image/svg xml,” width=”642″>

Installing MATE Desktop Environment

After connecting to the instance, now it is time to set up MATE Desktop Environment on our EC2 instance. Update the packages and repositories on EC2.

After updating the packages and repositories, we will now add apt-repositories of MATE Desktop Environment to Ubuntu.

Update the local repositories of Ubuntu again after adding the above repositories.

Install xrdp and MATE Desktop Environment.

We have installed the MATE desktop environment, but the default desktop environment for most of the EC2 instances is GNOME. So after installing the MATE desktop environment, we have to make it the default desktop environment for xrdp sessions.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image3-25.png" data-lazy- height="107" src="data:image/svg xml,” width=”642″>

After making the MATE desktop environment default, restart the xrdp service to apply the changes.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image2-26.png" data-lazy- height="77" src="data:image/svg xml,” width=”642″>

Whenever you connect to your EC2 instance over RDP, it will use the MATE desktop environment by default.

Update the Password

To connect to the EC2 instance over RDP, we need to set up a user password. By default, EC2 instances allow connection over SSH only, and the default user does not have any password. Set up a password for the default EC2 user.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image5-25.png605beca39b9ac.jpg" data-lazy- height="158" src="data:image/svg xml,” width=”642″>

Testing the MATE Desktop Environment

Now we have set up the MATE desktop environment on our EC2 instance, and it is time to test it. We will connect to our instance over RDP. Before connecting to the instance, make sure you are not blocking port 3389 from any firewall or security group on the cloud because, by default, RDP creates a connection over port 3389. On your Linux machine, open remmina, a remote desktop client for UNIX and Linux-like operating systems.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image4-26.png605beca416ca4.jpg" data-lazy- height="430" src="data:image/svg xml,” width=”754″>

Add a new RDP connection.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image7-20.png" data-lazy- height="630" src="data:image/svg xml,” width=”800″>

Sometimes while creating a connection over RDP, you get an error due to color depth settings, as shown in the following figure.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image6-23.png605beca538a17.jpg" data-lazy- height="147" src="data:image/svg xml,” width=”634″>

We can resolve the above error by specifying the correct color depth for the connection, which is ‘high color 16bpp’.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image9-17.png605beca5ccc24.jpg" data-lazy- height="600" src="data:image/svg xml,” width=”800″>

After specifying the correct color depth, you will access your instance with MATE Desktop Environment setup over RDP.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image8-18.png" data-lazy- height="656" src="data:image/svg xml,” width=”1366″>

You can confirm the Desktop Environment by checking the DESKTOP_SESSION.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image12-11.png605beca65c1a4.jpg" data-lazy- height="339" src="data:image/svg xml,” width=”954″>

MATE Applications

As discussed earlier, the MATE desktop environment was forked and continued from GNOME2, so to avoid the conflict with GNOME applications, the MATE applications have been renamed. Following are the names of some important applications you need to know before using the MATE desktop environment.

Caja

Caja is the file manager of the MATE desktop environment. You can browse directories and files as well as launch applications using Caja. Caja is a fork of Nautilus and is responsible for the icons on the MATE desktop. It can be used on local and remote filesystems.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image10-15.png" data-lazy- height="541" src="data:image/svg xml,” width=”728″>

MATE Terminal

MATE Terminal is a simple terminal application for the MATE desktop. It is a fork of the GNOME terminal and can open multiple terminal tabs in a single window. It can be used to launch applications that are designed to run on VT102 and VT220.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image11-13.png605beca738933.jpg" data-lazy- height="470" src="data:image/svg xml,” width=”736″>

Atril

Atril is a document viewer in the MATE desktop environment and can be used to open EPS (Encapsulated PostScript), PDF (Portable Document Format), XPS DJVU, and PS (PostScript) files. It also supports the text search in the document.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image13-10.png605beca79583c.jpg" data-lazy- height="542" src="data:image/svg xml,” width=”605″>

Pluma

Pluma is a simple text editor for the MATE desktop just like gedit in GNOME. It supports the editing of multiple files in a single window. It is the fork of gedit.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image14-9.png605beca80f94a.jpg" data-lazy- height="517" src="data:image/svg xml,” width=”654″>

Eye of MATE

Eye of MATE (eom) is a simple image viewer in the MATE desktop environment. It can zoom in and zoom out the image and can deal with larger images. Eye of MATE is the fork of the eye of GNOME (eog).

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/image15-4.png" data-lazy- height="466" src="data:image/svg xml,” width=”541″>

Conclusion

The desktop environment of an operating system defines the graphical user interface of the operating system. Having a lightweight and efficient desktop environment like MATE puts less pressure on your cloud resources like RAM and processors, making it ideal for handling your cloud operating systems.

About the author

<img alt="Usama Azad" data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/usama-1-150×150.jpg605beca86be23.jpg" height="112" src="data:image/svg xml,” width=”112″>

Usama Azad

A security enthusiast who loves Terminal and Open Source. My area of expertise is Python, Linux (Debian), Bash, Penetration testing, and Firewalls. I’m born and raised in Wazirabad, Pakistan and currently doing Undergraduation from National University of Science and Technology (NUST). On Twitter i go by @UsamaAzad14