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
  •  


SGIN 17.3

SGIN 17.3" Laptop 8GB RAM 512GB SSD Notebook with IPS Full HD 2.8GHz Windows 11

$269.00



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) XMP picture

Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) XMP

$35.99



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM picture

Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM

$23.33



Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3 picture

Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3

$21.50



Samsung  8 GB PC4-17000 DDR4-2133 1Rx8 DDR4 Desktop Memory HP P/N  798034-001 picture

Samsung 8 GB PC4-17000 DDR4-2133 1Rx8 DDR4 Desktop Memory HP P/N 798034-001

$10.00



G.Skill RipJaws V 16GB (2x8GB) PC4-28800 (DDR4-3600) Memory F4-3600C16D-16GVKC picture

G.Skill RipJaws V 16GB (2x8GB) PC4-28800 (DDR4-3600) Memory F4-3600C16D-16GVKC

$23.50



HyperX FURY DDR4 16GB 32GB 64GB 2666MHz PC4-21300 Desktop RAM Memory DIMM 288Pin picture

HyperX FURY DDR4 16GB 32GB 64GB 2666MHz PC4-21300 Desktop RAM Memory DIMM 288Pin

$119.80



A-Tech 64GB Kit 2x 32GB PC4-25600 Laptop SODIMM DDR4 3200 MHz 260-Pin Memory RAM picture

A-Tech 64GB Kit 2x 32GB PC4-25600 Laptop SODIMM DDR4 3200 MHz 260-Pin Memory RAM

$123.99