Very quick, non-redundant NTP setup using the ntpsec package on Raspios 12/Bookworm. Install ntpsec with:
Pick a Pi to be the master clock, and configure /etc/ntpsec/ntp.conf with:On the other systems, configure /etc/ntpsec/ntp.conf with the hostname or IP address of the master clock:N.B. Only the Pi 5 has a RTC (if you add an optional battery). The OS has "fake-hwclock" which mostly prevents time going backwards when offline (reboot, shutdown, etc), but they won't keep up with real time while offline. You can add a RTC to older Pis. You do not need a RTC to keep a group of systems synced while they are all online, it's only for when they go offline.
Code:
sudo apt install ntpsec
Code:
refclock local
Code:
server 192.0.2.1
Statistics: Posted by Murph9000 — Fri Oct 18, 2024 9:48 am