Network Time Protocol on Arch Linux with OpenNTPD
OpenNTPD is a FREE, easy to use implementation of the Network Time Protocol. It provides the ability to sync the local clock to remote NTP servers and can act as NTP server itself, redistributing the local clock.
OpenNTPD is primarily developed by Henning Brauer as part of the OpenBSD Project.
OpenNTPD is a brand new implementation of the ntp protocol. It is much easier to configure and use than ntpd.
First, the OpenNTPD package must be installed. It is available in the ArchLinux community repository.
pacman -S openntpd
Once installed, the /etc/ntpd.conf file must be edited. This is much easier than with ntpd.
The default configuration is actually usable if all you want is to sync the local computer.
# $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $ # sample ntpd configuration file, see ntpd.conf(5) # Addresses to listen on (ntpd does not listen by default) #listen on * #listen on 127.0.0.1 #listen onĀ ::1 # sync to a single server #server ntp.example.org # use a random selection of 8 public stratum 2 servers # see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers servers pool.ntp.org
To sync to a particular server, uncomment and edit the “server” directive.
server ntp.example.org
The “servers” directive works the same as the “server” directive, however, if the dns name resolves to multiple IP address, ALL of them will be synced to. The default, “pool.ntp.org” is working and should be acceptable in most cases.
pool.ntp.org
If you would like to run OpenNTPD at boot, add openntpd the DAEMONS variable in your /etc/rc.conf.
If you want to see the status of of your syncing, look at /var/log/daemon.log







