Posts Tagged ‘ntp.conf’

Keeping track of time with ntp in Linux

October 4th, 2009 No 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 stratum three
NSW stratum two
Queensland stratum three
South Australia stratum three
Victoria stratum two
Western Australia stratum three

Configure your /etc/ntpd.conf with

driftfile /var/lib/ntp/ntp.drift

So how far off was zeus?

4 Oct 21:39:46 ntpdate[24844]: step time server offset -1225.284656 sec


{lang: 'en-GB'}