Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...




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
pool 1.uk.pool.ntp.org
pool 2.uk.pool.ntp.org
pool 3.uk.pool.ntp.org


timedatectl


date

timedatectl set-timezone BST


Code Block
titlentp
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


Code Block
titlentpq -p
collapsetrue
root@b2-lan1-client2-dhcp:~# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 0.uk.pool.ntp.o .POOL.          16 p    -   64    0    0.000    0.000   0.000
 1.uk.pool.ntp.o .POOL.          16 p    -   64    0    0.000    0.000   0.000
 2.uk.pool.ntp.o .POOL.          16 p    -   64    0    0.000    0.000   0.000
 3.uk.pool.ntp.o .POOL.          16 p    -   64    0    0.000    0.000   0.000
 ntp.ubuntu.com  .POOL.          16 p    -   64    0    0.000    0.000   0.000
#slideaway.presh 45.66.39.122     2 u   38   64  177   11.758    0.655   0.243
+85.199.214.99 ( .GPS.            1 u   45   64  177   15.021    1.989   0.649
-ns3.turbodns.co 85.199.214.99    2 u   45   64  177   20.480    1.503   0.649
#ns1.luns.net.uk 157.44.176.4     2 u   35   64  177   16.681    1.731   0.267
#ntp1.exa-networ 185.134.196.169  2 u   45   64  177   17.045   -0.103   0.266
+185.57.191.229  .GPS.            1 u   43   64  177   16.284    2.597   0.316
-electra.pinklem 140.203.204.77   2 u   41   64  177   10.237    1.283   0.249
-time.cloudflare 10.21.8.19       3 u   38   64  177   12.204    0.386   0.287
#time.cloudflare 10.21.8.19       3 u   43   64  177   12.071    0.366   0.998
#fluffykins.posi 82.219.4.30      3 u   48   64  177   12.381   -0.471   0.242
-harvest.webfusi 195.66.241.3     2 u   45   64  177   20.643    1.815   0.405
-chilipepper.can 17.253.34.123    2 u   46   64  177   10.746    2.081   0.235
*grey.tidy.org   .GPS.            1 u   39   64  177   29.787    2.533   0.256
-ferrars.curadig 140.203.204.77   2 u   38   64  177   14.755    1.691   0.150
#ntp2.wirehive.n 81.187.26.174    2 u   37   64  177   13.531    2.112   0.232
-time.shf.uk.as4 85.199.214.98    2 u   41   64  177   13.501    1.077   0.570
#alphyn.canonica 94.198.159.10    2 u   40   64  177   84.688    3.272   0.492