fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


linux:ntp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:ntp [2023/03/22 16:52] adminlinux:ntp [2025/04/02 19:41] (current) – [client] gsys
Line 4: Line 4:
  
 <code bash> <code bash>
-rcntp ntptimeset     #Zeit mit NTP-Server synchroniseren (SLES)+rcntp ntptimeset     #Zeit mit NTP-Server synchroniseren (SLES legacy) 
 +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
 </code> </code>
  
Line 13: Line 19:
 timedatectl list-timezones |  egrep  -o "Europe/B.*" timedatectl list-timezones |  egrep  -o "Europe/B.*"
 sudo timedatectl set-timezone "Europe/Berlin" sudo timedatectl set-timezone "Europe/Berlin"
 +</code>
 +
 +===== chrony =====
 +
 +''chrony.conf''
 +<code>
 +server 192.168.1.1
 +allow 10.1.0.0/16
 +allow 192.168.1.0/24
 +</code>
 +
 +==== client ====
 +<code>
 +chronyc activity
 +chronyc 'burst 4/4'   # might interrupt services
 +chronyc -N sources
 </code> </code>
  
linux/ntp.1679500359.txt.gz · Last modified: 2024/02/17 19:03 (external edit)