linux:ntp
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:ntp [2022/11/16 18:53] – created - external edit 127.0.0.1 | linux:ntp [2025/04/02 19:41] (current) – [client] gsys | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Befehle ===== | ===== Befehle ===== | ||
+ | |||
+ | <code bash> | ||
+ | rcntp ntptimeset | ||
+ | ntpq -p #show peers | ||
+ | timedatectl | ||
+ | sudo timedatectl set-ntp true | ||
+ | sudo timedatectl set-local-rtc 0 | ||
+ | systemctl status systemd-timesyncd | ||
+ | sudo systemctl restart systemd-timesyncd | ||
+ | </ | ||
+ | |||
+ | ===== Zeitzone setzen ===== | ||
+ | |||
+ | <code bash> | ||
+ | timedatectl | ||
+ | timedatectl list-timezones | egrep -o " | ||
+ | sudo timedatectl set-timezone " | ||
+ | </ | ||
+ | |||
+ | ===== chrony ===== | ||
+ | |||
+ | '' | ||
+ | < | ||
+ | server 192.168.1.1 | ||
+ | allow 10.1.0.0/16 | ||
+ | allow 192.168.1.0/ | ||
+ | </ | ||
+ | |||
+ | ==== client ==== | ||
< | < | ||
- | rcntp ntptimeset | + | chronyc activity |
+ | chronyc 'burst 4/ | ||
+ | chronyc | ||
</ | </ | ||
+ |
linux/ntp.1668621231.txt.gz · Last modified: 2024/02/17 19:03 (external edit)