We need to install the following packages (I assume you are logged in as normal user)
sudo pacman -S xorg-server xorg-apps xorg-xinit xterm
When we type startx in the terminal we can check if everything has been installed successfully. Type exit to get out of the session.
xterm is a fallback terminal if things go bad.
The linux kernel can handle many
So try first without
any extra installation
Start on the xorg wiki page find out what driver you need for your hardware.
Most common hardware vendors are:
With lspci you can find out what hardware you have in your computer. Then you need to investigate further to find out what driver you want to install.
lspci | grep -e VGA -e 3D
Then you need to continue your investigation or install with trial and error.
There are a lot of choices out there. Each with their advantages and disadvantages.
We choose to install lightdm.
sudo pacman -S lightdm sudo pacman -S lightdm-gtk-greeter lightdm-gtk-greeter-settings sudo systemctl enable lightdm.service
you have a desktop