-
saving time zone?
I find that the time zone I set will not survive a reboot. I set the correct system time and time zone by typing 'sudo time-admin' in the lxterm. Then I type 'sudo hwclock -w' which I thought would save the settings after rebooting. However after booting I always have to reset the correct timezone again. This is necessary because I use Tor and it requires the correct time and timezone to work properly.
Any advice so I don't have to keep resetting?
-
... if you are using Knoppix 6.2 there is a mistake in /etc/init.d/knoppix-autostart. Have a look at
http://www.wp-schulz.de/knoppix/uhrzeit.html
for more information (in german language written).
Greetings
Werner
-
I am using 6.3 which I got from a magazine. Unfortunately I don't understand German.
-
# part of /etc/init.d/knoppix-autostart:
#
# Set timezone
KTZ="$(getbootparam tz)"
[ -n "$KTZ" ] || KTZ="$(getbootparam timezone)"
[ -n "$KTZ" -a "$KTZ" != "auto" ] && TZ="$KTZ"
if [ -n "$TZ" ]; then
echo "$TZ" > /etc/timezone
# this will remove /etc/localtime
rm -f /etc/localtime
# /usr/share/zoneinfo/localtime is a symlink to /etc/localtime
# but /etc/localtime doesn't exist any more.
# Therefore the second part of the if-loop will not work
[ -r /usr/share/zoneinfo/"$TZ" ] \
&& { cp -f /usr/share/zoneinfo/"$TZ" /etc/localtime; }
fi
If this mistake is also in Knoppix 6.3 you must uncomment the lines of the if-loop
Greetings
Werner
-
Set Time Knoppix hd install
I have been fighting this for a week. Just found a solution: from root: 1)dpkg-reconfigure tzdata 2)date MMDDHHmmCCYY 3)hwclock --localtime 4)hwclock --systohc It survived a reboot. Take care.
-
Originally Posted by
BoDiddley
I have been fighting this for a week. Just found a solution: from root: 1)dpkg-reconfigure tzdata 2)date MMDDHHmmCCYY 3)hwclock --localtime 4)hwclock --systohc It survived a reboot. Take care.
I did as you suggested but when I reboot my hardware clock is set to UTC time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield
$42.00
MSI PRO B650-P WiFi AMD AM5 DDR5 WiFi 6E ProSeries Motherboard
$80.71
Asrock Z390 Phantom Gaming 4S/AC Wifi 8th/9th Gen Intel 1151 Motherboard Bulk
$41.05
ASUS Prime B250M-C LGA1151 DDR4 Desktop Motherboard USB 3.0 w/ I/O Shield
$39.99
Gigabyte Intel GA-H81M-HD3 LGA1150 USB 3.0 SATA 6Gbps HDMI mATX Motherboard
$31.95
Gigabyte Ultra Durable B550 GAMING X V2 Desktop Motherboard
$84.99
Asus Prime H310M-A R2.0 Intel LGA 1151 DDR4 Desktop Motherboard
$54.99
ASUS Prime Z390-A LGA 1151 Intel Z390 SATA USB 3.1 ATX Motherboard NO I/O
$99.00
MSI PRO B650-P WiFi AMD AM5 DDR5 WiFi 6E ProSeries Motherboard
$96.01
ASUS Prime B760-PLUS Intel® B760(13th and 12th Gen) LGA 1700 ATX motherboard
$99.99