~paelzer/serverguide/serverguide-chrony-18.04

« back to all changes in this revision

Viewing changes to serverguide/C/network-config.xml

  • Committer: Christian Ehrhardt
  • Date: 2018-02-23 09:36:35 UTC
  • Revision ID: christian.ehrhardt@canonical.com-20180223093635-1orn6zp01jj7nfji
convert into and install section of ntpd to chrony

Show diffs side-by-side

added added

removed removed

Lines of Context:
1154
1154
<sect2 id="timeservers" status="review">
1155
1155
   <title>Serve the Network Time Protocol</title>
1156
1156
   <para>
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>.
1158
1159
   </para>
1159
1160
 
1160
 
<sect3 id="ntpd" status="review">
1161
 
   <title>ntpd</title>
 
1161
<sect3 id="chrony" status="review">
 
1162
   <title>chrony(d)</title>
1162
1163
   <para>
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.
1165
1166
   </para>
1166
1167
</sect3>
1167
1168
 
1168
 
<sect3 id="ntp-installation" status="review">
 
1169
<sect3 id="chrony-installation" status="review">
1169
1170
   <title>Installation</title>
1170
1171
   <para>
1171
 
   To install ntpd, from a terminal prompt enter:
 
1172
   To install chrony, from a terminal prompt enter:
1172
1173
   </para>
1173
1174
<screen>
1174
 
<command>sudo apt install ntp</command>
 
1175
<command>sudo apt install chrony</command>
1175
1176
</screen>
 
1177
   <para>
 
1178
       This will provide two binaries:
 
1179
        <itemizedlist>
 
1180
          <listitem>
 
1181
            <para>
 
1182
              chronyd - the actual daemon to sync and serve via the NTP protocol
 
1183
            </para>
 
1184
          </listitem>
 
1185
          <listitem>
 
1186
            <para>
 
1187
              chronyc - command-line interface for chrony daemon
 
1188
            </para>
 
1189
          </listitem>
 
1190
        </itemizedlist>
 
1191
   </para>
1176
1192
</sect3>
1177
1193
 
1178
1194
<sect3 id="timeservers-conf" status="review">
1179
 
  <title>Configuration</title>
 
1195
  <title>Chronyd Configuration</title>
1180
1196
 
1181
1197
  <para>
1182
1198
  Edit <filename>/etc/ntp.conf</filename> to add/remove server lines.