1343
Comment:
|
1726
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
||<tablestyle="width: 100%;" style="border: 0px hidden">~-[:DebianWiki/EditorGuide#translation:Translation(s)]: [:fr/NTP:Français]-~||<style="text-align: right;border: 0px hidden"> (!) [:/Discussion:Discussion]|| | ~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[es/NTP|Español]] - [[it/NTP|Italiano]]-~ |
Line 4: | Line 4: |
Describe in one or two lines what your page is about. | = NTP = Network Time Protocol. This will keep you system date with exact match to actual date. |
Line 6: | Line 7: |
## If your page gets really long, uncomment this Table of Contents [[TableOfContents(2)]] #language en ||<tablestyle="width: 100%;" style="border: 0px hidden">~-[:DebianWiki/EditorGuide#translation:Translation(s)]: none-~||<style="text-align: right;border: 0px hidden"> (!) [:/Discussion:Discussion]|| ---- Network Time Protocol, This will keep you system date with exact match to actual date. ## If your page gets really long, uncomment this Table of Contents [[TableOfContents(2)]] *Type date to see current date and time |
## If your page gets really long, uncomment this Table of Contents ## [[TableOfContents(2)]] == Install and Configure == * Type date to see current date and time |
Line 21: | Line 14: |
*Install NTP | * Install NTP |
Line 23: | Line 16: |
apt-get install ntpdate | aptitude install ntp |
Line 25: | Line 18: |
*Done. *Type '''date''' again to see if the time changed. *[Optional]If you would like to add a server that is closer to you and you know its address. You could type: |
* 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. * Done. == Troubleshooting == * If you run '''ntpq -p''' and you get |
Line 29: | Line 26: |
/etc/init.d/ntp-server stop ntpdate clock.fmt.he.net ntpdate ntp1.tummy.com /etc/init.d/ntp-server start |
No association ID's returned |
Line 34: | Line 28: |
*Run {{{ dpkg-reconfigure ntp }}} *And then again: {{{ ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== ntp.pbx.org xx.xxx.xxx.xxx 2 u - 64 1 33.763 1799619 1.054 xray.metadom.co xx.xxx.xxx.xxx 2 u 1 64 1 40.367 1799619 0.001 hydrogen.cert.u xx.xxx.xxx.xxx 2 u - 64 1 64.740 1799619 0.001 mirror .INIT. 16 u - 64 0 0.000 0.000 0.001 }}} == Public Internet Time Servers == * {{{pool.ntp.org}}} - This points to a random worldwide time server. * {{{europe.pool.ntp.org}}} - This points to a random European time server. * {{{uk.pool.ntp.org}}} - This points to a random United Kingdom based time server. |
|
Line 37: | Line 51: |
##See also: | ##See also: |
Line 39: | Line 53: |
CategoryNetwork | CategoryNetwork |
Translation(s): English - Español - Italiano
NTP
Network Time Protocol. This will keep you system date with exact match to actual date.
Install and Configure
- Type date to see current date and time
date
- Install NTP
aptitude install ntp
- 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.
- Done.
Troubleshooting
If you run ntpq -p and you get
No association ID's returned
- Run
dpkg-reconfigure ntp
- And then again:
ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== ntp.pbx.org xx.xxx.xxx.xxx 2 u - 64 1 33.763 1799619 1.054 xray.metadom.co xx.xxx.xxx.xxx 2 u 1 64 1 40.367 1799619 0.001 hydrogen.cert.u xx.xxx.xxx.xxx 2 u - 64 1 64.740 1799619 0.001 mirror .INIT. 16 u - 64 0 0.000 0.000 0.001
Public Internet Time Servers
pool.ntp.org - This points to a random worldwide time server.
europe.pool.ntp.org - This points to a random European time server.
uk.pool.ntp.org - This points to a random United Kingdom based time server.