Azitech

Azimout's Linux weblog

ntp

with one comment

# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

driftfile /var/lib/ntp/ntp.drift

# Create a log file
logfile /var/log/ntpd

# Log statistics
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

# You do need to talk to an NTP server or two (or three).
server ntp.ubuntu.com 
server swisstime.ethz.ch
server time.ien.it

# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1
Advertisements

Written by azimout

09/07/2008 at 06:45

Posted in Howto

One Response

Subscribe to comments with RSS.

  1. to correct the time, run:
    sudo ntpdate -u swisstime.ethz.ch
    (the -u option overcomes the “the NTP socket is in use, exiting” error)

    azimout

    03/09/2008 at 08:19


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: