I'm trying to configure an USB keyboard with br layout (brazilian portuguese) on Ubuntu Server 20.04.4 LTS without X11 (running in a Raspberry pi 4).
I already tried these commands, no one worked:
sudo dpkg-reconfigure keyboard-configuration
sudo dpkg-reconfigure console-data
sudo dpkg-reconfigure locales
- Manually editing
/etc/default/keyboard
sudo systemctl set-keymap br
With sudo loadkeys br
, it works, but it not persintent: I need to type this everytime I reboot the system.
Content of /etc/default/keyboard
:
XKBMODEL="pc105" XKBLAYOUT="br" XKBVARIANT="" XKBOPTIONS="" BACKSPACE="guess"
Content of /etc/vconsole.conf
:
KEYMAP=br
Any help?
ps: here they suggest to use setxkbmap
(which requires X) or other solutions with Gnome. Also, to put loadkeys br
in .bashrc
should work, but is it relly the only option?
loadkeys br
into.bashrc
– Sadaharu Wakisaka Apr 12 '22 at 02:03setxkbmap
(which requires X, I'm trying to avoid this) orloadkeys
(not persistent). Until now to put in.bashrc
seems to be my only option :-( – Cleiton Apr 13 '22 at 03:14