changing keyboardmap from command line
I am using Fedora12 on desktop.
I tried to change keymap from systm->preferences->keyboard->layout. This changes my keymap successfully. I want to perform above activity using command line for my powerpc target. My powerpc target environment do not have KDE,GNOME or any x-windowing support.Can any one help me? which command and which files to be overlooked for this? |
Possibly setxkbmap, though that's usually used for language--for example, on a US keyboard, if I go setxkbmap gb I get the British monetary pound sign £ for shift+4. If I then go setxkbmap us it goes back to #.
In most cases, the files would be in /usr/share/X11/xkb but I'm not sure what you need under there. However, the man page indicates that you can use -keycodes or -keymap as an option, and under that xkb directory are both keycodes and keymap and both have Macintosh listed as an option. |
hi scottro11,
thanks for reply. sorry i want to load keybaord layout. Also I do not have any X server functionalities on my target. |
Maybe this is working?
http://www.howtoforge.com/changing-l...-distributions |
thanks for reply.
system-config-keybaord not works on my target. It shows command not found. additionally i tried setup command which is not working on my target. It shows command not found. Also i tried loadkeys on my target but it loads only keymap for jp106 when i try "loadkeys jp106". When I connect japanese keyboard, it seems that keyboard layout has not changed(e.g on JIS keyboard we have doublequote(") at 2,but when I press shift+2,it still shows me @ symbol. This shows that my keylayout is still US keyboard layout) My problem is how will i change keyboard layout from command line? Is there anything else I need to do on my target other than "loadkeys"? Hi all, kindly note that my target environment do not have x windowing system. |
|
The keymaps are in /usr/share/kbd/keymaps/ you can load one with the "loadkeys" command.
Markus |
Thanks Lithos,
My keyboard file located at /etc/sysconfig has below stuff before changing KEYTABLE="us" MODEL="pc105+inet" LAYOUT="us" KEYBOARDTYPE="pc" First I have loaded japanese keymap as follows # loadkeys jp106 Secondly I changed only KEYTABLE="jp106" but I have not seen any change in the language. So Finaly ,I changed it to below KEYTABLE="jp106" MODEL="pc105+inet" LAYOUT="jp106" KEYBOARDTYPE="pc" I then reboot the system. While rebooting system asked it's changing the folder names? y/n I selected y Now when i open the terminal it's not showing any changes related to Japanese keyboard layout. What is extra thing i need to do? |
you'll need the whole path
Code:
loadkeys /usr/share/kbd/keymaps/i386/qwerty/jp106.map.gz |
All times are GMT -5. The time now is 11:10 PM. |