Results 1 to 9 of 9

Thread: saving time zone?

Hybrid View

  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.

Posting Permissions

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


Atari TT030 System (like STE Falcon) | 8MB TT + ST RAM/245MB HDD | FPU | Mouse picture

Atari TT030 System (like STE Falcon) | 8MB TT + ST RAM/245MB HDD | FPU | Mouse

$2199.99



Atari Mega STE Keyboard (new in box) picture

Atari Mega STE Keyboard (new in box)

$399.99



Atari 800xl Excellent cond.  Mechanical ALPS Keyboard.  Custom upgrades picture

Atari 800xl Excellent cond. Mechanical ALPS Keyboard. Custom upgrades

$260.00



Atari Best XE Touch Upgrade Keyboard Contacts picture

Atari Best XE Touch Upgrade Keyboard Contacts

$30.00



Atari 8bit A8PicoCart Multi-Cart For Atari Computer picture

Atari 8bit A8PicoCart Multi-Cart For Atari Computer

$28.95



ATARI Mega ST2 Highly UPGRADED 4Mb Switchable TOS 1.2 & 1.4 520ST/1040ST/STE/TT picture

ATARI Mega ST2 Highly UPGRADED 4Mb Switchable TOS 1.2 & 1.4 520ST/1040ST/STE/TT

$698.97



Atari 5200 4 port controller cover. picture

Atari 5200 4 port controller cover.

$50.00



Atari 810 Floppy Disc disk Drive for Atari 400/800 picture

Atari 810 Floppy Disc disk Drive for Atari 400/800

$99.99



Atari Touch Tablet CX77 Not Tested Vintage As Is Tablet Only - Clean picture

Atari Touch Tablet CX77 Not Tested Vintage As Is Tablet Only - Clean

$39.00



A8picoCart Atari 130 / 65 XE 800 / 1200 XL XEGS multicart UnoCart atarimax clone picture

A8picoCart Atari 130 / 65 XE 800 / 1200 XL XEGS multicart UnoCart atarimax clone

$28.50