Share your knowledge at the LQ Wiki.
Go Back > Blogs > neonsignal
User Name


Rate this Entry

using NTP to synchronize the system clock

Posted 06-01-2012 at 09: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:
21 9 * * * /usr/sbin/ntpdate
This example will schedule a system time update at 9:21 each morning.
Posted in Uncategorized
Views 539 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 10:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration