How to install a desktop (GUI) on an Ubuntu Server
Introduction
By default, Ubuntu Server does not include a Graphical User Interface (GUI). Customers are expected to use SSH client programs for accessing their systems. However, sometimes customers wish to install a desktop environment as the GUI for installing and configuring Oracle database management system, etc.
Prerequisites
- A VPS/Server running Ubuntu
- Full root access
In this article, we will guide you through all the steps for installing a Desktop Environment as the GUI on your Ubuntu VPS/Server.
1. Log on to your Ubuntu VPS/Server via ssh as root privileges.
If you are a user, then you can use this command to switch to root:
sudo-i
2. You will be asked for your password and after putting it in you’ll be logged in as the root user
3. Update repositories and system packages. Start by updating the repositories and package lists:
apt-get update apt-get upgrade
This ensures you have the latest packages installed in your system.
4. Install the tasksel manager utility:
apt install tasksel
5. Select a Display Manager
The Display Manager, also known as ‘Login Manager,’ is a utility responsible for launching the display server, loading the Desktop, and managing user authentication. Some display managers available for installation include SDDM, SLiM, and LightDM.
By default, only one display manager can manage a server. They can run simultaneously only if configured to manage different servers. This article assumes that you will be using a single default display manager.
To install a specific display manager, use the apt-get package manager:
- Install SLiM:
apt install slim
- Install LightDM:
apt install lightdm
6. Install a GUI for your Ubuntu VPS/Server
A Desktop Environment (DE) is a collection of software running on top of the Linux kernel which makes up the Graphical User Interface. The DE determines the look and feel of windows, app and folder icons, colors, and more.
Some popular Desktop Environments available include the GNOME, KDE, Mate Core Server Desktop, etc.
-
GNOME
GNOME is the default GUI for most Ubuntu installations and is (loosely) based on the Apple ecosystem.
Start by launching tasksel:
tasksel
A colorful interface with a list of various software will open. Use the arrow key to scroll down the list and find GNOME with other Ubuntu versions.
Use the Space key to select it, press Tab to select OK at the bottom, then press Enter.
The system will install the software
Once the GNOME Desktop Environment is installed, you can reboot your Ubuntu VPS/Server.
Then open VNC in the Client area or SolusVM VPS control panel. It will give you a graphical login interface generated by the installed Display Manager. Enter your login credentials.
It will show the GNOME UI environment.
-
KDE Plasma
To install KDE Plasma, use the following Linux command:
apt-get install kde-plasma-desktop
Selecting a default display manager
Launch KDE Plasma with the command:
service display_manager start
Replace ‘display_manager’ with your installed display manager, e.g., SLiM, LightDM, etc
Then open VNC in the Client area or SolusVM VPS control panel. It will give you a graphical login interface generated by the installed Display Manager. Enter your login credentials.