fix: correct typos and formatting in Alpine and Artix installation guides
All checks were successful
build dist / build-dist (push) Successful in 35s
All checks were successful
build dist / build-dist (push) Successful in 35s
This commit is contained in:
parent
8e2f17651d
commit
fbc9c70c6d
2 changed files with 38 additions and 38 deletions
6
src/content/alpine-install-guide/index.md
vendored
6
src/content/alpine-install-guide/index.md
vendored
|
@ -8,7 +8,7 @@ date: 2025-05-04
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
The goal of this guide is to set up a minimal installation of **Alpine Linux** with **full disk encryption**. Refer to the [Alpine installation wiki](https://wiki.alpinelinux.org/wiki/Installation) if encounterung any issues
|
The goal of this guide is to set up a minimal installation of **Alpine Linux** with **full disk encryption**. Refer to the [Alpine installation wiki](https://wiki.alpinelinux.org/wiki/Installation) if encountering any issues
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ Login using the credentials that you set, if you followed the example, your user
|
||||||
### Add repositories
|
### Add repositories
|
||||||
|
|
||||||
> [!note]
|
> [!note]
|
||||||
> Testing will not be used by default, but you can install a package from it like so:
|
> Testing will not be used by default, but you can install a package from it like so:
|
||||||
>
|
>
|
||||||
>```sh
|
>```sh
|
||||||
>doas apk add [your_package]@testing
|
>doas apk add [your_package]@testing
|
||||||
|
@ -177,7 +177,7 @@ doas apk del shadow
|
||||||
|
|
||||||
#### WG-Easy
|
#### WG-Easy
|
||||||
|
|
||||||
If you’re planning to use [wg-easy](https://github.com/wg-easy/wg-easy), save yourself hours of troubleshooting by running the following commands
|
If you're planning to use [wg-easy](https://github.com/wg-easy/wg-easy), save yourself hours of troubleshooting by running the following commands
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
doas apk add iptables ip6tables
|
doas apk add iptables ip6tables
|
||||||
|
|
70
src/content/artix-install-guide/index.md
vendored
70
src/content/artix-install-guide/index.md
vendored
|
@ -8,7 +8,7 @@ date: 2025-01-07
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
The goal of this guide is to set up a minimal installation of **Artix Linux** with **OpenRC** as an init system and **full disk encryption** on an **UEFI** or **BIOS** system. This guide is meant to be read alongside the [Artix](https://wiki.artixlinux.org/) and [Arch](https://wiki.archlinux.org/title/Installation_guide) wiki respectively. It does not cover implementing [Secure Boot](https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface/Secure_Boot#Implementing_Secure_Boot)
|
The goal of this guide is to set up a minimal installation of **Artix Linux** with **OpenRC** as an init system and **full disk encryption** on an **UEFI** or **BIOS** system. This guide is meant to be read alongside the [Artix](https://wiki.artixlinux.org/) and [Arch](https://wiki.archlinux.org/title/Installation_guide) wiki respectively. It does not cover implementing [Secure Boot](https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface/Secure_Boot#Implementing_Secure_Boot)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ The goal of this guide is to set up a minimal installation of **Artix Linux** wi
|
||||||
> This command will wipe the `/dev/sdb1` partition
|
> This command will wipe the `/dev/sdb1` partition
|
||||||
|
|
||||||
|
|
||||||
```shell
|
```sh
|
||||||
doas dd bs=4M if=~/Downloads/artix-base-openrc-*-x86_64.iso of=/dev/sdb1 conv=fsync oflag=direct status=progress
|
doas dd bs=4M if=~/Downloads/artix-base-openrc-*-x86_64.iso of=/dev/sdb1 conv=fsync oflag=direct status=progress
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -68,13 +68,13 @@ Connect the computer via an Ethernet cable
|
||||||
|
|
||||||
### Via WiFi
|
### Via WiFi
|
||||||
|
|
||||||
```shell
|
```sh
|
||||||
rfkill unblock wifi
|
rfkill unblock wifi
|
||||||
ip link set wlan0 up
|
ip link set wlan0 up
|
||||||
connmanctl
|
connmanctl
|
||||||
```
|
```
|
||||||
|
|
||||||
```shell
|
```sh
|
||||||
agent on
|
agent on
|
||||||
scan wifi
|
scan wifi
|
||||||
services
|
services
|
||||||
|
@ -86,14 +86,14 @@ services
|
||||||
> [!example]
|
> [!example]
|
||||||
> connect wifi_dc85de_383039_managed_psk
|
> connect wifi_dc85de_383039_managed_psk
|
||||||
|
|
||||||
```shell
|
```sh
|
||||||
connect {your WiFi name}
|
connect {your WiFi name}
|
||||||
quit
|
quit
|
||||||
```
|
```
|
||||||
|
|
||||||
### Verify internet connectivity
|
### Verify internet connectivity
|
||||||
|
|
||||||
```shell
|
```sh
|
||||||
ping artixlinux.org
|
ping artixlinux.org
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ ping artixlinux.org
|
||||||
## Update the system clock
|
## Update the system clock
|
||||||
|
|
||||||
Activate the NTP daemon to synchronize the computer's real-time clock
|
Activate the NTP daemon to synchronize the computer's real-time clock
|
||||||
```shell
|
```sh
|
||||||
rc-service ntpd start
|
rc-service ntpd start
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ rc-service ntpd start
|
||||||
## Partition the disk
|
## Partition the disk
|
||||||
|
|
||||||
1. Install and run `gdisk`
|
1. Install and run `gdisk`
|
||||||
```shell
|
```sh
|
||||||
pacman -Sy gdisk
|
pacman -Sy gdisk
|
||||||
gdisk /dev/nvme0n1
|
gdisk /dev/nvme0n1
|
||||||
```
|
```
|
||||||
|
@ -120,12 +120,12 @@ gdisk /dev/nvme0n1
|
||||||
> `nvme0n1` will be used as the target install drive throughout this guide, adapt it to your drive name.
|
> `nvme0n1` will be used as the target install drive throughout this guide, adapt it to your drive name.
|
||||||
|
|
||||||
2. Delete any existing partitions. Repeat until none are left.
|
2. Delete any existing partitions. Repeat until none are left.
|
||||||
```shell
|
```sh
|
||||||
Command (m for help): d
|
Command (m for help): d
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Create a boot partition
|
3. Create a boot partition
|
||||||
```shell
|
```sh
|
||||||
Command (m for help): n
|
Command (m for help): n
|
||||||
Partition number (1-128, default 1):
|
Partition number (1-128, default 1):
|
||||||
First sector (...):
|
First sector (...):
|
||||||
|
@ -134,7 +134,7 @@ Hex code or GUID (...): ef00
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Create a root partition
|
4. Create a root partition
|
||||||
```shell
|
```sh
|
||||||
Command (m for help): n
|
Command (m for help): n
|
||||||
Partition number (2-128, default 1):
|
Partition number (2-128, default 1):
|
||||||
First sector (...):
|
First sector (...):
|
||||||
|
@ -143,13 +143,13 @@ Hex code or GUID (...): 8300
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Write the changes
|
5. Write the changes
|
||||||
```shell
|
```sh
|
||||||
Command (m for help): w
|
Command (m for help): w
|
||||||
Do you want to proceed? (Y/N): y
|
Do you want to proceed? (Y/N): y
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Verify partitioning
|
6. Verify partitioning
|
||||||
```shell
|
```sh
|
||||||
lsblk
|
lsblk
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -172,27 +172,27 @@ lsblk
|
||||||
> [!tip]
|
> [!tip]
|
||||||
>Make sure to enter a secure passphrase and to write it down
|
>Make sure to enter a secure passphrase and to write it down
|
||||||
|
|
||||||
```shell
|
```sh
|
||||||
cryptsetup luksFormat /dev/nvme0n1p2
|
cryptsetup luksFormat /dev/nvme0n1p2
|
||||||
Are you sure (Type `yes` in capital letters): YES
|
Are you sure (Type `yes` in capital letters): YES
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Open the encrypted partition
|
2. Open the encrypted partition
|
||||||
```shell
|
```sh
|
||||||
cryptsetup open /dev/nvme0n1p2 root
|
cryptsetup open /dev/nvme0n1p2 root
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Create file systems
|
## Create filesystems
|
||||||
|
|
||||||
1. Create the boot file system
|
1. Create the boot file system
|
||||||
```shell
|
```sh
|
||||||
mkfs.fat -F32 /dev/nvme0n1p1
|
mkfs.fat -F32 /dev/nvme0n1p1
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Create the root file system
|
1. Create the root file system
|
||||||
```shell
|
```sh
|
||||||
mkfs.ext4 /dev/mapper/root
|
mkfs.ext4 /dev/mapper/root
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -201,17 +201,17 @@ mkfs.ext4 /dev/mapper/root
|
||||||
## Mount file systems
|
## Mount file systems
|
||||||
|
|
||||||
1. Mount the root file system
|
1. Mount the root file system
|
||||||
```shell
|
```sh
|
||||||
mount /dev/mapper/root /mnt
|
mount /dev/mapper/root /mnt
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Mount the boot file system
|
2. Mount the boot file system
|
||||||
```shell
|
```sh
|
||||||
mount -m /dev/nvme0n1p1 /mnt/boot
|
mount -m /dev/nvme0n1p1 /mnt/boot
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Verify mounting
|
3. Verify mounting
|
||||||
```shell
|
```sh
|
||||||
lsblk
|
lsblk
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ lsblk
|
||||||
|
|
||||||
Install the base system, kernel, init system and other essential packages.
|
Install the base system, kernel, init system and other essential packages.
|
||||||
|
|
||||||
```shell
|
```sh
|
||||||
basestrap /mnt base linux linux-firmware openrc elogind-openrc cryptsetup cryptsetup-openrc efibootmgr doas nano
|
basestrap /mnt base linux linux-firmware openrc elogind-openrc cryptsetup cryptsetup-openrc efibootmgr doas nano
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -243,7 +243,7 @@ basestrap /mnt base linux linux-firmware openrc elogind-openrc cryptsetup crypts
|
||||||
|
|
||||||
Install AMD CPU microcode updates
|
Install AMD CPU microcode updates
|
||||||
|
|
||||||
```shell
|
```sh
|
||||||
basestrap /mnt amd-ucode
|
basestrap /mnt amd-ucode
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ basestrap /mnt amd-ucode
|
||||||
|
|
||||||
Install Intel CPU microcode updates
|
Install Intel CPU microcode updates
|
||||||
|
|
||||||
```shell
|
```sh
|
||||||
basestrap /mnt intel-ucode
|
basestrap /mnt intel-ucode
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ basestrap /mnt intel-ucode
|
||||||
|
|
||||||
## Generate file system table
|
## Generate file system table
|
||||||
|
|
||||||
```shell
|
```sh
|
||||||
fstabgen -U /mnt >> /mnt/etc/fstab
|
fstabgen -U /mnt >> /mnt/etc/fstab
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ fstabgen -U /mnt >> /mnt/etc/fstab
|
||||||
|
|
||||||
## Switch to new Installation
|
## Switch to new Installation
|
||||||
|
|
||||||
```shell
|
```sh
|
||||||
artix-chroot /mnt bash
|
artix-chroot /mnt bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -275,7 +275,7 @@ artix-chroot /mnt bash
|
||||||
|
|
||||||
## Network stack
|
## Network stack
|
||||||
|
|
||||||
```shell
|
```sh
|
||||||
pacman -S wpa_supplicant networkmanager networkmanager-openrc iwd iwd-openrc
|
pacman -S wpa_supplicant networkmanager networkmanager-openrc iwd iwd-openrc
|
||||||
rc-update add NetworkManager
|
rc-update add NetworkManager
|
||||||
rc-update add iwd
|
rc-update add iwd
|
||||||
|
@ -322,19 +322,19 @@ en_DK.UTF-8 UTF-8
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Generate locales
|
2. Generate locales
|
||||||
```shell
|
```sh
|
||||||
echo 'LANG=en_DK.UTF-8' > /etc/locale.conf
|
echo 'LANG=en_DK.UTF-8' > /etc/locale.conf
|
||||||
locale-gen
|
locale-gen
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Set the time zone
|
## Set the timezone
|
||||||
|
|
||||||
> [!example]
|
> [!example]
|
||||||
>`ln -sf /usr/share/zoneinfo/Asia/Dubai /etc/localtime`
|
>`ln -sf /usr/share/zoneinfo/Asia/Dubai /etc/localtime`
|
||||||
|
|
||||||
```shell
|
```sh
|
||||||
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
|
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -342,7 +342,7 @@ ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
|
||||||
|
|
||||||
## Set hardware clock from system clock
|
## Set hardware clock from system clock
|
||||||
|
|
||||||
```shell
|
```sh
|
||||||
hwclock --systohc
|
hwclock --systohc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -350,8 +350,8 @@ hwclock --systohc
|
||||||
|
|
||||||
## Hostname
|
## Hostname
|
||||||
|
|
||||||
Set your preffered hostname, in this case I will be using `artix`
|
Set your preferred hostname, in this case I will be using `artix`
|
||||||
```shell
|
```sh
|
||||||
echo 'artix' > /etc/hostname
|
echo 'artix' > /etc/hostname
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -369,7 +369,7 @@ echo 'artix' > /etc/hostname
|
||||||
|
|
||||||
127.0.0.1 localhost
|
127.0.0.1 localhost
|
||||||
::1 localhost
|
::1 localhost
|
||||||
127.0.1.1 artix.localdomain artix
|
127.0.1.1 artix.localdomain artix
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -483,7 +483,7 @@ GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=UUID=xxxx:root root=/dev/mapper/root"
|
||||||
#GRUB_ENABLE_CRYPTODISK=y
|
#GRUB_ENABLE_CRYPTODISK=y
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Generate the config file
|
4. Generate the config file
|
||||||
```sh
|
```sh
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue