How to install GUI on Ubuntu server ?

Ubuntu is one of the most popular Linux distributions. It is easy to use, easy to install and includes everything that is needed from a user’s perspective. Ubuntu is officially released in three editions: desktop / GUI, server, and core for IoT and robotics.

Ubuntu server by default doesn’t include a GUI or a desktop environment that means you have to manage everything from the terminal. A few things on a system can be managed better using GUI.

Having said that, in this article we will explain how you can set up a graphical user interface (GUI) on an Ubuntu server.


To complete this installation guide you will need to have the following.

  • A system running Ubuntu server (I will use Ubuntu 20.04 server)
  • Access to a user account with superuser privileges
  • You need to have a good internet connection to download packages for GUI.

Install tasksel utility

Tasksel utitlity provides a terminal-based menu that includes a number of grouped packages like Ubuntu desktop, LAMP, DNS server, etc. You can quickly set up a server with these packages using this utility. This doesn’t come preinstalled on a system you need to use the given command to install it.

First, use the given command to update the local package database on your system –

sudo apt update && sudo apt upgrade -y

Now use the given command to install tasksel –

sudo apt install tasksel

If asked for your confirmation press y and then enter.

Install a display manager

A display manager is an application that starts the desktop window, manages user authentication. There are different display managers available you can choose among LightDM, SDDM, SLiM, GDM3, etc. GDM3 is a resource-intensive display manager while others require fewer resources.

Now choose a display manager and install it using one of the given commands-

To install GDM3 use –

sudo apt install gdm3

OR install LightDM using –

sudo apt install lightdm

OR you can install SLiM using –

sudo apt install slim

Choose a desktop environment (GUI) for your Ubuntu server

Next, run the tasksel utility and choose the desktop environment that you want to set up on your server.

In the tasksel interface, you can choose among one of the given.

ubuntu-desktop – This will install Ubuntu’s default GUI (GNOME desktop)

ubuntu-desktop-minimal – Use to install Ubuntu’s desktop minimally (GNOME desktop)

kubuntu-desktop – Use to setup Kubuntu’s official desktop environment (default KDE desktop)

lubuntu-desktop – This will setup Lubuntu’s default desktop ( LXQt desktop )

xubuntu-desktop – Use to setup Xubunt’s default desktop (Xfce)

ubuntu-budgie-desktop – Use to install Budgie desktop

ubuntustudio-desktop – Installs Ubuntu studio’s default desktop ( Xfce based desktop)

ubuntusudio-desktop-core– Installs Ubuntu studio’s default desktop minimally ( Xfce based desktop)

ubuntu-mate-desktop – Ubuntu mate’s default desktop (MATE desktop )

You can see more tasks by using the given command.

tasksel --list-tasks

How to install a desktop environment (GUI) on an Ubuntu server

After choosing a desktop environment, for example, Ubuntu’s GNOME desktop GUI, use the following command in your terminal to install it –

sudo tasksel install ubuntu-desktop

This will start the downloading and installation process.

OR first, run the tasksel utility by using –

sudo tasksel

In the tasksel interface choose a desktop to install on your server. You can select an option by using the Space key press Tab to select ok. Here I will install GNOME desktop which is ubuntu’s default desktop environment on your system.

Once it gets done reboot your system. You should see Ubuntu’s login Window.

If your system doesn’t get started in GUI mode make sure your system boot into the graphical target. To make your system boot into graphical target use the given command.

sudo systemctl set-default


Similarly, you can install any other desktop environment if you want. Now if you have a query then write us in the comments below.

1 thought on “How to install GUI on Ubuntu server ?”

  1. Did the installation on Ubuntu Server 22.04
    #sudo tasksel install gnome-desktop
    and rebooted. Now I have a blank black screen with a blinking cursor and can’t do any input.
    Any ideas?


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exit mobile version