Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| stratum1ntp [2019/07/24 16:32] – andrew | stratum1ntp [2021/11/28 02:51] (current) – 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 5: | Line 7: | ||
| * raspi-config #disable linux from trying to access console getty | * raspi-config #disable linux from trying to access console getty | ||
| * 5 Interfacing Options | * 5 Interfacing Options | ||
| - | * P6 Serial -> Login Shell (no) | + | * P6 Serial -> Login Shell (no) -> Enable Hardware (yes) |
| * vi / | * vi / | ||
| * Add the following to the bottom | * Add the following to the bottom | ||
| * < | * < | ||
| + | dtoverlay=pi3-disable-wifi | ||
| dtoverlay=pi3-disable-bt #same with rpi4 | dtoverlay=pi3-disable-bt #same with rpi4 | ||
| # | # | ||
| Line 111: | Line 114: | ||
| # Other options you want to pass to gpsd | # Other options you want to pass to gpsd | ||
| - | GPSD_OPTIONS=-n"" | + | GPSD_OPTIONS="-n" |
| </ | </ | ||
| * {{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:// | ||
| * tar -xvf ntpsetup.tar | * tar -xvf ntpsetup.tar | ||
| - | * cd ntpsetup.tar | + | * cd ntpsetup |
| * ./ | * ./ | ||
| * This copies the gpscontrol files and creates/ | * This copies the gpscontrol files and creates/ | ||
| * Disable NTP from dhcp | * Disable NTP from dhcp | ||
| - | * echo "" | + | * < |
| - | | + | echo "" |
| - | | + | echo "" |
| - | | + | chattr +i / |
| + | chattr +i / | ||
| + | </ | ||
| * reboot | * reboot | ||
| * gpsmon #also cgps -s | * gpsmon #also cgps -s | ||
| Line 130: | Line 136: | ||
| * http:// | * http:// | ||
| * https:// | * https:// | ||
| + | |||
| + | ====== Optimizations ====== | ||
| + | |||
| + | * https:// | ||
| + | * Add nohz=off to the end of the line in / | ||
| + | * configure system to run cpu full speed | ||
| + | * < | ||
| + | echo ' | ||
| + | systemctl restart cpufrequtils</ | ||
| + | * Remove useless stuff | ||
| + | * < | ||
| + | systemctl stop avahi-daemon | ||
| + | systemctl disable avahi-daemon | ||
| + | apt -y autoremove | ||
| + | apt clean | ||
| + | </ | ||
| + | * Set serial to low latency | ||
| + | * < | ||
| + | @reboot setserial / | ||
| + | </ | ||