How to Install XFCE Desktop on Xubuntu
In this article
Installing the XFCE desktop on Xubuntu is straightforward because Xubuntu already ships with XFCE as its default desktop environment. If you want to add XFCE to a different Ubuntu flavor or reinstall it on Xubuntu, the process involves installing the xubuntu-desktop metapackage, which pulls in the full XFCE desktop along with Xubuntu's themes, panel layout, and default applications. This guide walks you through the steps to install or reinstall XFCE on Xubuntu, covering both minimal and full installations, and helps you avoid common pitfalls.
What You'll Need
- A working Xubuntu or Ubuntu system with administrative (sudo) privileges.
- An active internet connection to download packages.
- At least 2 GB of free disk space for a full desktop installation.
- Basic familiarity with the terminal (or a willingness to copy-paste commands).
Step-by-Step
- Open a terminal. You can use the keyboard shortcut
Ctrl+Alt+Tor find Terminal in the application menu. - Update your package list. Run
sudo apt updateto ensure you have the latest package information. This step is important to avoid installing outdated or missing packages. - Install the Xubuntu desktop metapackage. For a full XFCE experience with Xubuntu's customizations, run
sudo apt install xubuntu-desktop. This will install XFCE, the Xubuntu panel layout, themes, and default applications. If you prefer a minimal XFCE installation without Xubuntu extras, usesudo apt install xfce4instead. The full package is recommended if you want the complete Xubuntu look and feel. - Confirm the installation. When prompted, type
Yand press Enter to proceed. The download and installation may take several minutes depending on your connection speed. - Choose a display manager (if prompted). During installation, you might be asked to select a display manager (like LightDM or GDM). On Xubuntu, LightDM is the default and recommended choice. Use the arrow keys to select LightDM and press Enter.
- Reboot your system. After installation completes, run
sudo rebootto restart. This ensures the new desktop environment is loaded properly. - Select XFCE session at login. On the login screen, click your username, then look for a session selector (often a gear icon or a menu near the password field). Choose "Xubuntu Session" or "XFCE Session" to log into the XFCE desktop. If you don't see the option, the default session may already be XFCE.
- Verify the installation. Once logged in, you should see the XFCE panel, desktop, and menu. You can check the XFCE version by opening a terminal and running
xfce4-aboutor looking in the Settings Manager.
Common Mistakes
- Installing the wrong metapackage. Using
xfce4instead ofxubuntu-desktopgives you a bare XFCE without Xubuntu's themes and default apps. If you want the full Xubuntu experience, stick withxubuntu-desktop. - Skipping the update step. Not running
sudo apt updatefirst can lead to dependency errors or missing packages. - Ignoring the display manager prompt. Selecting a different display manager than the one already in use can cause login issues. On Xubuntu, LightDM is the safe choice.
- Not rebooting. Some changes only take effect after a restart, so don't skip the reboot.
- Forgetting to select the session at login. If you have multiple desktop environments installed, you must pick XFCE at the login screen; otherwise, you might log into GNOME or another environment.
Tips
- If you're on a slow connection, consider using
sudo apt install --no-install-recommends xubuntu-desktopto reduce download size, but you may miss some recommended packages. - You can install XFCE alongside other desktop environments (like GNOME or KDE) and switch between them at login. This is useful for testing.
- After installation, explore the XFCE Settings Manager to customize panels, themes, and keyboard shortcuts to your liking.
- Keep your system updated with
sudo apt update && sudo apt upgradeto receive security patches and improvements. - If you encounter a black screen after login, try switching to a different session or reinstalling the display manager.
Troubleshooting
If the installation fails or XFCE doesn't start correctly, try these steps:
- Check for errors during installation. Re-run
sudo apt install xubuntu-desktopand read the output carefully. Missing dependencies are usually listed; install them withsudo apt install -f. - Login loop or black screen. This often indicates a display manager or graphics driver issue. Try reinstalling LightDM:
sudo apt install --reinstall lightdm. If you have proprietary graphics drivers, ensure they are compatible with XFCE. - XFCE session not listed at login. Make sure the
xubuntu-desktoppackage is fully installed. You can also check if the session file exists in/usr/share/xsessions/. - Broken packages. Run
sudo apt --fix-broken installto repair any dependency issues. - Revert changes. If you want to remove XFCE, you can uninstall the metapackage with
sudo apt remove xubuntu-desktopand thensudo apt autoremove. Be careful: this may remove other packages you need, so review the list before confirming.
Frequently Asked Questions
Do I need to install XFCE if I already use Xubuntu?
No, Xubuntu comes with XFCE preinstalled. You only need to install it if you've removed it or are using a different Ubuntu flavor.
Can I install XFCE alongside GNOME or KDE?
Yes, you can install multiple desktop environments and choose which one to use at the login screen. Just be aware that this may increase disk usage and introduce some duplicated applications.
What is the difference between xfce4 and xubuntu-desktop?
xfce4 is the core XFCE desktop, while xubuntu-desktop includes XFCE plus Xubuntu's themes, panel configuration, and default applications for a complete experience.
Will installing XFCE remove my current desktop?
No, installing XFCE does not remove other desktop environments. You can switch between them at login.
How do I switch back to my original desktop after installing XFCE?
At the login screen, click the session selector and choose your original desktop environment (e.g., GNOME or KDE) before logging in.
Is it safe to remove xubuntu-desktop later?
Yes, but use caution: removing the metapackage may also remove packages that other desktop environments depend on. Review the list of packages to be removed before confirming.