Closed turnrye closed 3 years ago
NTP setup This installation was using a Sparkfun Ultimate GPS hat on a Raspberry Pi 2
Install raspberry pi using the latest version; this run used the version from 2020-10-26 installed via the Rapberry Pi flashing utility Disable the serial-terminal but leave serial enabled using the raspi-config command Apt-get update and upgrade
sudo apt-get install gpsd gpsd-clients python-gps sudo systemctl stop gpsd.socket sudo systemctl disable gpsd-socket
gpsmon
sudo gpsd /dev/ttyAMA0 /dev/pps0 -n -F /var/run/gpsd.sock
sudo apt-get install libcap-dev libssl-dev pps-tools
sudo ppstest /dev/pps0 sudo dpkg-reconfigure tzdata
wget https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p15.tar.gz tar -zxvf ntp-4.2.8p15.tar.gz ntp-4.2.8p15/ cd ntp-4.2.8p15/ ./configure --enable-linuxcaps make -j5 sudo make install sudo /etc/init.d/ntp stop sudo cp /usr/local/bin/ntp /usr/bin sudo cp /usr/local/sbin/ntp /usr/sbin sudo /etc/init.d/ntp start
ntpq -c peer -c as -c rl
/etc/ntp.conf
server 127.127.28.0 prefer #minpoll 4 maxpoll 4
fudge 127.127.28.0 time1 +0.500 refid flag1 GPS stratum 2
server 127.127.28.2 minpoll 3 maxpoll 3 true
fudge 127.127.28.2 refid SHM2 stratum 1
server 127.127.22.0 minpoll 4 maxpoll 4 true
fudge 127.127.22.0 refid PPS
Setup gpsd to autostart on restart, and verified this.
Username for this is hamwan.
Reconfigured all of the routers to use the new NTP server
This is done.
Placeholder for ntp.leb.memhamwan.net which is an rpi with a passive Poe power splitter and an adafruit ultimate gps hat.
Generally followed https://www.satsignal.eu/ntp/Raspberry-Pi-NTP.html