Yes. Ubuntu Server ships headless, but it's the same base system as Ubuntu Desktop โ€” you just install a desktop environment plus a display manager and you're done. Two commands, one reboot, and you've got a graphical login.

Everything here works on Ubuntu Server 24.04 LTS and 22.04 LTS. Package names are identical across both; the only real difference is that 24.04 leans harder on Wayland by default, which matters later when we get to remote desktop.

Quick honest opinion before we start: most production servers should stay CLI-only. But if you're running a workstation-style VPS, testing GUI apps, or handing a box to someone who doesn't live in a terminal, a desktop makes sense.

Ubuntu Server, a version of the Ubuntu operating system, typically doesn't come with a graphical user interface (GUI) out of the box. Instead, it focuses on using a command-line terminal to efficiently manage server tasks. While this approach helps boost performance, there are times when using GUI-based tools can make managing the server easier and improve the user experience.

If you're looking to add a desktop environment to your Ubuntu Server, this guide is here to help. We'll walk you through how to install a desktop (GUI) on an Ubuntu server, step by step. By following these instructions, you'll be able to use GUI applications alongside the powerful features of Ubuntu Server, finding the right balance between functionality and resource usage.

Want to explore more about Ubuntu's features? Check out our comparison of Ubuntu vs Fedora to see how these two popular Linux distributions stack up against each other!

๐Ÿ“‹ Before You Start: Prerequisites

This part is boring and everyone skips it. Don't.

But before we get started, make sure you have the following requirements:

  • A server running Ubuntu Linux Server โ€” use our guide on how to check which Ubuntu version you're running to confirm 22.04 or 24.04.
  • A user account with sudo or root privileges โ€” verify with sudo -v. If it fails, stop here.
  • Access to the apt package manager, which is included by default with Ubuntu Server.
  • RAM and disk: free -h and df -h. A full GNOME install eats 3โ€“5 GB of disk and wants 2 GB+ RAM idle.
  • Keep SSH alive: a broken display manager can leave you staring at a black screen. SSH is your escape hatch.
  • Snapshot first: if you're on a Linux VPS, take a snapshot. Rolling back beats debugging a half-installed metapackage at 2am.

Let's get started on enhancing your Ubuntu Server with a graphical interface!

Before You Start: Prerequisites

๐Ÿ“– Ubuntu Server's Default Configuration

Before learning how to install a desktop (GUI) on an Ubuntu server, let's briefly talk about the Ubuntu Server itself. Ubuntu Server, developed by Canonical, is a specialized edition of the Ubuntu operating system tailored for server usage. If you're brand new to the platform, our guide on what Ubuntu is covers the history and philosophy behind the OS. Unlike its desktop counterpart, Ubuntu Server does not include a graphical user interface (GUI) by default. This minimalist approach prioritizes resource efficiency and streamlined performance for server-specific tasks.

While a Command-Line Interface (CLI) may suffice for experienced administrators and developers, Ubuntu Server acknowledges the diverse preferences of its users by offering the flexibility to install a GUI desktop of choice. This allows users to customize their server environment according to their specific needs and workflow preferences effectively.

๐ŸŽฏ When to Consider Installing Ubuntu Server GUI

We said we're going to teach you how to install a desktop (GUI) on an Ubuntu server, but when do you have to do it? When it comes to installing a desktop GUI on your Ubuntu Server, it brings several benefits, especially when you need things to be easy to use and manage:

1. Easier Server Management

Using a graphical interface makes it easier, especially for those moving from desktop Linux to Ubuntu Server. It helps users get used to the system quickly, making it faster to handle multiple tasks.

2. Simple Access to Applications

Many server management apps now have built-in support for graphical interfaces. This means you can navigate them more easily and interact with them intuitively. You don't have to rely solely on typing commands, as you can see and click options on the screen.

3. Convenient Remote Management

In today's connected world, managing servers remotely is vital. Installing a GUI allows you to use remote access tools like VNC and RDP more seamlessly. This makes it easier to handle server tasks from anywhere, boosting efficiency.

Additionally, if you're looking for a comprehensive management solution for your Ubuntu server, consider installing Webmin. It's an easy-to-use web-based interface that simplifies server administration tasks.

Pros and Cons of Installing a GUI

A desktop buys you visual file management, browser-based admin, and GUI-only tools. That's real value for some workflows.

The cost: several hundred extra packages, more RAM burned doing nothing, a wider attack surface, and longer update cycles. On a 1 GB VPS running a busy site, a GUI is a bad trade. On a 4 GB dev box, it's fine.

๐Ÿ“Š Best GUI Options for Ubuntu Server

