using NTP to synchronize the system clock
Posted 06-01-2012 at 08:45 PM by neonsignal
The network time protocol (NTP) is used to synchronize the system clock with a network of high accuracy clock sources around the world.
A typical way of using ntp is to just install the ntp package, and then edit /etc/ntp/conf and choose a time server, for example:
The ntp daemon will then maintain the local system clock on an ongoing basis.
On a minimal system, to avoid the memory overhead of the ntp daemon, one can use the ntpdate package instead. Time updates have to be done manually or scheduled; for example by adding a cron entry using sudo crontab -e:
This example will schedule a system time update at 9:21 each morning.
A typical way of using ntp is to just install the ntp package, and then edit /etc/ntp/conf and choose a time server, for example:
Code:
server au.pool.ntp.org
On a minimal system, to avoid the memory overhead of the ntp daemon, one can use the ntpdate package instead. Time updates have to be done manually or scheduled; for example by adding a cron entry using sudo crontab -e:
Code:
21 9 * * * /usr/sbin/ntpdate au.pool.ntp.org
Total Comments 0