NOTE: Before proceeding, make sure your machine is connected to internet. If not, follow the previous steps in connecting to internet.
You can add gnome desktop environment by installing
gnome package as a whole. But this is not the recommended way of installing gnome following the KISS mentality in Arch Linux. Let’s install only the basic packages we need in order to have a working desktop environment and install additional packages in the future as needed.
Make sure you are connected to the enternet before proceeding.
Install the basic packages:
# pacman -S gnome-system-monitor gnome-shell nautilus gnome-terminal gnome-tweak-tool gnome-control-center xdg-user-dirs networkmanager gnome-keyring network-manager-applet
# systemctl enable NetworkManager
I like to run gnome on
X display server as I find it less buggy and less problematic than the new
# pacman -S xorg
Login as a normal user (not root) and then create default home folders:
Configure X to automatically unlock keyring on login. Make sure to have the same password for your keyring and login credentials.
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) export SSH_AUTH_SOCK export GDK_BACKEND=x11 exec gnome-session
#%PAM-1.0 auth required pam_securetty.so auth requisite pam_nologin.so auth include system-local-login auth optional pam_gnome_keyring.so account include system-local-login session include system-local-login session optional pam_gnome_keyring.so auto_start
Reboot your computer. After logging in back to terminal, just type
startx to open your desktop environment. Enjoy!