Desktop Package Display Manager RAM (practical) Best for
GNOME ubuntu-desktop gdm3 2โ€“4 GB+ Full Ubuntu desktop feel
KDE Plasma kubuntu-desktop sddm 2 GB+ Customization, power users
XFCE xubuntu-desktop or xfce4 lightdm 1 GB+ Low-resource VPS, remote desktop
MATE ubuntu-mate-desktop lightdm 1โ€“2 GB+ Classic, simple layout

Best GUI Options for Ubuntu Server

๐Ÿ› ๏ธ How to Install a GUI on Ubuntu Server 24.04

This guide covers GNOME, KDE Plasma, XFCE, and MATE.

๐Ÿ”น Step 1: Update the System

Before installing any GUI, make sure your system is up to date:

sudo apt update && sudo apt upgrade -y
sudo reboot

Reboot only if a kernel update landed. Installing a desktop on top of a stale package index is how you end up with unmet dependencies.

Update the System

๐Ÿ”น Step 2: Install a Display Manager

The display manager is the login screen and session launcher. Pair it with your desktop: gdm3 for GNOME, sddm for KDE, lightdm for XFCE and MATE. Ignore older guides pushing SLiM โ€” it's unmaintained and I wouldn't put it on a 2025 system.

The Display Manager handles the login screen. You can install either SLiM, LightDM, or SDDM, depending on the desktop you choose.

Example (lightweight option):

sudo apt install slim

Install a Display Manager

๐Ÿ’ก KDE Plasma usually prefers sddm, and XFCE works well with lightdm.

If you install more than one desktop, Ubuntu prompts you to pick a default. Change it later with:

sudo dpkg-reconfigure gdm3
systemctl status display-manager

Substitute lightdm or sddm for whichever package you want to reconfigure.

๐Ÿ”น Step 3: Install a Desktop Environment

Choose one of the following based on your preference and system resources. Pick one โ€” running all four on the same box is a mess.

๐ŸŸฃ GNOME (Ubuntu Default)

Heaviest, ~3.5 GB download plus dependencies:

sudo apt install ubuntu-desktop gdm3 -y
sudo systemctl enable gdm3
sudo systemctl set-default graphical.target
sudo reboot

install ubuntu-desktop Gnome

 GNOME

install ubuntu-desktop

GNOME (Ubuntu Default)

systemctl start gdm

installing GNOME

๐ŸŸฃ GNOME Initial Setup Wizard

After installing GNOME and logging in for the first time, Ubuntu will launch the GNOME Initial Setup Wizard. This helps you configure some basic system preferences. Here's what to expect:

1. Welcome Screen

Description: A simple welcome message.

Action: Click Next to begin the setup.

2. Language Selection

Description: Choose the system language.

Action: Select your preferred language from the list, then click Next.

Language Selection

3. Keyboard Layout

Description: Choose your keyboard layout (e.g., English (US), Persian, etc.).

Action: Test your layout if needed, then click Next.

Keyboard Layout

4. User Account Setup

Description: Create your personal user account. If you need the command-line equivalent later, our guide on how to add users on Ubuntu covers the same ground with adduser and useradd.

Action:

Enter your Full Name

Choose a Username

Set and confirm a Password

Optionally enable automatic login

Click Next

User Account Setup

User Account Setup Password

5. Time Zone Selection

  • Description: Set your regional time zone.
  • Action: Choose your location on the map or search by city, then click Next.

Time Zone Selection

6. Finish Setup

  • Description: Confirmation screen that setup is complete.
  • Action: Click Start Using Ubuntu to enter the GNOME desktop environment.

Finish Setup

Finish Setup Gnome

๐Ÿ”ต KDE Plasma (Feature-rich, modern look)

sudo apt install kubuntu-desktop -y
sudo systemctl enable sddm

KDE Plasma

KDE install

install kubuntu-desktop

KDE Plasma (Feature-rich, modern look)

KDE Final

systemctl start sddm

KDE 5

๐ŸŸข XFCE (Lightweight and fast)

My pick for VPS work. Use xubuntu-desktop for the full flavor with apps, or just xfce4 plus lightdm for a lean core install that lands around 500 MB:

sudo apt install xfce4 lightdm -y
sudo systemctl enable lightdm

install xubuntu-desktop

xfc

systemctl start lightdm

๐ŸŸก MATE (Classic, lightweight)

sudo apt install ubuntu-mate-desktop -y
sudo systemctl enable lightdm

 MATE (Classic, lightweight)

install ubuntu-mate-desktop

mate final installing

systemctl start lightdm

start lightdm

On first graphical login GNOME runs its initial setup wizard โ€” language, keyboard, privacy toggles. The others drop you straight to a desktop.

Alternative: Install with Tasksel

