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
- Host: GitHub
- URL: https://github.com/serioushoax/anythinglinux
- Owner: SeriousHoax
- License: gpl-3.0
- Created: 2024-09-22T16:34:40.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-12-11T17:03:45.000Z (7 months ago)
- Last Synced: 2025-12-26T16:44:34.371Z (6 months ago)
- Topics: archlinux, linux, opensuse, ubuntu
- Language: Shell
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```