How to install (and uninstall) XFCE on Ubuntu

Are you wondering about trying the XFCE desktop on your Ubuntu PC? Here's a tutorial on how to install XFCE on Ubuntu. By doing this process, you still keep the GNOME DE. After following the tutorial, you should be able to get multiple options at the login screen to choose the desktop environment you want to load.

Xfce is an open-source and free desktop environment for Linux operating systems. Xfce is full of great features that make it easy to use. It consumes minimal memory and CPU, making it lightweight and fast compared to other Linux desktops, like GNOME and KDE.  An Xfce has two panels that hold the most used application launchers.

The two panels can be customized, modified with extra items as needed by the user, or completely be hidden if you want. Xfce’s default file manager is straightforward to use, simple, customizable, and easy to learn.

First Boot Desktop
Manjaro XFCE Edition (17.0.5) Desktop

If you are looking for a light-weight, stable, and highly customizable desktop, XFCE is the one for you. You can also look at our detailed desktop environment comparison guide on the ten reasons to use XFCE.

In this tutorial, we are going to walk you through the following points:

  • Installation of the Xfce desktop on an Ubuntu machine using two various methods so that you can choose the one you want
  • Uninstallation of Xfce desktop from Ubuntu.

However, before we can start, let’s make sure that you have an updated system using the following commands:

sudo apt update
sudo apt upgrade

Installing Xfce Desktop on Ubuntu

To easily install the Xfce on your Ubuntu machine, you can use one of the following methods:

  • Using Xfce package
  • Using Xubuntu package

Method 1: Install Xfce Desktop using Xfce Package

If you decided to use this method, then the Xfce desktop will be installed with few basic packages like the default file manager for the Xfce desktop and the Thunar file manager. Some applications will remain the same, such as the terminal – it will be the same as the GNOME default terminal.

Step 1. Install the Xfce package.

sudo apt install xfce4

Install the xfce4 Package
Install the xfce4 Package

Step 2. Configure the lightdm display manager. Just press the “Enter” button to choose the “gdm3” option.

Configure the lightdm
Configure the lightdm

Step 3. Now you need to logout to start using the Xfce desktop. Hence, from the desktop, press the drop-down arrow and choose the Power Off/Log out option.

Logout from the Current Session
Logout from the Current Session

Step 4. Next, choose the “Log Out” option.

Press the Logout Option
Press the Logout Option

Step 5. When the logout process finishes successfully, you can press the settings menu. Then select the Xfce session option to start the Xfce desktop.

Select the xfce Session
Select the Xfce Session

Step 6. Welcome to the Xfce desktop.

Welcome to xfce Desktop
Welcome to Xfce Desktop

Method 2: Install Xfce Desktop using Xubuntu Package

However, if you choose to install the Xubuntu package, you will get the Xfce desktop and many extra packages for a true Xfce desktop experience. For example, the terminal will be the default Xubuntu’s terminal, not the default GNOME terminal.

Step 1. Install the Xubuntu package using the following command.

sudo apt install xubuntu-desktop

Install the xubuntu-desktop
Install the Xubuntu-desktop

Step 2. Next, logout to start using the Xfce desktop.

Logout Screen
Logout Screen

Step 3. At the login screen, select the settings button and choose the “Xubuntu Session” option.

Select Xubuntu Session
Select Xubuntu Session

Step 4. Welcome to the Xfce desktop.

Welcome to xfce Desktop Using Xubuntu
Welcome to Xfce Desktop Using Xubuntu

Uninstalling the Xfce Desktop on Ubuntu

If you need to uninstall the Xfce desktop, you should first ensure that you have not deleted the default Ubuntu desktop. Let’s check how to uninstall the Xfce desktop correctly without causing major issues such as a blank screen and no login window!

Step 1. Ensure that you logout from the Xfce desktop. Then click the Linux username from the top right of the desktop and select the Log out option.

Logout from the xfce Desktop
Logout from the Xfce Desktop

Step 2. At the login screen, press the settings button, then select one of the Ubuntu main desktops.

Return Back to the Ubuntu Desktop
Return to the Ubuntu Desktop

Uninstall the Xfce Package

Step 1. Once you logged into the Ubuntu desktop, then open the terminal and use the following command to remove the installed Xfce package.

sudo apt-get purge xubuntu-icon-theme xfce4*

Uninstalling xfce Package
Uninstalling Xfce Package

Step 2. Now use the autoremove option.

sudo apt autoremove

Use the autoremove Option
Use the autoremove Option

Uninstall the Xubuntu Package

Step 1. In case you have installed the Xubuntu package, you can use the following command.

sudo apt-get purge xubuntu-desktop xubuntu-icon-theme xfce4*

Uninstalling the xubuntu desktop
Uninstalling the Xubuntu desktop

Step 2. Also, remove any other themes.

sudo apt-get purge plymouth-theme-xubuntu-logo plymouth-theme-xubuntu-text

Use the autoremove Option after uninstalling the xubuntu package
Use the autoremove Option after uninstalling the Xubuntu package

Step 3. Do not forget to use the autoremove option.

sudo apt autoremove

Use the autoremove Option after uninstalling the xubuntu package
Use the autoremove Option after uninstalling the Xubuntu package

Step 4. Finally, when you log out, you can check the main desktops. As you can see, there are no Xfce desktops installed.

The xfce and xubuntu Desktops are Removed Successfully
The Xfce and Xubuntu Desktops are Removed Successfully

Congratulations, you have just learned how to install and uninstall the Xfce desktop.

Hend Adel
Hi! I'm Hend Adel, a freelancer technical geek with successful experience in Database, Linux and many other IT fields. I help to build solutions to suit business needs and creating streamlined processes. I love Linux and I'm here to share my skills via FOSS Linux! Thanks for reading my article.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

22,976FansLike
407FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

MUST READ

Exploring the top 10 most acceptable Linux distributions for fellow gamers is our main goal in this article. These have been hand-picked because of the overall experience you will get when you are gaming with them. The progress on Linux gaming development has been impressive over time, and it is no longer a dream.
The fight for dominance in the Linux desktop environments has mostly been a tug of war between GNOME and KDE. It is difficult to portray a winner in this tug of war. The user community influence and its user preference determine which Linux desktop environment to choose as an adaptive platform. This presumed stalemate in the Linux desktop arena portrays KDE and GNOME as the main major players.