Results 1 to 5 of 5

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

Hybrid View

  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
  •  


Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller picture

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller

$64.99



HP controller P3410-69003 NetRAID-1M SCSI 64-bit U160 32MB Cache (PCI) picture

HP controller P3410-69003 NetRAID-1M SCSI 64-bit U160 32MB Cache (PCI)

$359.00



HighPoint RocketStor 6114V 4-Bay USB-C SATA RAID STORAGE ENCLOSURE picture

HighPoint RocketStor 6114V 4-Bay USB-C SATA RAID STORAGE ENCLOSURE

$140.00



Dell PowerVault MD3000i AMP01 Storage Array 2x PSUs No HDDs/Controllers/Caddies picture

Dell PowerVault MD3000i AMP01 Storage Array 2x PSUs No HDDs/Controllers/Caddies

$144.95



MegaRAID 9580-8i8e 16-port 12G SAS/SATA/NVMe 8GB PCIe RAID - 05-50076-00 picture

MegaRAID 9580-8i8e 16-port 12G SAS/SATA/NVMe 8GB PCIe RAID - 05-50076-00

$1610.00



Inspur LSI YZCA-00424-101 12Gbps SAS 3.0 RAID Controller CARD HBA  HDD picture

Inspur LSI YZCA-00424-101 12Gbps SAS 3.0 RAID Controller CARD HBA HDD

$14.99



9300-8i LSI SAS3008 8-Port 12Gb PCIe IT mode ZFS FreeNAS unRAID 2*SFF-8643 US picture

9300-8i LSI SAS3008 8-Port 12Gb PCIe IT mode ZFS FreeNAS unRAID 2*SFF-8643 US

$49.50



LSI 9305-16i SATA SAS 12Gbs Controller card PCIe 3.0 IT-Mode w/SAS SATA cable US picture

LSI 9305-16i SATA SAS 12Gbs Controller card PCIe 3.0 IT-Mode w/SAS SATA cable US

$119.98



Broadcom LSI Avago RAID card MegaRAID SAS 9480-8i8e 05-50031-00 picture

Broadcom LSI Avago RAID card MegaRAID SAS 9480-8i8e 05-50031-00

$400.00



BROADCOM 05-50077-01 PCI-E 4.0 x8 PCI-Express MegaRAID 9560-8i RAID Controller picture

BROADCOM 05-50077-01 PCI-E 4.0 x8 PCI-Express MegaRAID 9560-8i RAID Controller

$714.99