Skip to content

Commit

Permalink
Updated using shell-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Justus0405 committed Feb 6, 2025
1 parent b448862 commit e434abf
Show file tree
Hide file tree
Showing 22 changed files with 441 additions and 353 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export default defineConfig({
collapsed: false,
items: [
{ text: 'Prevent Lid closing', link: '/8-laptop/prevent-lid.md' },
{ text: 'Change Governor', link: '/8-laptop/cpu-governor.md' },
{ text: 'Battery Optimization', link: '/8-laptop/battery-optimizations.md' }
]
},
Expand Down
6 changes: 5 additions & 1 deletion docs/1-getting-started/grub-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ Run this command to install GRUB:
```bash
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub --removable
```

> [!INFO]
>
> - `--target=x86_64-efi`: For 64-bit EFI systems (leave out for legacy BIOS installations).
> - `--efi-directory=/boot`: Specifies where GRUB is installed.
> - `--bootloader-id=grub`: Sets the bootloader name in the BIOS menu.
Expand All @@ -26,6 +28,7 @@ grub-mkconfig -o /boot/grub/grub.cfg
## 3. Final Steps

- Exit the chroot environment:

```bash
exit
```
Expand All @@ -36,4 +39,5 @@ grub-mkconfig -o /boot/grub/grub.cfg
```

<br><br><br>
# You’ve successfully installed Arch Linux! 🎉

# You’ve successfully installed Arch Linux! 🎉
8 changes: 6 additions & 2 deletions docs/1-getting-started/inside-enviroment.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ systemctl enable NetworkManager
> [!INFO]
> Edit `pacman.conf` to optimize package management.

```bash
nano /etc/pacman.conf
```
Expand All @@ -23,6 +22,7 @@ nano /etc/pacman.conf
> Navigate `nano` with arrow keys. Save with `CTRL + O` and exit with `CTRL + X`. To exit without saving, press `CTRL + X` and `n`.
Add these lines:

```bash
[options]
ILoveCandy
Expand Down Expand Up @@ -67,13 +67,16 @@ hwclock --systohc
> Set the system's language and encoding.
1. Edit `locale.gen` to uncomment your locale:

```bash
nano /etc/locale.gen
```

> [!TIP]
> Use `CTRL + W` to search for your locale.
2. Generate the locale:

```bash
locale-gen
```
Expand Down Expand Up @@ -121,11 +124,12 @@ passwd justus
> This gives `sudo` access to users in the `wheel` group.
1. Open the `sudoers` file:

```bash
EDITOR=nano visudo
```

2. Uncomment this line (remove the `#`):
```bash
%wheel ALL=(ALL:ALL) ALL
```
```
12 changes: 11 additions & 1 deletion docs/1-getting-started/inside-iso.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@ lsblk
> This erases all data on the drive. Back up anything important first.
### For NVMe drives:

```bash
gdisk /dev/nvme0n1
```

### For SATA or HDD drives:

```bash
gdisk /dev/sda1
```

**Steps:**

1. Press `x` for expert mode.
2. Press `z` to wipe the drive, confirming with `y`.

Expand All @@ -50,11 +53,13 @@ cfdisk /dev/nvme0n1
```

Create these partitions:

- **Boot Partition:** 1 GiB (EFI)
- **Swap Partition:** 4 GiB
- **System Partition:** Remaining space

Example layout:

```
p1 = 1GiB, EFI
p2 = 4GiB, Linux Swap
Expand All @@ -64,29 +69,34 @@ p3 = Remaining, Linux Filesystem
## 5. Format the Partitions

### Format Boot Partition (FAT32):

```bash
mkfs.fat -F 32 /dev/nvme0n1p1
```

### Set Up Swap Partition:

```bash
mkswap /dev/nvme0n1p2
swapon /dev/nvme0n1p2
```

### Format System Partition (EXT4):

```bash
mkfs.ext4 /dev/nvme0n1p3
```

## 6. Mount Your Partitions

### Mount System Partition:

```bash
mount /dev/nvme0n1p3 /mnt
```

### Mount Boot Partition:

```bash
mount --mkdir /dev/nvme0n1p1 /mnt/boot
```
Expand Down Expand Up @@ -117,4 +127,4 @@ genfstab -U /mnt >> /mnt/etc/fstab
```bash
arch-chroot /mnt
```
```
83 changes: 41 additions & 42 deletions docs/2-pacman/keyrings.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
> [!NOTE]
> **Only use this guide if you're facing keyring or package installation errors. If not, proceed with the base installation.**
> [!NOTE] > **Only use this guide if you're facing keyring or package installation errors. If not, proceed with the base installation.**
# Resolving Arch Linux Keyring Trust Issues

Expand All @@ -12,22 +11,22 @@ If you encounter issues with GPG keyring trust during your Arch Linux installati
- **Sync the system clock**:

```sh
sudo systemctl enable systemd-timesyncd --now
```
```sh
sudo systemctl enable systemd-timesyncd --now
```

- **Update the keyring**:

```sh
sudo pacman -Sy archlinux-keyring
```
```sh
sudo pacman -Sy archlinux-keyring
```

- **Reinitialize the keyring** (if needed):

```sh
sudo pacman-key --init
sudo pacman-key --populate archlinux
```
```sh
sudo pacman-key --init
sudo pacman-key --populate archlinux
```

- Try the installation again.

Expand All @@ -38,23 +37,23 @@ If you encounter issues with GPG keyring trust during your Arch Linux installati
- **Remove the GPG database**:

```sh
sudo rm -rf /etc/pacman.d/gnupg
```
```sh
sudo rm -rf /etc/pacman.d/gnupg
```

- **Reinitialize and populate the keyring**:

```sh
sudo pacman-key --init
sudo pacman-key --populate archlinux
```
```sh
sudo pacman-key --init
sudo pacman-key --populate archlinux
```

- **Import and trust missing keys** (replace `<KEY_ID>` with the key ID):

```sh
pacman-key --recv-keys <KEY_ID>
pacman-key --lsign-key <KEY_ID>
```
```sh
pacman-key --recv-keys <KEY_ID>
pacman-key --lsign-key <KEY_ID>
```

## **Solution 3: Temporarily Disable Signature Verification**

Expand All @@ -63,22 +62,22 @@ If you encounter issues with GPG keyring trust during your Arch Linux installati
- **Edit `/etc/pacman.conf`** and set `SigLevel = Never`:

```ini
[options]
SigLevel = Never
```
```ini
[options]
SigLevel = Never
```

- **Update the keyring**:

```sh
sudo pacman -Sy archlinux-keyring
```
```sh
sudo pacman -Sy archlinux-keyring
```

- **Re-enable signature checking** after resolving:

```ini
SigLevel = Required DatabaseOptional
```
```ini
SigLevel = Required DatabaseOptional
```

## **Solution 4: Use Reflector for Updated Mirrors**

Expand All @@ -87,18 +86,18 @@ If you encounter issues with GPG keyring trust during your Arch Linux installati
- **Install Reflector**:

```sh
sudo pacman -S reflector
```
```sh
sudo pacman -S reflector
```

- **Fetch the latest mirrors**:

```sh
sudo reflector --country 'Germany' --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
```
```sh
sudo reflector --country 'Germany' --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
```

- **Update the system**:

```sh
sudo pacman -Syyu
```
```sh
sudo pacman -Syyu
```
Loading

0 comments on commit e434abf

Please sign in to comment.