{"id":612,"date":"2013-11-03T15:08:49","date_gmt":"2013-11-03T15:08:49","guid":{"rendered":"http:\/\/ava.upuaut.net\/?p=612"},"modified":"2015-01-28T20:33:20","modified_gmt":"2015-01-28T20:33:20","slug":"5-minute-guide-to-making-an-gps-synchronised-ntp-server-based-on-a-pi","status":"publish","type":"post","link":"https:\/\/ava.upuaut.net\/?p=612","title":{"rendered":"5 minute guide to making an GPS synchronised NTP Server based on a Pi"},"content":{"rendered":"<p style=\"text-align: center;\"><strong><br \/>\nSuperseded by this\u00a0<a href=\"http:\/\/ava.upuaut.net\/?p=726\">http:\/\/ava.upuaut.net\/?p=726<\/a><\/strong><\/p>\n<p>These instructions no longer work please review the article above.<\/p>\n<p>&nbsp;<\/p>\n<p>EDIT : I&#8217;ve confirmed the version of NTP provided in the Open Chaos download below isn&#8217;t susceptible to the DRDoS \/ Amplification Attack using ntpdc monlist command discussed here : http:\/\/web.nvd.nist.gov\/view\/vuln\/detail?vulnId=CVE-2013-5211<\/p>\n<p>Working in IT I&#8217;m aware of how keeping accurate time is important, generally most of the time we will point our devices \/ equipment at uk.pool.ntp.org however there may be situations where a local time source is preferable. This can be for a number of reasons, \u00a0where no internet is available, radio amateur&#8217;s doing meteor scatter etc.<\/p>\n<p>David Taylor from <a href=\"http:\/\/www.satsignal.eu\/\" target=\"_blank\">Satsignal.eu<\/a> has done a <a href=\"www.satsignal.eu\/ntp\/Raspberry-Pi-NTP.html\" target=\"_blank\">comprehensive write up of getting the Pi<\/a> to work as a Stratum-1 NTP Server. Taking this work Hauke Lampe has created an image with all the hard work done. With no compiling to be done its possible to get a Pi working with as a Stratum 1 NTP Server in less than five mins.<\/p>\n<p>First you need a<a href=\"http:\/\/ava.upuaut.net\/store\/index.php?route=product\/product&amp;path=59_60&amp;product_id=95\" target=\"_blank\"> Raspberry Pi GPS Addon board available at Hab Supplies<\/a>. Secondly you need a patch antenna (see related products). Thirdly get the\u00a0minimal SD-card image based on Raspberry Pi&#8217;s\u00a0<a href=\"http:\/\/www.raspberrypi.org\/downloads\">Raspbian \u201cwheezy\u201d<\/a>\u00a0distribution featuring PPS-enabled kernel and ntpd by Hauke here :<\/p>\n<p><a href=\"http:\/\/ntpi.openchaos.org\/downloads\/\">http:\/\/ntpi.openchaos.org\/downloads\/<\/a><\/p>\n<p>Pop the image on an SD Card. Plug in the antenna and the GPS board and power on the Pi.<\/p>\n<p>Thats it really it will boot up and work as an NTP Server.<\/p>\n<p><a href=\"http:\/\/ava.upuaut.net\/wp-content\/uploads\/2013\/10\/ntpi-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-603\" src=\"\/\/ava.upuaut.net\/wp-content\/uploads\/2013\/10\/ntpi-2-1024x760.jpg\" alt=\"ntpi-2\" width=\"620\" height=\"460\" srcset=\"https:\/\/ava.upuaut.net\/wp-content\/uploads\/2013\/10\/ntpi-2-1024x760.jpg 1024w, https:\/\/ava.upuaut.net\/wp-content\/uploads\/2013\/10\/ntpi-2-300x222.jpg 300w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>I run the following commands as well :<\/p>\n<p>sudo apt-get update<br \/>\nsudo apt-get install raspi-config (Use Raspi-config to resize fs)<br \/>\nsudo apt-get upgrade<br \/>\nsudo apt-get install gpsd-clients<\/p>\n<p>Please be aware if there is a new kernel it may over write the Kernel with PPS support in it. You can from here install SNMP, monitoring as per Davids page here :\u00a0<a href=\"http:\/\/www.satsignal.eu\/ntp\/Raspberry-Pi-NTP.html\">http:\/\/www.satsignal.eu\/ntp\/Raspberry-Pi-NTP.html<\/a><\/p>\n<p>A nice cheap very accurate time server for less than \u00a3100!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Superseded by this\u00a0http:\/\/ava.upuaut.net\/?p=726 These instructions no longer work please review the article above. &nbsp; EDIT : I&#8217;ve confirmed the version of NTP provided in the Open Chaos download below isn&#8217;t susceptible to the DRDoS \/ Amplification Attack using ntpdc monlist &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/ava.upuaut.net\/?p=612\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-612","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts\/612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=612"}],"version-history":[{"count":6,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts\/612\/revisions"}],"predecessor-version":[{"id":780,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts\/612\/revisions\/780"}],"wp:attachment":[{"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}