sudo fallocate -l 768m swap.filesudo chmod 600 swap.filesudo mkswap swap.filesudo swapon swap.filesudo vi /etc/fstabadd line:/boot/swap.file none swap sw 0 0