How to Install XFCE Desktop on a Fresh Arch Linux System

In our previous tutorial, we demonstrated step-by-step instructions on how to install Arch Linux. Notably, the installation of Arch takes a complete hands-on approach during installation and you need to configure all components from the command-line from scratch. Indeed it’s a long and tedious procedure.

The base installation only provides a CLI (Command Line Interface) which is not the preferred option for beginners and users not adept at running commands on a terminal. The good news is that you can install a desktop environment to enhance user experience and make the most out of the system.

This guide will demonstrate how to install the XFCE GUI environment to provide a graphical platform for your Arch Linux installation.

Step 1: Upgrade Local Packages in Arch Linux

Get started by performing a full system upgrade using the following command.

$ sudo pacman -Syu
Arch Linux Upgrade
Arch Linux Upgrade

Let’s explore what the command does:

  • The -S option instructs pacman to synchronize the local database with the main one.
  • The -y option downloads a fresh copy of the package list from the Arch repositories.
  • The -u option upgrades all the packages to their latest versions.

Step 2: Install XFCE on Arch Linux

Once your system is up to date, install the XFCE lightweight desktop environment from the Arch repositories using the following command.

$ sudo pacman -S xfce4 xfce4-goodies

Just hit ENTER every time you are prompted to go with the default options which install all the required packages.

Install XFCE in Arch Linux
Install XFCE in Arch Linux

Step 3: Install Lightdm Display Manager on Arch Linux

Once the XFCE desktop environment is installed, you must install the lightdm display manager, which is an application that acts as a link between users and the display server. It takes care of session management and user authentication during login.

The lightdm display manager is an open-source, lightweight, and extensible display manager that runs on top of X servers and performs the following roles:

  • Provides a graphical login display for authentication.
  • Runs graphical session processes once authentication is complete.
  • Runs the X display server where needed.
  • Allows users to pick their preferred user account and graphical session during login.
  • Allows greeters to perform authentication using PAM. A greeter is simply a GUI that prompts for user credentials during login and allows the user to select a session.

To install the lightdm display manager alongside a greeter, run the command.

$ sudo pacman -S lightdm lightdm-gtk-greeter
Install Lightdm in Arch Linux
Install Lightdm in Arch Linux

Once the lightdm display manager is installed, enable the daemon to start on system startup as shown.

$ sudo systemctl enable lightdm

Now reboot the system to log in to your XFCE GUI.

Step 4: Login to Arch Linux (XFCE GUI)

Once the system has rebooted, the following display will be presented. Select your preferred user account, provide the password, and hit the ‘Log In‘ button.

Arch Linux User Login
Arch Linux User Login

A simple and elegant XFCE desktop environment comes into view. As you can see, it’s quite neat and user-friendly. The `Applications` tab at the top left corner allows you to access installed applications with ease.

At the bottom, you get a dock for quick navigation to your file manager, browser, and terminal.

XFCE Running on Arch Linux
XFCE Running on Arch Linux

There you have it! In this guide, we have demonstrated how to install the XFCE desktop environment, a lightweight GUI. It’s light on resources and, therefore, you are guaranteed a smooth desktop experience on your Arch Linux installation.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

Ravi Saive
I am an experienced GNU/Linux expert and a full-stack software developer with over a decade in the field of Linux and Open Source technologies

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.