LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 722 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:47 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration