Table of Contents
This practical guide explains how to install desktop/gui environment in ubuntu server with clear steps and useful context. It also covers common requirements, potential problems, and the details that can help you get better results.
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.
Conclusion
Understanding Ubuntu Server makes it easier to compare options, avoid common mistakes, and apply the information in this guide more effectively. Review the relevant requirements before making changes or choosing a solution.
FAQ
How do you install desktop/gui environment in ubuntu server?
Follow the steps in this guide in order, confirm the required settings or tools, and verify the result before making additional changes.
Is it safe to install desktop/gui environment in ubuntu server?
It is generally safe when you follow the recommended instructions, use trusted tools, and avoid changing settings you do not understand.
What should you do if the process does not work?
Recheck the requirements, restart the device or application when appropriate, and review each step for missed settings or compatibility issues.
Reader Comments 0
Sign in with email or Google to join the discussion.