blob: d3209dd71b2c380a47d444389025e98d8465c84f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
---
title: Archinstall
date: 2025-10-05T16:33:24+02:00
index: false
---
> I install Arch Linux for french people in this guide. Also, Arch Linux is really popular, but you should checkout alternatives like [Artix Linux](https://artixlinux.org). You should [avoid systemd](https://unixdigest.com/articles/the-real-motivation-behind-systemd.html)
## Setup ~optional~ things
### Keymap
```sh
loadkeys fr-latin1
```
### Wi-Fi
```sh
iwctl --passphrase passphrase station name connect SSID
```
### Timedatectl
```sh
timedatectl set-timezone Europe/Paris
```
## Setup your disk
> The commands in this section will destroy all your data
### Make partitions
I make a 1G partition for the EFI system and give the rest to the Linux Filesystem. You can use cfdisk instead of fdisk.
You must replace `nvme0n1` with the disk you are installing Arch on. You can list them with `lsblk`.
```sh
(
echo g
echo n
echo 1
echo
echo +1G
echo t
echo 1
echo 1
echo n
echo 2
echo
echo
echo w
) | fdisk "/dev/nvme0n1" > /dev/null
```
### Format your partitions
```sh
mkfs.fat -F 32 -n ESP /dev/nvme0n1p1
```
```sh
mkfs.ext4 -L ROOT /dev/nvme0n1p2
```
### Mount your partitions
It is really important to mount the ROOT partition first and then the ESP partition.
```sh
mount /dev/disk/by-label/ROOT /mnt
```
```sh
mount --mkdir /dev/disk/by-label/ESP /mnt/boot
```
## Package installation
### Mirrors
It's best to spend some time setting up your mirrorlist located in `/etc/pacman.d/mirrorlist`. You can use `reflector` to get a list of mirrors like so :
```sh
reflector --country France --age 10 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
```
### Pacstrap
I like to install these packages.
```sh
pacstap -K /mnt linux linux-firmware sof-firmware base base-devel grub efibootmgr networkmanager terminus-font helix pipewire pipewire-pulse wireplumber git
```
## Fstab
Generate the fstab to tell to your system how to mount the disk when your computer boots. If you don't see your two partitions in the content of the file, you are doomed.
Fstab copy the order in which you mounted your partitions earlier.
```sh
genfstab -U /mnt >> /mnt/etc/fstab
```
## Arch Chrooting
You can now chroot into your future system.
```sh
arch-chroot /mnt
```
### Basic french config
```sh
ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
hwclock --systohc
echo 'fr_FR.UTF-8 UTF-8' >> /etc/locale.gen
locale-gen
echo 'LANG=fr_FR.UTF-8' > /etc/locale.conf
echo -e 'KEYMAP=fr-latin1\nXKBLAYOUT=fr\nXKBMODEL=pc105\nXKBOPTIONS=terminate:ctrl_alt_bksp\nFONT=ter-132b' > /etc/vconsole.conf
```
### Setup user and hostname
```sh
echo hostname > /etc/hostname
```
```sh
passwd
useradd -m -G wheel user
passwd user
```
### Install GRUB
```sh
grub-install --target=x86_64-efi --efi-directory=/boot
grub-mkconfig -o /boot/grub/grub.cfg
```
### Reboot
```sh
exit
reboot
```
## Post reboot
### Sudo rights
First of all, log in as root and uncomment the line starting with `%wheel` :
```sh
EDITOR=helix visudo
```
Then, save exit and log in again as your user.
### Network Manager
You should enable Wi-Fi again :
```sh
sudo systemctl enable --now NetworkManager
nmcli device wifi connect SSID --ask
```
~~\~
You're done and good to go :)
|