pavement

Ntp

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
m (markup)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
Network Time Protocol is a complex and often over-looked part of configuring systems, but without a trustworthy source of time data, all the logging in the world is essentially worthless. An [[NTP]] daemon, creatively named "ntpd", is available via ports, but unfortunately it's missing a patch for the broadcast client (refer to [[http://monkey.org/freebsd/archive/freebsd-questions/200408/msg02738.html this post]]), so while [[ports]] or [[packages]] may be the easiest way to install it, you'll be installing a broken port or package.  
+
Network Time Protocol is a complex and often over-looked part of configuring systems, but without a trustworthy source of time data, all the logging in the world is essentially worthless. An [[NTP]] daemon, creatively named "ntpd", is available via ports, but unfortunately it's missing a patch for the broadcast client (refer to [http://monkey.org/freebsd/archive/freebsd-questions/200408/msg02738.html this post]), so while [[ports]] or [[packages]] may be the easiest way to install it, you'll be installing a broken port or package.  
  
 
==Source Installation==
 
==Source Installation==
Line 5: Line 5:
 
While not particularly hard, you may not be used to installing stuff from source, so here's the crib notes:
 
While not particularly hard, you may not be used to installing stuff from source, so here's the crib notes:
  
1. Go to [[http://ntp.isc.org/bin/view/Main/SoftwareDownloads the ISC's NTP page]] and download the latest source code for version 4.2.0 of NTP (anything dated after March 2003 has the fix)
+
1. Go to [http://ntp.isc.org/bin/view/Main/SoftwareDownloads the ISC's NTP page] and download the latest source code for version 4.2.0 of NTP (anything dated after March 2003 has the fix)
 
  # fetch http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/snapshotsntp-4.2.0.tar.gz
 
  # fetch http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/snapshotsntp-4.2.0.tar.gz
 
2. Make a directory for it and untar and unzip the file in it:
 
2. Make a directory for it and untar and unzip the file in it:

Latest revision as of 18:45, 10 April 2006

Network Time Protocol is a complex and often over-looked part of configuring systems, but without a trustworthy source of time data, all the logging in the world is essentially worthless. An NTP daemon, creatively named "ntpd", is available via ports, but unfortunately it's missing a patch for the broadcast client (refer to this post), so while ports or packages may be the easiest way to install it, you'll be installing a broken port or package.

[edit] Source Installation

While not particularly hard, you may not be used to installing stuff from source, so here's the crib notes:

1. Go to the ISC's NTP page and download the latest source code for version 4.2.0 of NTP (anything dated after March 2003 has the fix)

# fetch http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/snapshotsntp-4.2.0.tar.gz

2. Make a directory for it and untar and unzip the file in it:

# mkdir /usr/local/ntp
# mv snapshotsntp-4.2.0.tar.gz /usr/local/ntp/
# gunzip sn*.tar.gz
# tar xfv snapshotsntp-4.2.0.tar.gz

3. cd into the directory and do the standard install from source (configure, make, make install)

# cd snapshotsntp-4.2.0
# configure
 (lots of output)
# make 
 (a bunch more output)
# make install

That's it, you're done with installing from source, what you need to do now is finish Configuring NTP and setup your system to auto-start it when booting (and your system to update itself via ntpdate).

Personal tools