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?
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.
Sign up to join this communityIf you know the IP address you can ssh
from another machine. Then use the raspi-config
utility:
Open a terminal
raspi-config
Localisation Options
Change Keyboard Layout
English (US)
sudo reboot
Alternatively to ssh
, if you have proper partitions on your SD card you can:
vim /Volumes/<card name>/etc/default/keyboard
to XKBLAYOUT="in"
to XKBLAYOUT="us"
or whatever suits your needCan 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.
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.
ssh
as suggested in this related question.