HOWTO:Change Installed Keyobard Layouts

From PardusWiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 +
----
 +
''We need to set the keyboard on TTY's and on X server.''
 +
'''Please remember that not all the keyboard layouts are supported by TASMA'''
 +
----
 +
The responsible for making xorg configuration on pardus is a program called Zorg.
 +
 +
This program is responsible for making definitions of xorg driver for video cards and also for making the configuration for the keyboard map
 +
 +
If your keyboard is not supported from the installation you can change the keyboard layout and variant from konsole
 +
 +
Open a konsole and type:
 +
 +
      # zorg -k $LAYOUT/$VARIANT
 +
 +
Let's say for example that we want to change the keyboard to swiss german keyboard layout. So the layout is ch and the variant is de, this way:
 +
 +
      # zorg -k ch/de
 +
 +
This would do the trick and keep your configuration on the file /var/lib/zorg/config.xml
 +
 +
''Using kde to modify the keyboard is not the best method since it changes the keyboard layout only on the kde session, which means that you won't get the keyboard layout while trying to login on KDM. The method described above will change from startup to the correct layout''
 +
 +
Now we have the correct layout set on the X server. But we still need to correct the keymap of the tty's. to do that you need to edit the file /etc/conf.d/mudur and modify the line keymap = '$KEYMAP'. For example since we changed the keyboard layout to swiss german on X server, to set keymap on tty's for the same keyboard we need to set the line for:
 +
 +
      ...
 +
      keymap = 'sg-latin1'
 +
      ...
 +
 +
Now where done and our system should be configured for keyboard layouts correctly.
 +
 +
''TASMA is able to modify the keymap of the /etc/conf.d/mudur but it doesn't offer all the available keymaps. So if you set to a not supported keymap, even though it will work, when you open the system manager on TASMA you will have to reset the keymap string on /etc/conf.d/mudur''
 +
 +
----
 +
----
 +
 +
 +
''The method bellow doesn't apply anymore to pardus 2009 or greater since xorg.conf is replaced by Hald and now zorg from çomar''
 +
 +
 +
 
First, disable the kde keyboard layout from Tasma.
 
First, disable the kde keyboard layout from Tasma.
  

Revision as of 19:52, 10 April 2010


We need to set the keyboard on TTY's and on X server. Please remember that not all the keyboard layouts are supported by TASMA


The responsible for making xorg configuration on pardus is a program called Zorg.

This program is responsible for making definitions of xorg driver for video cards and also for making the configuration for the keyboard map

If your keyboard is not supported from the installation you can change the keyboard layout and variant from konsole

Open a konsole and type:

     # zorg -k $LAYOUT/$VARIANT

Let's say for example that we want to change the keyboard to swiss german keyboard layout. So the layout is ch and the variant is de, this way:

     # zorg -k ch/de

This would do the trick and keep your configuration on the file /var/lib/zorg/config.xml

Using kde to modify the keyboard is not the best method since it changes the keyboard layout only on the kde session, which means that you won't get the keyboard layout while trying to login on KDM. The method described above will change from startup to the correct layout

Now we have the correct layout set on the X server. But we still need to correct the keymap of the tty's. to do that you need to edit the file /etc/conf.d/mudur and modify the line keymap = '$KEYMAP'. For example since we changed the keyboard layout to swiss german on X server, to set keymap on tty's for the same keyboard we need to set the line for:

     ...
     keymap = 'sg-latin1'
     ...

Now where done and our system should be configured for keyboard layouts correctly.

TASMA is able to modify the keymap of the /etc/conf.d/mudur but it doesn't offer all the available keymaps. So if you set to a not supported keymap, even though it will work, when you open the system manager on TASMA you will have to reset the keymap string on /etc/conf.d/mudur




The method bellow doesn't apply anymore to pardus 2009 or greater since xorg.conf is replaced by Hald and now zorg from çomar


First, disable the kde keyboard layout from Tasma.

Go to Peripherals - Keyboard layout-then remove the tick from "Enable keyboard layouts"

Then go to start menu-->programs-->system-->more applications-->File manager-super user mode

and type your password. Then paste that in the location bar:

 /etc/X11/

and open the text file "xorg.conf"


Find the section

   Section "InputDevice"
   Identifier  "Keyboard"

Then replace

 Option  "XkbLayout" "[current keyboard layout e.g. "us"]"

with

 Option  "XkbLayout" "[current layout],[other layout]"


You can also choose the key combination for switching the keybord layouts:

   Option  "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll"           for intance CTRL+SHIFT

or

   Option  "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll"            for intance ALT+SHIFT

Then save the changes.

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox