10.0
10.1
11.0
11.1
11.2
11.3
12.0
12.1
12.2
6.0
6.1
6.2
6.2.0
6.2.0-rc1
6.2.0-rc2
6.3
6.3-rc1
6.3-rc2
6.3-rc3
7.10
7.4
7.5
7.6
7.6-blfs
7.6-systemd
7.7
7.8
7.9
8.0
8.1
8.2
8.3
8.4
9.0
9.1
basic
bdubbs/svn
elogind
gimp3
gnome
kde5-13430
kde5-14269
kde5-14686
kea
ken/TL2024
ken/inkscape-core-mods
ken/tuningfonts
krejzi/svn
lazarus
lxqt
nosym
perl-modules
plabs/newcss
plabs/python-mods
python3.11
qt5new
rahul/power-profiles-daemon
renodr/vulkan-addition
systemd-11177
systemd-13485
trunk
upgradedb
xry111/for-12.3
xry111/intltool
xry111/llvm18
xry111/soup3
xry111/spidermonkey128
xry111/test-20220226
xry111/xf86-video-removal
Last change
on this file since 4033f7d3 was c76806a, checked in by Larry Lawrence <larry@…>, 20 years ago |
grammer fixes
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2250 af4574ff-66df-0310-9fd7-8a98e5e911e0
|
-
Property mode
set to
100644
|
File size:
1.8 KB
|
Rev | Line | |
---|
[39f01ca] | 1 | <sect2>
|
---|
[1c36436] | 2 | <title>Configuring <application><acronym>NTP</acronym></application></title>
|
---|
[39f01ca] | 3 |
|
---|
| 4 | <sect3><title>Config files</title>
|
---|
| 5 | <para><filename>/etc/ntp.conf</filename></para>
|
---|
| 6 | </sect3>
|
---|
| 7 |
|
---|
| 8 | <sect3><title>Configuration Information</title>
|
---|
| 9 |
|
---|
| 10 | <para>The following configuration file defines various <acronym>NTP</acronym>
|
---|
[135e27c] | 11 | stratum 2 servers with open access from different continents. It also
|
---|
[39f01ca] | 12 | creates a drift file where <command>ntpd</command> stores the frequency
|
---|
[1c36436] | 13 | offset. Since the documentation included with the package is sparse,
|
---|
| 14 | visit the <acronym>NTP</acronym> website at
|
---|
[39f01ca] | 15 | <ulink url="http://www.ntp.org/"/> for more information.</para>
|
---|
| 16 |
|
---|
[e8889a20] | 17 | <screen><userinput><command>cat > /etc/ntp.conf << "EOF"</command>
|
---|
[135e27c] | 18 | # Africa
|
---|
| 19 | server tock.nml.csir.co.za
|
---|
| 20 |
|
---|
| 21 | # Asia
|
---|
| 22 | server ntp.shim.org
|
---|
| 23 |
|
---|
| 24 | # Australia
|
---|
| 25 | server ntp.saard.net
|
---|
| 26 |
|
---|
| 27 | # Europe
|
---|
| 28 | server ntp.tuxfamily.net
|
---|
| 29 |
|
---|
| 30 | # North America
|
---|
| 31 | server clock.psu.edu
|
---|
| 32 |
|
---|
[e8889a20] | 33 | driftfile /var/cache/ntp.drift
|
---|
| 34 | <command>EOF</command></userinput></screen>
|
---|
[39f01ca] | 35 | </sect3>
|
---|
| 36 |
|
---|
| 37 | <sect3><title>Synchronizing the time</title>
|
---|
| 38 |
|
---|
[c76806a] | 39 | <para>There are two options. Option one is to run <command>ntpd</command>
|
---|
[9491ec6b] | 40 | continuously and allow it to synchronize the time in a gradual manner. The other
|
---|
[39f01ca] | 41 | option is to run <command>ntpd</command> periodically (using cron)
|
---|
| 42 | and update the time each time <command>ntpd</command> is scheduled.</para>
|
---|
| 43 |
|
---|
[c76806a] | 44 | <para>If you choose Option one, then install the
|
---|
[98d18589] | 45 | <filename>/etc/rc.d/init.d/ntp</filename>
|
---|
| 46 | init script included in the
|
---|
| 47 | <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
| 48 |
|
---|
| 49 | <screen><userinput><command>make install-ntp</command></userinput></screen>
|
---|
[39f01ca] | 50 |
|
---|
[c76806a] | 51 | <para>If you prefer to run ntpd periodically, add the following command to
|
---|
| 52 | root's <filename>crontab</filename>:</para>
|
---|
[39f01ca] | 53 | <screen><userinput>ntpd -q</userinput></screen>
|
---|
| 54 |
|
---|
| 55 | </sect3>
|
---|
| 56 |
|
---|
| 57 | </sect2>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.