apt-get install chrony systemctl enable chrony systemctl start chrony systemctl status chrony /etc/chrony/chrony.conf # Source servers server gps1.my.side iburst server gps2.my.side iburst pool pool.ntp.org maxsources 3 # Act as an NTP server #allow # Only allow chronyc from the localhost cmdallow 127.0.0.1 # Record the rate at which the system […]
Category: ntp
Chrony+GPSD (PPS+GPS) on Pi
apt-get update; apt-get -y dist-upgrade; apt -y autoremove; apt clean; apt autoclean root@gps1:~# cat /etc/apt/sources.list deb http://approx.my.side/raspbian/ bullseye main contrib non-free rpi apt clean; apt update; apt upgrade; apt dist-upgrade; apt autoremove reboot apt-get install snmpd apt-get install lsof Configure remote logging ln -s /usr/share/zoneinfo/US/Central /etc/localtime Set swap to 1G […]
Building GPS Clock on Pi w/ Debian Stretch
Start with Raspbian Stretch Lite Install most current packages: apt-get update apt-get upgrade apt-get dist-upgrade Clean up packages: aptitude search ‘~o’ apt-get autoremove reboot Test GPS Sentences: cat /dev/ttyAMA0 Limit GPS Sentences: #GPZDA /bin/echo -e ‘$PMTK314,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0*29\r\n’ > /dev/ttyAMA0 #GPRMC /bin/echo -e ‘$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29\r\n’ > /dev/ttyAMA0 Configure Pi: raspi-config configure local >> […]
Restarting GPS Clocks
Need to change hostnames and IPs for both clocks before running the commands below: mount 10.1.1.101:/NAS/common /common mount 10.1.1.101:/NAS/backup /backup mount 10.1.1.101:/NAS/log/hcpi003 /var/log mount 10.1.1.101:/NAS/admin /admin /etc/init.d/rsyslog restart /etc/init.d/ntp stop /usr/sbin/ntpdate 0.pool.ntp.org /bin/echo -e ‘$PMTK314,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0*29\r\n’ > /dev/ttyAMA0 /etc/init.d/ntp start watch ntpq -p 127.0.0.1 Hits: 6