3

I changed my Raspberry Pi keyboard (using command the sudo nano /etc/default/keyboardp). I set:

XKBLAYOUT = 'in'

Now, after reboot I just can't login! Can I somehow reset this CHANGE?

  • 4
    You could try to login through ssh as suggested in this related question. – agold Jan 13 '16 at 9:29
  • 2
    You could try googling an Indonesian keyboard layout to use the correct keys. – Steve Robillard Jan 13 '16 at 12:36
  • 1
    Indonesian? Isn't 'in' for 'India'? – Bex Jan 13 '16 at 13:54
  • 3
    One doubt: "I just can't login!" -> means that your keyboard not working at all, or only that it gives other characters than your own keyboard layout? – agold Jan 13 '16 at 14:15
5

If you know the IP address you can ssh from another machine. Then use the raspi-config utility:

Open a terminal

  1. Run raspi-config
  2. Choose Localisation Options
  3. Choose Change Keyboard Layout
  4. Choose your keyboard or one of the generics
  5. Choose your langauge. For instance, for American English choose English (US)
  6. sudo reboot

Alternatively to ssh, if you have proper partitions on your SD card you can:

  1. Insert it into your laptop
  2. Change keyboard setting with vim /Volumes/<card name>/etc/default/keyboard to XKBLAYOUT="in" to XKBLAYOUT="us" or whatever suits your need
3

Can you insert the SD card into another machine and mount the filesystem?

If so, edit /etc/default/keyboard and change XKBLAYOUT="in" back to your desired setting.

If needed, there's a list of valid codes on Wikipedia.

2

You have switched to an Indic keyboard, though it's hard to know which one. They look quite different depending on which one was selected. There are some examples here: http://wiki.laptop.org/go/Keyboard_layouts#Indic

You basically have two choices: use another machine to ssh into you pi and fix it, or reflash your pi and start over.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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