Table of contents
Configure NTP in timesyncd.conf
echo "NTP=169.254.169.123" | sudo tee -a /etc/systemd/timesyncd.conf
cat /etc/systemd/timesyncd.conf
- Enable the timesyncd.service
sudo systemctl unmask systemd-timesyncd.service
sudo apt install systemd-timesyncd -y
- Enable the timesyncd.service at boot & Restart
sudo systemctl enable systemd-timesyncd.service
sudo systemctl restart systemd-timesyncd
- Set the system time to be synchronized with NTP
sudo timedatectl set-ntp true