Change keyboard layout to german

Hi,

even if this is kind of a late follow-up, I post the procedure I have used to install a non-us key map (in my case ch) in case someone drops onto this thread in search of a solution. The steps involved are:

  1. export a binary version of the current key map of another system (in my case an ubuntu server):

    $ sudo apt-get install busybox
    $ sudo busybox dumpkmap > ch.bmap

  2. transfer the resulting file somehow to the destination system (e.g. by putting it onto a web server and getting it with wget)

  3. load the keymap on the target system

    $ loadkmap < ch.bmap

the steps 2 and 3 can also be put into a cloud-config.yaml, e.g. as follows:

runcmd:
- "mkdir -p /usr/share/keymaps/i386"
- "wget http://10.20.30.40:8080/ch.bmap -O /usr/share/keymaps/i386/ch.bmap"
- "loadkmap < /usr/share/keymaps/i386/ch.bmap"