Linux allows users to switch entire desktop environments in case the default DE doesn’t suit you. This is true for any Linux distribution including Ubuntu. For a while, Ubuntu had Unity as the default desktop and now it has switched to GNOME. Neither of these is exactly very resource friendly and take up around 300MB or more of RAM. If you have an older PC or a PC with not so good hardware GNOME might not be the best performer. A lightweight alternative, the Xfce desktop environment can be really useful here.
Let’s be clear though, despite being known for their resource-heavy nature, Ubuntu with GNOME, Unity or even KDE is quite less demanding compared to other operating system platforms. Chances are if you’re coming from Windows or MacOS, installing Ubuntu will itself do wonders for your aging hardware. In case that the default Ubuntu with GNOME is still too much for your system, Xfce desktop environment is a great choice.
XFCE Desktop Environment
Xfce stands for XForms Common Environment. It is the default desktop environment for Xubuntu, an official lightweight Ubuntu flavor. Xubuntu is lighter than Ubuntu, despite installing Xfce and removing GNOME. It has less pre-installed apps and even lesser number of pre-installed packages.
Xfce is based on the GTK toolkit but it is not a GNOME fork. It uses the Xfwm window manager and its configuration is entirely mouse-driven, with the configuration files hidden from the casual user. By default, Xfce does not feature any desktop animations which is expected because Xfce is lightweight by choice. Animations are one of the biggest draws on system resources.
It does support compositing though so you can always install something like Compiz. Not only can you get animations but even the fanciest of animations that’ll attract anyone’s eyeballs.
When you install Xfce, you can still keep your default desktop so you’re not losing out on anything in case you don’t like Xfce. You can choose which desktop environment to log into during boot. Although, once you’ve used Xfce and decide that you like it, you’ll probably want to uninstall the older DE if your computer isn’t big on resources.
Don’t miss: How to Enable Flatpak Support in Ubuntu
The latest version of Xfce is Xfce4 and installing it requires downloading and installing several packages that it is dependent on and that it makes use of. All of this only amounts to about 112MB compared to more than 500MB of packages required for installing something like GNOME. Below is a full list of all the packages that will be downloaded and installed.
- desktop-base exo-utils
- liborbit-2-0 libthunarx-2-0
- orage pavucontrol
Must read: How to Create a Persistent Ubuntu USB
How to install Xfce desktop environment Ubuntu
Installing Xfce desktop on Ubuntu used to require installing the entire Xubuntu desktop packages which was pretty much like installing Xubuntu on top of Ubuntu. That’s not the case anymore and you can install the Xfce desktop simply with a simple command. Launch Terminal and enter the following command.
sudo apt install xfce4
You’ll be asked to enter your password and then you’ll need to press y on your keyboard to confirm the installation. Once installed, log out of your current desktop session and you’ll be able to select Xfce from the login screen. The selection menu can be located differently on different login managers such as gdm3 or sddm.
Since GNOME uses gdm3 and it is the default desktop environment on Ubuntu, we’ll assume you probably have the gdm3 login manager installed.
Click on the gear icon next to the Sign in button and select Xfce from the list. You can switch back to GNOME or any other desktop the same way. On your first login, you’ll be asked to choose a configuration. Click on Use default config.