feat(index): add obsidian callouts
All checks were successful
build dist / build-dist (push) Successful in 30s

This commit is contained in:
z0x 2025-03-23 20:26:30 -04:00
parent 5ff1ac0a44
commit 6c1d9fce5b
7 changed files with 437 additions and 45 deletions

View file

@ -32,7 +32,7 @@ Use [Rufus](https://rufus.ie/en)
2. Find the corresponding block device for the flash drive in `/dev` folder. Usually it is `/dev/sdb1`.
3. Write the image to the flash drive (assuming your flash drive is `/dev/sdb1`).
> [!Warning]
> [!warning]
> This command will wipe the `/dev/sdb1` partition
@ -44,7 +44,7 @@ sudo dd bs=4M if=~/Downloads/artix-base-openrc-*-x86_64.iso of=/dev/sdb1 conv=fs
## Boot the live environment
> [!Info]
> [!info]
> Artix Linux installation images do not support Secure Boot. You will need to disable Secure Boot in your BIOS to boot the installation medium.
1. Power off your PC.
@ -80,7 +80,7 @@ scan wifi
services
```
> [!Tip]
> [!tip]
> Network names can be tab-completed.
> [!example]
@ -116,7 +116,7 @@ pacman -Sy gdisk
gdisk /dev/nvme0n1
```
> [!Note]
> [!note]
> `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.
@ -153,15 +153,15 @@ Do you want to proceed? (Y/N): y
lsblk
```
> [!Note]
>It should look something like this:
```shell title="lsblk"
NAME MAJ:MIN RM SIZE RO TYPE
nvme0n1 259:0 0 465,8G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part
└─nvme0n1p2 259:2 0 465,3G 0 part
```
> [!note]
> It should look something like this
>
> ```shell title="lsblk"
> NAME MAJ:MIN RM SIZE RO TYPE
> nvme0n1 259:0 0 465,8G 0 disk
> ├─nvme0n1p1 259:1 0 512M 0 part
> └─nvme0n1p2 259:2 0 465,3G 0 part
> ```
---
@ -169,7 +169,7 @@ nvme0n1 259:0 0 465,8G 0 disk
1. Encrypt your root partition
> [!Tip]
> [!tip]
>Make sure to enter a secure passphrase and to write it down
```shell
@ -215,16 +215,16 @@ mount -m /dev/nvme0n1p1 /mnt/boot
lsblk
```
> [!Note]
> It should look something like this:
```shell title="lsblk"
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 465,8G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /mnt/boot
└─nvme0n1p2 259:2 0 465,3G 0 part
└─root 254:0 0 465,2G 0 crypt /mnt
```
> [!note]
> It should look something like this
>
> ```shell title="lsblk"
> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
> nvme0n1 259:0 0 465,8G 0 disk
> ├─nvme0n1p1 259:1 0 512M 0 part /mnt/boot
> └─nvme0n1p2 259:2 0 465,3G 0 part
> └─root 254:0 0 465,2G 0 crypt /mnt
> ```
---
@ -236,7 +236,7 @@ Install the base system, kernel, init system and other essential packages.
basestrap /mnt base linux linux-firmware openrc elogind-openrc cryptsetup cryptsetup-openrc efibootmgr doas nano
```
> [!Note]
> [!note]
> Install AMD or Intel microcode, depending on your system's CPU
### AMD CPU
@ -289,7 +289,7 @@ wifi.backend=iwd
### MAC randomization
> [!Info]
> [!info]
>MAC randomization can be used for increased privacy by not disclosing your real MAC address to the WiFi network.
```ini
@ -306,7 +306,7 @@ wifi.cloned-mac-address=random
### Set the locale
> [!Note]
> [!tip]
>Feel free to change `en_DK.UTF-8` to your preferred locale such as `en_US.UTF-8` or `en_GB.UTF-8`
1. Uncomment `en_DK.UTF-8`
@ -331,7 +331,7 @@ locale-gen
## Set the time zone
> [!Example]
> [!example]
>`ln -sf /usr/share/zoneinfo/Asia/Dubai /etc/localtime`
```shell
@ -350,7 +350,7 @@ hwclock --systohc
## Hostname
- Set your preffered hostname, in this case I will be using `artix`
Set your preffered hostname, in this case I will be using `artix`
```shell
echo 'artix' > /etc/hostname
```
@ -400,7 +400,7 @@ passwd
2. Create a user and set his password.
> [!Tip]
> [!tip]
>Change `artix` to your desired username
```sh
@ -431,7 +431,7 @@ chmod -c 0400 /etc/doas.conf
## Boot loader
### Check for UEFI support
> [!Tip]
> [!tip]
>If you see a bunch of files listed, use EFISTUB.
>If you do not see a bunch of files listed, your system does not support UEFI and you should use GRUB.
@ -448,7 +448,7 @@ blkid -s UUID -o value /dev/nvme0n1p2
2. Create a boot entry
> [!Tip]
> [!tip]
>Replace xxxx with the UUID that you just obtained
>Replace `intel-ucode.img` with `amd-ucode.img` if you have an AMD CPU
@ -471,19 +471,19 @@ blkid -s UUID -o value /dev/nvme0n1p2
3. Edit the GRUB config file
> [!Note]
>It should look something like this with xxxx being the UUID that you just obtained
```ini
GRUB_CMDLINE_LINUX="cryptdevice=UUID=550e8400-e29b-41d4-a716-446655440000:root root=/dev/mapper/root"
GRUB_ENABLE_CRYPTODISK=y
```
> [!note]
> It should look something like this with xxxx being the UUID that you just obtained
>
> ```ini
> GRUB_CMDLINE_LINUX="cryptdevice=UUID=550e8400-e29b-41d4-a716-446655440000:root root=/dev/mapper/root"
> GRUB_ENABLE_CRYPTODISK=y
> ```
```diff
<!-- /etc/default/grub -->
+ GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=UUID=xxxx:root root=/dev/mapper/root" ...
- #GRUB_ENABLE_CRYPTODISK=y
+ GRUB_ENABLE_CRYPTODISK=y
- #GRUB_ENABLE_CRYPTODISK=y
```
6. Generate the config file
@ -497,7 +497,7 @@ grub-mkconfig -o /boot/grub/grub.cfg
1. You can now reboot and enter into your new installation
> [!Note]
> [!note]
> Unplug your flash drive after the screen turns black
```sh
@ -525,7 +525,7 @@ doas sh -c "curl https://archlinux.org/mirrorlist/all -o /etc/pacman.d/mirrorlis
2. Activate Arch mirrors
> [!Note]
> [!note]
> This file requires root permissions to edit
```diff
@ -543,7 +543,7 @@ doas sh -c "curl https://archlinux.org/mirrorlist/all -o /etc/pacman.d/mirrorlis
3. Edit the pacman config file
> [!Note]
> [!note]
> This file requires root permissions to edit
```ini