How to install desktop/GUI environment in Ubuntu Server
Here's how to set up the graphical user interface and install the desktop environment on Ubuntu Server.
Step 1: Update and upgrade the system
This is the basic step before making any changes or installing packages on Ubuntu Server. Update Ubuntu's software repositories and upgrade your system with the APT package manager.
sudo apt update && apt upgrade
Complete the updates and upgrades, then move on to the next step to install the GUI on Ubuntu Server.
Step 2: Install the desktop environment on Ubuntu Server
There are many desktop environments to choose from, but if your hardware can afford it, go ahead with the GNOME desktop environment, the default desktop for Ubuntu systems. You are always free to choose from other alternatives, but they run the risk of incompatibility with some software.
To install GNOME as a GUI on your Ubuntu Server, use the APT package manager to download and install the package:
sudo apt install ubuntu-desktop
To install KDE Plasma as a GUI, use the APT package manager to download and install the package:
sudo apt install kde-plasma-desktop
To install MATE on Ubuntu Server, issue the following command:
sudo apt install ubuntu-mate-core
To install the XFCE desktop, run:
sudo apt install xubuntu-core
Not sure which desktop environment to choose? Start with this list of the best Linux desktop environments.
Step 3: Install and setup display manager on Ubuntu Server
After installing the desktop environment, you need to install the display manager to manage the users and load the desktop environment sessions.
Since you are working with Ubuntu Server, it is best to choose lightweight solutions that are easy to use resources. In this case, consider installing and using LightDM, a fast and lightweight display manager.
Install LightDM on Ubuntu Server
To install LightDM on the server, use the APT package manager:
sudo apt install lightdm
During the installation process, you will be prompted to choose between GDM3 (GNOME's default display manager) and LightDM.
Select LightDM with the Spacebar and highlight it with the Tab key. Finalize your selection and set LightDM as the default display manager by pressing Enter.
Setting up LightDM on Ubuntu Server
Now that the installation is complete, you need to enable the LightDM service. You can use service command or systemctl command to do that.
Run this command to start the LightDM service with systemctl:
sudo systemctl start lightdm.service
Run this command to start the LightDM service using the service utility:
sudo service lightdm start
Restart the system with the reboot command. Next time the system boots, you will be greeted by LightDM greeting and GUI on Ubuntu Server session after successful login.
You should read it
- What is the difference between Ubuntu Desktop and Ubuntu Server?
- How to install FTP Server on Ubuntu
- How to Install Ubuntu Server
- Ubuntu Server Upgrade Steps
- Instructions for installing Ubuntu Web Server on remote host
- How to configure DNS Server on Ubuntu Server 11.04
- How to install and use Jitsi Meet on Ubuntu server
- How to Set Up an FTP Server on Ubuntu Linux
- How to install MySQL on Ubuntu 20.04
- How to install µTorrent (uTorrent) in Ubuntu 20.04
- What's New in Ubuntu 21.10?
- How to set DNS nameserver in Ubuntu Server 18.04
Maybe you are interested
How to Install Kali Linux NetHunter on Android
How to install fonts for Win 10, download full font set
How to install new version of DirectX on computer
How to install Windows 11 without USB on computer, Laptop
IObit Uninstaller - Software to uninstall applications on PC
How to reinstall audio driver on Windows 10, 11