7
7
8
8
<!-- Explanation of why I decided to install Arch Linux, or rather, why I decided to install a GNU/Linux system on my computer for work. -->
9
9
10
+ ## About the machine
11
+
12
+ Thinkpad neo 14 (Intel version)
13
+
14
+ - CPU: Intel Core i5-12500H
15
+ - RAM: 16 GB
16
+ - Storage: 512 GB SSD
17
+
10
18
## Table of contents
11
19
12
- - [ Prologue] ( #prologue )
13
- - [ Pre-installation] ( #pre-installation )
14
- - [ Set the console keyboard layout] ( #set-the-console-keyboard-layout )
15
- - [ Verify the boot mode] ( #verify-the-boot-mode )
16
- - [ Connect to the Internet] ( #connect-to-the-internet )
17
- - [ Update the system clock] ( #update-the-system-clock )
18
- - [ Partition the disk(s)] ( #partition-the-disks )
19
- - [ ` /mnt/boot ` ] ( #mntboot )
20
- - [ ` [SWAP] ` ] ( #swap )
21
- - [ ` /mnt ` ] ( #mnt )
22
- - [ Check and write] ( #check-and-write )
23
- - [ Format the partitions] ( #format-the-partitions )
24
- - [ Mount the file systems] ( #mount-the-file-systems )
25
- - [ Installation] ( #installation )
26
- - [ Select the mirrors] ( #select-the-mirrors )
27
- - [ Install essential packages] ( #install-essential-packages )
28
- - [ Configure the system] ( #configure-the-system )
29
- - [ Fstab] ( #fstab )
30
- - [ Chroot] ( #chroot )
31
- - [ Time zone] ( #time-zone )
32
- - [ Localization] ( #localization )
33
- - [ Network configuration] ( #network-configuration )
34
- - [ Root password] ( #root-password )
35
- - [ Boot loader] ( #boot-loader )
36
- - [ Reboot] ( #reboot )
37
- - [ Epilogue] ( #epilogue )
38
-
39
- ## Preamble
40
-
41
- To install Arch Linux, it is highly recommended to read [ Arch Linux's Installation Guide] first, then try to install Arch Linux manually or with an installer. The official ` archinstall ` is nice.
42
-
43
- Personally, I prefer to install Arch Linux step by step as this is a more customizable way. In the following instruction, I'll start from the [ Set the console keyboard layout] section of Arch Linux's Installation Guide.
20
+ - [ Prologue] ( #prologue )
21
+ - [ Pre-installation] ( #pre-installation )
22
+ - [ Set the console keyboard layout] ( #set-the-console-keyboard-layout )
23
+ - [ Verify the boot mode] ( #verify-the-boot-mode )
24
+ - [ Connect to the Internet] ( #connect-to-the-internet )
25
+ - [ Update the system clock] ( #update-the-system-clock )
26
+ - [ Partition the disk(s)] ( #partition-the-disks )
27
+ - [ ` /mnt/boot ` ] ( #mntboot )
28
+ - [ ` [SWAP] ` ] ( #swap )
29
+ - [ ` /mnt ` ] ( #mnt )
30
+ - [ Check and write] ( #check-and-write )
31
+ - [ Format the partitions] ( #format-the-partitions )
32
+ - [ Mount the file systems] ( #mount-the-file-systems )
33
+ - [ Installation] ( #installation )
34
+ - [ Select the mirrors] ( #select-the-mirrors )
35
+ - [ Install essential packages] ( #install-essential-packages )
36
+ - [ Configure the system] ( #configure-the-system )
37
+ - [ Fstab] ( #fstab )
38
+ - [ Chroot] ( #chroot )
39
+ - [ Time zone] ( #time-zone )
40
+ - [ Localization] ( #localization )
41
+ - [ Network configuration] ( #network-configuration )
42
+ - [ Root password] ( #root-password )
43
+ - [ Boot loader] ( #boot-loader )
44
+ - [ Reboot] ( #reboot )
45
+ - [ Epilogue] ( #epilogue )
46
+
47
+ ## Prologue
48
+
49
+ To install Arch Linux, it is highly recommended to read
50
+ [ Arch Linux's Installation Guide] , then try to install Arch Linux manually or
51
+ with an installer. The official ` archinstall ` is nice.
52
+
53
+ Personally, I prefer to install Arch Linux step by step as this is a more
54
+ customizable way. In the following instruction, I'll start from the
55
+ [ Set the console keyboard layout] section of Arch Linux's Installation Guide.
44
56
45
57
[ Arch Linux's Installation Guide ] : https://wiki.archlinux.org/title/Installation_guide
46
58
[ Set the console keyboard layout ] : https://wiki.archlinux.org/title/Installation_guide#Set_the_console_keyboard_layout
@@ -103,9 +115,11 @@ console:
103
115
# ip link
104
116
```
105
117
106
- The following assumes that the system connects to the Internet with Wi-Fi device ` wlan0 ` .
118
+ The following assumes that the system connects to the Internet with Wi-Fi device
119
+ ` wlan0 ` .
107
120
108
- There are many ways to search available Wi-Fis, and I personally prefer the following way.
121
+ There are many ways to search available Wi-Fis, and I personally prefer the
122
+ following way.
109
123
110
124
```
111
125
console:
117
131
[iwd]# station wlan0 get-networks
118
132
```
119
133
120
- Now, connect to the Internet with ` wpa_supplicant ` . Note that ` iwctl ` and ` wpa_cli ` suffice in general.
134
+ Now, connect to the Internet with ` wpa_supplicant ` . Note that ` iwctl ` and
135
+ ` wpa_cli ` suffice in general.
121
136
122
137
```
123
138
console:
@@ -164,7 +179,8 @@ console:
164
179
165
180
### Partition the disk(s)
166
181
167
- To be clear, I use single-system machines, so I don't care about [ * Dual boot with Windows* ] ( https://wiki.archlinux.org/title/Dual_boot_with_Windows ) .
182
+ To be clear, I use single-system machines, so I don't care about
183
+ [ _ Dual boot with Windows_ ] ( https://wiki.archlinux.org/title/Dual_boot_with_Windows ) .
168
184
169
185
Identify block devices with ` fdisk ` .
170
186
@@ -174,7 +190,8 @@ console:
174
190
# fdisk -l
175
191
```
176
192
177
- The following assumes that the system is going to be installed in ` /dev/nvme0n1 ` .
193
+ The following assumes that the system is going to be installed in
194
+ ` /dev/nvme0n1 ` .
178
195
179
196
```
180
197
console:
@@ -210,9 +227,11 @@ fdisk:
210
227
211
228
#### ` [SWAP] `
212
229
213
- To be honest, I don't know much about swap, but I know that I have a large hard disk. :laughing :
230
+ To be honest, I don't know much about swap, but I know that I have a large hard
231
+ disk. :laughing :
214
232
215
- So, I decide to make the swap partition as ** 1.5 times** large as the RAM, that is ** 24 GB** .
233
+ So, I decide to make the swap partition as ** 1.5 times** large as the RAM, that
234
+ is ** 24 GB** .
216
235
217
236
```
218
237
fdisk:
@@ -288,7 +307,8 @@ console:
288
307
289
308
### Install essential packages
290
309
291
- Some of the following packages can be installed in the future, but I prefer to install them now.
310
+ Some of the following packages can be installed in the future, but I prefer to
311
+ install them now.
292
312
293
313
```
294
314
console:
@@ -325,7 +345,8 @@ console:
325
345
326
346
### Localization
327
347
328
- Uncomment needed locales in ` /etc/locale.gen ` , then generate the locales. The following assumes that ` en_US.UTF-8 UTF-8 ` has been uncommented.
348
+ Uncomment needed locales in ` /etc/locale.gen ` , then generate the locales. The
349
+ following assumes that ` en_US.UTF-8 UTF-8 ` has been uncommented.
329
350
330
351
```
331
352
`arch-chroot`ed console:
@@ -347,7 +368,8 @@ Set the `LANG` variable.
347
368
LANG=en_US.UTF-8
348
369
```
349
370
350
- ** Repeat [ Set the console keyboard layout] ( #set-the-console-keyboard-layout ) in the ` arch-chroot ` ed system if wanted.**
371
+ ** Repeat [ Set the console keyboard layout] ( #set-the-console-keyboard-layout ) in
372
+ the ` arch-chroot ` ed system if wanted.**
351
373
352
374
### Network configuration
353
375
@@ -384,17 +406,19 @@ The following assumes that the hostname is set as `myhostname`.
384
406
385
407
### Boot loader
386
408
387
- I use ` grub ` and ` efibootmgr ` , which have been already installed in the [ Install essential packages] ( #install-essential-packages ) step.
409
+ I use ` grub ` and ` efibootmgr ` , which have been already installed in the
410
+ [ Install essential packages] ( #install-essential-packages ) step.
388
411
389
- For machines that have an Intel CPU, install ` intel-ucode ` ; for those that have an AMD CPU, install ` amd-ucode ` .
412
+ For machines that have an Intel CPU, install ` intel-ucode ` ; for those that have
413
+ an AMD CPU, install ` amd-ucode ` .
390
414
391
415
```
392
416
`arch-chroot`ed console:
393
417
394
418
# pacman -S intel-ucode
395
419
```
396
420
397
- * Note : For multi-system users, ` os-prober ` may be needed.*
421
+ _ Tip : For multi-system users, ` os-prober ` may be needed._
398
422
399
423
Install GRUB to the disk, then generate the main configuration file.
400
424
@@ -408,7 +432,8 @@ Install GRUB to the disk, then generate the main configuration file.
408
432
409
433
## Reboot
410
434
411
- Remember to remove the installation medium (e.g. USB flash drives).
435
+ Remember to remove the installation medium (e.g. USB flash drives) before
436
+ rebooting the computer.
412
437
413
438
```
414
439
`arch-chroot`ed console:
@@ -423,4 +448,5 @@ console:
423
448
424
449
## Epilogue
425
450
426
- Now, Arch Linux is successfully installed on the laptop. I'll write a new blog post about setting up this machine.
451
+ Now, Arch Linux is installed on the laptop. I'll write a new blog post about
452
+ setting up this machine.
0 commit comments