NTP
(New page: [http://en.wikipedia.org/wiki/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 nee...) |
m (→Installation: openntpd has been in extras for quite some time now) |
||
(3 intermediate revisions not shown) | |||
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. |
+ | ==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]. | |
- | + | ==Configuration== | |
- | + | Open file <code>/etc/openntpd/ntpd.conf</code> with your favourite text editor and simply put this line into it: | |
- | + | ||
- | + | ||
- | Open file /etc/ntpd.conf 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 [ | + | |
- | + | ||
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]] |
Latest revision as of 12:36, 20 September 2010
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 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.
[edit] Installation
There is a NTP client in extras, 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 OpenNTPD package.
[edit] Configuration
Open file /etc/openntpd/ntpd.conf
with your favourite text editor and simply put this line into it:
servers europe.pool.ntp.org
The example configuration file uses European NTP servers. The list by continents and countries is on 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 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.
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.
- This page was last modified on 20 September 2010, at 12:36.
- This page has been accessed 14,489 times.