Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Speed Up Ubuntu: 12 Fixes That Actually Work

· 5 min read · Home Tech

In this article
  1. Why Ubuntu Feels Slow
  2. Quick Wins: Change Settings First
  3. Use a Lighter Desktop Environment
  4. Upgrade to an SSD (or Optimize Your HDD)
  5. Manage Startup Services with systemd
  6. Reduce Snap and Flatpak Overhead
  7. Add More RAM or Use zram
  8. Common Mistakes That Slow Ubuntu Down
  9. Frequently Asked Questions

To speed up Ubuntu, focus on reducing startup services, switching to a lighter desktop environment, and using a faster storage drive—these three changes deliver the most noticeable improvement. Below is a practical guide covering the most effective tweaks, from simple settings adjustments to more advanced system optimizations.

Why Ubuntu Feels Slow

Ubuntu's default GNOME desktop is visually rich but resource-hungry, especially on older hardware. Background services (Snap updates, indexing, and telemetry), a traditional hard drive, and limited RAM are the usual culprits. The good news is that most slowdowns are fixable without reinstalling the OS.

Quick Wins: Change Settings First

Before installing anything, try these built-in adjustments—they take less than five minutes and require no terminal commands:

  • Disable unnecessary startup applications: Open "Startup Applications" from the app menu and uncheck items like Bluetooth, Print Queue, or any third-party apps you don't need at boot.
  • Reduce visual effects: Go to Settings → Accessibility → Seeing, and enable "Reduce animation" or "Reduce transparency" if available. This lightens the compositor's load.
  • Switch to a lighter theme: Dark themes and heavy wallpapers use more GPU memory. A plain light theme with a static background is lighter.
  • Turn off search indexing: In Files (Nautilus), go to Preferences → Search & Preview, and disable "Index search history" and "Search for files in the trash." This stops constant background indexing.

Use a Lighter Desktop Environment

If the above isn't enough, the single biggest performance gain comes from replacing GNOME with a lighter desktop environment. Xfce, LXQt, or MATE use a fraction of the RAM and CPU. You can install Xfce alongside GNOME and choose it at the login screen:

  1. Open a terminal and run: sudo apt install xubuntu-desktop (for Xfce) or sudo apt install lubuntu-desktop (for LXQt).
  2. Log out. At the login screen, click the gear icon and select "Xfce Session" or "LXQt Session."
  3. Log back in. Your files and apps remain intact; only the interface changes.

This is reversible—just select "Ubuntu" (GNOME) at login to switch back. Expect a 20–40% reduction in RAM usage and noticeably faster app launching on older systems.

Upgrade to an SSD (or Optimize Your HDD)

If your Ubuntu is installed on a traditional spinning hard drive (HDD), moving to a solid-state drive (SSD) is the most effective hardware upgrade. An SSD can cut boot time from 60 seconds to under 15 seconds and make applications open almost instantly. If you can't afford an SSD, at least enable the discard mount option for your HDD's ext4 partition to allow TRIM-like garbage collection, though this has limited benefit on HDDs. For SSDs, ensure the noatime mount option is set to reduce write operations:

  • Edit /etc/fstab with sudo nano /etc/fstab.
  • Find your root partition's line (usually starts with UUID=...). Add ,noatime to the options column (between errors=remount-ro and 0).
  • Save and reboot. This prevents the system from updating file access times on every read, reducing disk I/O.

Manage Startup Services with systemd

Ubuntu uses systemd to manage services. Many run in the background even when unused. To see what's running and how long each takes at boot:

  1. Run systemd-analyze blame to list services by startup time.
  2. Identify services you don't need—for example, cups.service (print spooler) if you have no printer, or ModemManager.service if you don't use mobile broadband.
  3. Disable a service with sudo systemctl disable cups.service. To temporarily stop it, use sudo systemctl stop cups.service.

Be cautious: disabling essential services like NetworkManager or accounts-daemon can break networking or login. Only disable services you recognize and don't use.

Reduce Snap and Flatpak Overhead

Ubuntu ships many apps as Snap packages, which are sandboxed and slower to start than traditional .deb packages. Firefox, for example, is a Snap by default. To speed up Snap apps:

  • Run sudo snap refresh --hold to pause automatic background updates.
  • Clear old Snap revisions with sudo snap set system refresh.retain=2 and then sudo snap remove --revision for old versions (check with snap list --all).
  • For critical apps like Firefox, consider installing the Mozilla Team's official .deb package instead of the Snap version. This requires adding their repository—instructions are on the Mozilla site.

Add More RAM or Use zram

If your system has 4GB or less RAM, adding more is the best hardware upgrade after an SSD. If you can't add RAM, enable zram—a compressed swap in RAM that uses less space and is faster than disk swap. Ubuntu 22.04 and later have zram enabled by default. To check, run swapon --show; if you see /dev/zram0, it's active. If not, install zram-tools and configure it in /etc/default/zramswap.

Common Mistakes That Slow Ubuntu Down

  • Installing too many browser extensions: Each extension consumes memory. Keep only essential ones.
  • Using proprietary graphics drivers incorrectly: On NVIDIA GPUs, the open-source Nouveau driver is slower. Install the proprietary driver via "Additional Drivers" in Software & Updates.
  • Leaving old kernels installed: Each kernel consumes disk space and adds boot entries. Use sudo apt autoremove to remove old kernels automatically.
  • Running a heavy antivirus: Ubuntu is generally safe, and real-time scanning slows the system. Use on-demand scans instead.

Frequently Asked Questions

Is Ubuntu 22.04 LTS faster than 24.04 LTS?

Generally, 22.04 LTS is lighter because it uses an older GNOME version with fewer background services. However, 24.04 includes performance improvements for newer hardware. On older machines, 22.04 with Xfce will outperform 24.04 with GNOME.

Does disabling animations really help?

Yes, especially on systems with weak integrated graphics. Animations require the GPU to render frames continuously; disabling them frees up CPU and GPU cycles for actual work. The effect is small on modern hardware but noticeable on 10-year-old laptops.

Will installing a lighter desktop break my existing setup?

No. Installing Xfce or LXQt alongside GNOME doesn't remove anything. You can switch between them at login. Some settings (like wallpaper) are shared, but apps and files remain unaffected.

How do I know which startup service to disable?

Use systemd-analyze blame and then research any service you don't recognize. Safe candidates for disabling include cups (no printer), bluetooth (no Bluetooth devices), and avahi-daemon (no network printers or mDNS). Never disable systemd-journald or dbus.

Is it better to use a lightweight distro like Xubuntu instead of tweaking Ubuntu?

If you want a stable, pre-configured light system, Xubuntu (Xfce) or Lubuntu (LXQt) are excellent. They are official Ubuntu flavors with the same repositories. Tweaking Ubuntu gives you the same result but requires more effort. For a quick fix, installing Xubuntu desktop is easier.

Does using a swap file help speed?

Swap files are slower than RAM but faster than a swap partition on the same disk. If you have an SSD, a swap file is fine. On an HDD, adding more RAM is better than relying on swap. You can adjust swappiness (sudo sysctl vm.swappiness=10) to make the system prefer RAM, but this can cause out-of-memory errors if RAM is low.