Results 1 to 2 of 2

Thread: [FIX] KNOPPIX not showing correct language / Timezone fix

Hybrid View

  1. #1
    Senior Member registered user
    Join Date
    Jul 2006
    Posts
    122

    [FIX] KNOPPIX not showing correct language / Timezone fix

    This fix should allow ALL applications to show the correct language (the language you specify at boot by the lang= cheatcode). This behavior shows up most often in things that are executed through kdesu or gksu.

    First lets backup your /etc/init.d/knoppix-autoconfig. From a terminal window issue this command as root:
    Code:
    cp /etc/init.d/knoppix-autoconfig /etc/init.d/knoppix-autoconfig-BACKUP

    Youll need to edit your /etc/init.d/knoppix-autoconfig as follows.

    In a Terminal Window:
    Code:
    sudo kwrite /etc/init.d/knoppix-autoconfig

    Find the section that looks like:
    Code:
    ### localization
    # Allow language specification via commandline. The default language
    # will be overridden via "lang=de" boot commandline
    # Default is now US
    LANGUAGE="$(getbootparam lang 2>/dev/null)"
    [ -n "$LANGUAGE" ] || LANGUAGE="us"
    
    # The default language/keyboard to use. This CANNOT be autoprobed.
    # Most of these variables will be used to generate the KDE defaults
    # and will be inserted into /etc/sysconfig/* below.
    case "$LANGUAGE" in
    de)
    # German version
    COUNTRY="de"
    LANG="de_DE@euro"
    KEYTABLE="de-latin1-nodeadkeys"
    XKEYBOARD="de"
    KDEKEYBOARD="de(nodeadkeys)"
    CHARSET="iso8859-15"
    # Additional KDE Keyboards
    KDEKEYBOARDS="us,fr"
    TZ="Europe/Berlin"
    ;;
    Youll notice that this section contains every lang= cheatcode that knoppix understands... Add this line towards the end of the section where youll find the following lines:
    Code:
    *)
    # American version
    LANGUAGE="us"
    COUNTRY="us"
    LANG="C"
    KEYTABLE="us"
    XKEYBOARD="us"
    KDEKEYBOARD="us"
    CHARSET="iso8859-1"
    # Additional KDE Keyboards
    KDEKEYBOARDS="de(nodeadkeys),fr"
    TZ="America/New_York"
    ;;
    esac
    
    # Export it now, so error messages get translated, too
    export LANG COUNTRY CHARSET
    insert this line just below the last line shown above. (right below " export LANG COUNTRY CHARSET ")
    Code:
    # Write the chosen language to default (/etc/default/locale) to be sure that the system selects your chosen
    # Language for all applications
    update-locale LANG=$LANG 2>/dev/null

    Thats it! all fixed.


    While we are at it we'll make the lang= cheatcode alittle more efficient by making the timezone configurable through /etc/sysconfig/timezone. This is needed for alot of people because the timezone is reset at every boot and the default timezone for a given locale might not suit everyone. For instance lang=us defaults to the New York timezone... so we will make it settable through the file /etc/sysconfig/timezone

    Right below the last line we added.... add the following:
    Code:
    # Since the Default Timezone for a given locale may not suit every ones needs we will check to see if we can read 
    # it from sysconfig again to make it more user configurable
    if [ -f /etc/sysconfig/timezone ]; then
      TZ=$(cat /etc/sysconfig/timezone)
      export TZ
    fi
    Save and quit... all done!

    Now if the /etc/sysconfig/timezone file exists the timezone will be set by the value contained in this file.... mine looks like this for the Central US Timezone:
    Code:
    onemyndseye@exodus:~$ cat /etc/sysconfig/timezone
    America/Chicago


    Hope this helps
    -Justin
    One Mynds Eye

  2. #2

    Change <language> hd installed <from - to> Ex: q

    Hey,

    I have everything in english from a hd install except for, "Qparted".

    KISS <Keep it simple su>:

    reverend@knoppix:~$ su
    Password:
    root@knoppix:/home/reverend# cat /etc/default/locale
    # File generated by update-locale
    LANG=de_DE@euro
    root@knoppix:/home/reverend# pico /etc/default/locale
    root@knoppix:/home/reverend# cat /etc/default/locale
    # File generated by update-locale
    LANG=LANG=en_US
    root@knoppix:/home/reverend# exit
    exit
    reverend@knoppix:~$

    Begin/w an...

    Open Shell
    Su
    Enter Password
    cat /etc/default/locale
    pico /etc/default/locale
    Change:
    LANG=de_DE@euro
    to
    LANG=LANG=en_US
    ctrl+shift O ...not numeric
    enter
    ctrl x

    Bare Bones:
    replace <de_DE@euro> with <LANG=en_US> or <your choice of language> after LANG=


    qparted to <your LANG=

    It works!

    Best Regards,


    Reverend Hamer

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. system timezone setting: more 'knoppix-like' suggestions?
    By olivers in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 10-24-2004, 10:07 PM
  4. Getting the timezone correct
    By el_supremo in forum General Support
    Replies: 3
    Last Post: 08-18-2004, 10:19 PM
  5. Is my KNOPPIX CD correct?
    By alex+ in forum General Support
    Replies: 3
    Last Post: 12-26-2003, 06:14 PM

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 PowerEdge R640 NVMe Server 2.10Ghz 8-Core 96GB 10x 1.6TB NVMe SSD HBA330 picture

Dell PowerEdge R640 NVMe Server 2.10Ghz 8-Core 96GB 10x 1.6TB NVMe SSD HBA330

$3133.65



Dell Desktop Computer 16GB RAM 512GB SSD Intel Core i5 8th Gen. Windows 11 Pro picture

Dell Desktop Computer 16GB RAM 512GB SSD Intel Core i5 8th Gen. Windows 11 Pro

$250.00



Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4... picture

Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4...

$364.99



Intel - Core i9-13900K 13th Gen 24 cores 8 P-cores + 16 E-cores 36M Cache, 3 ... picture

Intel - Core i9-13900K 13th Gen 24 cores 8 P-cores + 16 E-cores 36M Cache, 3 ...

$519.99



Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc... picture

Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...

$242.99



AMD Ryzen™ 7 5700X 8-Core, 16-Thread Unlocked Desktop Processor picture

AMD Ryzen™ 7 5700X 8-Core, 16-Thread Unlocked Desktop Processor

$163.00



Intel Xeon E5-2667 V2 LGA 2011 3.3GHz 8 Core 130W 25MB 8GT/s CPU Processor picture

Intel Xeon E5-2667 V2 LGA 2011 3.3GHz 8 Core 130W 25MB 8GT/s CPU Processor

$24.00



Intel - Core i7-13700 13th Gen 16 cores 8 P-cores + 8 E-cores 30MB Cache, 2.1... picture

Intel - Core i7-13700 13th Gen 16 cores 8 P-cores + 8 E-cores 30MB Cache, 2.1...

$409.99



Apple iMac 24

Apple iMac 24" (256GB SSD, M1, 8GB, 8-Core GPU) Yellow - MGPF3LL/A - LOCKED

$450.00



HP Z820 8-Core 2.60GHz E5-2670 128GB RAM No HDD No OS picture

HP Z820 8-Core 2.60GHz E5-2670 128GB RAM No HDD No OS

$214.82