ArchLinux

Installation

File system

EFI

fs creation

mkfs.fat -F32 /dev/sdb5

fstab

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

Grub

install grub executable

pacman -S grub

install grub directory

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

generate grub config (update-grub equivalent)

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

DNS

/etc/resolv.conf (Generated by resolvconf)

Prepend by your own DNS.

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

And then restart the NetworkManager which is the default network manager of gnome

sudo systemctl restart NetworkManager.service

Ensure your server is first on the list

cat /etc/resolv.conf
# Generated by resolvconf
domain home
nameserver 192.168.1.100
nameserver 192.168.1.1

Package manager

Pacman

Full system upgrade

pacman -Syu

Query installed/local packages by regex

sudo pacman -Qsq pulseaudio

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

Cache

Remove no longer installed packages

pacman -Sc

Remove files from cache

pacman -Scc

Remove all no longer needed packages.
Equivalent of apt autoremove

pacman -Qdtq | pacman -Rs -

Yaourt

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

yaourt -Syu
yaourt -Qdtq | yaourt -Rs -

i3

Installing i3

yaourt -Sy i3
yaourt -Sy i3-wm
yaourt -Sy dmenu
cat ~/.xinitrc

setxkbmap fr
exec i3

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
systemctl disable --now gdm

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

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
sudo tar \
-cvpf /tmp_root_fs/backups/fullbackup.tar \
--directory=/ \
--exclude=proc \
--exclude=sys \
--exclude=dev/pts \
--exclude=tmp_root_fs \
.

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.

results matching ""

    No results matching ""

    results matching ""

      No results matching ""