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-configurationsudo dpkg-reconfigure console-datasudo 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?