Now we are finally booted into our Arch Linux computer! At this point we can install some basic packages. I will install PulseAudio and alsa-utils by entering
sudo pacman -S alsa-utils pulseaudio
PulseAudio is a simple audio manager that I prefer over most other solutions. Next we are going to install a basic graphic environment. Run
to get a simple graphic test. You likely want 3D support as well so run
sudo pacman -S xorg-server xorg-xinit xorg-server-utils
and while we are here grab your Graphics card driver
sudo pacman -S mesa
Sadly I only have an Nvidia card and cannot help you with a AMD based card. For more help visit - https://wiki.archlinux.org/index.php/NVIDIA and you'll figure it out. If you’re on a laptop, run
sudo pacman -S nvidia lib32-nvidia-utils
to get mouse/trackpad functionality. Finally, install the default environment with
sudo pacman -S xf86-input-synaptics
Now we will test to see if we have basic functionality. Run
pacman -S xorg-twm xorg-xclock xterm
Now we are going to install the Gnome Display Manager. There are many different types but I personally prefer Gnome. Go ahead and install with
You can also install the package 'gnome-extra' to get a bunch of games and not needed software that I personally consider bloatware. Next, run
sudo pacman -S gnome gnome-tweak-tool
in order for gnome to start on boot. Go ahead and reboot now.
sudo systemctl enable gdm
You should be greeted with a login screen and now you're done! Sadly, Nvidia drivers may take you a bit to get working. The wiki article (https://wiki.archlinux.org/index.php/NVIDIA) is very well documented and hopefully should get you up and running. Once you fool around for a bit with the 'Nvidia-settings' tool, you’ll probably figure it out. A few things you might want to change though would be how it says
alex@localhost. Lets say I want it to say
alex@wailord285, I can do this very easily. Simply execute
and then type in your hostname. Here is a screenshot in the gnome-terminal now that it is running:
sudo nano /etc/hostname
You can see the terminal is now titled alex@wailord285 and if I go to my routers home page, it will appear as wailord285.
Although optional, you can add a repository known as the Arch User Repository, or AUR. In the AUR, people can add custom or unsupported packages that are not in the official Arch repositories. The AUR is very likely to have a package you are looking for. For example, if you want to watch Netflix you will find that only ‘Chromium’ is available in the official repositories. Sadly, Chromium isn't supported by Netflix. But, luckily, the AUR happens to have
google-chrome-stablewhich lets you watch Netflix.
So, let’s add the AUR. Edit
In the file add this string near the bottom:
sudo nano /etc/pacman.conf
Yours should now look like this:
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
Also, while your here you can choose to enable color in pacman which will make searching and installing a little more exciting but still optional.
Control Xto save your changes. Something to know before you continue, is that all packages from the AUR in theory, could be a virus as its not supported or verified by an official Arch administrator. I’ve never found this to be a problem but just keep an eye out.
In order to use the AUR, proceed by running
'Yaourt' is very similar to Pacman, but it has the ability to download AUR packages. If you want, you can view the AUR packages at aur.archlinux.org/packages/. So now you want to watch Netflix but can't because of Chromium. Go ahead and run
sudo pacman -S yaourt
to update and refresh your package list, then run
The -Ss flag will search for everything related to google-chrome.
yaourt -Ss google-chrome
Now we can see three available chrome applications. In our case, we will just take the stable version. To install run
Here you can see the pakage build downloading and a few comments from users who have problems or are reporting bugs. You can go ahead and press
yaourt -S google-chrome
nand continue but you do not ever need to view the package build. You will then be asked to edit the install file, this you can also press
n. The package will build and then finally ask you to confirm the installation. If you do not want to constantly press
n, you can type
yaourt -S google-chrome –-noconfirmwhich will instantly press no and then yes to install. The only problem is if a build error occurs it will automatically exit the build process. To keep all your AUR packages updated, occasionally issue
yaourt -Syua. The
awill check for AUR packages and download them. There you go. Installed and ready to go.
Your Arch Linux computer is now finished and ready to go. Good luck and enjoy the experience.
by Alex Gaudino, Owner of HTML High 5