tonywhitmore.co.uk  

      blog : gallery : wiki : articles : projects : shell scripts : wallpaper : cv : links :
 Project Homepage

NTP
NTP Utilities

Preparation

  1. Download the NTP source code from www.ntp.org.
  2. Burn the file ntp-4.1.1.tar.gz to a CD. This page assumes that the subdirectory /apps is used for the .tar.gz file. The CD-ROM can be a multi-session disk.

Give me more details on this

Booting

  1. Boot your Core Linux PC.
  2. Login as root. You will need to enter the password at the prompt.

Give me more details on this

Extract the source

  1. Place the CD-R in the CD-ROM drive. Mount the CD-ROM drive under /mnt/cdrom.
  2. Change to the /apps directory on the CD-R.
  3. Copy the ntp-4.1.1.tar.gz file to the directory /usr/src.
  4. Change to the /usr/src directory and extract the source from the .tar.gz file.

Give me more details on this

Configure and compile

  1. Change to the /usr/src/ntp-4.1.1 directory.
  2. Run the ./configure script.
  3. Run the make program.
  4. Run the make program with the argument check.
  5. Run the make program with the argument install.

Give me more details on this

NTPdate Initial Testing

  1. Edit the file /etc/services and add the line ntp       123/udp. You should keep your services file in numerical order as "good housekeeping".
  2. Set the system time using the ntpdate program.

Give me more details on this

Automating NTPdate

  1. Append the following line to the /etc/rc.d/rc.mu script:
    /usr/local/bin/ntpdate -su time.foobar.com
    You can also add comments and echoes for your own information.
  2. Adjust the /etc/localtime link to point to the correct timezone in /usr/share/zoneinfo.
  3. Reboot the system and check that the system time is updated.

Give me more details on this

NTP Server Setup

  1. Edit the file /etc/ntp.conf and add the following lines:
    server time1.foobar.com prefer
    server time2.foobar.com
    driftfile /etc/ntp.drift
    authenticate no
  2. Start the NTP daemon with the command /usr/local/bin/ntpd.
  3. The daemon will take up to an hour to calculate the "drift" between your system clock and the remote NTP server.

Give me more details on this

Automating NTP Server

  1. Append the following line to the /etc/rc.d/rc.mu script:
    /usr/local/bin/ntpd
    You can also add comments and echoes for your own information.
  2. Reboot the system and check that the system time is updated.

Give me more details on this

Creative Commons License
The text of this page is licensed under a Creative Commons License.


Valid CSS!     Valid HTML 4.0!     Valid RSS
Original design © For oswd.org by SquireCD