lost and found ( for me ? )

Ubuntu Server 10.10 Serer : KVM how to set keyboard map in console

Here’s an example how to change keyboard map from US to Japanese.

[ Ubuntu ]

- temporary setting

just type
# loadkeys jp
Loading jp

This setting is temporary. When you reboot VMs , this setting will be cleared  ( switch to default setting)

- how to keep keyboard map permanently

add the following line in /etc/rc.local file.
# cat /etc/rc.local

# add setting for changing keyboard map from US to Japanese
/usr/bin/loadkeys jp > /dev/null 2>&1

When I added keymap=’jp’ in VM’s xml file , there are effects on console keyboard map.
virsh # edit ubuntu-vm1

change this line from

<graphics type='vnc' port='-1' autoport='yes' listen=''/>


<graphics type='vnc' port='-1' listen='' keymap='ja'/>

[ RedHat distribution ]

edit /etc/sysconfig/keyboard file as below
# cat /etc/sysconfig/keyboard

Thx for reading :)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.