This is a faster, scripted method of configuring a new Ubuntu Linux 20.04 LTS server as outlined in my detailed post Ubuntu Linux Cloud Install
Download the Script
Run the Script
Sample output
Be sure to check the logfile for any errors, then reboot the server.
Swap File
If on Azure, see the instruction below for Swap File on Azure.
If a swap partition was not created by the deployment, create one based on the amount of RAM installed.
Installed RAM (GB) | Swap File (GB) |
---|---|
2 or less | 1 |
3 – 6 | 2 |
7 – 12 | 3 |
13 – 20 | 4 |
Create swap file (example for 1GB swap file)
Swap File on Azure
The Azure WALinuxAgent will automatically create a swap file on the resource (temporary) drive.
Install LTS Enablement Stack for for latest kernel updates
reboot and reconnect with putty as root user
Remove old kernel packages and dependencies
Suggested Next Step