Skip to content

Instantly share code, notes, and snippets.

@sven-bock
Created April 30, 2018 13:00
Show Gist options
  • Save sven-bock/7f1f8336409b2b098ce54a71d2e59947 to your computer and use it in GitHub Desktop.
Save sven-bock/7f1f8336409b2b098ce54a71d2e59947 to your computer and use it in GitHub Desktop.
Enable and setup swap on your Raspberry Pi
# install
sudo apt-get update
sudo apt-get install dphys-swapfile
# config
sudo nano /etc/dphys-swapfile
# verify with
free
top
# or htop
# swapping autostart
sudo systemctl enable dphys-swapfile
# autostart entfernen
sudo systemctl disable dphys-swapfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment