SCIENTIFIC-LINUX-USERS Archives

March 2009

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Sun, 15 Mar 2009 15:23:50 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (48 lines)
Il 15/03/2009 alle 12:48, Olf Epler ha scritto:

> my default locale are set to "C" -> /etc/sysconfig/i18n:
> LANG="C" (or POSIX)
> If I use bash or zsh it is possible to change the keyboard
> layout in /etc/sysconfig/keyboard and also in /etc/X11/xorg.conf
> to another keymap without changing the LANG settings.
> But this does not work for tcsh. 
> Only if I also set LANG to the appropriate language the
> correct keys are printed - but now also the default
> language english is changed. I want to change only the keymap.
> Can somebody help?


I'm not sure if tcsh has anything to do with it.

I suggest you set $LC_ALL and $LANG to "en_US.utf8". Enter your keyboard
layout in "/etc/sysconfig/keyboard" (for the text console) and in
"/etc/X11/xorg.conf" (for X apps). That's all.

I'm attaching some excerpts from my config files. Aside from changing
"it" to -presumably- "de", they should work if you're using a standard
PC keyboard.


-----BEGIN /etc/X11/xorg.conf EXCERPT-----
Section "InputDevice"
        Identifier  "Generic Keyboard"
        Driver      "kbd"
        Option      "CoreKeyboard"
        Option      "XkbModel"          "pc105"
        Option      "XkbLayout"         "it"
        Option      "XkbOptions"        "lv3:ralt_switch"
EndSection
------END /etc/X11/xorg.conf EXCERPT------


-----BEGIN /etc/sysconfig/keyboard-----
KEYBOARDTYPE="pc"
KEYTABLE="it"
------END /etc/sysconfig/keyboard------


-----BEGIN /etc/csh.cshrc EXCERPT-----
setenv LC_ALL "en_US.utf8"
setenv LANG $LC_ALL
------END /etc/csh.cshrc EXCERPT------

ATOM RSS1 RSS2