How to Install Gnome on Ubuntu server

Learn how to install GNOME on Ubuntu Server 22.04 and 24.04 LTS and access it remotely using XRDP. Step-by-step guide for sysadmins — from installation to remote desktop connection.
4 min read
Beginner
Install Gnome on Ubuntu server

Ubuntu Server is intentionally shipped without a graphical desktop environment to keep the system lean, fast, and resource-efficient. However, there are valid situations where adding a GUI is necessary, and GNOME is the most robust and well-supported desktop environment available for Ubuntu.

Because Ubuntu Server is typically run in a headless environment – meaning no physical monitor is attached – installing GNOME alone is not sufficient. To access the desktop, you also need a remote desktop solution. This guide uses [XRDP](How To Install XRDP on Ubuntu 22.04?), which integrates seamlessly with Windows Remote Desktop Connection (mstsc) and requires no additional client software.

This guide covers the entire process for both Ubuntu 22.04 LTS (Jammy Jellyfish) and Ubuntu 24.04 LTS (Noble Numbat): installing GNOME, configuring XRDP, setting up the display manager, and addressing performance considerations, troubleshooting, and clean removal.

Before you begin, ensure your system meets the following prerequisites:

  • A running Linux VPS or Ubuntu Server instance (22.04 or 24.04 LTS)
  • At least 2GB of RAM (4GB recommended)
  • Minimum 10GB of free disk space
  • A user account with sudo access
  • An active internet connection
  • SSH access to the server (e.g. via PuTTY)

Installing GNOME on Ubuntu Server

Before installing any packages, make sure your system is fully up to date to avoid dependency conflicts.

BASH
sudo apt update

&&

BASH
sudo apt upgrade -y

Choose Your Installation Method

Ubuntu provides two options for installing GNOME. Choose based on your needs:

Option 1 — Minimal GNOME (Recommended for servers)

Installs only the core GNOME shell without unnecessary applications, keeping the system footprint small.

BASH
sudo apt install gnome-session gdm3 -y

Option 2 — Full GNOME Desktop

Installs the complete GNOME environment including all default applications. Expect higher disk and RAM usage.

BASH
sudo apt install ubuntu-desktop -y

Install XRDP for Remote Access

Since Ubuntu Server runs headless, you need XRDP to access the GNOME desktop remotely. Without this step, the installation is incomplete.

BASH
sudo apt install xrdp -y

sudo adduser xrdp ssl-cert

sudo systemctl enable xrdp

sudo systemctl restart xrdp

Open the Firewall Port

BASH
sudo ufw allow 3389/tcp

sudo ufw reload

Reboot the Server

BASH
sudo reboot

Configuring XRDP for GNOME on Ubuntu Server

After installation, XRDP by default may launch a blank or basic desktop session instead of GNOME. To make sure XRDP always loads the GNOME session correctly, one extra configuration step is needed.

Force XRDP to Use GNOME Session

Run the following command for your user:

BASH
echo "export XDG_SESSION_TYPE=x11" >> ~/.profile

echo "gnome-session" >> ~/.xsession

Then make the file executable:

BASH
chmod +x ~/.xsession

Restart XRDP to apply the changes:

BASH
sudo systemctl restart xrdp

Verify XRDP is Running Correctly

BASH
sudo systemctl status xrdp --no-pager

You should see active (running). If not, check the logs:

BASH
sudo journalctl -u xrdp -n 50 --no-pager

Fix Black Screen After Login (Common Issue)
If you connect via Remote Desktop and see a black screen, run:

BASH
sudo sed -i 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config

sudo systemctl restart xrdp

Connect from Windows

Once the server is back online, open Remote Desktop Connection on your Windows machine:

Step 1: Press Win + R, type mstsc, and hit Enter

Win + R, type mstsc


Step 2: Enter your server’s IP address

Remote Desktop Connection


Step 3: Log in with your Ubuntu username and password

XRDP


You should now be inside the GNOME Desktop environment

Remote Desktop Connection(Gnom)

Conclusion

Installing GNOME on Ubuntu Server is straightforward, but accessing it requires one extra step that most guides overlook — XRDP. Without it, you have a running desktop environment with no way to reach it remotely.
To recap what we covered:

Updated the system and installed GNOME (minimal or full)
Installed and configured XRDP for remote desktop access
Configured XRDP to launch GNOME session correctly via x11
Connected to the desktop from Windows using Remote Desktop Connection

At this point your Ubuntu Server has a fully functional GNOME desktop environment accessible from any Windows machine on the network. If you run into a black screen after login or session issues, revisit the XRDP configuration section and make sure XDG_SESSION_TYPE=x11 is set correctly in your ~/.profile.

Share:

Was this article helpful?

Your feedback helps us improve our technical guides.

Related Posts

You May Also Like

Explore more tutorials, guides, or documentations, from VPSMakers.

Dropbox can be installed and uninstalled on Ubuntu using two methods: the Terminal and (GUI). In this guide, you'll learn both methods.
Robert Smith
October 31, 2026
Follow this guide to set up an FTP server using FileZilla Server on Windows. Learn how to install it and configure the essential settings.
Jacob Rafet
October 27, 2026
Chrome RDP provides you a simple remote desktop envionrmnet through browser, in this guide you learn to install and use it on Windows VPS.
Robert Smith
October 13, 2026
Learn how to check open ports in Linux using netstat, ss, lsof, Nmap, and Netcat with practical commands and examples.
Richard Mourar
October 12, 2026