-
Senior Member
registered user
[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
Similar Threads
-
By tr in forum Customising & Remastering
Replies: 1
Last Post: 10-10-2005, 11:25 AM
-
By pavel7nl in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 06-11-2005, 09:57 PM
-
By olivers in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 10-24-2004, 10:07 PM
-
By el_supremo in forum General Support
Replies: 3
Last Post: 08-18-2004, 10:19 PM
-
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
-
Forum Rules
Dell Memory SNP1CXP8C/16G AB371022 16GB 1Rx8 DDR4 SODIMM 3200MHz RAM
$64.95
Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel
$35.99
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM
$14.85
A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G
$13.99
A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L
$27.98
G.SKILL Trident Z RGB 16GB 2x 8GB 3200MHz DDR4 Desktop RAM F4-3200C16S-8GTZR
$38.99
Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM
$39.95
Crucial 16GB (2x 8GB) Kit DDR3 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM
$22.55
Corsair Vengeance 32GB 16GB 8GB DDR3 1600MHz 1866MHz 2133MHz 2400MHz Memory LOT
$79.99