Transforming Ubuntu Server into a Fully Functional Desktop Environment: Step-by-Step Practical Guide
Forget reinstalling everything—learn how to leverage your existing Ubuntu Server setup to build a desktop environment that’s tailored, lightweight, and powerful. This approach challenges the notion that server and desktop setups must be separate and showcases how to get the best of both worlds.
Why Turn Ubuntu Server into a Desktop?
Ubuntu Server is loved for its minimalism, speed, and control. IT pros and tech enthusiasts often kick-start projects on it due to its stability and low overhead. But there comes a time when you want a GUI (Graphical User Interface) — whether to run software that’s easier to use visually or simply to have an accessible desktop without spinning up a new machine or VM.
Instead of starting fresh with an Ubuntu Desktop installation, converting an existing Ubuntu Server can simplify workflows, save time, and optimize hardware usage. Plus, you get to customize the desktop environment exactly how you want it — no bloat.
What You’ll Learn in This Guide
- How to install a lightweight desktop environment on Ubuntu Server
- Setting up the display manager for easy GUI login
- Installing essential desktop applications
- Tips for keeping your system responsive and secure
Pre-Requisites
- A machine running Ubuntu Server (tested on 20.04 LTS and later)
- Basic comfort with terminal commands and sudo privileges
- Reliable internet connection
Step 1: Update Your Server First
Before adding components, refresh your package lists and upgrade:
sudo apt update && sudo apt upgrade -y
Keeping everything updated will minimize install errors.
Step 2: Choosing the Right Desktop Environment (DE)
Ubuntu Server ships minimal—so we pick only what we need.
Options:
- XFCE – Lightweight & fast. Good balance between look and performance.
- LXDE/LXQt – Ultra-lightweight, ideal for very resource-constrained systems.
- MATE – Familiar interface, moderate footprint.
- GNOME – Full-featured but heavier; might slow down servers.
For this guide, we'll proceed with XFCE for its excellent performance on servers.
Step 3: Install XFCE Desktop Environment
Run this command:
sudo apt install xfce4 xfce4-goodies -y
This installs core XFCE packages along with some handy utilities (the “goodies”).
Step 4: Install a Display Manager
The display manager handles the GUI login screen. Common choices include lightdm
, gdm3
, or sddm
.
We recommend lightdm
because it’s lightweight and plays well with XFCE.
sudo apt install lightdm -y
During installation, you might be prompted to select the default display manager. Choose lightdm
.
If not prompted or if you want to switch later:
sudo dpkg-reconfigure lightdm
Step 5: Enable Graphical Target (Optional)
Ensure your system boots into graphical mode instead of terminal-only (multi-user target):
sudo systemctl set-default graphical.target
To revert if needed:
sudo systemctl set-default multi-user.target
Step 6: Reboot & Log In to Your New Desktop!
Restart the machine:
sudo reboot
When it boots back up, you should see the lightdm login screen. Enter your user credentials, and voila—you have a beautiful desktop!
Step 7: Install Essential Applications
To be fully functional as a desktop machine, add tools like:
-
Web browser (Firefox is default in Ubuntu repos):
sudo apt install firefox -y
-
File manager (Thunar comes with XFCE but verify):
sudo apt install thunar -y
-
Text editor (mousepad or leafpad):
sudo apt install mousepad -y
-
Office suites, media players as needed:
For LibreOffice:
sudo apt install libreoffice -y
Feel free to customize further based on your needs.
Bonus Tips
Keep It Lightweight
Avoid installing full-blown desktop environments like GNOME on server hardware unless you have ample resources. The goal is functionality without sacrificing responsiveness.
Remote Access with GUI
If you'd like remote desktop access:
-
Install
xrdp
:sudo apt install xrdp -y
-
Enable service:
sudo systemctl enable xrdp sudo systemctl start xrdp
-
Connect via Windows Remote Desktop client or Remmina from Linux/Mac.
Security Considerations
Running a GUI can increase attack surface slightly. Keep your firewall enabled (ufw
), only open necessary ports (ssh
, RDP if used), and update regularly.
Summary
You don’t need to erase your carefully configured Ubuntu Server setup just to have a friendly GUI. By installing XFCE and LightDM atop your server base, you transform it into a capable desktop environment — perfect for daily tasks without heavy resource demands. This hybrid system maximizes utility while maintaining control and efficiency.
Try this approach out next time you want an accessible Ubuntu workspace without committing new resources or clean installs!
Feel free to drop questions or share your customizations below—let’s build better Linux setups together!