sudo apt install tasksel -y
sudo tasksel

Arrow to "Ubuntu desktop," "Xubuntu desktop," or "Kubuntu desktop," hit space, then Tab to OK. Easier, but tasksel pulls the full flavor set including apps you may not want.

๐Ÿ”น Step 4: Reboot the System

Once the installation is done, reboot your machine:

sudo reboot

sudo reboot

After rebooting, you should be greeted with a graphical login screen. Log in and enjoy your new desktop environment.

๐Ÿš€ Boot to GUI or CLI

sudo systemctl set-default graphical.target   # GUI at every boot
sudo systemctl set-default multi-user.target  # CLI only at boot
sudo systemctl isolate graphical.target       # start GUI right now, no reboot

That last one is handy โ€” start the desktop on demand, leave the server booting to CLI the rest of the time. Best of both.

๐Ÿ”Œ Access Ubuntu Server GUI Remotely

Honestly, this is why most people install a desktop in the first place. The fastest path is to install xRDP on Ubuntu โ€” especially if your clients are on Windows.

sudo apt install xrdp -y
sudo systemctl enable --now xrdp
sudo ufw allow from YOUR.IP.ADDR.ESS to any port 3389 proto tcp

Then connect with Remote Desktop Connection on Windows, Microsoft Remote Desktop on macOS, or Remmina on Linux. If you prefer VNC over RDP, our guide on how to install a VNC server on Ubuntu walks through tigervnc-standalone-server and per-user session files โ€” better on flaky links, but more setup.

Access Ubuntu Server GUI Remotely

Wayland vs Xorg

GNOME on 24.04 defaults to Wayland, and XRDP does not get along with it. Symptom: you authenticate, then get a blank blue screen. Fix it by editing /etc/gdm3/custom.conf and uncommenting WaylandEnable=false, then sudo systemctl restart gdm3. Or pick "Ubuntu on Xorg" from the gear menu at the login screen. XFCE avoids the whole problem โ€” it's Xorg only.

๐Ÿงผ Optional: Remove a Desktop Environment

If you want to uninstall a desktop:

sudo apt remove ubuntu-desktop gdm3 -y
sudo apt autoremove --purge -y
sudo systemctl set-default multi-user.target
sudo reboot

Swap the package names to match what you installed (xubuntu-desktop lightdm, kubuntu-desktop sddm, and so on). After reboot you should land on a plain console prompt.

๐Ÿ” Security After Installing a GUI

You just added hundreds of packages to a machine that had none of them. Act accordingly.

  • Never expose port 3389 or 5900 to the open internet. Whitelist your IP with UFW, or tunnel over SSH/VPN.
  • Log in as a regular sudo user, never root.
  • Install fail2ban if remote desktop is reachable from outside your network.
  • Keep desktop packages patched โ€” unattended-upgrades handles most of it.
  • Disable services you don't use: systemctl list-unit-files --state=enabled.

๐ŸŽฏ Choosing the Right Desktop Environment

Ubuntu Server offers a variety of desktop environments, each catering to different preferences and system requirements. Now that you know how to install a desktop (GUI) on an Ubuntu server, let's explore the available options and discuss factors to consider when selecting the most suitable desktop environment for your Ubuntu Server. If you're weighing LTS versus interim releases before you start, our guide on the best Ubuntu versions breaks down the trade-offs.

Desktop Environment Resource Usage User Interface Style Suitable For
GNOME High Modern General Purpose
KDE Plasma Moderate Highly Customizable Power Users
XFCE Low Simple Low-resource Systems
MATE Moderate Traditional Users preferring GNOME 2 style

GNOME

  • GNOME is the default desktop environment for standard Ubuntu installations.
  • It features dynamic workspaces and a powerful activities overview, making it easy to navigate and manage tasks. You can check our article on How To Install Gnome GUI on CentOS 7, if you're interested.

KDE Plasma

  • KDE Plasma is another popular desktop environment known for its unique design and advanced customization options.
  • It offers numerous window effects and shortcuts, allowing users to tailor their desktop experience to their preferences.

MATE

  • MATE provides an intuitive and attractive desktop experience reminiscent of traditional operating systems like Microsoft Windows or Apple's macOS.
  • It is lightweight and suitable for machines with limited resources, making it ideal for older hardware.

Xfce

  • Xfce is a lightweight, stable, and configurable desktop environment, perfect for servers with modest resources.
  • It works efficiently on older hardware and is well-suited for everyday tasks, offering stability and ease of use.

Factors to consider when selecting the best GUI for Ubuntu Server

