Things to do after deploying a Ubuntu server

Disable ipv6

Create /etc/sysctl.d/60-ipv6-disable.conf with the following contents:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Run service procps restart


Change timezone

Source: https://askubuntu.com/a/594186

timedatectl set-timezone Asia/Kolkata

# or use

dpkg-reconfigure tzdata

Change hostname

To do this read: https://graspingtech.com/change-hostname-ubuntu-16-04/

Change apt mirror

Read: https://askubuntu.com/a/1013269