[deployment-guide/comm-rel: 16/35] Added the NTP setup section.

dsilas dsilas at fedoraproject.org
Wed Jun 9 12:36:05 UTC 2010


commit cec11a67aef27d38b3dccde34d0811350b776883
Author: Jaromir Hradilek <jhradile at redhat.com>
Date:   Wed Jun 2 13:53:59 2010 +0200

    Added the NTP setup section.

 en-US/Date_and_Time_Configuration.xml |   41 +++++++++++++++++++++++++++++++-
 1 files changed, 39 insertions(+), 2 deletions(-)
---
diff --git a/en-US/Date_and_Time_Configuration.xml b/en-US/Date_and_Time_Configuration.xml
index 6b83bc5..5eded0e 100644
--- a/en-US/Date_and_Time_Configuration.xml
+++ b/en-US/Date_and_Time_Configuration.xml
@@ -203,7 +203,7 @@ Password: </screen>
         <see>date configuration</see>
       </indexterm>
       <para>
-        The <command>date</command> command allows the superuser to set the system date and time:
+        The <command>date</command> command allows the superuser to set the system date and time manually:
       </para>
       <procedure>
         <step>
@@ -253,8 +253,45 @@ Wed Jun  2 11:58:48 CEST 2010</screen>
         </primary>
       </indexterm>
       <para>
-        TODO.
+        As opposed to the manual setup described above, you can also synchronize the system clock with a remote server over the Network Time Protocol (<acronym>NTP</acronym>). 
       </para>
+      <procedure>
+        <step>
+          <para>
+            Open the NTP configuration file <filename>/etc/ntp.conf</filename> in a text editor such as <application>vi</application> or <application>nano</application>, or create a new one if it does not already exist:
+          </para>
+          <screen>~]# <command>nano /etc/ntp.conf</command></screen>
+        </step>
+        <step>
+          <para>
+            Now edit the list of public NTP servers. If you are using &MAJOROSVER;, the file should already contain following lines, but feel free to change or expand these according to your needs:
+          </para>
+          <screen>server 0.rhel.pool.ntp.org
+server 1.rhel.pool.ntp.org
+server 2.rhel.pool.ntp.org</screen>
+        </step>
+        <step>
+          <para>
+            Once you have the list of servers complete, set the proper permissions, giving the unrestricted access to localhost only:
+          </para>
+          <screen>restrict default kod nomodify notrap nopeer noquery
+restrict -6 default kod nomodify notrap nopeer noquery
+restrict 127.0.0.1
+restrict -6 ::1</screen>
+        </step>
+        <step>
+          <para>
+            Then save all changes and restart the NTP daemon:
+          </para>
+          <screen>~]# <command>service ntpd restart</command></screen>
+        </step>
+        <step>
+          <para>
+            Finally, make sure that <command>ntpd</command> daemon is started at boot time:
+          </para>
+          <screen>~]# <command>chkconfig ntpd on</command></screen>
+        </step>
+      </procedure>
     </section>
   </section>
 </chapter>


More information about the docs-commits mailing list