Skip to content

Commit f7b9748

Browse files
committedMar 28, 2023
chore: add some slight updates
1 parent 3f0a1d2 commit f7b9748

File tree

4 files changed

+79
-51
lines changed

4 files changed

+79
-51
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# macOS
2+
.DS_Store

‎import_map.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"imports": {
33
"blog": "https://deno.land/x/blog/blog.tsx"
44
}
5-
}
5+
}

‎posts/hello_world.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is my first blog post!
77

88
Recently, I received a new Thinkpad neo 14 (Intel version) from my supervisor.
99
Suffering from setting up a development environment on Windows, I installed Arch
10-
Linux and noted down my setup steps.
10+
Linux and noted down my setup steps in Markdown.
1111

1212
Taking notes wasn't a big thing, but I had no idea how to share my notes. At
1313
first, I was about to build a beautiful PDF document with LaTeX but soon
@@ -17,8 +17,8 @@ social media. However, I didn't find any platform on which I would be willing to
1717
write something.
1818

1919
Finally, I started this simple website to post my notes and thoughts. I chose
20-
Deno Blog as I wanted to try Deno stuffs since I knew the Deno project. I also
20+
Deno Blog as I've wanted to try Deno stuff since I knew the Deno project. I also
2121
found that, compared to Node stuff, Deno Blog is easy to set up and deploy.
2222

2323
That is why I started to write blog posts and deployed such a website, and so my
24-
next blog post is about my steps to install Arch Linux on a laptop.
24+
next blog post will be about my steps to install Arch Linux on a laptop.

‎posts/install_arch_linux_on_a_laptop.md

+73-47
Original file line numberDiff line numberDiff line change
@@ -7,40 +7,52 @@ tags:
77

88
<!-- 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. -->
99

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+
1018
## Table of contents
1119

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.
4456

4557
[Arch Linux's Installation Guide]: https://wiki.archlinux.org/title/Installation_guide
4658
[Set the console keyboard layout]: https://wiki.archlinux.org/title/Installation_guide#Set_the_console_keyboard_layout
@@ -103,9 +115,11 @@ console:
103115
# ip link
104116
```
105117

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`.
107120

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.
109123

110124
```
111125
console:
@@ -117,7 +131,8 @@ iwd:
117131
[iwd]# station wlan0 get-networks
118132
```
119133

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.
121136

122137
```
123138
console:
@@ -164,7 +179,8 @@ console:
164179

165180
### Partition the disk(s)
166181

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).
168184

169185
Identify block devices with `fdisk`.
170186

@@ -174,7 +190,8 @@ console:
174190
# fdisk -l
175191
```
176192

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`.
178195

179196
```
180197
console:
@@ -210,9 +227,11 @@ fdisk:
210227

211228
#### `[SWAP]`
212229

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:
214232

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**.
216235

217236
```
218237
fdisk:
@@ -288,7 +307,8 @@ console:
288307

289308
### Install essential packages
290309

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.
292312

293313
```
294314
console:
@@ -325,7 +345,8 @@ console:
325345

326346
### Localization
327347

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.
329350

330351
```
331352
`arch-chroot`ed console:
@@ -347,7 +368,8 @@ Set the `LANG` variable.
347368
LANG=en_US.UTF-8
348369
```
349370

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.**
351373

352374
### Network configuration
353375

@@ -384,17 +406,19 @@ The following assumes that the hostname is set as `myhostname`.
384406

385407
### Boot loader
386408

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.
388411

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`.
390414

391415
```
392416
`arch-chroot`ed console:
393417
394418
# pacman -S intel-ucode
395419
```
396420

397-
*Note: For multi-system users, `os-prober` may be needed.*
421+
_Tip: For multi-system users, `os-prober` may be needed._
398422

399423
Install GRUB to the disk, then generate the main configuration file.
400424

@@ -408,7 +432,8 @@ Install GRUB to the disk, then generate the main configuration file.
408432

409433
## Reboot
410434

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.
412437

413438
```
414439
`arch-chroot`ed console:
@@ -423,4 +448,5 @@ console:
423448

424449
## Epilogue
425450

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

Comments
 (0)
Please sign in to comment.