Hey, today i wanna share a little script to make life easier.
This Script creates a 4 or 8 GB Swapfile, activate it and make it permanent. Clue is here, it don' t uses fallocate for creation, which fails on many distros. It works with the dd command, which is more compatible.
It's for use with sudo or root
./Swap4GB.sh or ./Swap8GB.sh
enjoy