Home > Linux/Unix, Operating Systems > Keeping track of time with ntp in Linux

Keeping track of time with ntp in Linux

October 4th, 2009 Leave a comment Go to comments

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:

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 offset -1225.284656 sec


{lang: 'en-GB'}
  1. No comments yet.
  1. No trackbacks yet.