From: Michael Prokop Date: Sat, 17 Mar 2007 14:22:17 +0000 (+0100) Subject: Add "configure timezone" tip. [Closes: issue157] X-Git-Tag: 0.3.23~1 X-Git-Url: http://git.grml.org/?p=grml-tips.git;a=commitdiff_plain;h=93de034c285673ac1248a3beced9c23a0e0e2430 Add "configure timezone" tip. [Closes: issue157] --- diff --git a/debian/changelog b/debian/changelog index bcba018..383961d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-tips (0.3-23) unstable; urgency=low + + * Add "configure timezone" tip. [Closes: issue157] + + -- Michael Prokop Sat, 17 Mar 2007 15:21:47 +0100 + grml-tips (0.3-22) unstable; urgency=low * Rewrite of grml-tips script to get rid of (non-free) agrep. diff --git a/grml_tips b/grml_tips index fa19336..21ff86c 100644 --- a/grml_tips +++ b/grml_tips @@ -2456,3 +2456,68 @@ the following commands: % hg pull -u http://hg.intevation.org/mercurial/crew % make local -- +Configure timezone +================== + +Available bootoptions relevant in live-cd mode: +----------------------------------------------- + +* utc: set UTC, if your system clock is set to UTC (GMT) +* gmt: set UTC, if your system clock is set to UTC (GMT) [like bootoption utc] +* tz=$option: set timezone to corresponding $option, usage example: + tz=Europe/Vienna + +Configuration options relevant on harddisk installation: +-------------------------------------------------------- + +* Use the tzconfig utility to set the local timezone: + + # tzconfig + + which adjusts /etc/timezone and /etc/localtime according + to the provided information. + +* /etc/default/rcS: set variable UTC according to your needs, + whether your system clock is set to UTC (UTC='yes') or + not (UTC='no') + +* /etc/localtime: adjust zoneinfo according to your needs: + + # ln -sf /usr/share/zoneinfo/$WHATEVER_YOU_WANT /etc/localtime + + The zoneinfo directory contains the time zone files that were + compiled by zic. The files contain information such as rules + about DST. They allow the kernel to convert UTC UNIX time into + appropriate local dates and times. Use the zdump utility to + print current time and date (in the specified time zone). + +* /etc/adjtime: This file is used e.g. by the adjtimex function, + which can smoothly adjust system time while the system runs + +* If you change the time (using 'date --set ...', ntpdate,...) + it is worth setting also the hardware clock to the correct time: + + # hwclock --hctosys [--utc] + + Remember to add the --utc -option if the hardware clock is set + to UTC! + +Still problems? +--------------- + +Check your current settings via: + + cat /etc/timezone + zdump /etc/localtime + echo $TZ + hwclock --show + grep hwclock /etc/runlevel.conf + grep '^UTC' /etc/default/rc + +Further information: +-------------------- + + hwclock(8) tzselect(1) tzconfig(8) + http://www.debian.org/doc/manuals/system-administrator/ch-sysadmin-time.html + http://wiki.debian.org/TimeZoneChanges +--