Personal_Archlinux_Installation_Guide_with_btrfs_AND_snapshots_–
Personal_Archlinux_Installation_Guide_with_btrfs_AND_snapshots_–
Content
1 Errors in archiso
∟ 1.1 SCHED ERROR
∟ ∟ 1.1.1 Solution
2 Keyboard and font terminal
3 Wifi
∟ 3.1 Iwd
∟ ∟ 3.1.1 Adapters and devices
∟ ∟ 3.1.2 Station mode
∟ ∟ ∟ 3.1.2.1 Visible networks
∟ ∟ ∟ 3.1.2.2 Hidden networks
∟ 3.2 Check internet connection
4 UEFI or legacy bios
∟ 4.1 UEFI bios
∟ 4.2 Legacy bios
5 Update system clock
6 Storage devices
∟ 6.1 List storage devices
∟ 6.2 Verify storage device partition scheme
∟ 6.3 Partitions
∟ ∟ 6.3.1 Create partitions
∟ ∟ 6.3.2 Listing created partitions
∟ ∟ 6.3.3 Partitions formating
7 Subvolumes
∟ 7.1 System mounting options
8 Pacman configuration
∟ 8.1 Reflector mirrorlist
∟ ∟ 8.1.1 America
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 1/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
∟ ∟ 8.1.2 Europe
9 Install essential packages
∟ 9.1 Install packages for UEFI system
∟ 9.2 Install packages for legacy system
10 Configure the system
∟ 10.1 Fstab
∟ 10.2 Chroot
∟ 10.3 Time zone
∟ 10.4 Localization
∟ 10.5 Network
∟ 10.6 Initramfs
∟ ∟ 10.6.1 Add btrfs module
∟ ∟ 10.6.2 Early KMS start (recommended)
∟ ∟ ∟ 10.6.2.1 Intel graphics
∟ ∟ ∟ 10.6.2.2 Amd graphics
∟ ∟ 10.6.3 Recreate the initramfs image
∟ 10.7 Boot loader
∟ ∟ 10.7.1 Grub
∟ ∟ ∟ 10.7.1.1 Install grub
∟ ∟ ∟ 10.7.1.2 Config grub
∟ ∟ ∟ 10.7.1.3 Generate grub.cfg
∟ 10.8 Users and groups
∟ 10.9 Pacman configuration
∟ 10.10 Microcode
∟ 10.11 Aditional packages
∟ 10.12 Network manager
∟ ∟ 10.12.1 Iwd
11 Unmount partitions and restart system
12 Wifi
∟ 12.1 Iwd
∟ ∟ 12.1.1 Station mode
∟ ∟ 12.1.2 Visible networks
∟ ∟ 12.1.3 Hidden networks
∟ ∟ 12.1.4 Check internet connection
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 2/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
13 Snapper
∟ 13.1 Create configuration
∟ 13.2 Snapshots configuration
∟ 13.3 Automatically update grub upon snapshot
14 Reflector mirrorlist
∟ 14.1 America
∟ 14.2 Europe
15 User configurations
1 Errors in archiso
1.1.1 Solution
Press e when the menu appeart and in the line initramfs-linux.img add the
following kernel parameters to disable modesetting:
nomodeset nouveau.modeset=0
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 3/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
# loadkeys la-latin1
# setfont Lat2-Terminus16
3 Wifi
Connect internet using wifi.
3.1 Iwd
root@archiso~# iwctl
NetworkConfigurationEnabled: enabled
StateDirectory: /var/lib/iwd
Version: 1.27
[iwd]# adapter list
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 4/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
Adapters
-----------------------------------------------------------------------
Name Powered Vendor Model
-----------------------------------------------------------------------
phy0 on Qualcomm AtherosQCA9565 / AR9565 Wir
If the adapter and device are turned on, continue the guide, if not:
Check the driver status:
root@archiso~# iwctl
NetworkConfigurationEnabled: enabled
StateDirectory: /var/lib/iwd
Version: 1.27
[iwd]# station list
Devices in Station Mode *
-----------------------------------------------------------------------
Name State Scanning
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 5/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
-----------------------------------------------------------------------
wlan0 disconnect
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 6/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
# ls /sys/firmware/efi/efivars
Is UEFI
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 7/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
Is BIOS/Legacy
6 Storage devices
6.3 Partitions
UEFI boot:
Swap partition:
Root partition:
List partitions:
7 Subvolumes
Mount root partition:
Create subvolumes:
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 9/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
List subvolumes:
# umount /mnt
# mkdir -p /mnt/{boot,home,var/{log,tmp},.snapshots}
List partitions:
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 10/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
8 Pacman configuration
Enable/uncomment parallel downloads, comic pacman and color on "# misc
options" section:
# nvim /etc/pacman.conf
-----------------------------------------------------------------------
# Misc options
Color
ParallelDownloads = 5
ILoveCandy
8.1.1 America
Canada 🇨🇦, Chile 🇨🇱, Brazil 🇧🇷, Ecuador 🇪🇨, United States 🇺🇸 and Colombia 🇨🇴:
# curl -s ix.io/3V9q | bash
8.1.2 Europe
France🇫🇷, Germany 🇩🇪, Spain 🇪🇸, United Kingdom 🇬🇧, Italy 🇮🇹, Switzerland 🇨🇭
and Hungary 🇭🇺:
10.1 Fstab
Generate an fstab file defined for UUID:
10.2 Chroot
Change root into the new system:
# arch-chroot /mnt
# hwclock --systohc
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 12/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
# timedatectl set-local-rtc 0
10.4 Localization
Edit /etc/locale.gen and uncomment es_CO.UTF-8 UTF-8 for Spanish
Colombia:
# nvim /etc/locale.gen
-----------------------------------------------------------------------
es_CO.UTF-8 UTF-8
# locale-gen
Create the locale.conf(5) file, and set the LANG variable accordingly:
# nvim /etc/locale.conf
-----------------------------------------------------------------------
LANG=es_CO.UTF-8
# nvim /etc/vconsole.conf
-----------------------------------------------------------------------
KEYMAP=la-latin1
FONT=Lat2-Terminus16
10.5 Network
Create the hostname file:
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 13/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
# nvim /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 arch.localdomain arch
10.6 Initramfs
Modify mkinitcpio.conf(5) and add necessary modules.
# nvim /etc/mkinitcpio.conf
-----------------------------------------------------------------------
MODULES=(btrfs intel_agp i915)
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 14/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
• ATI: Use radeon when using the legacy ATI driver, which supports the majority of
AMD (previously ATI) GPUs.
# nvim /etc/mkinitcpio.conf
-----------------------------------------------------------------------
MODULES=(btrfs amdgpu)
# nvim /etc/mkinitcpio.conf
-----------------------------------------------------------------------
MODULES=(btrfs radeon)
# mkinitcpio -P
10.7.1 Grub
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 15/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
# nvim /etc/default/grub
-----------------------------------------------------------------------
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3"
GRUB_DISABLE_OS_PROBER=false
# passwd
Add user with system groups, user groups and pre-systemd groups:
# passwd dakataca
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 16/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
# nvim /etc/sudoers
-----------------------------------------------------------------------
%wheel ALL=(ALL:ALL) ALL
# nvim /etc/pacman.conf
-----------------------------------------------------------------------
# Misc options
Color
ParallelDownloads = 3
ILoveCandy
[multilib]
Include = /etc/pacman.d/mirrorlist
10.10 Microcode
Enable microcode updates.
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 17/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
10.12.1 Iwd
Create configuration directory:
# mkdir -p /etc/iwd/
Select DNS manager resolv.conf and configure routes using the built-in DHCP
client:
# nvim /etc/iwd/main.conf
-----------------------------------------------------------------------
[Network]
NameResolvingService=resolvconf
[General]
EnableNetworkConfiguration=true
# nvim /etc/resolv.conf
-----------------------------------------------------------------------
# Resolver configuration file.
# See resolv.conf(5) for details.
nameserver 8.8.8.8
nameserver 8.8.4.4
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 18/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
Overwriting of /etc/resolv.conf
# chattr +i /etc/resolv.conf
# exit
Poweroff swap:
# swapoff -a
# umount -R /mnt
12 Wifi
12.1 Iwd
root@arch~# iwctl
NetworkConfigurationEnabled: enabled
StateDirectory: /var/lib/iwd
Version: 1.27
[iwd]# station list
Devices in Station Mode *
-----------------------------------------------------------------------
Name State Scanning
-----------------------------------------------------------------------
wlan0 disconnect
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 19/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
13 Snapper
Managing snapshots of Btrfs subvolumes.
# umount /.snapshots
# rm -r /.snapshots
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 20/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
snapshot timeline can be created with a configurable number of hourly, daily, weekly,
monthly, and yearly snapshots kept.
Set onfiguration named config with only 5 hourly snapshots, 7 daily ones, no monthly
and no yearly ones:
/etc/snapper/configs/config
-----------------------------------------------------------------------
TIMELINE_MIN_AGE="1800"
TIMELINE_LIMIT_HOURLY="5"
TIMELINE_LIMIT_DAILY="7"
TIMELINE_LIMIT_WEEKLY="0"
TIMELINE_LIMIT_MONTHLY="0"
TIMELINE_LIMIT_YEARLY="0"
Use the provided systemd units to periodically clean older snapshots and start the
automatic snapshot timeline:
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 21/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
14 Reflector mirrorlist:
14.1 America
Canada 🇨🇦, Chile 🇨🇱, Brazil 🇧🇷, Ecuador 🇪🇨, United States 🇺🇸 and Colombia 🇨🇴.
# curl -s ix.io/3V9q | bash
14.2 Europe
France🇫🇷, Germany 🇩🇪, Spain 🇪🇸, United Kingdom 🇬🇧, Italy 🇮🇹, Switzerland 🇨🇭
and Hungary 🇭🇺.
15 User configurations
Login with your user.
Manage "well known" user directories like the desktop folder and the music folder.
Install xdg-user-dirs:
$ xdg-user-dirs-update
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 22/23
30/5/22, 16:42 Personal Archlinux Installation Guide with btrfs AND snapshots – Telegraph
EDIT
dakataca
https://telegra.ph/Personal-Archlinux-Installation-Guide-with-btrfs-AND-snapshots-05-17#4-UEFI-or-legacy-bios 23/23