This is a small .sh sript, which creates SWAP file on Ubuntu.
-
Upload swap.sh file to your Ubuntu server.
-
Run "sh ./swap.sh"
-
Done.
** In some cases you'll have to run it as root user or with sudo in front **
You can open swap.sh file, and change SWAP size or filename.