Skip to content

Instantly share code, notes, and snippets.

@beeman
Created March 14, 2015 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beeman/c9e777e7dd86e3365ae4 to your computer and use it in GitHub Desktop.
Save beeman/c9e777e7dd86e3365ae4 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Create swapfile
fallocate -l 1G /swapfile
chmod 600 /swapfile
mkswap /swapfile
# Activate swapfile on boot
echo '# Activate swapfile on boot' >> /etc/fstab
echo '/swapfile none swap sw 0 0' >> /etc/fstab
# Activate swapfile on running system
swapon /swapfile
# My fancy profile
curl x.beeman.nl/profile.sh | bash
source ~/.profile
# Download and run dokku-alt installer
curl -fsSL https://raw.githubusercontent.com/dokku-alt/dokku-alt/master/bootstrap.sh >> /root/dokku-alt-installer.sh
chmod +x /root/dokku-alt-installer.sh
/root/dokku-alt-installer.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment