pavement

Ntp

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
 
(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:
  
# 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
# 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:
 
  # mkdir /usr/local/ntp
 
  # mkdir /usr/local/ntp
 
  # mv snapshotsntp-4.2.0.tar.gz /usr/local/ntp/
 
  # mv snapshotsntp-4.2.0.tar.gz /usr/local/ntp/
 
  # gunzip sn*.tar.gz
 
  # gunzip sn*.tar.gz
 
  # tar xfv snapshotsntp-4.2.0.tar.gz
 
  # tar xfv snapshotsntp-4.2.0.tar.gz
# [[cd] into the directory and do the standard install from source (configure, make, make install)
+
3. [[cd] into the directory and do the standard install from source (configure, make, make install)
 
  # cd snapshotsntp-4.2.0
 
  # cd snapshotsntp-4.2.0
 
  # configure
 
  # configure
Line 19: Line 19:
 
   (a bunch more output)
 
   (a bunch more output)
 
  # make install
 
  # make install
 +
 +
(stub article...more on autostarting NTPd and configuring...also make mention ntp etiquette)
  
 
[[Category: FreeBSD for Servers]]
 
[[Category: FreeBSD for Servers]]
 
[[Category: Ports and Packages]]
 
[[Category: Ports and Packages]]

Revision as of 22:10, 8 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.

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

(stub article...more on autostarting NTPd and configuring...also make mention ntp etiquette)

Personal tools