Managing Ubuntu Server 20.04

Anything related to managing Ubuntu Server 20.04

Disabling IPv6 address on Ubuntu 20.04 LTS Focal Fossa step by step instructions

Objective: To disable ipv6 where it is persistent among reboots

In case you need more permanent solution to disable IPv6 even after system reboot follow the steps below:

STEP 1:
As an administrative user open up the /etc/default/grub file using your favorite text editor and make to following changes:
FROM:
GRUB_CMDLINE_LINUX_DEFAULT=""
TO:
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"


STEP 2:

Once ready update Grub menu:
$ sudo update-grub
In case you need to re-enable the IPv6 network addresses simply remove the ipv6.disable=1 from the /etc/default/grub file and run the update-grub command.

Removing cloud-init from Ubuntu 20.04

ObjectiveTo disable or remove cloud-init from your ubuntu 20.04 Server

Method 1: Disable cloud-init from file
This is the safest and the easiest method. We only need to create cloud-init.disabled file in /etc/cloud directory and reboot the system.
sudo touch /etc/cloud/cloud-init.disabled
init 6

Method 2: Remove cloud-init package and folder
This last method is not disabling cloud-init but completely removing cloud-init package from your Ubuntu Server machine.
sudo apt purge cloud-init -y
sudo rm -rf /etc/cloud && sudo rm -rf /var/lib/cloud/
init 6

 

You will see that boot time has dramatically decreased.