How to set up XFCE desktop environment on Arch Linux
You have just installed Arch, started your new system, and have a black terminal screen. Unless you are familiar with Arch or want to find a way to set up a server, this can be a bit annoying. Don't worry, there is a way to fix this problem.
The default Arch settings do not come with a graphical desktop because Arch gives you the ability to choose. If you're new to this or looking for a suggestion, XFCE is a great place to start. XFCE is a Linux desktop that uses less resources while still providing a complete desktop experience. You do not have to spend much effort to set up and run XFCE on Arch.
Install the driver
Before doing anything, you will need to find the right driver for the graphics card. There are no exceptions, even if you use Intel integrated graphics. Arch does not include any graphics driver in the base installation.
Intel
sudo pacman -S xf86-video-intel mesa
AMD
sudo pacman -S xf86-video-amdgpu mesa
NVIDIA
sudo pacman -S nvidia nvidia-utils
Install Xorg
The next thing you need is an Xorg server. All graphics applications, including the desktop environment, are built on Xorg. The Xorg package for Arch is a meta package (large software package that includes everything you will need for Xorg). So, install this package and Arch will set it all up.
sudo pacman -S xorg
Pacman will show you a large list of packages before installing. Press Enter
to install it all unless you know specifically what you're looking for.
If you prefer a simpler installation, you can only select the Xorg server. Please note that you may lack dependencies later on, depending on what you want to set up.
sudo pacman -S xorg-server
Install XFCE
Just like with Xorg, the desktop environment on Arch has meta packages. Desktop environments can be very large and contain hundreds of such packages. XFCE is a smaller environment and doesn't require as many packages as GNOME or Plasma, but it will still take a few minutes to install.
You can only install the meta package XFCE, but the additional goodies package also contains a lot of useful desktop utilities, so you should install it.
sudo pacman -S xfce4 xfce4-goodies
Like with Xorg, Pacman will require which package group to install. Press Enter both times to install all. Be patient and let Arch set up everything.
Set up display manager
Right now, you can start your XFCE desktop from the command line, but the next time you start your computer, you'll be right back on that terminal screen. That's because you don't have a Display Manager. The display manager is responsible for the login screen that appears after starting the computer.
First, if you want to try XFCE, do this with the command:
startxfce4
Now, open a new terminal or continue working in the current terminal. This tutorial will use LightDM as the display manager. Most distributions pair it with XFCE because it is lightweight and not associated with any desktop environment. Install LightDM with the following command:
sudo pacman -S lightdm lightdm-gtk-greeter
The display manager is a service, so enable LightDM on startup.
sudo systemctl enable lightdm
When finished, you can restart your computer. You will see the first LightDM login window. Log in to the user account and you will come to the new XFCE desktop. Arch does not change your settings or configuration, so this setting will remain the same until you change something. Don't forget to check out some of the best XFCE themes you can install on your computer.
Hope you are succesful.
You should read it
- How to check the desktop environment you are using on Linux
- 5 reasons why Linux distros create their own desktop environment
- Learn about Linux MATE desktop environment
- 5 ways to make Linux desktops look great
- Turn Linux Xfce into retro Windows with Chicago95
- 6 best Linux desktop environments in 2022
- Should I install Arch Linux?
- How to change desktop theme on Linux Mint
May be interested
- These Linux distros are used in IoT deviceseven the simplest iot devices run software to stay active and most of these devices are running linux distro.
- How to enable Dynamic Transparency on Ubuntufortunately, gnome extension developers have taken action to bring dynamic transparency back. so, having dynamic transparency on ubuntu 19.04 is easy.
- How to fix the touchpad doesn't work in Linuxcommon problems related to wifi and battery management, but the touchpad is also a common mistake. unfortunately, these touchpad problems can be difficult to diagnose and fix.
- 8 best open source NAS operating systems for Linuxnas (network attached storage) helps troubleshoot data storage and concentration issues in one location. this is where people can access and share data 24/7 via the network.
- How to install Arduino IDE in Ubuntuall you need to do is buy an arduino, add some accessories, install the arduino ide and you're ready to start your new project!
- How to secure Linux Home Serverthere are many reasons to set up a home server. you can use it as a media server, file server or even a local backup server.