1154
1154
<sect2 id="timeservers" status="review">
1155
1155
<title>Serve the Network Time Protocol</title>
1157
If on top of synchronizing your system you also want to serve NTP information you need an ntp server. The most classic and supported one is <application>ntpd</application>, but it is also very old so there also are <application>openntpd</application> and <application>chrony</application> as alternatives available in the archive.
1157
If in addition to synchronizing your system you also want to serve NTP information you need an NTP server. There are several options with <application>chrony</application>, <application>ntpd</application> and <application>open-ntp</application>.
1158
The recommended solution <application>chrony</application>.
1160
<sect3 id="ntpd" status="review">
1161
<sect3 id="chrony" status="review">
1162
<title>chrony(d)</title>
1163
The ntp daemon ntpd calculates the drift of your system clock and continuously adjusts it, so there are no large corrections that could
1164
lead to inconsistent logs for instance. The cost is a little processing power and memory, but for a modern server this is negligible.
1164
The NTP daemon chronyd calculates the drift and offset of your system clock and continuously adjusts it, so there are no large corrections that could
1165
lead to inconsistent logs for instance. The cost is a little processing power and memory, but for a modern server this is usually negligible.
1168
<sect3 id="ntp-installation" status="review">
1169
<sect3 id="chrony-installation" status="review">
1169
1170
<title>Installation</title>
1171
To install ntpd, from a terminal prompt enter:
1172
To install chrony, from a terminal prompt enter:
1174
<command>sudo apt install ntp</command>
1175
<command>sudo apt install chrony</command>
1178
This will provide two binaries:
1182
chronyd - the actual daemon to sync and serve via the NTP protocol
1187
chronyc - command-line interface for chrony daemon
1178
1194
<sect3 id="timeservers-conf" status="review">
1179
<title>Configuration</title>
1195
<title>Chronyd Configuration</title>
1182
1198
Edit <filename>/etc/ntp.conf</filename> to add/remove server lines.