An open API service indexing awesome lists of open source software.

https://github.com/serioushoax/anythinglinux

Linux related useful items
https://github.com/serioushoax/anythinglinux

archlinux linux opensuse ubuntu

Last synced: about 2 months ago
JSON representation

Linux related useful items

Awesome Lists containing this project

README

          

# AnythingLinux
A place for linux related useful items

## [Arch Linux](https://archlinux.org)
1. [Enable Zram on Arch Linux](https://github.com/SeriousHoax/AnythingLinux#enable-zram-on-arch-linux)
2. [Sign Arch systemd-bootloader using sbctl](https://github.com/SeriousHoax/AnythingLinux#sign-arch-systemd-bootloader-using-sbctl-for-secureboot-support)
## [openSUSE Tumbleweed](https://www.opensuse.org)
1. [Enable Zram on openSUSE](https://github.com/SeriousHoax/AnythingLinux#enable-zram-on-opensuse)

## [Any Distribution](https://www.linux.org/pages/download)
1. [Enable syntax highlighting for nano](https://github.com/SeriousHoax/AnythingLinux#enable-syntax-highlighting-for-nano)

## Arch Linux

### Enable [Zram](https://wiki.archlinux.org/title/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 && rm ~/Zram-install-Arch.sh
```

### Sign Arch systemd-bootloader using [sbctl](https://github.com/Foxboron/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
```
3. Get root privilage,
```
sudo -i
```
4. Check if Setup Mode is enabled,
```
sbctl status
```
5. Create keys,
```
sbctl create-keys
```
6. Enroll Microsoft keys,
```
sbctl enroll-keys -m
```
7. Verify if vendor keys have successfully been enrolled,
```
sbctl status
```
8. Sign systemd EFI,
```
sbctl sign -s -o /usr/lib/systemd/boot/efi/systemd-bootx64.efi.signed /usr/lib/systemd/boot/efi/systemd-bootx64.efi
```
09. Sign all required files automatically,
```
sbctl verify | sed 's/✗ /sbctl sign -s /e'
```
10. Verify if all required files has been signed,
```
sbctl verify
```
11. 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](https://wiki.archlinux.org/title/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 && rm ~/Zram-install-openSUSE.sh
```

## Any Distribution

### Enable [syntax highlighting](https://en.wikipedia.org/wiki/Syntax_highlighting) for [nano](https://www.nano-editor.org)
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](https://github.com/galenguyer/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 && rm ~/nano-syntax-highlighting.sh
```