апплеты в системном трее на рабочем столе Arch Linux gnome

Эта проблема была решена для меня путем добавления «flag1 1» к выдуманным строкам в /etc/ntp.conf. Мы используем GPS для установки времени. Если батарейка системных часов разрядится, система не запустится с правильным временем. Нам нужен NTP, чтобы быстро это исправить. Вот наш файл /etc/ntp.conf:

# "flag1 1" means skip the difference limit check and fix the time even if it is far off.
# If the battery for the system clock fails the system clock will start with a default time.
# The date will be years off, more than the sanity check limit, we need for ntp to correct the time anyway.
#
# GPS Serial data reference
server 127.127.28.0 minpoll 4 maxpoll 4 true
fudge 127.127.28.0 time1 0.0 refid GPS flag1 1

# GPS PPS reference 
server 127.127.28.1 minpoll 4 maxpoll 4 prefer true
fudge 127.127.28.1 refid PPS flag1 1

driftfile /var/lib/ntp/drift

# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery limited
restrict -6 default kod notrap nomodify nopeer noquery limited

# Allow unrestricted acces from the localhost
restrict 127.0.0.1 mask 255.255.255.0
restrict -6 ::1

# Enable this if you want statistics to be logged.
statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day disable
filegen clockstats file clockstats type day enable

Я нашел это решение здесь:Документация NTP

1
14.03.2021, 15:56
0 ответов

Теги

Похожие вопросы