Arch Linux EFI Installation

Part 3 - Installing Gnome desktop environment

Posted by Adones Pitogo on Mar 14, 2016; Updated on 20th, Aug, 2018

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

Enable networking:

# systemctl enable NetworkManager

I like to run gnome on X display server as I find it less buggy and less problematic than the new wayland protocol.

# pacman -S xorg

Login as a normal user (not root) and then create default home folders:

$ xdg-user-dirs-update

Configure X to automatically unlock keyring on login. Make sure to have the same password for your keyring and login credentials.

~/.xinitrc

eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK

exec gnome-session

/etc/pam.d/login

#%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!

Sources:

Share: Email Twitter Facebook Google LinkedIn Reddit StumbleUpon Tumblr Buffer Digg