Results 1 to 3 of 3

Thread: system timezone setting: more 'knoppix-like' suggestions?

  1. #1
    Junior Member registered user
    Join Date
    Jun 2004
    Location
    Australia
    Posts
    17

    system timezone setting: more 'knoppix-like' suggestions?

    I've been having trouble setting the timezone on my hard-disk-installed knoppix system, because each time I reboot the file /etc/localtime gets overwritten with data for some other timezone (I think America/New York).

    I came up with a solution, but am wondering if there is a simpler, more knoppix-like way to do this.

    My solution was to add a new script to /etc/init.d:

    Code:
    #!/bin/bash
    #The following lines update your /etc/localtime with data referred to in /etc/timezone
    #The idea is to undo Knoppix's desire to overwrite timezone config each time we boot (done in knoppix-autoconfig)
    
    OLIVER_TZ="`cat /etc/timezone 2>/dev/null`"
    if [ -f "/usr/share/zoneinfo/$OLIVER_TZ" ]; then
    rm /etc/localtime
    cp "/usr/share/zoneinfo/$OLIVER_TZ" /etc/localtime
    fi
    I called it knoppix-hd-tzfix and linked it into the startup sequence as
    Code:
    ln -sf /etc/init.d/knoppix-hd-tzfix /etc/rcS.d/S02knoppix-hd-tzfix

    FYI I'm using a system originally built from knoppix 3.4, installed using the knoppix-installer script (I think with the setting "knoppix" for the type of install). I've since upgraded many packages through apt-get.[/code]

    Anybody else had this problem, and come up with a solution?

  2. #2
    Member registered user
    Join Date
    Sep 2004
    Posts
    70
    My answer might not apply to your configuration. I have 3.6 HD install as simple multiuser. I had trouble with timezone also. On kde I would 'set time' including the time zone, but the time display would always be an hour off. I thought it might be daylight savings time setting but couldn't find any way to set that. It turned out on kde you can set the system time by right clicking on the clock in the lower right corner. That works. I also had to select which time zone time I wanted the clock to show. There is a long list with every time zone. You select one or more time zones that will be listed in a drop down 'short list'. From the short list when I selected 'local time' it was an hour off for some reason. When I select my actual location from the 'short list' menu I get the correct time displayed.

  3. #3
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    18
    I found the setting for the bootup timezone in my knoppix 3.6 hd install in the following location

    /etc/init.d/knoppix-autoconfig

    around line 433

    Original Text:
    *)
    # American version
    LANGUAGE="us"
    COUNTRY="us"
    LANG="C"
    KEYTABLE="us"
    XKEYBOARD="us"
    KDEKEYBOARD="us"
    CHARSET="iso8859-1"
    # Additional KDE Keyboards
    KDEKEYBOARDS="de,fr"
    TZ="America/NewYork"
    ;;
    esac

    Change to:*)
    # American version
    LANGUAGE="us"
    COUNTRY="us"
    LANG="C"
    KEYTABLE="us"
    XKEYBOARD="us"
    KDEKEYBOARD="us"
    CHARSET="iso8859-1"
    # Additional KDE Keyboards
    KDEKEYBOARDS="de,fr"
    TZ="America/Vancouver"
    ;;
    esac

    TZ="America/Vancouver" is my timezone, but you might substitute the one you want. On reboot. Voila you have the timezone set without any monkeying around.

    There seems to be a similar section for the different language versions knoppix in the same file. If you're using the german version look for the section that sets the time zone under the de) section.

    Hope this helps.
    KS

Similar Threads

  1. Timezone don't work in knoppix-autoconfig
    By tr in forum Customising & Remastering
    Replies: 1
    Last Post: 10-10-2005, 11:25 AM
  2. Knoppix HD autoconfiguration (timezone)
    By pavel7nl in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 06-11-2005, 09:57 PM
  3. Getting the timezone correct
    By el_supremo in forum General Support
    Replies: 3
    Last Post: 08-18-2004, 10:19 PM
  4. Suggestions for USB thumb drive for knoppix/linux use
    By freeballer in forum The Lounge
    Replies: 9
    Last Post: 12-09-2003, 05:37 PM
  5. Knoppix for newbies suggestions sought
    By andrei in forum The Lounge
    Replies: 9
    Last Post: 11-09-2003, 03:16 AM

Posting Permissions

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


Seagate Exos X16 ST14000NM001G 14TB 512E SATA 6Gb/s 3.5

Seagate Exos X16 ST14000NM001G 14TB 512E SATA 6Gb/s 3.5" Enterprise Hard Drive

$169.99



WD 2TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0020BBK-WESN picture

WD 2TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0020BBK-WESN

$49.99



WD Green SATA HDD - 3TB picture

WD Green SATA HDD - 3TB

$59.99



Seagate Exos X22 ST20000NM004E 20TB 512E SATA 6Gb/s 3.5

Seagate Exos X22 ST20000NM004E 20TB 512E SATA 6Gb/s 3.5" Enterprise Hard Drive

$268.99



HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5

HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601

$99.99



Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5

Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5" Internal Hard Drive

$29.99



HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5

HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5" Enterprise HDD

$69.99



HGST HUS724040ALS640 4TB 7200RPM 64MB Cache 6Gbps SAS 3.5

HGST HUS724040ALS640 4TB 7200RPM 64MB Cache 6Gbps SAS 3.5" Hard Drive HDD SERVER

$19.99



Seagate ST12000NM0538 Exos X14 12TB 3.5

Seagate ST12000NM0538 Exos X14 12TB 3.5" SATA 6Gbps 3.5" Enterprise Hard Drive

$45.79



2 PACK  Seagate ST1000LM035 Mobile HDD 1TB 2.5

2 PACK Seagate ST1000LM035 Mobile HDD 1TB 2.5" SATA III Laptop Hard Drive

$26.89