Created
December 30, 2013 14:58
-
-
Save glennzw/8183038 to your computer and use it in GitHub Desktop.
NTP + GPS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install ntp | |
apt-get install gpsd | |
apt-get install gpsd-clients | |
gpsmon | |
Add to /etc/ntpd.conf: | |
server 127.127.28.0 minpoll 4 maxpoll 4 | |
fudge 127.127.28.0 time1 0.420 refid GPS | |
server 127.127.28.1 minpoll 4 maxpoll 4 prefer | |
fudge 127.127.28.1 refid GPS1 | |
# ntpq -p | |
remote refid st t when poll reach delay offset jitter | |
============================================================================== | |
SHM(0) .GPS. 0 l - 16 0 0.000 0.000 0.000 | |
SHM(1) .GPS1. 0 l - 16 0 0.000 0.000 0.000 | |
-0.debian.pool.n 41.73.40.11 2 u 24 64 1 728.495 -149.53 50.581 | |
+1.debian.pool.n 145.238.203.14 2 u 23 64 1 444.912 -42.588 22.771 | |
+2.debian.pool.n 160.45.10.8 2 u 22 64 1 366.456 -21.516 25.203 | |
*3.debian.pool.n 129.70.130.71 2 u 19 64 3 336.051 -12.106 26.850 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment