Keeping track of time with ntp in Linux
So today we had to move our clocks forward 1 hour (at 2am). Just realised that our Ubuntu box (zeus
) was not displaying the right time to begin with (prior to the change). So to keep your computer clock in time with the world, use ntp.
sudo ntpdate [timeserver]
I use the Melbourne AAPT time-server but you can find another here or if your an aussie, use these:
State | Server | Stratum |
---|---|---|
ACT | ntp.can.connect.com.au | stratum three |
NSW | ntp.syd.connect.com.au | stratum two |
Queensland | ntp.bri.connect.com.au | stratum three |
South Australia | ntp.ade.connect.com.au | stratum three |
Victoria | ntp.mel.connect.com.au | stratum two |
Western Australia | ntp.per.connect.com.au | stratum three |
Configure your /etc/ntpd.conf
with
driftfile /var/lib/ntp/ntp.drift
server ntp.mel.connect.com.au
So how far off was zeus
?
4 Oct 21:39:46 ntpdate[24844]: step time server 192.189.54.17 offset -1225.284656 sec
eeek!
Comments have been disabled.