Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
lpi1:uhrzeit [2013/01/31 11:49] ingo_wichmann [CentOS / RedHat] |
lpi1:uhrzeit [2023/05/04 16:28] |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== Systemuhr stellen ====== | ||
- | date --set "2006-03-26 01:59:30" | ||
- | oder | ||
- | date 032601592006 | ||
- | oder | ||
- | ntpdate pool.ntp.org | ||
- | |||
- | Überprüfen: | ||
- | date | ||
- | |||
- | ====== Hardwareuhr stellen ====== | ||
- | Die Hardwareuhr auf UTC einstellen: | ||
- | hwclock --systohc --utc | ||
- | |||
- | Die Hardwareuhr auf lokale Zeit einstellen: | ||
- | hwclock --systohc --localtime | ||
- | |||
- | Überprüfen: | ||
- | hwclock --show | ||
- | |||
- | ====== Zeitzone einstellen ====== | ||
- | ===== Systemweit ===== | ||
- | ==== Welche Zeitzone ist eingestellt? ==== | ||
- | find /usr/share/zoneinfo/ -type f -exec md5sum {} \; | grep $(md5sum /etc/localtime | cut -d' ' -f1) | ||
- | oder | ||
- | date | ||
- | |||
- | === Doku === | ||
- | man tzfile | ||
- | |||
- | ==== Debian ==== | ||
- | Debian ab 3.1 | ||
- | tzconfig | ||
- | Debian ab 5.0 | ||
- | dpkg-reconfigure tzdata | ||
- | |||
- | Mehr Informationen: | ||
- | http://www.debian.org/doc/manuals/system-administrator/ch-sysadmin-time.html | ||
- | |||
- | ==== SuSE ==== | ||
- | ''/etc/sysconfig/clock'' : | ||
- | <file> | ||
- | HWCLOCK="-u" | ||
- | TIMEZONE="Europe/Berlin" | ||
- | DEFAULT_TIMEZONE="Europe/Berlin" | ||
- | </file> | ||
- | |||
- | ==== CentOS / RedHat ==== | ||
- | ''/etc/sysconfig/clock'' : | ||
- | <file> | ||
- | ZONE="Europe/Berlin" | ||
- | UTC=true | ||
- | </file> | ||
- | |||
- | |||
- | ==== Debian (?) ==== | ||
- | ''/etc/default/rcS'' : | ||
- | <file> | ||
- | UTC=yes | ||
- | </file> | ||
- | |||
- | ===== persönlich ===== | ||
- | [[lokalisierung_und_internationalisierung#persoenliche_zeitzone_einstellen]] | ||