HansR
Posts: 2
Joined: Mon Feb 17, 2020 9:12 am

Raspbian Buster Lite - can't change keyboard to us

Mon Feb 17, 2020 9:31 am

Just created an image on a RPi 3B+ with Raspbian Buster Lite.
Changed the keyboard from 'gb' to 'us' but it does not work (I edited /etc/default/keyboard and rebooted). Searched the net but nothing works.
Raspi-config does not solve this.

As a consequence, my keys are all over the place and it is difficult working.
Is there something I miss, is this a bug or is it just not in 'Lite'?
How to get my US keyboard working?

NOTE: I connect through ssh.
NOTE: Normally I use the 'Raspbian Buster with desktop and recommended software' image and never encountered this issue because I worked with a gb keyboard. Now a new situation for me: using Lite with a USA keyboard.

pcmanbob
Posts: 9612
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Raspbian Buster Lite - can't change keyboard to us

Mon Feb 17, 2020 9:50 am

Hi.

If I remember correctly when accessing via ssh you just leave the keyboard setting on the pi at default , as the keyboard is not connected directly to the pi.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

klricks
Posts: 7172
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Raspbian Buster Lite - can't change keyboard to us

Mon Feb 17, 2020 2:54 pm

The keyboard setting only works with the physically attached local keyboard and does not do anything for a remote keyboard via ssh.
I believe you need to set the keyboard on the remote system as well.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

HansR
Posts: 2
Joined: Mon Feb 17, 2020 9:12 am

Re: Raspbian Buster Lite - can't change keyboard to us

Mon Feb 17, 2020 5:09 pm

Thanks for the replies, but I am connecting with MobaXterm on the PC. No keyboard problems anywhere except when connecting via ssh to the Pi. Any keyboard action on the pi sees a GB keyboard i.s.o. a US which is physically there. As a result everything is mixed up.

It is not so when I connect to my RPi B3+ which has the 'Raspbian Buster with desktop and recommended software' image installed (from an older date). So my assumption is there is something missing in the Lite release (2020-02-13)

EDIT: It's solved.
After Installing the image I tried to update the system to latest and add mono but it kept complaing it did not have the public key followed by a key. So I used the following commands starting with the addition of the key. After this procedure the keyboard worked as normal and was recognised as a US keyboard. I assume it was the missing key.

Code: Select all

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys [the  public key]

apt update
apt upgrade
apt autoremove
apt clean

#apt-get purge libmono* cli-common mono-runtime
#apt-get autoremove

apt install apt-transport-https dirmngr gnupg ca-certificates
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/debian stable-raspbianbuster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
apt update
apt-get update && sudo apt-get upgrade
apt-get install mono-complete
apt autoremove

Return to “Raspberry Pi OS”