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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
|
---
title: Artixinstall
date: 2025-10-31T09:36:25+01:00
icon: artix.svg.png
---
> I install Artix Linux with french settings in this guide.
## What is Artix Linux ?
[Artix Linux](https://artixlinux.org/) is a GNU/Linux distribution based on [Arch Linux](https://archlinux.org/), the key difference between the two distros is the [init system](https://wiki.archlinux.org/title/Init) you want to use.
Arch Linux only has official support for `systemd`. Artix officially supports `dinit`, `openrc`, `runit`, and `s6`. Of course, the [AUR](https://aur.archlinux.org/) is still accessible from Artix Linux.
[_Artix Linux uses real init systems, because PID1 must be simple, secure and stable._](https://unixdigest.com/articles/the-real-motivation-behind-systemd.html)
Also, their logo looks really cool.
If you don't know what you are doing when installing Arch or Artix, I recommend you watching/reading other guides too.
[Artix Linux's official installation guide](https://wiki.artixlinux.org/Main/Installation)
## Setup ~optional~ things
### Keymap
If the keymap is wrong, you can change it with the `loadkeys` command.
```sh
loadkeys fr
```
### Connect to Wi-Fi
#### Connmanctl
You first have to unblock wifi and enable the wifi card. Replace `wlan0` with the name of your interface, list them with `ip a`
```sh
rfkill unblock wifi
ip link set wlan0 up
```
Then run `connmanctl` in interactive mode :
```sh
connmanctl
```
Replace `id` with the id of your Wi-Fi
```sh
scan wifi
services
agent on
connect id
```
You can then exit connmanctl, try to ping some website to make sure you're connected to the internet.
#### NetworkManager
To scan the networks around you :
```sh
nmcli device wifi rescan
```
List them :
```sh
nmcli device wifi list
```
Connect to one :
```sh
nmcli device wifi connect SSID --ask
```
(SSID = the name of the Wi-Fi you want to connect to)
## Setup your disk
> The commands in this section will destroy all the data of your disk.
### Make partitions
I like to make a 1G partition for the EFI system and give the rest to the Linux Filesystem. You can use cfdisk instead of fdisk.
My disk name is `nvme0n1`, but you should use `lsblk` to get the name of the disk you want to install Artix Linux on.
```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
```
Now we must format our partitions
```sh
mkfs.fat -F 32 -n ESP /dev/nvme0n1p1
```
```sh
mkfs.ext4 -L ROOT /dev/nvme0n1p2
```
### Mount the partitions
Now we can mount our partitions to install Artix Linux on the disk.
**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
```
## Installing Linux
### Basestrap
Use `basestrap` to install linux to your disk. Choose which kernel you want, I chosed `linux` but there is alternatives such as `linux-lts`, `linux-hardened` and others.
Also install an init system. Install one of them :
```sh
basestrap /mnt runit elogind-runit networkmanager-runit
```
or
```sh
basestrap /mnt openrc elogind-openrc networkmanager-openrc
```
or
```sh
basestrap /mnt dinit elogind-dinit networkmanager-dinit
```
And then install those
```sh
basestrap /mnt linux linux-firmware base base-devel grub efibootmgr git neovim
```
### Fstab
Generate the fstab to tell your system how to mount the disk when your computer boots.
Fstab copies the order in which you mounted your partitions earlier.
```sh
fstabgen -U /mnt >> /mnt/etc/fstab
```
**You must have all the partitions you configured for Artix Linux in that file !!**
## Artix Chrooting
You can now chroot into your future system.
```sh
artix-chroot /mnt
```
### Basic config
```sh
ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
hwclock --systohc
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
locale-gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
echo -e 'KEYMAP=fr-latin1\nXKBLAYOUT=fr\n' > /etc/vconsole.conf
```
If you will use OpenRC, edit `/etc/conf.d/keymaps`, and change the value of the `keymap` variable.
### Setup user and hostname
Give a hostname to your computer (replace `artix` with your hostname) :
```sh
echo 'artix' > /etc/hostname
```
Setup root password :
```sh
passwd
```
Setup user and user password (replace `billy` with your username) :
```sh
useradd -m -G wheel billy
passwd billy
```
### Install GRUB
```sh
grub-install --target=x86_64-efi --efi-directory=/boot
grub-mkconfig -o /boot/grub/grub.cfg
```
### Sudo
Run this command and uncomment this line `%wheel ALL=(ALL:ALL) ALL`
```sh
EDITOR=nvim visudo
```
### Reboot
Now you're done, you can `control-d` or `exit` to quit the chrooting and you can then reboot the system.
## Post reboot
### NetworkManager
You lost your Wi-Fi connection if you didn't noticed, you must enable it again.
On `runit` first link the file :
```sh
sudo ln -s /etc/runit/sv/NetworkManager /run/runit/service/
sudo sv start NetworkManager
```
With OpenRC, NetworkManager should be already enabled. If not :
```sh
sudo rc-update add NetworkManager default
sudo rc-service NetworkManager start
```
And with dinit :
```sh
sudo dinit enable NetworkManager
sudo dinit start NetworkManager
```
To list available Wi-Fi :
```sh
nmcli device wifi list
```
To connect to Wi-Fi : (replace `SSID` with the name of your Wi-Fi)
```sh
nmcli device wifi connect SSID --ask
```
### Brightnessctl
Install the `brightnessctl` package to adjust the screen's brightness (only on laptop, on a desktop you change the brightness of the screen in the screen's settings).
Just in case also add your user to the `video` group.
```sh
sudo usermod -aG video $(whoami)
```
You might be able to change the backlight of your keyboard.
## Repositories
### Arch's extra
If you need the `extra` repo from Arch Linux, you can add it too.
First install the support :
```sh
sudo pacman -S artix-archlinux-support
```
Then append these lines to the `/etc/pacman.conf` file :
```ini
[extra]
Include = /etc/pacman.d/mirrorlist-arch
#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist-arch
#[multilib]
#Include = /etc/pacman.d/mirrorlist-arch
```
And run
```sh
sudo pacman-key --populate archlinux
sudo pacman -Syu
```
~~\~
You might want to uncomment the `Color` and `ParallelDownloads` lines in `/etc/pacman.conf` for a better `pacman` experience overall.
Links :
- [Luke Smith installing Artix with encryption](https://youtu.be/dI3bGeT31Bo?si=yLPKfu7wPdrk-Z3V)
- [The Runit page in Artix Wiki (learn how to use it)](https://wiki.artixlinux.org/Main/Runit)
- [The OpenRC page in Artix Wiki](https://wiki.artixlinux.org/Main/OpenRC)
- [Artix Linux really cool website again](https://artixlinux.org/)
- [Linux kernels](https://wiki.archlinux.org/title/Kernel)
You can easily have informations about your kernel like so :
```sh
uname -mrs
```
## PipeWire
### Sound
First install these packages :
```sh
sudo pacman -S pipewire pipewire-pulse wireplumber
```
And copy the configuration files :
```sh
cp -r /usr/share/pipewire/* /etc/pipewire/
```
Now, on runit systems, you have to manually start these 3 commands in some files like your `hyprland.conf`, or `.xinitrc`.
If you use OpenRC also install the OpenRC scripts :
```sh
sudo pacman -S pipewire-openrc pipewire-pulse-openrc wireplumber-openrc
```
Then enable the services for your user
```sh
sudo rc-update add -U pipewire default
sudo rc-update add -U pipewire-pulse default
sudo rc-update add -U wireplumber default
```
With dinit you have to install a package to let your user enable user-level services (like PipeWire and dbus).
```sh
sudo pacman -S dinit-user-spawn
sudo dinitctl enable dinit-user-spawn
```
```sh
dinitctl enable pipewire
dinitctl enable pipewire-pulse
dinitctl enable wireplumber
```
Reboot your computer and sound must be working now !
If it's isn't working for some reason, I either misguided you, or your hardware isn't supported. In the second case install these packages :
```sh
sudo pacman -S pipewire-alsa alsa-utils alsa-tools alsa-firmware sof-firmware
```
The `initramfs` should have been rebuilt by pacman but to be sure build it again :
```sh
sudo mkinitcpio -P
```
Now reboot again and if sound doesn't work, you're out of luck :(
### Screensharing
Install `xdg-desktop-portal`.
There's tons of xdg-desktop-portal packages, chose the one that contains your Desktop Environment/Window Manager name in it.
```sh
xdg-desktop-portal
xdg-desktop-portal-gnome
xdg-desktop-portal-gtk
xdg-desktop-portal-hyprland
xdg-desktop-portal-kde
xdg-desktop-portal-wlr
xdg-desktop-portal-cosmic
xdg-desktop-portal-lxqt
xdg-desktop-portal-xapp
```
I use `Hyprland`, so I will install these :
```sh
sudo pacman -S xdg-desktop-portal xdg-desktop-portal-hyprland
```
If you reboot, screensharing must be working out of the box on runit systems. But for OpenRC, create a shell script like so :
```sh
#!/bin/bash
sleep 1
killall xdg-desktop-portal-hyprland
killall xdg-desktop-portal-gnome
killall xdg-desktop-portal-wlr
killall xdg-desktop-portal
logger 'killed all xdg-desktop'
sleep 1
/usr/lib/xdg-desktop-portal-hyprland # then put the one you use
logger 'xdg-desktop-portal-hyprland started'
sleep 2
/usr/lib/xdg-desktop-portal
logger 'xdg-desktop-portal started'
```
Don't forget to make this file executable with `chmod +x`
And you must also start this script when launching your DE/WM. Use the `exec-once` statement if you use Hyprland and pass out the path to this shell script.
Now screensharing must be working
|