5

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. setxkbmap.

1 Answer 1

6

The available layouts are listed in man xkeyboard-config. Choose one.

In a graphical (X11) session

setxkbmap -layout "<chosen-layout>"

Don't forget the quotes if the layout contains parenthesis.

In a virtual console (text-only, TTY) session

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>')
1
  • How to make the second one permanent?
    – MappaM
    Dec 14, 2021 at 9:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .