How to Install GUI on Ubuntu Server?
Last Updated :
01 Dec, 2022
The Ubuntu Server is a variant of the standard Ubuntu. It is a tailored version for networks and services. Ubuntu Server is an open-source operating system for IoT devices and Servers. Unlike standard Ubuntu, the Ubuntu server doesn’t have any Graphical User Interface or GUI.
There may be many instances when we wanted to have a GUI on our server. Linux is a highly customizable Operating System. Thus, we have a method to install GUI or the Desktop environment on a Ubuntu Server.
In this article, we are going to discuss, how to do that.
Installation
Step 1: Update Package Information
Before installing the required packages it is always preferable to collect the latest package information from the repository. The following commands collect the updated list of packages and upgrade them.
sudo apt update
sudo apt upgrade
Below is the terminal shell pictorial depiction after executing the above commands –
Step 2: Install Desktop Environment
After that, you need to install a desktop environment. A desktop environment is a collection of components such as wallpapers, widgets, icons, menus, and toolbar for a Graphical user interface (GUI). Desktop environments also have their own set of applications such as file explorer, desktop search, and more.
There are plenty of desktop environments are present for the Ubuntu server like GNOME (the default one), KDE plasma, mate-core, Xubuntu, etc.
- GNOME: It is the default desktop environment provided in the standard Ubuntu. It is easy to use and provides dynamic workspaces and a powerful activities overview.
- KDE plasma: It is another popular desktop environment. It has its own unique design. It provides tons of window effects and shortcuts.
- mate-core: It provides an intuitive and attractive desktop experience similar to Microsoft Windows or Apple’s macOS. It is a very lightweight environment and suitable for machines that aren’t powerful.
Xubuntu is also a lightweight, stable and configurable desktop environment. It works well on older hardware and is efficient for daily tasks. You can choose any one of them as per your choice.
To install the Ubuntu GNOME desktop environment use the following command:
sudo apt install ubuntu-desktop
The installation commands for other desktop environments are given below:
KDE Plasma :
sudo apt install kde-plasma-desktop
Ubuntu MATE:
sudo apt install ubuntu-mate-core
Xubuntu:
sudo apt install xubuntu-core
Step 3: Install Display Manager
Next, we need to install one display manager to load up the desktop environment session.
We will use LightDM for that. LightDM is a free and open-source display manager. It is lightweight and supports a multi-desktop environment. LightDM is the default display manager for many Ubuntu-based distros like Xubuntu, Linux Mint, etc.
To install LightDM, use the following command –
sudo apt install lightdm
After it is installed, it will ask to set up the default Desktop Manager. Choose LightDM and proceed.
Step 4: Start Display Manager Service
After LightDM is successfully installed, we need to enable the LightDM service.
To do so, run the following command –
sudo systemctl start lightdm.service
After enabling LightDM service, add it to the service utility, so that it automatically starts every time the system boot up. To do so, use the following command –
sudo service lightdm start
Now your Desktop environment will be visible on the server.
By any chance, if you want to go back to the CLI experience and revert all the changes, then use the following set of commands –
sudo apt autoremove ubuntu-desktop
sudo systemctl stop lightdm.service
sudo apt autoremove lightdm
Similar Reads
How to Install Ubuntu Server?
When an individual decides to work on the Ubuntu Ubuntu OS on the device. Either, one has to Install Ubuntu Server on the system or go to Install Ubuntu Desktop. However, if you want to work on the server side and cloud system, you should have Get Ubuntu Server instead of Ubuntu Desktop. The Install
3 min read
How to Install Gvim on Ubuntu
The text editor known as Vim, which stands for "Vi Improved," is a traditional one that is primarily used by programmers. It is commonly referred to as a "programmer's editor." It was created a long time ago, but it is still a well-liked editor that outperforms many rivals. It can be used for everyt
5 min read
How to Install PHP on Ubuntu?
If you're working with web development on Linux, knowing how to install PHP on Ubuntu is essential. PHP is a popular server-side scripting language used to build dynamic websites, and setting it up on your Ubuntu system is simple. In this guide, we'll walk you through the steps to PHP installation o
5 min read
How to install Elinks on Ubuntu?
If you are searching for any Text-Based Web Browser for any Linux Distribution like Ubuntu, then the Elinks on Ubuntu will be the best to use. The Elinks Web Browser on Ubuntu can even enhance the Command Line Experience. Not only on Ubuntu OS but the Installation of Elinks can be done on Windows OS
3 min read
How to install PuTTY on Ubuntu
Although PuTTY is a popular SSH client for Windows, it also supports other network protocols including Telnet and rlogin. PuTTY is also used by the system administrators as a Telnet and SSH client. Telnet is a protocol for establishing communication between two or more networked devices, but it was
2 min read
How to install OpenOffice on Ubuntu
OpenOffice is a free and open-source office suite that runs on a variety of platforms. The Java and C++ programming languages are used to create this application software. This office suite comes in a whopping 121 different languages. It was first released for Microsoft Windows, Linux, and Solaris b
2 min read
How to Install Arduino IDE on Ubuntu
In this article, we will be installing Arduino IDE on the Ubuntu system. We will install the application using various different approaches. Arduino IDE is an effective and user-friendly software environment that enables programmers to create and upload code to microcontroller boards that are compat
4 min read
How to Setup Git Server on Ubuntu?
Git is a popular version control system that is widely used for software development and other collaborative projects. Setting up a Git server on Ubuntu allows you to host Git repositories on your Git, which can be useful for collaborating with a team or hosting open-source projects that others can
6 min read
How to install Xvfb on Ubuntu
The Linux/Unix operating system is designed for use with the X virtual frame buffer, often known as Xvfb. By attaching an input device, you can run graphical applications without a monitor. The software can operate headlessly and execute graphic operations in virtual memory. It was created specifica
2 min read
How To Install and Use Remmina on Ubuntu
In today's digitally interconnected world, remote desktop software plays a pivotal role in various scenarios, from system administration to remote work. Among the plethora of options available, Remmina stands out as a robust, open-source remote desktop client specifically designed for Linux systems
5 min read