Skip to content

Instantly share code, notes, and snippets.

@inian
Created January 7, 2016 06:08
Show Gist options
  • Save inian/1ffe58ef0cd99b037fb0 to your computer and use it in GitHub Desktop.
Save inian/1ffe58ef0cd99b037fb0 to your computer and use it in GitHub Desktop.
enable swap on ubuntu 14.04
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment