LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Changing keyboard layout (https://www.linuxquestions.org/questions/linux-software-2/changing-keyboard-layout-241859/)

SAC82 10-12-2004 04:05 PM

Changing keyboard layout
 
Hi,
I am using knoppix, I changed by hand some files(XFree86Config-4, /etc/profile, /etc/environment/..) trying to set my keboard layout to spanish but it finished with my language options broken. I made a disaster!!! Now i installed KDE 3.2.3 but the KDE Keyboard tool does not work either!!. Previously this tool used to work perfectly. It seems that i broke the language configuration. Does anyone know how can i set up the language through command line or after editing some files? I am desperate because now i can only work with an English layout and believe me for a spanish is quite a big problem.
Thanks in advanced

Not now, John! 10-13-2004 03:44 PM

Set it in /etc/X11/xorg.conf or xf86config.conf
Code:

    Option "XkbRules"    "xorg"
    Option "XkbModel"    "pc105"
    Option "XkbLayout"  "en_US"  # or "es" or any other

and disable keyboard layout management in Gnome or KDE or whichever you use.

Komakino 10-13-2004 05:04 PM

If you want to change just for a little while then use the setxkbmap command:
Code:

setxkbmap es
setxkbmap us

(the first should go to spanish, the second to US layout)

SAC82 10-14-2004 12:51 PM

That it is what i have in the /etc/X11/XF86Config file related to the keyboard:
Code:

# This is just the default keymap for X.
# May be changed with the KDE international keyboard tool.
  XkbModel    "pc101"
  XkbLayout  "es"
  XkbVariant  "nodeadkeys"
#  XkbOptions  "ctrl:swapcaps"
#  XkbKeycodes    "xfree86"
#  XkbTypes        "default"
#  XkbCompat      "default"
#  XkbSymbols      "us(pc101)"
#  XkbGeometry    "pc"
#  XkbRules        "xfree86"
#  XkbModel        "pc101"
#  XkbLayout      "us"

But i think that my system uses the /etc/X11/XF86Config-4 file which contains the section:

Code:

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "keyboard"
    Option      "CoreKeyboard"
    Option "XkbRules" "xfree86"
    Option "XkbModel" "pc101"
    Option "XkbLayout" "es"
EndSection

I suppose that the error is related whith the configuration of the KDE keyboard tool but i do not manage to fi
nd anything in the /etc/X11/xkb

The stexkbmap commands do not work:
Code:

>setxkbmap es
>Error loading new keyboard description

Now i am using the xkbsel packet which allow me to change the keyboard layout through the command line.
Is there anybody who has any idea? i would like to have my keyboard configured in a proper way.
Thanks in advanced.

Komakino 10-14-2004 01:11 PM

Quote:

Originally posted by SAC82
That it is what i have in the /etc/X11/XF86Config file related to the keyboard:
Code:

# This is just the default keymap for X.
# May be changed with the KDE international keyboard tool.
  XkbModel    "pc101"
  XkbLayout  "es"
  XkbVariant  "nodeadkeys"
#  XkbOptions  "ctrl:swapcaps"
#  XkbKeycodes    "xfree86"
#  XkbTypes        "default"
#  XkbCompat      "default"
#  XkbSymbols      "us(pc101)"
#  XkbGeometry    "pc"
#  XkbRules        "xfree86"
#  XkbModel        "pc101"
#  XkbLayout      "us"

But i think that my system uses the /etc/X11/XF86Config-4 file which contains the section:

Code:

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "keyboard"
    Option      "CoreKeyboard"
    Option "XkbRules" "xfree86"
    Option "XkbModel" "pc101"
    Option "XkbLayout" "es"
EndSection

I suppose that the error is related whith the configuration of the KDE keyboard tool but i do not manage to fi
nd anything in the /etc/X11/xkb

The stexkbmap commands do not work:
Code:

>setxkbmap es
>Error loading new keyboard description

Now i am using the xkbsel packet which allow me to change the keyboard layout through the command line.
Is there anybody who has any idea? i would like to have my keyboard configured in a proper way.
Thanks in advanced.

That partiicular setxkbmap works fine for me...I think you're having problems because you don't have spanish keymaps installed on your system. I don't think any command will set your keymap correctly because you simply don't have them installed.

SAC82 10-18-2004 01:39 AM

Quote:

Originally posted by Komakino
That partiicular setxkbmap works fine for me...I think you're having problems because you don't have spanish keymaps installed on your system. I don't think any command will set your keymap correctly because you simply don't have them installed.
I am able to set the spanish keyboard with the xkbsel command. I suppose i can not set this layout without the keymap installed. Am i right?

What package contains the spanish keymaps? Where can i find it?.


All times are GMT -5. The time now is 01:38 AM.