Differences Between Server and Desktop
Ubuntu offers two main editions: Server and Desktop. Although they share the same software repositories, they differ significantly in default configuration, kernel tuning, and pre-installed software.
Same Kernel, Differences in Default Components
A common misconception is that Server and Desktop use differently tuned kernels. In fact, on modern Ubuntu (including 26.04), both default to the same linux-generic kernel package, with identical kernel build options such as HZ and preemption mode.
# Check current kernel version (Server and Desktop are the same by default)
uname -r
# Check kernel configuration
cat /proc/versionThe real differences come from pre-installed components and the services running by default, not the kernel itself:
Server Characteristics
- No desktop environment is installed by default, no graphics stack runs, so resource usage is lower
- The services running by default target server scenarios (such as OpenSSH)
- Specialized kernels can be used on demand (such as
linux-lowlatencyorlinux-kvm)
# Install a lightweight kernel optimized for KVM virtual machines (optional)
sudo apt install linux-kvmDesktop Characteristics
- Pre-installs the GNOME desktop, user-space components for audio/Bluetooth/printing, and firmware
- Runs the graphical login and desktop session services by default
- Default configuration aimed at interactive use (such as swap and power management policies)
Because the kernel is the same, you can install desktop components on Server as needed, or disable the graphical session on Desktop. The two are essentially the same system with different combinations of default configuration.
Graphical Interface
This is the most obvious difference:
| Feature | Server | Desktop |
|---|---|---|
| Graphical interface | None (command line only) | GNOME desktop environment |
| Display server | None | Wayland / X11 |
| Login method | TTY / SSH | GDM graphical login |
# Install a minimal desktop environment on Server (if needed)
sudo apt install --no-install-recommends ubuntu-desktop-minimal
# Switch Desktop to command-line-only mode
sudo systemctl set-default multi-user.target
# Restore graphical mode
sudo systemctl set-default graphical.targetResource Usage Comparison
Resource Usage After Minimal Installation
| Metric | Server | Desktop |
|---|---|---|
| Disk usage | ~3-5 GB | ~10-15 GB |
| Memory usage (idle) | ~200-400 MB | ~1.2-2 GB |
| Running services | ~30-50 | ~100-150 |
| Default open ports | SSH (22) | Very few |
# Check memory usage
free -h
# Check disk usage
df -h /
# Count running services
systemctl list-units --type=service --state=running | wc -l
# Check listening ports
ss -tlnpPre-installed Software Differences
Server Default Installation
- OpenSSH Server
- cloud-init (cloud environment initialization)
- LVM tools
- Basic networking tools (netplan, networkd)
- Snap package manager
Desktop Default Installation
- Firefox browser
- LibreOffice office suite
- Thunderbird email client
- GNOME desktop and companion applications
- NetworkManager
- PulseAudio / PipeWire audio system
Network Management
The two editions use different network management tools:
# Server uses systemd-networkd + Netplan
cat /etc/netplan/50-cloud-init.yaml
# Example Netplan configuration (Server)
sudo tee /etc/netplan/01-server.yaml << 'EOF'
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: true
EOF
sudo netplan apply
# Desktop uses NetworkManager + Netplan
# Example Netplan configuration (Desktop)
sudo tee /etc/netplan/01-desktop.yaml << 'EOF'
network:
version: 2
renderer: NetworkManager
EOF
sudo netplan applyUse Cases
When to Choose Server
- Web servers, database servers, application servers
- Container hosts (Docker, Kubernetes)
- Virtualization platforms (KVM, LXD)
- Cloud instances and VPS
- File servers, DNS, DHCP, and other infrastructure services
- Any scenario requiring maximum performance and minimum resource overhead
When to Choose Desktop
- Daily office work and development workstations
- Multimedia production and editing
- Scenarios requiring a graphical management interface
- Education and training environments
- Personal computers and laptops
Switching Between Editions
Removing the Desktop Environment from Desktop
# Remove the desktop environment (keep the base system)
sudo apt remove --purge ubuntu-desktop ubuntu-desktop-minimal
sudo apt autoremove --purge
sudo systemctl set-default multi-user.target
sudo rebootInstalling a Desktop Environment on Server
# Install the full desktop
sudo apt install ubuntu-desktop
# Or install only the minimal desktop
sudo apt install ubuntu-desktop-minimal
# Set graphical boot
sudo systemctl set-default graphical.target
sudo rebootSummary
The core difference between Server and Desktop lies in default configuration and pre-installed software, not in underlying capabilities. Server aims for lean efficiency, while Desktop aims for an out-of-the-box desktop experience. Choose the right edition based on your actual use case, and switch between them flexibly when needed.