LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-12-2004, 04:05 PM   #1
SAC82
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
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
 
Old 10-13-2004, 03:44 PM   #2
Not now, John!
Member
 
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Rep: Reputation: 30
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.
 
Old 10-13-2004, 05:04 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
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)
 
Old 10-14-2004, 12:51 PM   #4
SAC82
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 10-14-2004, 01:11 PM   #5
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
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.
 
Old 10-18-2004, 01:39 AM   #6
SAC82
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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?.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE Keyboard Shortcuts with different Keyboard Layout hellblade Linux - Software 5 04-18-2006 12:40 AM
Changing the keyboard Layout from UK to US (Debian) critical Linux - Hardware 7 02-16-2005 03:35 PM
crash when changing language(keyboard layout) atkbd.c cuk Mandriva 0 06-20-2004 04:16 AM
Changing my keyboard layout (language) globally by command (shell) Santorres Linux - Newbie 1 05-17-2004 02:04 PM
Changing keyboard layout? Eits0 Linux - General 2 08-13-2002 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration