Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
stratum1ntp [2019/08/20 05:23] andrewstratum1ntp [2021/10/22 20:35] andrew
Line 1: Line 1:
 ====== Stratum 1 NTP Setup on Raspberry Pi ====== ====== Stratum 1 NTP Setup on Raspberry Pi ======
 +== By: Bun-Bun & guppy ==
 +
   * This guides uses Uputronics Raspberry Pi+ GPS Expansion Board and a rpi3 or newer   * This guides uses Uputronics Raspberry Pi+ GPS Expansion Board and a rpi3 or newer
   * Setup rpi with latest Raspbian, enable ssh, etc...   * Setup rpi with latest Raspbian, enable ssh, etc...
Line 115: Line 117:
   * {{ntpsetup.tar|gpsControl files and install.sh}} #for stationary mode (Credit to guppy for creating and Bun-Bun for correcting)   * {{ntpsetup.tar|gpsControl files and install.sh}} #for stationary mode (Credit to guppy for creating and Bun-Bun for correcting)
     * Download linked tar     * Download linked tar
 +      * wget -O ntpsetup.tar http://wiki.sktechworks.ca/lib/exe/fetch.php?media=ntpsetup.tar
     * tar -xvf ntpsetup.tar     * tar -xvf ntpsetup.tar
     * cd ntpsetup     * cd ntpsetup
Line 120: Line 123:
     * This copies the gpscontrol files and creates/enables its service. Also makes a gpsd requirement for ntp     * This copies the gpscontrol files and creates/enables its service. Also makes a gpsd requirement for ntp
   * Disable NTP from dhcp   * Disable NTP from dhcp
-    * echo "" > /etc/dhcp/dhclient-exit-hooks.d/ntp +    * <code> 
-    echo "" > /var/lib/ntp/ntp.conf.dhcp +echo "" > /etc/dhcp/dhclient-exit-hooks.d/ntp 
-    chattr +i /etc/dhcp/dhclient-exit-hooks.d/ntp +echo "" > /var/lib/ntp/ntp.conf.dhcp 
-    chattr +i /var/lib/ntp/ntp.conf.dhcp+chattr +i /etc/dhcp/dhclient-exit-hooks.d/ntp 
 +chattr +i /var/lib/ntp/ntp.conf.dhcp 
 +</code>
   * reboot   * reboot
   * gpsmon #also cgps -s   * gpsmon #also cgps -s
Line 133: Line 138:
 ====== Optimizations ====== ====== Optimizations ======
  
-  * Add nohz=off to the end of the line in /etc/cmdline.txt+  * https://www.ntpsec.org/white-papers/stratum-1-microserver-howto/ 
 +  * Add nohz=off to the end of the line in /boot/cmdline.txt
   * configure system to run cpu full speed   * configure system to run cpu full speed
     * <code>apt -y install cpufrequtils     * <code>apt -y install cpufrequtils
-echo 'GOVERNOR="performance"' > /etc/default/cpufrequtils +echo 'GOVERNOR="performance"' > /etc/default/cpufrequtils 
-systemctl restart cpufrequtils</code>+systemctl restart cpufrequtils</code>
   * Remove useless stuff   * Remove useless stuff
-    * <code>apt -y purge bluez triggerhappy +    * <code>apt -y purge bluez triggerhappy wpasupplicant alsa-utils 
-apt purge wpasupplicant +systemctl stop avahi-daemon 
-apt-get remove alsa-utils +systemctl disable avahi-daemon 
-systemctl stop raspbian avahi-daemon +apt -y autoremove
-systemctl disable raspbian avahi-daemon +
-apt autoremove+
 apt clean apt clean
 +</code>
 +  * Set serial to low latency
 +    * <code>crontab -e
 +@reboot setserial /dev/ttyAMA0 low_latency
 </code> </code>
  
stratum1ntp.txt · Last modified: 2021/11/28 02:51 by andrew
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0