Differences between revisions 4 and 5
Revision 4 as of 2008-05-29 16:39:16
Size: 1357
Editor: ?Folk Theory
Comment: fixed ambiguity
Revision 5 as of 2008-07-31 13:19:09
Size: 1495
Comment: fixed installation instructions
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
apt-get install ntpdate aptitude install ntp-simple
ap
titude install ntpdate
Line 17: Line 18:
 * Type '''date''' again to see if the time changed.
 * Type '''ntpq -p''' to see servers you are syncing with.
 * Type '''date''' again to see if the time changed. You time should be synced in a next minute.

[:DebianWiki/EditorGuide#translation:Translation(s)]: none

(!) ["/Discussion"]


  • Network Time Protocol, This will keep you system date with exact match to actual date.

  • Type date to see current date and time

date
  • Install NTP

aptitude install ntp-simple
aptitude install ntpdate
  • Done.
  • Type ntpq -p to see servers you are syncing with.

  • Type date again to see if the time changed. You time should be synced in a next minute.

  • [Optional]If you would like to add a server that is closer to you and you know its address. You could type:

/etc/init.d/ntp-server stop
ntpdate clock.fmt.he.net
ntpdate ntp1.tummy.com
/etc/init.d/ntp-server start

Using The Cron

To configure the system to synchronize the clock with an Internet Time Server every morning, add the following entry to the /etc/crontab configuration file:

#m h dom mon dow user command 57 5 * * * root /usr/sbin/ntpdate ntp.blueyonder.co.uk

Public Internet Time Servers

uk.pool.ntp.org (This points to a random United Kingdom based time server)