A place for linux related useful items
Enable Zram on Arch Linux
Copy the code below and paste it into your Terminal. It will download the Zram-install-Arch.sh
script from the repository to your home
directory, install the required tool for configuration, optimize the swapping parameters to the recommended values, and enable it on your device
curl -o ~/Zram-install-Arch.sh https://raw.githubusercontent.com/SeriousHoax/AnythingLinux/refs/heads/main/Zram-install-Arch.sh && chmod +x ~/Zram-install-Arch.sh && ~/Zram-install-Arch.sh
Sign Arch systemd-bootloader using sbctl for SecureBoot support
-
First of all enable
secure boot
in your BIOS and set it tosetup mode
-
Install sbctl,
sudo pacman -S sbctl
- Get root privilage,
sudo -i
- Check if Setup Mode is enabled,
sbctl status
- Create keys,
sbctl create-keys
- Enroll Microsoft keys,
sbctl enroll-keys -m
- Verify if vendor keys have successfully been enrolled,
sbctl status
- Sign systemd EFI,
sbctl sign -s -o /usr/lib/systemd/boot/efi/systemd-bootx64.efi.signed /usr/lib/systemd/boot/efi/systemd-bootx64.efi
- Sign all required files automatically,
sbctl verify | sed 's/✗ /sbctl sign -s /e'
- Verify if all required files has been signed,
sbctl verify
- Reinstall Bootloader,
bootctl install
To sign systemd-boot for distributions other than Arch, modify step 2 according to the information provided on sbctl's GitHub.
The systemd-boot configuration file is located at, /boot/loader/loader.conf
Enable Zram on openSUSE
Copy the code below and paste it into your Terminal. It will download the Zram-install-openSUSE.sh
script from the repository to your home
directory, install the required tool for configuration, optimize the swapping parameters to the recommended values, and enable it on your device
curl -o ~/Zram-install-openSUSE.sh https://raw.githubusercontent.com/SeriousHoax/AnythingLinux/refs/heads/main/Zram-install-openSUSE.sh && chmod +x ~/Zram-install-openSUSE.sh && ~/Zram-install-openSUSE.sh
Enable syntax highlighting for nano
Copy and paste the code into your Terminal. It will download the nano-syntax-highlighting.sh
script from this repository to your home directory, download all the required files from nano-syntax-highlighting and configure them on your system
curl -o ~/nano-syntax-highlighting.sh https://raw.githubusercontent.com/SeriousHoax/AnythingLinux/refs/heads/main/nano-syntax-highlighting.sh && chmod +x ~/nano-syntax-highlighting.sh && ~/nano-syntax-highlighting.sh