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
  •  


Vintage Abit AB-VT7 VIA PT880 Socket 478 DDR Motherboard With Intel 2.4ghz CPU picture

Vintage Abit AB-VT7 VIA PT880 Socket 478 DDR Motherboard With Intel 2.4ghz CPU

$59.52



Lot of 5 Vintage Canister Cases - for 10.5

Lot of 5 Vintage Canister Cases - for 10.5" Computer Reel Tapes - Very Good

$59.50



Vintage Telex 952003-112 Mechanical Terminal Keyboard IBM 3270 Mainframe DB25 picture

Vintage Telex 952003-112 Mechanical Terminal Keyboard IBM 3270 Mainframe DB25

$699.99



HP 5060-8359 8K Semiconductor Memory Module 5080-9747 Vintage HP Computer picture

HP 5060-8359 8K Semiconductor Memory Module 5080-9747 Vintage HP Computer

$157.30



4x Various Brands 8.5

4x Various Brands 8.5" Mainframe 9-Track Reel Computer Data Tape 6250 CPI .5"

$24.99



One Of A Kind Homemade Vintage Mainframe Computer, Logic Module Wood Bookends picture

One Of A Kind Homemade Vintage Mainframe Computer, Logic Module Wood Bookends

$149.00



8x Gold Rare Vintage Mainframe Burroughs Transistor Cordwood Modules B2500/B5000 picture

8x Gold Rare Vintage Mainframe Burroughs Transistor Cordwood Modules B2500/B5000

$149.95



Vintage UNIVAC Mainframe Circuit Board Lamp - Cyberpunk Tech Geek Industrial Art picture

Vintage UNIVAC Mainframe Circuit Board Lamp - Cyberpunk Tech Geek Industrial Art

$225.00



HP 13210-60001 Disc Drive Interface PCB HP 7900A 7901A Vintage picture

HP 13210-60001 Disc Drive Interface PCB HP 7900A 7901A Vintage

$157.93



Vintage Intel Mainframe Server MCM CPU Substrate Lot Prototyping PGA Validation picture

Vintage Intel Mainframe Server MCM CPU Substrate Lot Prototyping PGA Validation

$500.00