Arm开发板 Ubuntu18.04 网络时间同步
RK3399 安装Ubuntu18.04系统无法网络时间同步,参考了很多帖子都没有找到有效的解决方法,每一次重装系统后便会遇到此问题。
sudo apt-get update
1、设定时区
dpkg-reconfigure tzdata
选择亚洲上海即可
2、安装ntpdate
工具
sudo apt-get install ntpdate
3、安装ntp
sudo apt-get install ntp
4、将系统时间与网络同步
sudo ntpdate cn.pool.ntp.org
就在这一步会遇到很多问题
这种。。。。
为解决这个问题,废了九牛二虎之力,最终把他解决了
5、查看ntp server
watch ntpq -p
你会看到类似的情况,这主要是服务不可用,需要添加本地服务
6、配置ntp.conf文件
cd /
cd etc/
sudo vim ntp.conf
在ntp.conf文件中添加本地服务
server 127.127.1.0
fudge 127.127.1.0 stratum 8
接下来就可以看到服务可用了
7、将时间写入硬件
hwclock --systohc
结束。