Setup Time Synchronization Using Command Line
Setup timezone:
sudo timedatectl set-timezone Your/Timezone
Hint: See your timezone: timedatectl list-timezones
Ubuntu’s default install timesyncd instead of ntpd. timesyncd connects to the same time servers and works in roughly the same way, but is more lightweight and more integrated with systemd and the low level workings of Ubuntu.
Type:
timedatectl
If timesyncd isn’t active, turn it on with timedatectl:
sudo timedatectl set-ntp on
Run timedatectl again to confirm the network time status. It may take a minute for the actual sync to happen, but eventually both Network time on: and NTP synchronized: should read yes.
Related articles
Source:
0 Comments