How to Install a Desktop (GUI) on an Ubuntu Server

Introduction

Installing a Desktop (GUI) on an Ubuntu Server is a great way to get the most out of your server. It allows you to access the server remotely, manage files, and run applications. This guide will walk you through the steps of installing a Desktop (GUI) on an Ubuntu Server. We will cover the installation of the X Window System, the installation of a Desktop Environment, and the configuration of the Desktop Environment. By the end of this guide, you will have a fully functional Desktop (GUI) on your Ubuntu Server.

How to Install a Desktop (GUI) on an Ubuntu Server

Installing a desktop environment on an Ubuntu server is a relatively straightforward process. The following steps will guide you through the process:

1. Update your system: Before you begin, make sure your system is up to date by running the following command:

sudo apt-get update

2. Install the desktop environment: To install a desktop environment, you will need to install the appropriate packages. For example, to install the GNOME desktop environment, you would run the following command:

sudo apt-get install ubuntu-desktop

3. Configure the display manager: Once the desktop environment is installed, you will need to configure the display manager. This is the program that will manage the graphical login screen. To do this, you will need to edit the /etc/X11/default-display-manager file and set it to the appropriate display manager. For example, if you are using the GNOME desktop environment, you would set it to “/usr/sbin/gdm3”.

4. Reboot your system: Once the display manager is configured, you will need to reboot your system for the changes to take effect.

5. Log in: After the system has rebooted, you should be able to log in to the graphical desktop environment.

That’s it! You should now have a working graphical desktop environment on your Ubuntu server.

Introduction

Ubuntu Server is a variant of the Ubuntu OS that does not include a graphical user interface (GUI) by default. GUI applications consume system resources needed for server-oriented tasks, so Linux server distributions usually avoid a GUI in favor of the command-line terminal.

Some tools, however, perform better and are easier to manage with a GUI. If you use a tool with a GUI, installing a desktop environment may improve the experience of working with the server.

This guide will show you how to install a desktop (GUI) graphical interface on your Ubuntu server.

How to install GUI on Ubuntu Server.

Prerequisites

  • A server running Ubuntu Linux Server
  • A user account with sudo or root privileges
  • The apt package manager, included by default

Update Repositories and Packages

Start by ensuring the software on the server is up to date.

1. Refresh the repository and package lists, and perform the necessary upgrades with the following command:

sudo apt update && sudo apt upgrade
Updating and upgrading packages in Ubuntu Server before installing GUI on Ubuntu.

2. When prompted, hit Y and press Enter to start the upgrade.

Install and set up Display Manager

A display manager is an application that starts the display server, launches the desktop, and manages user authentication. The default GDM3 is a resource-intensive display manager. To conserve system resources, consider a lighter tool, such as SLiM or LightDM.

This guide uses SLiM to illustrate the rest of the GUI installation process.

1. To install SLiM, type:

sudo apt install slim
Installing SLiM display manager on Ubuntu Server.

2. Press Y and then hit Enter to start the installation procedure.

Note: If you prefer to install the LightDM display manager instead, type:

sudo apt install lightdm

Install GUI on Ubuntu Server

With a display manager installed, proceed to install a GUI. The sections below contain instructions for the most common Linux desktop environments.

Ubuntu Desktop

The default Ubuntu Desktop is a modified version of the GNOME desktop environment.

1. Install Ubuntu Desktop by running the following command:

sudo apt install ubuntu-desktop

Note: if asked, confirm slim as the default desktop manager.

2. Reboot the system when the installation finishes by typing:

sudo reboot

Note: If you do not wish to reboot immediately, type the following command to start SLiM:

sudo service slim start

After the system reboots, a graphical login screen appears. The default display manager generates this screen.

Slim display manager login screen.

3. Type your username in the field and press Enter to reveal the password field. Enter your password to access the desktop environment.

Default Ubuntu desktop environment.

Note: For the vanilla GNOME experience, install the following packages:

sudo apt install vanilla-gnome-desktop vanilla-gnome-default-settings

KDE Plasma

KDE Plasma is a flexible and customizable desktop environment that provides visual consistency and style while remaining fast and responsive. To install KDE Plasma, use the following command:

sudo apt install kde-plasma-desktop

Reboot the system and log in to access the KDE environment.

KDE Plasma desktop environment.

XFCE

The XFCE desktop environment is designed to be lightweight and user-friendly. The main package, xfce4-session, provides a bare-bone environment. If you want the full experience,  install the xfce4-goodies package as well.

