Skip to content

Instantly share code, notes, and snippets.

@datfaf
Forked from brianstorti/gist:1107445
Created September 6, 2011 21:55
Show Gist options
  • Save datfaf/1199098 to your computer and use it in GitHub Desktop.
Save datfaf/1199098 to your computer and use it in GitHub Desktop.
Add swap Ubuntu
sudo dd if=/dev/zero of=/swapfile bs=1M count=2048
sudo mkswap /swapfile
gksu gedit /etc/fstab
add to the end:
/swapfile none swap sw 0 0
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment