NTP client on Ubuntu
apt-get update apt-get install ntpdate | |
apt-get install ntp >> Configure vi /etc/ntp.conf change the ntp server to ool 0.uk.pool.ntp.org | |
timedatectl date | timedatectl set-timezone BST ntp labuser@HealthBot3:~$ timedatectl set-timezone BST labuser@HealthBot3:~$ date Sat 13 Jun 14:35:25 BST 2020 labuser@HealthBot3:~$ timedatectl Local time: Sat 2020-06-13 14:35:45 BST Universal time: Sat 2020-06-13 13:35:45 UTC RTC time: Sat 2020-06-13 13:35:45 Time zone: Europe/London (BST, +0100) Network time on: yes NTP synchronized: yes RTC in local TZ: no labuser@HealthBot3:~$ |
ntpq -p | |