Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


admin_grundlagen:uhrzeit

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
Nächste Überarbeitung Beide Seiten, nächste Überarbeitung
admin_grundlagen:uhrzeit [2015/04/08 08:35]
ingo_wichmann [systemd timedatectl]
admin_grundlagen:uhrzeit [2016/03/10 08:52]
127.0.0.1 Externe Bearbeitung
Zeile 12: Zeile 12:
 ===== systemd timedatectl ===== ===== systemd timedatectl =====
   timedatectl set-time '​2006-03-26 01:​59:​30'​   timedatectl set-time '​2006-03-26 01:​59:​30'​
 +((
 oder (ab systemd Version 213) oder (ab systemd Version 213)
-//Todo: stimmt das?// 
 ''/​etc/​systemd/​timesyncd.conf''​ : ''/​etc/​systemd/​timesyncd.conf''​ :
 <​file>​ <​file>​
Zeile 21: Zeile 21:
 </​file>​ </​file>​
   timedatectl set-ntp true   timedatectl set-ntp true
 +))
 +
 Überprüfen:​ Überprüfen:​
   timedatectl   timedatectl
  
 ====== Hardwareuhr stellen ====== ====== Hardwareuhr stellen ======
 +===== hwclock =====
 Die Hardwareuhr auf UTC einstellen: Die Hardwareuhr auf UTC einstellen:
   hwclock --systohc --utc    hwclock --systohc --utc 
Zeile 33: Zeile 36:
 Überprüfen:​ Überprüfen:​
   hwclock --show   hwclock --show
 +
 +===== timedatectl =====
 +Die Hardwareuhr auf UTC einstellen:
 +  timedatectl set-local-rtc 0
 +
 +Die Hardwareuhr auf lokale Zeit einstellen:
 +  timedatectl set-local-rtc 1
 +  ​
 +Überprüfen:​
 +  timedatectl status
  
 ====== Zeitzone einstellen ====== ====== Zeitzone einstellen ======
Zeile 40: Zeile 53:
 oder oder
   date   date
 +oder
 +  timedatectl status
  
-=== Doku === +==== timedatectl ==== 
-  man tzfile+CentOS (ab 7), Debian (ab 8), openSuSE (ab 13.1) 
  
-==== Debian ==== +  timedatectl set-timezone Europe/​Berlin
-Debian ab 3.1 +
-  tzconfig +
-Debian ab 5.0 +
-  dpkg-reconfigure tzdata+
  
-Mehr Informationen:​ +==== SuSE (bis SLES 11) ====
-http://​www.debian.org/​doc/​manuals/​system-administrator/​ch-sysadmin-time.html +
- +
-==== SuSE ====+
 ''/​etc/​sysconfig/​clock''​ : ''/​etc/​sysconfig/​clock''​ :
 <​file>​ <​file>​
Zeile 61: Zeile 69:
 </​file>​ </​file>​
  
-==== CentOS / RedHat ====+==== CentOS / RedHat ​(bis 6.0) ====
 ''/​etc/​sysconfig/​clock''​ : ''/​etc/​sysconfig/​clock''​ :
 <​file>​ <​file>​
Zeile 68: Zeile 76:
 </​file>​ </​file>​
  
 +==== Debian (bis 7) ====
 +Debian ab 5.0
 +  dpkg-reconfigure tzdata
 +
 +Mehr Informationen:​
 +http://​www.debian.org/​doc/​manuals/​system-administrator/​ch-sysadmin-time.html
  
-==== Debian (?) ==== 
 ''/​etc/​default/​rcS''​ : ''/​etc/​default/​rcS''​ :
 <​file>​ <​file>​
admin_grundlagen/uhrzeit.txt · Zuletzt geändert: 2023/05/04 16:28 von ingo_wichmann