Ntp

From Wsms

Jump to: navigation, search

Note: This page should be titled ntp (all lowercase). It is Ntp due to technical limitations of Mediawiki.

Contents

ntp

ntp is the name of the package on Debian/Ubuntu/Linuxmint systems that contains the ntpd, the ntp deamon. The ntp deamon keep your system clock in sync with a time source on the network. NTP also stands for Network Time Protocol.

installation

On Debian/Ubuntu/Linuxmint, you can install the ntp using Synaptic or from the command line with:

root@lincoln:~# apt-get -y install ntp

configuration

If you have a LAN with several Linux boxes, you probably want one Linux machine use a NTP server on the internet and the rest of your machines to use the first machine as there server.

FIXME: Howto configure the server???

limitations

If your system clock is more than a few minutes off, ntpd may not be albe to sync it. In this case you want to manually intervene with:

root@lincoln:~# /etc/init.d/ntp stop
...
root@lincoln:~# ntpdate pool.ntp.org
...
root@lincoln:~# /etc/init.d/ntp start
...

Also, ntpd doesn't work well on some vitrual machines beacuse the clocks drift too quickly, see 20061215

cavaets

If you have a dual boot (Windows/Linux) box, make sure that Linux uses the system clock set to local time rather than UTC. See UTC.

see also

Linux commands
ntpd
http://www.linuxjournal.com/article/8412
20061215

Personal tools