{"id":581,"date":"2025-07-13T16:23:47","date_gmt":"2025-07-13T14:23:47","guid":{"rendered":"http:\/\/www.f4irx.com\/wordpress\/?p=581"},"modified":"2025-07-13T16:23:47","modified_gmt":"2025-07-13T14:23:47","slug":"serveur-ntp-raspi","status":"publish","type":"post","link":"http:\/\/www.f4irx.com\/wordpress\/index.php\/2025\/07\/13\/serveur-ntp-raspi\/","title":{"rendered":"Serveur NTP Raspi"},"content":{"rendered":"\n<p>Reference : <\/p>\n\n\n\n<p>https:\/\/blog.networkprofile.org\/gps-backed-local-ntp-server\/<br>https:\/\/austinsnerdythings.com\/2021\/04\/19\/microsecond-accurate-ntp-with-a-raspberry-pi-and-pps-gps\/<\/p>\n\n\n\n<p>Commande :<\/p>\n\n\n\n<p>sudo apt update<br>sudo apt upgrade -y<br>sudo raspi-config ( serial port enabled )<\/p>\n\n\n\n<p>sudo apt install gpsd<br>sudo apt install gpsd-clients<br>sudo apt install pps-tools<br>sudo apt install chrony<\/p>\n\n\n\n<p>sudo bash -c \u00ab\u00a0echo &lsquo;# the next 3 lines are for GPS PPS signals&rsquo; &gt;&gt; \/boot\/config.txt\u00a0\u00bb<br>sudo bash -c \u00ab\u00a0echo &lsquo;dtoverlay=pps-gpio,gpiopin=18&rsquo; &gt;&gt; \/boot\/config.txt\u00a0\u00bb<br>sudo bash -c \u00ab\u00a0echo &lsquo;enable_uart=1&rsquo; &gt;&gt; \/boot\/config.txt\u00a0\u00bb<br>sudo bash -c \u00ab\u00a0echo &lsquo;init_uart_baud=9600&rsquo; &gt;&gt; \/boot\/config.txt\u00a0\u00bb<\/p>\n\n\n\n<p>sudo bash -c \u00ab\u00a0echo &lsquo;pps-gpio&rsquo; &gt;&gt; \/etc\/modules\u00a0\u00bb<\/p>\n\n\n\n<p>lsmod | grep pps<br>sudo ppstest \/dev\/pps0<\/p>\n\n\n\n<p>sudo nano \/etc\/default\/gpsd<\/p>\n\n\n\n<p>START_DAEMON=\u00a0\u00bbtrue\u00a0\u00bb<br>USBAUTO=\u00a0\u00bbtrue\u00a0\u00bb<br>DEVICES=\u00a0\u00bb\/dev\/ttyAMA0 \/dev\/pps0&Prime;<br>GPSD_OPTIONS=\u00a0\u00bb-n\u00a0\u00bb<\/p>\n\n\n\n<p>sudo ln -s \/lib\/systemd\/system\/gpsd.service \/etc\/systemd\/system\/multi-user.target.wants\/<\/p>\n\n\n\n<p>gpsmon<\/p>\n\n\n\n<p>sudo nano \/etc\/chrony\/chrony.conf<br>refclock SHM 0 refid NMEA offset 0.000 precision 1e-3 poll 3 noselect<br>refclock PPS \/dev\/pps0 refid PPS lock NMEA poll 3<\/p>\n\n\n\n<p>sudo systemctl restart chrony<\/p>\n\n\n\n<p>watch -n 1 chronyc sources<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Surveillance : GPSMON<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"418\" src=\"http:\/\/www.f4irx.com\/wordpress\/wp-content\/uploads\/2025\/07\/2.png\" alt=\"\" class=\"wp-image-583\"\/><\/figure>\n\n\n\n<p>Client : NTP Check<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"428\" height=\"604\" src=\"http:\/\/www.f4irx.com\/wordpress\/wp-content\/uploads\/2025\/07\/1.png\" alt=\"\" class=\"wp-image-582\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Reference : https:\/\/blog.networkprofile.org\/gps-backed-local-ntp-server\/https:\/\/austinsnerdythings.com\/2021\/04\/19\/microsecond-accurate-ntp-with-a-raspberry-pi-and-pps-gps\/ Commande : sudo apt updatesudo apt upgrade -ysudo raspi-config ( serial port enabled ) sudo apt install gpsdsudo apt install gpsd-clientssudo apt install pps-toolssudo apt install chrony sudo bash -c \u00ab\u00a0echo &lsquo;# the next 3 lines are for GPS PPS signals&rsquo; &gt;&gt; \/boot\/config.txt\u00a0\u00bbsudo bash -c \u00ab\u00a0echo &lsquo;dtoverlay=pps-gpio,gpiopin=18&rsquo; &gt;&gt; \/boot\/config.txt\u00a0\u00bbsudo bash -c \u00ab\u00a0echo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-581","post","type-post","status-publish","format-standard","hentry","category-projet"],"_links":{"self":[{"href":"http:\/\/www.f4irx.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.f4irx.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.f4irx.com\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.f4irx.com\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.f4irx.com\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=581"}],"version-history":[{"count":1,"href":"http:\/\/www.f4irx.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/581\/revisions"}],"predecessor-version":[{"id":584,"href":"http:\/\/www.f4irx.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/581\/revisions\/584"}],"wp:attachment":[{"href":"http:\/\/www.f4irx.com\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.f4irx.com\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=581"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.f4irx.com\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}