Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3869

Advanced users • Re: How to sync 4 Raspberry pi's

$
0
0
Very quick, non-redundant NTP setup using the ntpsec package on Raspios 12/Bookworm. Install ntpsec with:

Code:

sudo apt install ntpsec
Pick a Pi to be the master clock, and configure /etc/ntpsec/ntp.conf with:

Code:

refclock local
On the other systems, configure /etc/ntpsec/ntp.conf with the hostname or IP address of the master clock:

Code:

server 192.0.2.1
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.

Statistics: Posted by Murph9000 — Fri Oct 18, 2024 9:48 am



Viewing all articles
Browse latest Browse all 3869

Trending Articles