In Ubuntu 20.04, how can I change the keyboard layout in the terminal, and without using superuser permissions?
Edit: I do not have a graphical interface, and therefore no access to e.g.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
The available layouts are listed in
man xkeyboard-config. Choose one.
setxkbmap -layout "<chosen-layout>"
Don't forget the quotes if the layout contains parenthesis.
Impossible without having root access, unless the sysadmin agrees to let users execute
loadkeys, as described in Loadkeys gives permission denied for normal user, in which case you could use
loadkeys < <(ckbcomp -layout '<chosen-layout>')