A new Linode instance provisions 512MB swap space. We wish to increase this to 1GB prior to commencing our work.
Configure Linode Swap Space
Our examples use the vi editor except where nano is used on system files, and the lowest cost shared instance of 1GB RAM and 1CPU. It is worth noting Amazon EC2’s t4g.nano as used for development/testing has 0.5GB and the t4g.micro (for ARM) has 1GB and 2CPU with burst, or you can look at the t3a instances for x86 architecture.
Create a Linode
You would learn how to create a Linode in your region. We use the lowest cost shared plan at USD $5 per month. You may add $2 for backups, then with GST you have a monthly bill of USD $7.70.
As you add the Linode, you need to previously have created a Firewall (see that menu on the left) which is like an AWS EC2 Security Group. See the next article for those settings – port 80, port 442 and so on, and an SSH Key User (we don’t add keys though.)
This user name will be used in the shell terminal login later.
We do not use an encrypted disk unless of course of wish to have that. (Some processing would be used to decrypt.)
Swap Space
Power Off the Linode instance.
Under the Storage tab and the 512MB swap space entry, if you click on the right menu and “Resize”, you will see “Maximum size: 512 MB”. We therefore have to remove 512MB from the Linode disk entry just above it. e.g. from 25088MB to 24,576.
When resizing is completed, we increase the swap space to 1GB. You will see “Maximum size: 1024 MB” on the swap disk, so we increase it to this amount.
You may rename the swap space, e.g. 1024 MB Swap Image
Restart the instance.