Install the packages with the following command:

sudo apt-get install xfce4-session xfce4-goodies

After you reboot the system and log in, the XFCE desktop appears.

XFCE desktop environment.

MATE

MATE is a fork of GNOME 2 and a popular graphical interface designed to be light on resource consumption. Install it by executing the following command:

sudo apt install ubuntu-mate-desktop
MATE desktop environment.

LXDE

LXDE is a desktop environment with a very lightweight GUI. Use LXDE if you need a graphical interface but want to minimize the impact on system memory and CPU.

To install LXDE on Ubuntu, use the following command:

sudo apt install lxde
LXDE desktop environment.

Switching between GUI

If you install more than one desktop environment, you can switch between different GUIs from your display manager screen. SLiM, for example, lets you cycle through the installed environments by pressing F1 repeatedly. The name of the currently toggled environment is visible at the bottom of the screen.

Switching between GUI after installing it on Ubuntu

Log in once you toggle the GUI you want to use.

Removing the GUI and Display Manager

To revert to the command line interface and remove the packages related to the display manager and the desktop environments:

1. Open the terminal, and enter:

sudo apt remove [display-manager] [desktop-environment]

For example, to remove SLiM and LXDE, type:

sudo apt remove slim lxde

2. Reboot the system and log back in.

3. Finish by removing orphaned or unnecessary dependencies with autoremove:

sudo apt autoremove

Note: Deploy and manage physical servers in a cloud-like environment with Bare Metal Cloud. To find out more, read about phoenixNAP’s cloud-native dedicated servers.

Conclusion

If you’ve worked extensively with conventional operating systems, it can be challenging to have to work in a command-line interface. Fortunately, Ubuntu – like many Linux systems – is open-source, so there are many available GUIs to install.

After completing this tutorial, you should know how to install a display manager and a desktop environment on your Ubuntu Server.  

How to Install a Desktop (GUI) on an Ubuntu Server

Ubuntu Server is a popular Linux distribution that is used for web hosting and other server-related tasks. While it is a powerful and reliable operating system, it does not come with a graphical user interface (GUI) by default. If you need a GUI for your server, you can install one with a few simple steps.

Step 1: Update Your System

Before you begin, it is important to make sure that your system is up to date. To do this, open a terminal window and run the following command:

sudo apt-get update && sudo apt-get upgrade

This will update your system with the latest packages and security patches.

Step 2: Install the Desktop Environment

Once your system is up to date, you can install the desktop environment of your choice. Ubuntu supports several popular desktop environments, including GNOME, KDE, Xfce, and LXDE. To install one of these, use the following command:

sudo apt-get install [desktop environment]

Replace [desktop environment] with the name of the desktop environment you want to install. For example, to install GNOME, you would use the following command:

sudo apt-get install gnome

Step 3: Install the Display Manager

Once the desktop environment is installed, you will need to install a display manager. A display manager is a program that allows you to log in to your system and manage your user accounts. Ubuntu supports several popular display managers, including GDM, KDM, and LightDM. To install one of these, use the following command:

sudo apt-get install [display manager]

Replace [display manager] with the name of the display manager you want to install. For example, to install GDM, you would use the following command:

sudo apt-get install gdm

Step 4: Enable the Display Manager

Once the display manager is installed, you will need to enable it. To do this, use the following command:

sudo systemctl enable [display manager]

Replace [display manager] with the name of the display manager you installed. For example, to enable GDM, you would use the following command:

sudo systemctl enable gdm

Step 5: Reboot Your System

Once the display manager is enabled, you will need to reboot your system for the changes to take effect. To do this, use the following command:

sudo reboot

Once your system has rebooted, you should be able to log in to your system with a graphical user interface.

Conclusion

Installing a desktop environment on an Ubuntu Server is a simple process that can be completed in a few steps. With a few commands, you can have a fully functional graphical user interface on your server.

Jaspreet Singh Ghuman

Jaspreet Singh Ghuman

Jassweb.com/

Passionate Professional Blogger, Freelancer, WordPress Enthusiast, Digital Marketer, Web Developer, Server Operator, Networking Expert. Empowering online presence with diverse skills.

jassweb logo

Jassweb always keeps its services up-to-date with the latest trends in the market, providing its customers all over the world with high-end and easily extensible internet, intranet, and extranet products.

Contact
San Vito Al Tagliamento 33078
Pordenone Italy
Item added to cart.
0 items - 0.00
Open chat
Scan the code
Hello 👋
Can we help you?