Results 1 to 9 of 9

Thread: saving time zone?

  1. #1
    Member registered user
    Join Date
    Nov 2006
    Posts
    30

    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?

  2. #2
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    ... 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

  3. #3
    Member registered user
    Join Date
    Nov 2006
    Posts
    30
    I am using 6.3 which I got from a magazine. Unfortunately I don't understand German.

  4. #4
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    # 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

  5. #5

    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.

  6. #6
    Member registered user
    Join Date
    Nov 2006
    Posts
    30
    Quote Originally Posted by BoDiddley View Post
    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.

  7. #7
    Quote Originally Posted by westcoast View Post
    I did as you suggested but when I reboot my hardware clock is set to UTC time.
    I do believe you are trying to change your time using Live CD. I did hd install from 6.2.1 menu and then copied Knoppix from CD to desktop. You need to be a little more specific.

  8. #8
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Quote Originally Posted by BoDiddley View Post
    I do believe you are trying to change your time using Live CD. I did hd install from 6.2.1 menu and then copied Knoppix from CD to desktop. You need to be a little more specific.
    "HD install" is for a few specific purposes (mostly re-mastering), but it isn't really that good for use as a "Linux system." Better to use the "Flash install", which avoids the "chroot'd environment" that causes so many anomalous characteristics not suitable for a working system. Clock changes as described should work better, too!

    Cheers!
    Krishna

  9. #9
    Quote Originally Posted by krishna.murphy View Post
    "HD install" is for a few specific purposes (mostly re-mastering), but it isn't really that good for use as a "Linux system." Better to use the "Flash install", which avoids the "chroot'd environment" that causes so many anomalous characteristics not suitable for a working system. Clock changes as described should work better, too!

    Cheers!
    Krishna
    I am definitely finding that to be the case, Krishna. I am a newbie. I have loaded Debian full, and PCLinuxOS. Since I am not in any real need for usage, just learning and playing around. I decided to stick with the HD install a bit longer. Hard to get around losing your word processor on a full upgrade.... still I think I will poke and prod a bit longer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell R740XD 24SFF 12 NVMe 2.9Ghz 48-C 256GB H730P 2x10G+2x1G NIC 2x1100W Rails picture

Dell R740XD 24SFF 12 NVMe 2.9Ghz 48-C 256GB H730P 2x10G+2x1G NIC 2x1100W Rails

$6332.07



Dell R740XD 24SFF 12 NVMe 2.1Ghz 32-C 256GB H730P 2x10G+2x1G NIC 2x1100W Rails picture

Dell R740XD 24SFF 12 NVMe 2.1Ghz 32-C 256GB H730P 2x10G+2x1G NIC 2x1100W Rails

$3932.07



Dell PowerEdge R740xd Server 2x Gold 6140 2.30Ghz 36-Core 512GB H330 picture

Dell PowerEdge R740xd Server 2x Gold 6140 2.30Ghz 36-Core 512GB H330

$2194.80



Dell R740XD 24SFF 12 NVMe 2.4Ghz 48-C 256GB H730P 2x10G+2x1G NIC 2x1100W Rails picture

Dell R740XD 24SFF 12 NVMe 2.4Ghz 48-C 256GB H730P 2x10G+2x1G NIC 2x1100W Rails

$4332.07



INTEL XEON GOLD 6148 20 Core SR3B6 2.4GHZ 27.5MB Processor    @24 picture

INTEL XEON GOLD 6148 20 Core SR3B6 2.4GHZ 27.5MB Processor @24

$99.99



Intel Xeon Gold 6138 2.0GHz 27.5MB 20-Core 125W LGA3647 SR3B5 picture

Intel Xeon Gold 6138 2.0GHz 27.5MB 20-Core 125W LGA3647 SR3B5

$46.00



Intel Xeon E5-2690V2 3.00GHz 10-Core (SR1A5) Processor CPU READ DESCRIPTION picture

Intel Xeon E5-2690V2 3.00GHz 10-Core (SR1A5) Processor CPU READ DESCRIPTION

$12.00



Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU picture

Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU

$39.99



HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram 512 SSD Quadro K420 Linux GA picture

HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram 512 SSD Quadro K420 Linux GA

$243.59



Dell Precision 5810 Tower Intel Xeon E5-1603v3 2.8GHz 8GB RAM 500GB HDD W10P GPU picture

Dell Precision 5810 Tower Intel Xeon E5-1603v3 2.8GHz 8GB RAM 500GB HDD W10P GPU

$129.99