Correct the system time and setup Network Time Protocol (NTP)

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 20:53, 14 June 2006 by 206.248.128.206 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1. Correct the LinkStation time zone setting. Use the command:

tzconfig

2. Install the necessary NTP packages. Use the command:

apt-get install ntp ntp-simple ntp-server ntpdate

3. Your system will now automatically communicate with NTP servers and adjust the system clock.

4. The NTP client usually synchronizes the system clock upon boot. However, if you rarely reboot your LinkStation then you may wish to manually force ntpdate to resynchronize the system clock. Use the command:

/etc/init.d/ntpdate restart

5. After a few days uptime the clock can drift off by a few minutes. One can make a 'cron' job of the above command easily through the webmin interface. It's recommended not to do this to occur at midnight (or on the hour) as the time servers will usually be under a heavy load.

6. Edit /etc/ntp.conf to use more time servers. Enter in the appropriate place two, three or more as per:

server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org

(:note About ntpd | It may take some time, perhaps even a few weeks, for ntpd to build enough drift data to proactively deal with clock drift:)

7. The NTP daemon will automatically communicate with the available NTP servers and adjust the system clock accordingly. It will also build a drift file to help reduce future clock drift.