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 big problems and lead to a 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.
Let’s fix it!
OpenNTPD does not work with NTPD this will request you to remove NTPD choose
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.