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:

StateServerStratum
ACTntp.can.connect.com.austratum three
NSWntp.syd.connect.com.austratum two
Queenslandntp.bri.connect.com.austratum three
South Australiantp.ade.connect.com.austratum three
Victoriantp.mel.connect.com.austratum two
Western Australiantp.per.connect.com.austratum 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!

Related Articles

Comments have been disabled.