From fbc9c70c6d75f7f95fe0719181d002739b1ff7b3 Mon Sep 17 00:00:00 2001 From: z0x Date: Sat, 17 May 2025 12:57:35 -0400 Subject: [PATCH] fix: correct typos and formatting in Alpine and Artix installation guides --- src/content/alpine-install-guide/index.md | 6 +- src/content/artix-install-guide/index.md | 70 +++++++++++------------ 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/src/content/alpine-install-guide/index.md b/src/content/alpine-install-guide/index.md index f6879f5..6d11af9 100644 --- a/src/content/alpine-install-guide/index.md +++ b/src/content/alpine-install-guide/index.md @@ -8,7 +8,7 @@ date: 2025-05-04 ## 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 > [!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 >doas apk add [your_package]@testing @@ -177,7 +177,7 @@ doas apk del shadow #### 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 doas apk add iptables ip6tables diff --git a/src/content/artix-install-guide/index.md b/src/content/artix-install-guide/index.md index cf5c7b7..680bbd1 100644 --- a/src/content/artix-install-guide/index.md +++ b/src/content/artix-install-guide/index.md @@ -8,7 +8,7 @@ date: 2025-01-07 ## 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 -```shell +```sh 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 -```shell +```sh rfkill unblock wifi ip link set wlan0 up connmanctl ``` -```shell +```sh agent on scan wifi services @@ -86,14 +86,14 @@ services > [!example] > connect wifi_dc85de_383039_managed_psk -```shell +```sh connect {your WiFi name} quit ``` ### Verify internet connectivity -```shell +```sh ping artixlinux.org ``` @@ -102,7 +102,7 @@ ping artixlinux.org ## Update the system clock Activate the NTP daemon to synchronize the computer's real-time clock -```shell +```sh rc-service ntpd start ``` @@ -111,7 +111,7 @@ rc-service ntpd start ## Partition the disk 1. Install and run `gdisk` -```shell +```sh pacman -Sy gdisk 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. 2. Delete any existing partitions. Repeat until none are left. -```shell +```sh Command (m for help): d ``` 3. Create a boot partition -```shell +```sh Command (m for help): n Partition number (1-128, default 1): First sector (...): @@ -134,7 +134,7 @@ Hex code or GUID (...): ef00 ``` 4. Create a root partition -```shell +```sh Command (m for help): n Partition number (2-128, default 1): First sector (...): @@ -143,13 +143,13 @@ Hex code or GUID (...): 8300 ``` 5. Write the changes -```shell +```sh Command (m for help): w Do you want to proceed? (Y/N): y ``` 6. Verify partitioning -```shell +```sh lsblk ``` @@ -172,27 +172,27 @@ lsblk > [!tip] >Make sure to enter a secure passphrase and to write it down -```shell +```sh cryptsetup luksFormat /dev/nvme0n1p2 Are you sure (Type `yes` in capital letters): YES ``` 2. Open the encrypted partition -```shell +```sh cryptsetup open /dev/nvme0n1p2 root ``` --- -## Create file systems +## Create filesystems 1. Create the boot file system -```shell +```sh mkfs.fat -F32 /dev/nvme0n1p1 ``` 1. Create the root file system -```shell +```sh mkfs.ext4 /dev/mapper/root ``` @@ -201,17 +201,17 @@ mkfs.ext4 /dev/mapper/root ## Mount file systems 1. Mount the root file system -```shell +```sh mount /dev/mapper/root /mnt ``` 2. Mount the boot file system -```shell +```sh mount -m /dev/nvme0n1p1 /mnt/boot ``` 3. Verify mounting -```shell +```sh lsblk ``` @@ -232,7 +232,7 @@ lsblk 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 ``` @@ -243,7 +243,7 @@ basestrap /mnt base linux linux-firmware openrc elogind-openrc cryptsetup crypts Install AMD CPU microcode updates -```shell +```sh basestrap /mnt amd-ucode ``` @@ -251,7 +251,7 @@ basestrap /mnt amd-ucode Install Intel CPU microcode updates -```shell +```sh basestrap /mnt intel-ucode ``` @@ -259,7 +259,7 @@ basestrap /mnt intel-ucode ## Generate file system table -```shell +```sh fstabgen -U /mnt >> /mnt/etc/fstab ``` @@ -267,7 +267,7 @@ fstabgen -U /mnt >> /mnt/etc/fstab ## Switch to new Installation -```shell +```sh artix-chroot /mnt bash ``` @@ -275,7 +275,7 @@ artix-chroot /mnt bash ## Network stack -```shell +```sh pacman -S wpa_supplicant networkmanager networkmanager-openrc iwd iwd-openrc rc-update add NetworkManager rc-update add iwd @@ -322,19 +322,19 @@ en_DK.UTF-8 UTF-8 ``` 2. Generate locales -```shell +```sh echo 'LANG=en_DK.UTF-8' > /etc/locale.conf locale-gen ``` --- -## Set the time zone +## Set the timezone > [!example] >`ln -sf /usr/share/zoneinfo/Asia/Dubai /etc/localtime` -```shell +```sh 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 -```shell +```sh hwclock --systohc ``` @@ -350,8 +350,8 @@ hwclock --systohc ## Hostname -Set your preffered hostname, in this case I will be using `artix` -```shell +Set your preferred hostname, in this case I will be using `artix` +```sh echo 'artix' > /etc/hostname ``` @@ -369,7 +369,7 @@ echo 'artix' > /etc/hostname 127.0.0.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 ``` -6. Generate the config file +4. Generate the config file ```sh grub-mkconfig -o /boot/grub/grub.cfg ```