-
-
Save addeeandra/a8beaa717deb9fdc6335c548552ed04e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure to run `update` and `upgrade` before proceeding, and if there is kernel update, please reboot before continue | |
#!/bin/bash | |
sudo nala install linux-firmware linux-generic ronn build-essential pkg-config | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
mkdir -p ~/downloads | |
cd ~/downloads | |
git clone https://github.com/systemd/zram-generator.git | |
cd zram-generator | |
# fresh server installation might fail with | |
# Cargo: No Such File Directory. | |
# If occured, then run `apt install cargo`. | |
make build && sudo make install NOBUILD=true | |
touch /etc/systemd/zram-generator.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment