Desktop Environments

Version: 22.03 LTS SP4

Xfce Installation

Xfce is a lightweight Linux desktop. In the current version, all components have been updated from GTK2 to GTK3 and from D-Dbus Glib to GDBus. Most components support GObject Introspection (GI), which is used to generate and parse the API meta information of the C program library, so that the dynamic language (or managed language) can be bound to the program library based on C + GObject. In the current version, user experience is optimized, new features are added, and a large number of bugs are fixed. Xfce occupies fewer memory and CPU resources than other UIs (GNOME and KDE), providing smoother and more efficient user experience.

Xfce supports the x86_64 and AArch64 architectures.

You are advised to create an administrator during the installation.

  1. Download the openEuler ISO image and install the OS. Run the following command to update the software source. You are advised to configure the Everything source and the EPOL source. This document describes how to install Xfce in the minimum installation scenario.

    shell
    sudo dnf update
  2. Install the font library.

    shell
    sudo dnf install dejavu-fonts liberation-fonts gnu-*-fonts google-*-fonts
  3. Install Xorg.

    shell
    sudo dnf install xorg-*
  4. Install Xfce and related components.

    shell
    sudo dnf install xfwm4 xfdesktop xfce4-* xfce4-*-plugin network-manager-applet *fonts
  5. Install the login manager.

    shell
    sudo dnf install lightdm lightdm-gtk
  6. Run the following command as the root user to set Xfce as the default desktop environment:

    shell
    echo 'user-session=xfce' >> /etc/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf
  7. Start Xfce using the login manager.

    shell
    sudo systemctl start lightdm

    After the login manager is started, choose Xfce Session in the upper right corner and enter the user name and password to log in.

  8. Set the GUI to start upon system boot.

    shell
    sudo systemctl enable lightdm
    sudo systemctl set-default graphical.target

    If GDM is installed by default, you are advised to disable GDM.

    shell
    systemctl disable gdm

    Restart the machine.

    shell
    sudo reboot

FAQs

Why Is the Background Color of the LightDM Login Page Black?

The login page is black because background is not set in the default configuration file /etc/lightdm/lightdm-gtk-greeter.conf of lightdm-gtk. Set background=/usr/share/backgrounds/xfce/xfce-blue.jpg in the greeter section at the end of the configuration file, and then run the systemctl restart lightdm command.