XFCE Arch Linux Setup: Step-by-Step Guide
In this article
Setting up XFCE on Arch Linux gives you a fast, lightweight desktop environment with a traditional layout. This guide covers installing XFCE from a minimal Arch base, enabling the display manager, and getting a working graphical session. You need an installed Arch Linux system with an internet connection and a user account with sudo privileges.
What You'll Need
- A working Arch Linux installation (text console login)
- Internet connection (wired or wireless)
- Root access or a sudo user
- Graphics drivers installed (if you have an NVIDIA or AMD GPU, install the appropriate driver before starting)
Step-by-Step
- Update the system
Log in as your normal user and run:sudo pacman -Syu. Reboot if the kernel was updated. - Install XFCE and its goodies
Run:sudo pacman -S xfce4 xfce4-goodies. This installs the core desktop, panel, file manager, and a set of useful plugins. - Install a display manager (recommended)
LightDM is a common choice. Run:sudo pacman -S lightdm lightdm-gtk-greeter. Enable it with:sudo systemctl enable lightdm. - Install a network manager (if not already present)
NetworkManager is the standard. Run:sudo pacman -S networkmanager, then enable it:sudo systemctl enable NetworkManager. - Enable the display manager and network at boot
If you haven't already, run:sudo systemctl enable lightdmandsudo systemctl enable NetworkManager. - Start the graphical session
Reboot withsudo reboot. You should see the LightDM greeter. Select “XFCE Session” and log in. - If you prefer no display manager
Skip step 3. Instead, after logging in at the text console, runstartxfce4. To make this automatic on login, addexec startxfce4to your~/.xinitrc(create the file if it doesn't exist).
After logging in, you'll have a working XFCE desktop. You can customize themes, panel layout, and keyboard shortcuts from Settings > Settings Manager.
Common Mistakes
- Forgetting to install a display manager – If you skip LightDM and don't set up
~/.xinitrc, you'll be stuck at the text console. - Not enabling services – Running
systemctl enableis essential; otherwise LightDM and NetworkManager won't start at boot. - Missing graphics drivers – Without proper GPU drivers, XFCE may run in fallback mode or fail to start. For NVIDIA, install
nvidia; for AMD,xf86-video-amdgpuis usually enough. - Using the wrong session – If you have multiple desktop environments, make sure you select “XFCE Session” at the greeter, not “Default” or another DE.
Tips
- Use the XFCE goodies package – It includes extra plugins like the whisker menu and clipboard manager that are not in the base install.
- Set your keyboard layout – Go to Settings > Keyboard > Layout and add your preferred layout (e.g., US or UK).
- Install a sound system – PipeWire is the modern choice:
sudo pacman -S pipewire pipewire-pulse. Then installpavucontrolfor volume control. - Enable the firewall – Install and enable
ufworfirewalldfor basic protection. - Create a snapshot before major changes – If you use Btrfs, take a snapshot with
snapperbefore installing new packages.
Troubleshooting
If the desktop doesn't start or you get a black screen, try these in order:
- Check the log – Look at
~/.xorg.logor/var/log/Xorg.0.logfor errors. Also checkjournalctl -bfor system messages. - Ensure your user has a home directory – If you created the user with
useradd -m, the home folder exists. Without it, XFCE may fail to write config files. - Test with a simple window manager – Install
openboxand runstartx /usr/bin/openbox-sessionto see if X itself works. If that works, the issue is with XFCE config. - Reset XFCE config – If XFCE starts but is broken, move
~/.config/xfce4to a backup:mv ~/.config/xfce4 ~/.config/xfce4.bakand log out/in. - Reinstall XFCE – As a last resort, run
sudo pacman -S xfce4again to ensure all packages are present.
Frequently Asked Questions
Do I need a display manager?
No. You can start XFCE manually with startxfce4 after logging in at the console. A display manager just gives you a graphical login screen and session selection.
Which display manager is best for XFCE?
LightDM with the GTK greeter is lightweight and works well. GDM and SDDM also work, but they pull in more dependencies.
Can I install XFCE on a minimal Arch install without a desktop environment?
Yes. The steps above assume you have a base Arch system with no DE. You only need the base packages and a network connection.
How do I change the default session in LightDM?
At the greeter, click the session menu (usually a gear icon) and select “XFCE Session”. To set it as default, edit /etc/lightdm/lightdm.conf and set user-session=xfce under the [Seat:*] section.
Why is my screen resolution wrong?
Install the correct graphics driver. For Intel, xf86-video-intel is optional (the modesetting driver is default). For NVIDIA, install nvidia and run nvidia-xconfig to generate an Xorg config. For AMD, xf86-video-amdgpu is usually sufficient.
Can I use XFCE with Wayland?
XFCE is primarily X11. Wayland support is experimental and not recommended for daily use. Stick with X11 for a stable experience.