In this tutorial we are going to learn how to install Install Xfce Desktop Environment on CentOS 7. We will also install and configure its prerequisites. Xfce is a totally free and open-source desktop environment for Unix and Unix-like platforms which plans to be fast, instinctive, user-friendly and lightweight, while still being attractive for user.
I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.
Install Xfce Desktop Environment on CentOS 7
Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:
yum -y install epel-release yum -y update
Step 2. Installing X Window System packages.
Install X Window System support packages, which provide basic low level functionality for graphical environment:
yum groupinstall "X Window system"
Step 3. Installing Xfce Desktop Environment on CentOS 7.
Install Xfce Desktop using following command:
yum groupinstall -y "Xfce"
Next, switch to graphical target in systemd:
systemctl isolate graphical.target
Then, enable graphical target (X Window System) on boot:
systemctl set-default graphical.target reboot
After reboot your computer should enter run-level 5 and you should see GDM Splash Screen (GDM was installed along with Xfce packages)
Congratulation’s! You have successfully install Xfce on your CentOS 7 server. Thanks for using this tutorial for installing Xfce Desktop Environment on CentOS 7 system.