我在将系统时间与GPS时间同步时遇到问题。 我正在使用U-Blox GPS接收器。 GPS接收器可以通过/ dev / ttyXR4端口正常工作。现在的问题是,我希望系统使用NTP客户端自动更新GPS时间。
我已经在我的Gentoo机器上安装了gpsd以及net-misc / ntp-client。 我运行过cgps和xgps,GPS接收器工作正常。
我的ntp.conf看起来像这样:(因为我做了一次,所以我从Ubuntu复制了它,并且在Ubuntu上也能正常工作)
pool us.pool.ntp.org iburst
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1 mask 255.255.255.0
restrict -6 ::1
# GPS Serial data reference
server 127.127.28.0
fudge 127.127.28.0 time1 0.9999 refid GPS
# GPS PPS reference
server 127.127.28.1 prefer
fudge 127.127.28.1 refid PPS
# Clients from this (example!) subnet have unlimited access,
# but only if cryptographically authenticated
#restrict 192.168.123.0 mask 255.255.255.0 notrust
restrict 192.168.1.0 mask 255.255.255.0 nomodify
因此,任何人都可以引导我解决这个问题,以将GPS时间输入到NTP,然后自动更改系统设置?
非常感谢 :)