Differences between version 4 and previous revision of NTPNotes.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 4 | Last edited on Monday, October 15, 2007 10:02:12 pm | by AristotlePagaltzis | Revert |
Older page: | version 3 | Last edited on Monday, October 15, 2007 9:57:14 pm | by AristotlePagaltzis | Revert |
@@ -6,17 +6,19 @@
# Pick some [NTPServers] to synch with.
# If necessary, fix your system time.
# Start the dæmon.
-<verbatim>
-aptitude install ntp
-/etc/init.d/ntp stop
-echo
'server nz.pool.ntp.org
' >> /etc/ntp.conf
-ntpdate nz.pool.ntp.org # optional
-/etc/init.d/ntp start
-</verbatim>
+All in all:''
''
-Of course you would actually use a TextEditor to add the [NTPServers] to <tt>/etc/ntp.conf</tt>.
+ <pre>
+ aptitude install ntp
+ /etc/init.d/ntp stop
+ echo 'server ''nz.pool.ntp.org''~' >> /etc/ntp.conf
+ ntpdate ''nz.pool.ntp.org'' # optional
+ /etc/init.d/ntp start
+ </pre>
+
+
Of course you would actually use a TextEditor to add the [NTPServers] to <tt>/etc/ntp.conf</tt>, and you would use whichever server is appropriate in place of <tt>nz.pool.ntp.org
</tt>.
The [ntpdate(8)] step is necessary only if your local clock is way off from the time server’s time, in which case the [NTP] dæmon may terminate. Note that even [ntpdate(8)] adjusts the time only gradually if within a certain time range – if you don't want that, use the <tt>-b</tt> option.
!! See also