LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs > neonsignal
User Name
Password

Notices

Rate this Entry

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:
Code:
server au.pool.ntp.org
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:
Code:
21 9 * * * /usr/sbin/ntpdate au.pool.ntp.org
This example will schedule a system time update at 9:21 each morning.
Posted in Uncategorized
Views 325 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 08:23 AM.

Main Menu
Advertisement

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