Skip to content

SeriousHoax/AnythingLinux

Repository files navigation

AnythingLinux

License: GPL v3

A place for linux related useful items

Enable Zram

The commands below will download the installation script from the repository to your home directory, install the required tools, optimize swapping parameters to recommended values, and enable Zram on your device.

curl -o ~/Zram-install-Arch.sh https://raw.githubusercontent.com/SeriousHoax/AnythingLinux/refs/heads/master/Zram-install-Arch.sh && chmod +x ~/Zram-install-Arch.sh && ~/Zram-install-Arch.sh && rm ~/Zram-install-Arch.sh
curl -o ~/Zram-install-Ubuntu.sh https://raw.githubusercontent.com/SeriousHoax/AnythingLinux/refs/heads/master/Zram-install-Ubuntu.sh && chmod +x ~/Zram-install-Ubuntu.sh && ~/Zram-install-Ubuntu.sh && rm ~/Zram-install-Ubuntu.sh
curl -o ~/Zram-install-openSUSE.sh https://raw.githubusercontent.com/SeriousHoax/AnythingLinux/refs/heads/master/Zram-install-openSUSE.sh && chmod +x ~/Zram-install-openSUSE.sh && ~/Zram-install-openSUSE.sh && rm ~/Zram-install-openSUSE.sh

Sign Arch systemd-bootloader using sbctl for SecureBoot support

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

  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 privilege:
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 -E 's|^.* (/.+) is not signed$|sbctl sign -s "\1"|e'
  1. Verify if all required files have been signed:
sbctl verify
  1. Reinstall Bootloader:
bootctl install

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/master/nano-syntax-highlighting.sh && chmod +x ~/nano-syntax-highlighting.sh && ~/nano-syntax-highlighting.sh && rm ~/nano-syntax-highlighting.sh

About

Linux related useful items

Topics

Resources

License

Stars

Watchers

Forks

Languages