Stratum 1 NTP-сервер на Raspberry Pi в 2026 году: DCF77 + GPS/PPS, chrony, libgpiod v2

Stratum 1 NTP-сервер на Raspberry Pi в 2025 году: DCF77 + GPS/PPS, chrony, libgpiod v2, когда все туториалы по «точному времени на Raspberry Pi» сломаны на современных системах. Разбираю почему — и показываю как сделать правильно.

https://habr.com/ru/articles/1018554/

#raspberrypi #C++ #linux #ntp #chrony #gps #dcf77

Stratum 1 NTP-сервер на Raspberry Pi в 2026 году: DCF77 + GPS/PPS, chrony, libgpiod v2

Все туториалы по «точному времени на Raspberry Pi» сломаны на современных системах. Разбираю почему — и показываю как сделать правильно. Предыстория Хотелось иметь дома автономный NTP-сервер, который...

Хабр

Secure time synchronization with NTS

To set the correct time on computers, usually NTP (Network Time Protocol) is used. However NTP is an insecure time synchronization protocol and allows a man-in-the-middle to shift time on an NTP client. To tackle these issues, NTS (Network Time Security) was created which aims to solve these problems. In this article I show how you can configure ntpd-rs and Chrony to use NTS servers. systemd's timesyncd does not support yet NTS, but it's currently in development so hopefully this will be […]

https://blog.frehi.be/2026/03/29/secure-time-synchronization-with-nts/

Secure time synchronization with NTS | Frederik Himpe

How to securely synchronize time with ntpd-rs and Chrony using the NTS protocol.

Frederik Himpe
PSA for time nuts: The #AppArmor profiles in #Debian Trixie for #gpsd and #chrony are broken if you try to use SOCK rather than SHM, for maximum #PPS accuracy. Bit me on #Proxmox 9.1. The #NTP SHM segment has to be polled by definition; SOCK is event-driven, so you only get #UNIX socket latency on pulses. So just put them in complain. Not an issue for me yet. The #SiRFStar IV #USB GPS I scored yesterday doesn't appear to do PPS sadly. Here's hoping, hoping, I stashed my GPSDO in safekeeping!
PSA for people doing network #protocol development in 2026: If you bridge your laptop's #Ethernet port for #KVM guests to run in bridge mode, you can't use hardware timestamping directly for time synchronization, unless you run #IEEE #1588 in Annex F (Ethernet) mode. This applies to #chrony, #ptp4l and #ptpd equally. None of them know anything about bridged operation.

Needed an #NTP server on a Raspberry Pi. To keep it light, I chose #OpenNTPD.

Not a great idea.

If your clock is off by more than 180 seconds, it won't adjust it; logs say

adjtime failed: Invalid argument

Now, according to the man page, it will jump to adjust larger offsets on startup, but apparently #Debian has patched this to require adding `-s` to /etc/default/openntpd.

They also don't support `constraint from` config stanzas used to get a trusted date via HTTPS.

Trying #chrony now.

I configured #chrony shipped with #ProxmoxVE to operate as a server and set up #DNS records on my router to point ntp[1-4].aliyun.com to the local IP of the #Proxmox node with chrony.

According to the internet, ntp[1-4].aliyun.com are 4 of 8 NTP servers used by #PhilipsHue bridge.

Then I blocked internet access for the bridge.

Now we wait and see if it works.

#chrony #proxmoxve #dns #proxmox #philipshue #homelad #selfhost #selfhosted #selfhosting #offline

NTP in practice. Mostly it works. Time to time it's like 8 hours off. Internet connection is working.

I already debugged unreliable NTP once and replaced the unreliable "ntp" NTP daemon with much more reliable "chrony" NTP daemon. But still unreliable.

"Old people don't like computers" - because computers are unreliable! Why would I use something that's unreliable? A tuning fork ground out of quartz, invented by Seiko, connected to a battery, semiconductor amplifier, 15-bit counter, few logic gates, stepper motor, cogwheels, hands and a clock face is much more reliable!

#ntp #unreliable #linuxfail #linux #chrony #ntpd #reliability

@vermaden it i amazing how light you can make many OSs. My #alpinelinux server on a RPi4 was 40MB running #dnsmasq #chrony. Since added #dnscrypt-proxy and #nut-server.

Made progress on packaging #ntpd_rs by @trifectatech for @gentoo :
✅ proper hermetic Rust build
✅ cooked up OpenRC init scripts
✅ runs unprivileged as ntp:ntp
✅ operational #prometheus metrics exporter
✅ man pages

Still a few rough edges but getting there!
#chrony is currently still the better choice but alternatives are always good.

#ntp #rust #gentoo

🌘 全球最穩定的樹莓派?透過熱管理提升 81% 的 NTP 準確性
➤ 調校樹莓派,讓時間跳動精準到飛秒
https://austinsnerdythings.com/2025/11/24/worlds-most-stable-raspberry-pi-81-better-ntp-with-thermal-management/
本文探討如何透過CPU核心釘選與熱穩定化技術,大幅降低樹莓派上網路時間協定 (NTP) 伺服器在頻率變異性與標準偏差。作者發現,CPU溫度變化是導致時間同步不穩定的主因,即使有GPS PPS訊號,CPU頻率縮放和晶體振盪器的溫度依賴性仍會產生時間抖動。為瞭解決此問題,作者透過將核心 0 專用於時間關鍵任務,並讓其他核心產生穩定熱負載,成功將頻率變異性降低 81%,標準偏差降低 77%,進而顯著提升 NTP 服務的穩定性。
+ 太神啦!一直以為樹莓派跑 NTP 頂多就那樣,沒想到還有這麼多學問,特別是溫度對晶體振盪器的影響,真的長知識了。
+ 這個核心釘選和PID熱控制聽起來很專業,對於追求極
#樹莓派 #NTP #Chrony #Linux #效能調校
World's Most Stable Raspberry Pi? 81% Better NTP with Thermal Management - Austin's Nerdy Things

I’ve written before about building microsecond-accurate NTP servers with Raspberry Pi and GPS PPS, and more recently about revisiting the setup in 2025. Both posts focused on the hardware setup and basic configuration to achieve sub-microsecond time synchronization using GPS Pulse Per Second (PPS) signals. But there was a problem. Despite having a stable PPS […]

Austin's Nerdy Things