From e6407d4f4832cd2e6cc98f000ec4ca3a8f141c95 Mon Sep 17 00:00:00 2001 From: exu Date: Tue, 6 Aug 2024 11:16:20 +0200 Subject: [PATCH] Add zram. Reformat package list as table --- pages/02.linux/guides/arch/default.en.md | 89 ++++++++++++++---------- 1 file changed, 51 insertions(+), 38 deletions(-) diff --git a/pages/02.linux/guides/arch/default.en.md b/pages/02.linux/guides/arch/default.en.md index 4fbdb60..fcf8c18 100644 --- a/pages/02.linux/guides/arch/default.en.md +++ b/pages/02.linux/guides/arch/default.en.md @@ -244,38 +244,27 @@ pacstrap /mnt base base-devel linux linux-firmware linux-headers vim git openssh [/shroot] -### Microcode +### Other packages -`amd-ucode` - -`intel-ucode` - -### Filesystems - -Fat32: -`dosfstools mtools` - -Ext4: -`e2fsprogs` - -Btrfs: -`btrfs-progs compsize` - -### Wifi - -`wpa_supplicant` - -### Snapper - -`snapper` - -### Certificates - -`ca-certificates ca-certificates-mozilla` - -### other - -`cups hplip xdg-utils xdg-user-dirs inetutils` +| Package | Category | Component | +| ------------------------- | ------------- | ------------ | +| `amd-ucode` | CPU microcode | +| `intel-ucode` | CPU microcode | +| `dosfstools` | Filesystems | Fat32 | +| `mtools` | Filesystems | Fat32 | +| `e2fsprogs` | Filesystems | Ext4 | +| `btrfs-progs` | Filesystems | Btrfs | +| `compsize` | Filesystems | Btrfs | +| `wpa_supplicant` | Wifi | +| `snapper` | System | Snapshots | +| `ca-certificates` | System | Certificates | +| `ca-certificates-mozilla` | System | Certificates | +| `zram-generator` | System | Zram | +| `cups` | Printing | General | +| `hplip` | Printing | HP | +| `xdg-utils` | System | Defaults | +| `xdg-user-dirs` | System | Defaults | +| `inetutils` | Tools | Networking | ## Generate fstab @@ -342,6 +331,25 @@ passwd [/shroot] +## Configure zram + +Create the file `/etc/systemd/zram-generator.conf` + +```systemd +[zram0] +zram-size = ram / 2 +compression-algorithm = zstd +``` + +[shroot] + +``` +systemctl daemon-reload +systemctl start systemd-zram-setup@zram.service +``` + +[/shroot] + ## Bootloader installation ### rEFInd @@ -368,7 +376,8 @@ refind-install #### Autodetection -`/boot/refind_linux.conf` +`/boot/refind_linux.conf` + ``` "Boot with standard options" "rw loglevel=3 quiet cryptdevice=LABEL=(label):(name) root=/dev/mapper/(name) rootflags=subvol=@" ``` @@ -376,9 +385,10 @@ refind-install #### Manual boot stanza Assuming you use a `/boot` partition containing the `EFI` directory and linux kernels. -`refind-nord-theme` is required for the icon configured below. Install it from the AUR or change the icon to `/EFI/refind/icons/os_arch.png`. +`refind-nord-theme` is required for the icon configured below. Install it from the AUR or change the icon to `/EFI/refind/icons/os_arch.png`. + +`/boot/EFI/refind/refind.conf` -`/boot/EFI/refind/refind.conf` ``` menuentry "Arch Linux" { icon /EFI/refind/themes/nord/icons/os_arch.png @@ -394,7 +404,8 @@ menuentry "Arch Linux" { } ``` -Edit `/boot/EFI/refind/themes/nord/theme.conf` to show keyboard options by removing `hints` from `hideui` +Edit `/boot/EFI/refind/themes/nord/theme.conf` to show keyboard options by removing `hints` from `hideui` + ``` ... hideui singleuser,badges @@ -542,11 +553,12 @@ pacman -S snap-pac ## (rEFInd) Show snapshots in bootmenu -This requires a manual boot entry definition in `/boot/EFI/refind/refind.conf` as shown in [Manual boot stanza](#manual-boot-stanza) +This requires a manual boot entry definition in `/boot/EFI/refind/refind.conf` as shown in [Manual boot stanza](#manual-boot-stanza) `paru -S refind-btrfs` -In `/etc/refind-btrfs.conf`, embed the btrfs logo. +In `/etc/refind-btrfs.conf`, embed the btrfs logo. + ``` ... [boot-stanza-generation.icon] @@ -555,6 +567,7 @@ mode = "embed_btrfs_logo" ``` Use the inverted logo for darker themes such as Nord. + ``` ... [boot-stanza-generation.icon.btrfs-logo] @@ -565,4 +578,4 @@ variant = "inverted" `systemctl enable --now refind-btrfs.service` **NOTE:** this doesn't work yet, as the UUID naming scheme is not supported by refind-btrfs. -See [issue 46](https://github.com/Venom1991/refind-btrfs/issues/46) for details. +See [issue 46](https://github.com/Venom1991/refind-btrfs/issues/46) for details.