Benutzer-Werkzeuge

Webseiten-Werkzeuge


solutions:ntpsync

NTP - Zeit synchronisieren

Es ist empfehlenswert, die Uhrzeit auf einem Rechner mit ntp auf dem aktuellen Stand zu halten.

Informationen hierzu findet man bei Ubuntuusers. Der Service läuft automatisch, ausser die Abweichung zur realen Zeit ist grösser als 1000 Sekunden.

In diesem Fall muss die Systemzeit manuell gesetzt werden.

$ sudo systemctl stop ntp
$ sudo ntpd -q -g -x -n
 5 Sep 12:11:30 ntpd[4566]: ntpd 4.2.8p4@1.3265-o Fri Jul  6 20:10:51 UTC 2018 (1): Starting
 5 Sep 12:11:30 ntpd[4566]: Command line: ntpd -q -g -x -n
 5 Sep 12:11:30 ntpd[4566]: proto: precision = 0.105 usec (-23)
...
 5 Sep 12:11:39 ntpd[4566]: ntpd: time slew +0.002521 s
ntpd: time slew +0.002521s
$ sudo systemctl start ntp
solutions/ntpsync.txt · Zuletzt geändert: 2018-09-05 10:14 von andreas