I recently installed Raspbmc (latest version as of April 2013) I selected a keyboard layout when I connected with SSH using a laptop.

However, I now want to fix the layout for a physically connected keyboard.

Any idea how I can do that? (Either from the Raspbmc GUI or from the cli)

  • There actually happen to be several questions already dealing with this topic. Please see raspberrypi.stackexchange.com/q/5601/6609 Commented May 1, 2013 at 23:59
  • I couldn't find that :). Probably because I only tried searching for questions that explicitely mention Raspbmc. At a minimum, my question may help others find this answer easier. Commented May 2, 2013 at 8:54
  • If starting to reconfigure the keyboard-configuration without mounting the kernel as fs the script will complain about it and will say that the kernelfs is not mounted. Thus the first line is exactly doing this. So I can say Yes! it indeed works.
    – user11993
    Commented Jan 11, 2014 at 15:10
  • Has your question been answered? If so, please mark which one it is by clicking on the green check-mark. We are trying to get this site's Q:A ratio and % answered up to par. Thanks! Commented Jan 11, 2014 at 15:45

3 Answers 3


To re-map your keyboard simply go into the terminal and type:

    sudo dpkg-reconfigure keyboard-configuration

Then, follow the prompts that appear on the screen.

If you have any issues, please leave a note below in the comments.

NOTE: This method works through both the GUI and the CLI interfaces.

  • Not sure about the 'GUI' reference in your note. This is Raspbmc - no X there. Is there a way to get a command prompt inside of (without quitting) Raspbmc that I'm not aware of? Commented May 2, 2013 at 8:56
  • @cristi So sorry - I assumed that you were using Raspbian! To the extent of my (albeit limited) knowledge, There is no way to access terminal in raspmc without quitting. Commented May 2, 2013 at 11:55
  • No problem :) I'll try your solution when I get home and mark it as the accepted answer if it works. Commented May 2, 2013 at 12:08

I found this works nicely

sudo insserv /etc/init.d/mountkernfs.sh -d
sudo dpkg-reconfigure keyboard-configuration
sudo reboot
  • What does the first line do? Commented Sep 9, 2013 at 14:47
  • 1
    It enables the mountkernfs script or, if you prefer, opens that file and scans the comment at the beginning to try to identify a boot script. BTW, the mountkernfs.sh script does what its name say: mount the kernel onto the fs under the /sys and /proc directories. Commented Apr 4, 2014 at 12:13
  • This is the answer for raspbmc. Raspian has multiple options for configuring things, but due tot eh way raspbmc interfaces, you need to drop to the shell, start mountkernfs, and then run dpkg-configure. Just doing dpkg-configure gives an error that mountkernfs is not running Commented Oct 24, 2015 at 20:24
  • So, considering the question was about raspbmc, do you mean this is the correct answer instead of the one with more votes? Commented Oct 26, 2015 at 16:01

This post :


shows that you cannot normally get to the CLI from within Raspbmc, however, this particular post


seems to show that it can be done using python.

sudo apt-get install python-dev <--Installs the Python development?
sudo apt-get install python-pip <--Python package installer

then create a file, that contains python script: Code:

import subprocess
subprocess.call("sudo /etc/init.d/transmission-daemon start", shell=True)

and last, assign this script to a button on remote:


I suppose that this gets you to the CLI where you can do your keyboard magic

  • Great info! But wrong place for it. I asked a separate question raspberrypi.stackexchange.com/q/7262/7203 specifically for you to have a place to move this answer. :) Would you care to do so? Thx Commented May 2, 2013 at 12:06
  • have done so, but I thought this was relevant for getting to a command prompt so you can reconfigure the keyboard!
    – kolin
    Commented May 2, 2013 at 12:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.