Re: [debian-knoppix] Changing GTK Theme and Time zone
Rajkumar S wrote:
Hi,
How can I change the default GTK theme and default timezone under
knoppix 3.6?
I tried gtk-theme-switch and gtk-theme-switch2 for changing themes but
they are not working for changing the themes.
I have changed /etc/timezone to point to my correct tz, but date command
shows EDT. This is screwing up the timings in my thunderbird.
root@swathi:/etc/sysconfig# cat /etc/timezone
Asia/Calcutta
root@swathi:/etc/sysconfig# date
Thu Sep 30 09:13:50 EDT 2004
Any help to resolve this will be much appreciated.
raj
The Timezone is set in /etc/sysconfig/knoppix.
you'll have to remaster the CD to change that.
You can do a temporary fix, by changing /etc/init.d/xsession .
insert the line:
export TZ=Asia/Calcutta
AFTER the line which calls /etc/sysconfig/knoppix.
Then restartting X (init 2 ; sleep 10 ; init 5 )
or just boot with the parameter 'tz=Asia/Calcutta'
(( Note here: The way that knoppix-autoconfig is written,
hwclock is called with the default (CDT) timezone set,
rather than whatever is set on the kernel xommand line..
I haven't tested it, but it MAY confuse your clock
If so, a quick fix may be to use ntpdate..
In canada, I use 'ntpdate time.nrc.ca' I would presume
that there are cloaer clock to use in india.
eg: ntp.cuhk.edu.hk (see http://www.eecis.udel.edu/~mills/ntp/clock2a.html for more info)
))
-- better yet
For a more permanent solution: edit /etc/init.d/autoconfig-knoppix
At the line where it says:
TZ="America/New_York"
change it to Asia/Calcutta
While you're at it, you might also want to fix it so that the
boot time TZ is used for hwclock...
----------------------------------------------------
diff -u -r1.1 knoppix-autoconfig
--- knoppix-autoconfig 2004/09/30 10:18:10 1.1
+++ knoppix-autoconfig 2004/09/30 14:23:13
@@ -437,6 +437,10 @@
# Export it now, so error messages get translated, too
export LANG COUNTRY CHARSET
+# get bootparam TZ, if set at boot.
+KTZ="$(getbootparam tz 2>/dev/null)"
+[ -f "/usr/share/zoneinfo/$KTZ" ] && TZ="$KTZ"
+
# Allow keyboard override by boot commandline
KKEYBOARD="$(getbootparam keyboard 2>/dev/null)"
[ -n "$KKEYBOARD" ] && KEYTABLE="$KKEYBOARD"
@@ -504,8 +508,6 @@
(echo "$1" > /etc/sysconfig/progress) &
}
-KTZ="$(getbootparam tz 2>/dev/null)"
-[ -f "/usr/share/zoneinfo/$KTZ" ] && TZ="$KTZ"
rm -f /etc/localtime
cp "/usr/share/zoneinfo/$TZ" /etc/localtime
----------------------------------------------------
(then let me know how it works... :-)
--
Stephen Samuel +1(604)876-0426 samnospam@bcgreen.com
http://www.bcgreen.com/
Powerful committed communication. Transformation touching
the jewel within each person and bringing it to light.
Reply to: