Skip to content

SeriousHoax/AnythingLinux

Repository files navigation

AnythingLinux

A place for linux related useful items

  1. Enable Zram on Arch Linux
  2. Sign Arch systemd-bootloader using sbctl
  1. Enable Zram on openSUSE
  1. Enable syntax highlighting for nano

Arch Linux

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

  1. First of all enable secure boot in your BIOS and set it to setup mode

  2. Install sbctl,

sudo pacman -S sbctl
  1. Get root privilage,
sudo -i
  1. Check if Setup Mode is enabled,
sbctl status
  1. Create keys,
sbctl create-keys
  1. Enroll Microsoft keys,
sbctl enroll-keys -m
  1. Verify if vendor keys have successfully been enrolled,
sbctl status
  1. Sign systemd EFI,
sbctl sign -s -o /usr/lib/systemd/boot/efi/systemd-bootx64.efi.signed /usr/lib/systemd/boot/efi/systemd-bootx64.efi
  1. Sign all required files automatically,
sbctl verify | sed 's/✗ /sbctl sign -s /e'
  1. Verify if all required files has been signed,
sbctl verify
  1. 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

openSUSE Tumbleweed

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

Any Distribution

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

About

Linux related useful items

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages