ntp linux gps,linux - 如何使用Gentoo上的NTP从GPS同步时间 - 堆栈内存溢出

我在将系统时间与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,然后自动更改系统设置?

非常感谢 :)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值