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

23,241FansLike
399FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

MUST READ

“I am because you are,” is the themed meaning behind the famed Ubuntu operating system. Moreover, this mindful phrase is practical because it continues to lure more individuals into the Ubuntu universe. Because great power beckons great responsibility, Ubuntu is stepping up. It realizes that different users will want to use the Ubuntu operating system software differently.
The Ubuntu Cinnamon Remix brings together Linux Mint's Cinnamon desktop with the Ubuntu Core. While some users are welcoming the new flavor of Ubuntu with open arms, others are scratching their heads, wondering where it fits in.

The 10 Best Linux Performance Monitoring Tools

Do you want to monitor the performance of your Linux system? Are you looking for some powerful performance monitoring tools to help you out? If you agree, it's your day as we have put together a detailed list of the ten best Linux performance monitoring tools.

The 10 Best Linux Network Monitoring Tools

Having total control over your network is essential to prevent programs from overusing your network resources and slowing down the overall performance. This is why you should install a network monitoring tool on your system, giving you a visual overview of everything that's happening on your network. Networking Tools are like swiss-knife for the system administrators for troubleshooting system issues.

10 Reasons to use Cinnamon as your Desktop Environment

With the release of Gnome 3 in 2011, there was quite a mixed reaction from users and developers. Most of them preferred the original Gnome that got forked, and one of those forks was Cinnamon. Since the release of Cinnamon 2.0, Cinnamon has evolved to become a desktop environment by itself.

The 10 Best Linux Server Distros For Home And Businesses

By the year 2020, it is estimated that there are close to 600 Linux distributions in the market. It includes both servers and Desktop versions; therefore, if you are looking for lightweight Linux distribution for your old PC or a reliable desktop version for employees in your organization, you may be overwhelmed with the number of choices for finding one for your use.