Categories: Ubuntu

How to Install GUI on Ubuntu Server

Ubuntu distribution doesn’t support a graphical user interface (GUI) by default instead prefers to use command-line tools for day-to-day operations. However, sometimes it is recommended to use a GUI to manage system resources and enhance performance; as some of the operations are easy to manage using the graphical user interface tools.

This guideline will mention the way out to install top GUI desktop setups on the Ubuntu server.

How to Install GUI on Ubuntu Server

You can get the GUI on the Ubuntu server

Sponsored

Step 1: Login to Ubuntu Server

Open the Ubuntu Server by entering the credentials, username and password:

The login screen will look like the following mentioned below:

Step 2: Update the Repository

Before getting started with the GUI installation on the Ubuntu server, update all of the Ubuntu packages and repositories to refresh the system:

sudo apt update

 

Step 3: Install Display Manager

Once you have done with the updates, we need to install the display manager to launch the display server. Although GDM3 is already present as the default Gnome Desktop Environment in Ubuntu, a more lightweight environment leads to a smooth process.

While searching, you would get multiple display manager tools, to select the best one, consider the lightweight tool. In Linux systems, the demanding and top-ranked tools are LightDM or Slim; you can download any of them.

We will use the LightDM tool to the GUI on the Ubuntu machine; execute the following command to let install LightDM:

sudo apt install lightdm

 

During installation, the configuration screen will appear; hit enter to proceed next:

In the next, you will be asked to select any of the display managers, either to go with the gdm3 (the default one) or move with the lightdm; select lightdm and hit the Enter button:

It will continue installing LightDM on the Ubuntu system.

If you prefer the SLiM desktop manager, you can also download it by running the mentioned command in the Ubuntu terminal:

sudo apt install slim

 

Step 4: Install GUI on Ubuntu Server

Linux has a variety of desktop environment options and allows its users to select the most suitable. Some of the best and top-ranked are as follows:

  1. GNOME
  2. KDE Plasma
  3. MATE
  4. XFCE
  5. LXDE

You can install all of the desktop environments using Ubuntu’s default package manager apt.

  1. GNOME

Usually, Ubuntu comes up with a default GNOME desktop setup, but as we are running an Ubuntu server without a GUI desktop; run the mentioned command to get it:

sudo apt install ubuntu-desktop

 

Sponsored

Type y to continue the process:

Select or deselect the services you want to restart by navigating through the arrow keys and pressing the space key; if you don’t want to restart the additional services, press the tab and then Enter:

Run the reboot command to restart the Ubuntu server:

reboot

 

After reeboting, the following lightdm screen will appear, enter the credential (password) to access the GUI in Ubuntu server:

You have successfully installed the GUI on Ubuntu server; the screen will look like the following:

Other top-ranked desktop environments are as follows:

  1. KDE Plasma

KDE Plasma is an open-source, convenient and user-friendly desktop environment that allows you to perform tasks smoothly. Its launcher helps the user to launch tools easily and quickly.

To get the KDE plasma desktop on your Ubuntu server; the following command would be used:

sudo apt install kde-plasma-desktop

 

  1. MATE

MATE is another lightweight and fast desktop environment which is best suitable for those who like traditional desktop metaphors. It is the continuation of GNOME 2 giving a secure and reliable interface to its users.

If you want to install the MATE desktop environment on your Ubuntu server; execute the following command in the Ubuntu terminal:

sudo apt install ubuntu-mate-desktop

 

  1. XFCE

The main feature that makes XFCE more reliable than other desktop environments is it consumes low CPU usage, which results in high performance while running several applications at a time. XFCE is open-source and is faster than GNOME and KDE-plasma environments.

Install the XFCE on the Ubuntu server using the given command:

sudo apt install xfce4-session xfce4-goodies

 

 

  1. LXDE

LXDE is a good choice for users who require a desktop for cloud computing networks with less CPU and RAM usage. Get the LXDE desktop environment on the Ubuntu server using the mentioned command:

sudo apt install lxde

 

How to Remove GUI and Display Manager from Ubuntu Server

If you want to remove the installed GUI along with the display manager then use the following syntax:

sudo apt remove <display-manager-name> <desktop-environment-name>

 

Like, if you want to remove the Gnome desktop environment from the Ubuntu Server, execute the given command:

sudo apt remove lightdm ubuntu-desktop

 

And, to remove all of the unnecessary dependencies, run:

sudo apt autoremove

 

Reboot the system by running reboot command to save changes.

Conclusion

Ubuntu system doesn’t support GUI by default and many users like to perform day-to-day operations using command-line tools. But sometimes, GUI tools offer more easiest and straightforward processes to handle the system. This guideline has discussed how to install a GUI setup on the Ubuntu server. Top-ranked desktop environments are mentioned along with their installation commands. Also, if you want to delete the desktop environment from the Ubuntu server, the way is specified above.

Ubuntu Server Admin

Recent Posts

Building RAG with enterprise open source AI infrastructure

One of the most critical gaps in traditional Large Language Models (LLMs) is that they…

10 hours ago

Life at Canonical: Victoria Antipova’s perspective as a new joiner in Product Marketing

Canonical is continuously hiring new talent. Being a remote- first company, Canonical’s new joiners receive…

1 day ago

What is patching automation?

What is patching automation? With increasing numbers of vulnerabilities, there is a growing risk of…

2 days ago

A beginner’s tutorial for your first Machine Learning project using Charmed Kubeflow

Wouldn’t it be wonderful to wake up one day with a desire to explore AI…

3 days ago

Ubuntu brings comprehensive support to Azure Cobalt 100 VMs

Ubuntu and Ubuntu Pro supports Microsoft’s Azure Cobalt 100 Virtual Machines (VMs), powered by their…

3 days ago

Ubuntu Weekly Newsletter Issue 870

Welcome to the Ubuntu Weekly Newsletter, Issue 870 for the week of December 8 –…

4 days ago