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...)
(links)
Line 1: Line 1:
-
[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 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.
+
[[: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=
=Installation=
-
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 package OpenNTPD.
+
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].
=Configuration=
=Configuration=
-
Open file /etc/ntpd.conf with favourite text editor and simply put this line into it:
+
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 [http://en.wikipedia.org/wiki/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]].

Revision as of 11:46, 12 April 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.


Installation

There is a NTP client in extras-testing, 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 OpenNTPD package.


Configuration

Open file /etc/ntpd.conf with 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.

Retrieved from "http://bugs.maemo.org/NTP"