Yes, you can absolutely do this. Replacing Ubuntu’s default GNOME desktop with a lightweight alternative is a common way to speed up older hardware or free up resources for development work (like the HTML/PHP projects you build).
I recommend XFCE (used in Xubuntu) or LXQt (used in Lubuntu) as they are the most stable and lightweight options.
Step 1: Install the New Lightweight GUI
Before removing the old one, it is safer to install the new one first. This ensures you aren’t left without a desktop if something goes wrong.
Option A: XFCE (Balanced – Recommended)
Highly customizable and feels like a “traditional” desktop.
sudo apt update
sudo apt install xubuntu-desktop
Option B: LXQt (Ultra-Lightweight)
Best if you have very low RAM (less than 4GB).
sudo apt update
sudo apt install lubuntu-desktop
> Note: During installation, you might be asked to choose a “Display Manager” (the login screen). LightDM or SDDM are the lightweight choices; GDM3 is the heavy GNOME default.
>
Step 2: Test the New GUI
* Reboot your computer.
* At the login screen, click the cog icon or session menu (usually near the power icon or your username).
* Select Xubuntu Session or Lubuntu.
* Log in. If everything looks good and works, proceed to removal.
Step 3: Remove the Default GNOME GUI
To truly “replace” the default and free up disk space, you need to purge the GNOME packages.
sudo apt purge ubuntu-desktop gnome-shell gdm3
sudo apt autoremove
Wait! One Final Check:
Removing ubuntu-desktop sometimes removes things you might actually want to keep (like network management tools). After running the removal, ensure your internet still works. If it doesn’t, you can quickly fix it by running:
sudo apt install network-manager
Pro-Tip for Web Developers
Since you mentioned you create HTML and PHP pages, you might find that after moving to a lightweight GUI, your system has significantly more RAM available for running local servers (like Apache/Nginx) or heavy IDEs like VS Code.
Would you like me to help you set up a lightweight PHP development environment (LAMP/LEMP stack) on your new lean setup?
Discover more from NathanLegakis.com
Subscribe to get the latest posts sent to your email.
Leave a Reply