Editing NTP

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
[[:wikipedia:Network_Time_Protocol|NTP]] stands for a Network Time Protocol and it is used for keeping device's clock 100% correct by connecting to the NTP servers when needed and getting the accurate time. There is a similar feature in [[Nokia N900|N900's]] Settings -> Date and time -> Update automatically, but it is for updating the time via mobile network. Keeping the time correct with NTP is better solution, because it is not dependent on mobile network, more common and standard, and you have control over it.
[[:wikipedia:Network_Time_Protocol|NTP]] stands for a Network Time Protocol and it is used for keeping device's clock 100% correct by connecting to the NTP servers when needed and getting the accurate time. There is a similar feature in [[Nokia N900|N900's]] Settings -> Date and time -> Update automatically, but it is for updating the time via mobile network. Keeping the time correct with NTP is better solution, because it is not dependent on mobile network, more common and standard, and you have control over it.
-
==Installation==
 
-
There is a NTP client in [[extras]], [http://www.openntpd.org/ OpenNTPD]. It is a widespread Unix/Linux/BSD daemon, which calculates your clock's drift and therefore connects when it is needed, not by schedule. So, enable [[extras]] if necessary (it's enabled by default on the N900) and install the [http://maemo.org/packages/view/openntpd/ OpenNTPD package].
+
=Installation=
-
==Configuration==
+
There is a NTP client in [[extras-testing]], [http://www.openntpd.org/ OpenNTPD]. It is widespread Unix/Linux/BSD daemon, which calculates your clock's drift and therefore connects when it is needed, not by schedule. So, enable extras-testing and install the [http://maemo.org/packages/view/openntpd/ OpenNTPD package].
-
Open file <code>/etc/openntpd/ntpd.conf</code> with your favourite text editor and simply put this line into it:
+
 
 +
=Configuration=
 +
 
 +
Open file <code>/etc/ntpd.conf</code> with favourite text editor and simply put this line into it:
  servers europe.pool.ntp.org
  servers europe.pool.ntp.org
 +
The example configuration file uses European NTP servers. The list by continents and countries is on [http://www.pool.ntp.org/zone/@ ntp.org]. The servers used in this configuration are from pool.ntp.org. Those servers are one of the most accurate in the world. They relay the correct time, which is obtained from institutes, governments, GPS, etc. therefore from [[:wikipedia:Atomic_clock|atomic clocks]].
The example configuration file uses European NTP servers. The list by continents and countries is on [http://www.pool.ntp.org/zone/@ ntp.org]. The servers used in this configuration are from pool.ntp.org. Those servers are one of the most accurate in the world. They relay the correct time, which is obtained from institutes, governments, GPS, etc. therefore from [[:wikipedia:Atomic_clock|atomic clocks]].
 +
After that, save the file and reboot the device. Everything is working now in the background and you will always have correct time set. Don't worry, the daemon does not drain battery.
After that, save the file and reboot the device. Everything is working now in the background and you will always have correct time set. Don't worry, the daemon does not drain battery.
-
And keep in mind that you have to wait some time for the effect to be seen, because <code>ntpd</code> calculates drift first and does not do rapid changes (to keep consistent log files). You can test if it works if you set your time a few minutes back or forth and leave the device connected. The results after initial installation should be seen in an hour or two, after that set your other clocks by your phone's time.
+
 
 +
And keep in mind that you have to wait some time for the effect to be seen, because ntpd calculates drift first and does not do rapid changes (to keep consistent log files). You can test if it works if you set your time a few minutes back or forth and leave the device connected. The results after initial installation should be seen in an hour or two, after that set your other clocks by your phone's time.
[[Category:Software]]
[[Category:Software]]
[[Category:Power users]]
[[Category:Power users]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)
Retrieved from "http://wiki.maemo.org/NTP"