Bitcoin donations are welcome:14snQXeLcnJtWUduKZ6rC2MHdPYrYar1Tw

Friday, March 8, 2013

Change keymap/keyboard layout of linux terminal

To temporarily change keymap (keyboard language layout) in your console you can use a command called loadkeys.

Only con is that you can't load keymaps like this in xterm or other in-GUI terminals. (Not that I know of so far). If someone have a solution for this as well, please let us know :-)

How to:
load a terminal, i.e. ctrl+alt+f5 (terminal 5), log in, enter superuser mode "su", and simply




system:/home/user# loadkeys no
Loading /usr/share/keymaps/i386/qwerty/no.kmap.gz
system:/home/user#
..or
system:/home/user# loadkeys us
Loading /usr/share/keymaps/i386/qwerty/us.kmap.gz
system:/home/user#

...the keymaps that I have available is:
system:/home/user# ls /usr/share/keymaps/i386/qwerty/
ar.kmap.gz              it2.kmap.gz                ru2.kmap.gz
bg-cp1251.kmap.gz       it-ibm.kmap.gz             ru3.kmap.gz
bg.kmap.gz              it.kmap.gz                 ru4.kmap.gz
br-abnt2.kmap.gz        jp106.kmap.gz              ru-cp1251.kmap.gz
br-latin1.kmap.gz       kg.kmap.gz                 ru.kmap.gz
by.kmap.gz              kk.kmap.gz                 ru-ms.kmap.gz
ca-multi.kmap.gz        la-latin1.kmap.gz          ru_win.kmap.gz
cf.kmap.gz              lisp-us.kmap.gz            ru-yawerty.kmap.gz
cz-lat2.kmap.gz         lk201-us.kmap.gz           se-fi-ir209.kmap.gz
cz-lat2-prog.kmap.gz    lt.kmap.gz                 se-fi-lat6.kmap.gz
cz-us-qwerty.kmap.gz    lt.l4.kmap.gz              se-ir209.kmap.gz
defkeymap.kmap.gz       lv-latin4.kmap.gz          se-lat6.kmap.gz
defkeymap_V1.0.kmap.gz  lv-latin7.kmap.gz          se-latin1.kmap.gz
dk.kmap.gz              mac-usb-dk-latin1.kmap.gz  sk-prog.kmap.gz
dk-latin1.kmap.gz       mac-usb-es.kmap.gz         sk-prog-qwerty.kmap.gz
emacs2.kmap.gz          mac-usb-euro.kmap.gz       sk-qwerty.kmap.gz
emacs.kmap.gz           mac-usb-fi-latin1.kmap.gz  sr-cy.kmap.gz
es-cp850.kmap.gz        mac-usb-se.kmap.gz         th-tis.kmap.gz
es.kmap.gz              mac-usb-uk.kmap.gz         tralt.kmap.gz
et.kmap.gz              mac-usb-us.kmap.gz         trq.kmap.gz
et-nodeadkeys.kmap.gz   mk.kmap.gz                 tr_q-latin5.kmap.gz
fa.kmap.gz              nl.kmap.gz                 trqu.kmap.gz
fi.kmap.gz              no.kmap.gz                 ua.kmap.gz
fi-latin1.kmap.gz       no-latin1.kmap.gz          ua-utf.kmap.gz
gr.kmap.gz              no-standard.kmap.gz        ua-utf-ws.kmap.gz
gr-pc.kmap.gz           pc110.kmap.gz              uaw.kmap.gz
gr-utf8.kmap.gz         pl1.kmap.gz                ua-ws.kmap.gz
hebrew.kmap.gz          pl.kmap.gz                 uaw_uni.kmap.gz
hu101.kmap.gz           pt-latin1.kmap.gz          uk.kmap.gz
il-heb.kmap.gz          pt-old.kmap.gz             us-intl.iso01.kmap.gz
il.kmap.gz              ro-academic.kmap.gz        us-intl.iso15.kmap.gz
il-phonetic.kmap.gz     ro-comma.kmap.gz           us.kmap.gz
is-latin1.kmap.gz       ro.kmap.gz                 us-latin1.kmap.gz
is-latin1-us.kmap.gz    ru1.kmap.gz
system:/home/user#

No comments:

Post a Comment