0

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)

4
  • There actually happen to be several questions already dealing with this topic. Please see raspberrypi.stackexchange.com/q/5601/6609 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. 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
    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! Jan 11, 2014 at 15:45

3 Answers 3

2

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.

3
  • 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? 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. 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. May 2, 2013 at 12:08
1

I found this works nicely

sudo insserv /etc/init.d/mountkernfs.sh -d
sudo dpkg-reconfigure keyboard-configuration
sudo reboot
4
  • What does the first line do? 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. 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 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? Oct 26, 2015 at 16:01
0

This post :

http://forum.stmlabs.com/showthread.php?tid=5517

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

http://forum.stmlabs.com/showthread.php?tid=5517&pid=45120#pid45120

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:

RunScript(/home/pi/.xbmc/userdata/pyscript/your_script.py)

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

2
  • 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 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
    May 2, 2013 at 12:16

Your Answer

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

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