Last active
June 29, 2017 19:13
-
-
Save touv/9a005a93972a785e212c to your computer and use it in GitHub Desktop.
Add swap on Ubuntu 14.04LTS
This file contains hidden or 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
#!/bin/bash | |
sudo fallocate -l 4G /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo swapon -s | |
# SWAP ENCRYPTION | |
# sudo ecryptfs-setup-swap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment