OpenNTPD on Raspberry Pi (Arch Linux ARM)

Raspberry Pi is an ARM based single board computer that does not come with a hardware clock, It depends on the OS to set date and time. If the date and time are not correct it can have really big problems and lead to a really bad disaster. Arch Linux ARM uses NTPD to set the date and time, NTP corrects the date and time every time the Raspberry Pi reboots. If NTPD is failing to set the date and time correctly and you are having trouble getting NTPD set the date and time correctly here is a way to fix it. We will replace NTPD with OpenNTPD, I am using OpenNTPD because this resolved my issue.

Lets fix it!

OpenNTPD does not work with NTPD this will request you to remove NTPD choose y.

pacman -S openntpd  

Enabling OpenNTPD service to startup at boot.

systemctl enable openntpd.service  

Starting OpenNTPD for current session.

systemctl start openntpd.service  

If starting the 'openntpd' service does not help, then try this.

ntpd -s -d  

Your OpenNTPD configuration is stored in /etc/ntpd.conf, you can edit this configuration file to add more ntp servers or tailor it to your preference.

Now you have OpenNTPD installed on Arch Linux ARM, If you are having any problem or still can't fix the date and time issue feel free to leave a comment below.