Results 1 to 5 of 5

Thread: Set "environment locales" by /etc/init.d/knoppix-a

  1. #1
    Junior Member
    Join Date
    Jun 2004
    Location
    Brazil
    Posts
    4

    Set "environment locales" by /etc/init.d/knoppix-a

    The /etc/init.d/knoppix-autoconfig script sets the locales in /etc/sysconfig/ with these lines:

    Code:
    # Write KNOPPIX config files for other scripts to parse
    # Standard variables/files
    echo "LANG=\"$LANG\""                  > /etc/sysconfig/i18n
    echo "COUNTRY=\"$COUNTRY\""           >> /etc/sysconfig/i18n
    echo "LANGUAGE=\"$LANGUAGE\""         >> /etc/sysconfig/i18n
    echo "CHARSET=\"$CHARSET\""           >> /etc/sysconfig/i18n
    echo "XMODIFIERS=\"$XMODIFIERS\""     >> /etc/sysconfig/i18n
    #echo "TZ=\"$TZ\""                     >> /etc/sysconfig/i18n
    
    # Default Keyboard layout for console and X
    echo "KEYTABLE=\"$KEYTABLE\""          > /etc/sysconfig/keyboard
    echo "XKEYBOARD=\"$XKEYBOARD\""       >> /etc/sysconfig/keyboard
    echo "KDEKEYBOARD=\"$KDEKEYBOARD\""   >> /etc/sysconfig/keyboard
    echo "KDEKEYBOARDS=\"$KDEKEYBOARDS\"" >> /etc/sysconfig/keyboard
    
    # Desired desktop
    echo "DESKTOP=\"$DESKTOP\""            > /etc/sysconfig/desktop
    
    # Write all, including non-standard variables, to /etc/sysconfig/knoppix
    echo "LANG=\"$LANG\""                  > /etc/sysconfig/knoppix
    echo "COUNTRY=\"$COUNTRY\""           >> /etc/sysconfig/knoppix
    echo "LANGUAGE=\"$LANGUAGE\""         >> /etc/sysconfig/knoppix
    echo "CHARSET=\"$CHARSET\""           >> /etc/sysconfig/knoppix
    echo "KEYTABLE=\"$KEYTABLE\""         >> /etc/sysconfig/knoppix
    echo "XKEYBOARD=\"$XKEYBOARD\""       >> /etc/sysconfig/knoppix
    echo "KDEKEYBOARD=\"$KDEKEYBOARD\""   >> /etc/sysconfig/knoppix
    echo "KDEKEYBOARDS=\"$KDEKEYBOARDS\"" >> /etc/sysconfig/knoppix
    echo "DESKTOP=\"$DESKTOP\""           >> /etc/sysconfig/knoppix
    echo "TZ=\"$TZ\""                     >> /etc/sysconfig/knoppix
    But, some softwares like OpenOffice and Mozilla, searches for locales from /etc/environment. Then I suggest to add some lines after the aboves:

    Code:
    echo "LANG=\"$LANG\""                  > /etc/environment
    echo "LANGUAGE=\"$LANGUAGE\""         >> /etc/environment
    echo "LC_MESSAGES=\"$LC_MESSAGES\""         >> /etc/environment
    This is a requirement to use deadkeys on OpenOffice for example.

    Thank you,
    Samer Eberlin.

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Posts
    171
    Please submit this as a patch to Klaus on the Knoppix mailing list. Many people have been baffled by the lack of dead-keys in Oo.

  3. #3
    Senior Member registered user
    Join Date
    Mar 2004
    Location
    Berlin
    Posts
    436
    To conform to the SPOT-rule (single point of t...?), would a symbolic link:

    Code:
    ln -s /etc/sysconfig/knoppix /etc/environment
    work too, or is there too much unwanted noise in sysconfig/knoppix for oo?

  4. #4
    Junior Member
    Join Date
    Jun 2004
    Location
    Brazil
    Posts
    4
    Ok Kelmo, thanks for your tip.

    I've sent it to [email protected]
    Is It correct...? Is this mail the "Knoppix mailing list"?

  5. #5
    Junior Member
    Join Date
    Jun 2004
    Location
    Brazil
    Posts
    4
    Quote Originally Posted by user unknown
    To conform to the SPOT-rule (single point of t...?), would a symbolic link:

    Code:
    ln -s /etc/sysconfig/knoppix /etc/environment
    work too, or is there too much unwanted noise in sysconfig/knoppix for oo?
    I think it's efficient too. If works, Ok.

Similar Threads

  1. Boot hangs just after "INIT: version 2.78-knoppix"
    By onnrmf in forum General Support
    Replies: 4
    Last Post: 03-18-2009, 02:38 PM
  2. v3.7 failed boot, "no init found"
    By aldend123 in forum General Support
    Replies: 3
    Last Post: 12-29-2004, 10:19 PM
  3. Init "1" process responding too fast - what cause
    By bilzer in forum General Support
    Replies: 0
    Last Post: 04-20-2004, 06:53 AM
  4. Knoppix init says "segmenation voilation"
    By joestump in forum Customising & Remastering
    Replies: 0
    Last Post: 11-19-2003, 12:11 AM
  5. Locate Knoppix "group" in "K" menu
    By Juny in forum General Support
    Replies: 4
    Last Post: 03-14-2003, 09:02 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
  •  


USB Type-A Flash Drive Metal Memory Stick High Speed USB Drive 128GB 256GB 512GB picture

USB Type-A Flash Drive Metal Memory Stick High Speed USB Drive 128GB 256GB 512GB

$8.47



Critical BIOS ROM HPE ProLiant DL160 DL180 Gen9 (U20) U20_3.40_08_29_2024+iLO4 picture

Critical BIOS ROM HPE ProLiant DL160 DL180 Gen9 (U20) U20_3.40_08_29_2024+iLO4

$7.99



Critical BIOS ROM HPE ProLiant BL460cWS46 Gen9 (I36) I36_3.40_08_29_2024+iLO4 picture

Critical BIOS ROM HPE ProLiant BL460cWS46 Gen9 (I36) I36_3.40_08_29_2024+iLO4

$7.99



Critical BIOS ROM HPE ProLiant DL560 Gen9 (P85) P85_3.40_08_29_2024+iLO4 picture

Critical BIOS ROM HPE ProLiant DL560 Gen9 (P85) P85_3.40_08_29_2024+iLO4

$7.99



Microsoft Windows 11 Pro 64-Bit USB Flash Drive Sealed with Product Key Card picture

Microsoft Windows 11 Pro 64-Bit USB Flash Drive Sealed with Product Key Card

$39.99



Microsoft Windows 11 Pro 64bit - New Sealed – Flash USB 1 PC picture

Microsoft Windows 11 Pro 64bit - New Sealed – Flash USB 1 PC

$49.99



1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot picture

1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot

$269.10



SanDisk Ultra Dual Drive Go USB Type-C Flash Drive 2-Pack, USB 3.2 Gen 1, 128GB picture

SanDisk Ultra Dual Drive Go USB Type-C Flash Drive 2-Pack, USB 3.2 Gen 1, 128GB

$19.75



Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet picture

Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet

$147.00



Critical BIOS ROM HPE ProLiant DL580 Gen9 (U17) U17_3.40_08_29_2024+iLO4 picture

Critical BIOS ROM HPE ProLiant DL580 Gen9 (U17) U17_3.40_08_29_2024+iLO4

$7.99