# ArchLinux

# Installation

# File system

# EFI

# fs creation

mkfs.fat -F32 /dev/sdb5
1

# fstab

/dev/sdb5 /efi vfat rw,relatime 0 2
1

# Grub

# install grub executable

pacman -S grub
1

# install grub directory

# your grub name will be "GRUB_ARCH"
grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB_ARCH
1

# generate grub config (update-grub equivalent)

grub-mkconfig -o /boot/grub/grub.cfg
1

# DNS

# /etc/resolv.conf (Generated by resolvconf)

Prepend by your own DNS.

sudo vim /etc/resolvconf.conf
1
resolv_conf=/etc/resolv.conf
name_servers=192.168.1.100
1
2

And then restart the NetworkManager which is the default network manager of gnomeopen in new window

sudo systemctl restart NetworkManager.service
1

Ensure your server is first on the list

cat /etc/resolv.conf
1
# Generated by resolvconf
domain home
nameserver 192.168.1.100
nameserver 192.168.1.1
1
2
3
4

# Package manager

# Pacman

Full system upgrade

pacman -Syu
1

# Query installed/local packages by regex

sudo pacman -Qsq pulseaudio
1

# Pacman apt equivalent

https://wiki.archlinux.org/index.php/Pacman/Rosetta

# My packages

sudo pacman -S pulseaudio tree xf86-video-intel mesa-dri opencl-nvidia sudo polkit lxsession kernel headers git gdm terminator keepass firefox
1

# Cache

Remove no longer installed packages

pacman -Sc
1

Remove files from cache

pacman -Scc
1

Remove all no longer needed packages.
Equivalent of apt autoremove

pacman -Qdtq | pacman -Rs -
1

# Yaourt

Same but more features.
Full system upgrade + remove useless packages (old dependencies)

yaourt -Syu
yaourt -Qdtq | yaourt -Rs -
1
2

# i3

# Installing i3

yaourt -Sy i3
yaourt -Sy i3-wm
yaourt -Sy dmenu
1
2
3
cat ~/.xinitrc

setxkbmap fr
exec i3
1
2
3
4

And now, you can logout from your current windows manager like gnome, and select i3

# Disabling your current windows manager

For me it was GDM GNOME Display Manager (GDM)
I ensure it with

file /etc/systemd/system/display-manager.service

/etc/systemd/system/display-manager.service: symbolic link to /usr/lib/systemd/system/gdm.service
1
2
3
systemctl disable --now gdm
1

# Wi-Fi

# With gdm (gnome desktop manager)

You have just have to use the service NetworkManager, which it way much more simple than other wireless connection manager (like wicd, netctl). NetworkManager will allow you to graphically setup once your wifi settings and autodiscover SSID.

systemctl start NetworkManager
# and enable it at boot, by default no wifi connection manager is enable on archlinux
systemctl enable NetworkManager
1
2
3

Then, fill in your infos in your graphical wifi settings

# Backup full system

Before backup, remove all useless space like pacman cache or docker overlays...

pacman -Scc

docker system prune -a
1
2
3
sudo tar \
-cvpf /tmp_root_fs/backups/fullbackup.tar \
--directory=/ \
--exclude=proc \
--exclude=sys \
--exclude=dev/pts \
--exclude=tmp_root_fs \
.
1
2
3
4
5
6
7
8

# Polkit

polkit is an application-level toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes.
Polkit is used for controlling system-wide privileges. It provides an organized way for non-privileged processes to communicate with privileged ones. In contrast to systems such as sudo, it does not grant root permission to an entire process, but rather allows a finer level of control of centralized system policy.
Polkit works by delimiting distinct actions, e.g. running GParted, and delimiting users by group or by name, e.g. members of the wheel group. It then defines how – if at all – those users are allowed those actions, e.g. by identifying as members of the group by typing in their passwords.