You read all about how to install a desktop GUI on an Ubuntu server Windows, but how can we choose the best GUI for Ubuntu server?

  1. Resource Efficiency: Evaluate the system requirements of each desktop environment and choose one that aligns with the resources available on your server.
  2. Ease of Use: Consider the user-friendliness and intuitiveness of the desktop environment, especially if you are new to server administration.
  3. Customization Options: Determine the level of customization you require and choose a desktop environment that offers the flexibility to tailor the interface to your preferences.
  4. Stability and Updates: Assess the stability and frequency of updates for each desktop environment to ensure a reliable and secure server environment.

If you're interested, you can check out list of 10 Best Desktop Environment for Linux.

๐Ÿ› ๏ธ Troubleshooting and Common Issues

You probably know how to install a desktop (GUI) on an Ubuntu server. But you should also know that installing a desktop environment on Ubuntu Server may encounter several challenges. Here, we address potential issues users may encounter during the installation process and provide solutions to common problems:

1. Dependency Errors

Problem: Dependency errors may occur when installing the desktop environment due to missing or incompatible packages.

Solution: Resolve dependency issues by updating the package index and ensuring all necessary dependencies are installed before proceeding with the desktop environment installation.

sudo apt --fix-broken install
sudo dpkg --configure -a

2. Installation Failures

Problem: Installation failures can occur if there are conflicts with existing packages or if the installation process is interrupted.

Solution: Ensure that the system is up to date and resolve any conflicts with existing packages before attempting to install the desktop environment again. If the installation fails, check the system logs for errors and troubleshoot accordingly.

3. Performance Degradation

Problem: When you install GUI on Ubuntu server, it may lead to performance degradation, especially on servers with limited resources.

Solution: Optimize system performance by using lightweight desktop environments or minimizing resource-intensive processes running in the background.

4. Network Configuration Issues

Problem: Network configuration issues may prevent remote access to the server or inhibit the download of necessary packages during installation.

Solution: Double-check network settings and ensure that the server has internet access. If remote access is required, configure the firewall to allow incoming connections.

5. Display Manager Configuration Problems

Problem: When you install a desktop on Ubuntu server, configuring the display manager incorrectly may result in login screen errors or failure to start the desktop environment.

Solution: Verify the display manager configuration settings and ensure that they match the requirements of the installed desktop environment. Refer to the desktop environment documentation for guidance on configuring the display manager correctly.

For further system management, you may also want to explore how to list users on your Ubuntu VPS. Check out our detailed guide on how to list users in Ubuntu Linux VPS for more insights.

6. Graphic Card Compatibility Issues

Problem: When you install a desktop environment on Ubuntu server, some desktop environments may not support certain graphics cards, leading to display errors or system instability.

Solution: Check the compatibility of your graphics card with the chosen desktop environment and install appropriate drivers if necessary. When you install a GUI on Ubuntu server, consider using a desktop environment known for better compatibility with a wider range of graphics hardware.

7. Black Screen After Login

Problem: Usually Wayland + XRDP, or a GPU driver issue.

Solution: Check journalctl -xe and systemctl status gdm3. Switch to Xorg first.

8. Display Manager Won't Start

Problem: Two managers fighting for control.

Solution: Run sudo dpkg-reconfigure lightdm and pick one.

9. GUI Missing After Reboot

Problem: The default target reverted.

Solution: Re-run sudo systemctl set-default graphical.target.

10. RAM Pinned at 90%

Problem: Desktop environment is too heavy for the server's resources.

Solution: Check with htop. If GNOME is the culprit, swap it for XFCE โ€” or move to a bigger dedicated server.

๐ŸŽฏ Conclusion

In this article, we've explored the process of installing a desktop environment on Ubuntu Server, offering a comprehensive guide on how to install a desktop (GUI) on an Ubuntu server. Whether you're setting up an Ubuntu VPS for remote management or simply prefer a graphical interface for your server tasks, this guide provides the essential steps to get you started.

By following the steps outlined in this guide and applying the troubleshooting tips provided, readers can successfully integrate a desktop environment into their Ubuntu Server setup, enhancing their server management experience. This is especially beneficial when accessing your server remotely through Ubuntu Server RDP (Remote Desktop Protocol), allowing for a more intuitive and visual approach to managing server operations.

We encourage readers who search for Ubuntu server with GUI Download to explore and experiment with different desktop environments to find the one that best suits their needs and preferences. This flexibility ensures that you can tailor your Ubuntu server environment to your specific use case, whether for development, administration, or other server-based tasks. Match the desktop to the hardware โ€” XFCE on a small VPS, GNOME when you've got 4 GB+ and want the full Ubuntu experience, KDE if you like tweaking, MATE if you want simple and familiar. Keep SSH available, lock down port 3389, and set your boot target deliberately.

People also read: