ZRAM on Debian/Raspbian

Information about Linux
Post Reply
User avatar
Site Admin
Posts: 107
Joined: Mon Feb 11, 2008 5:46 pm

Mon Apr 03, 2017 8:12 pm

script to enable zram for raspberry pi

Download the script and copy to /usr/bin/ folder

Code: Select all

sudo wget -O /usr/bin/zram.sh https://raw.githubusercontent.com/novaspirit/rpi_zram/master/zram.sh
make file executable

Code: Select all

sudo chmod +x /usr/bin/zram.sh
edit /etc/rc.local file to run script on boot

Code: Select all

sudo nano /etc/rc.local
add line before exit 0

Code: Select all

/usr/bin/zram.sh &

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest