Ubuntu – Change Default Keyboard Layout on Lubuntu 16.04

consoledisplay-managerkeyboard-layoutUbuntu

I installed Lubuntu with QWERTY, and now want to switch it to DVORAK.

The documented way to do this is to use the Keyboard Layout Handler on the panel.

This works, but only during and within a desktop session.

For login, the system still reverts to QWERTY, both initial and for any window lock.

The TTY sessions also default to QWERTY.

Is there any way to change everything to DVORAK?

Best Answer

If your system has changed to systemd you should be able to control the global setup with the localectl command. Check the current settings with

$ localectl status

List the possible keyboard variants, including dvorak, with

$ localectl list-x11-keymap-variants

Set the new global keyboard and locale with

$ localectl set-x11-keymap ... 

where you need to give, in order, the layout, model, and variant (dvorak). Use the layout and model got from the status output. See man localectl.

Normally, the set-x11-keymap option is supposed to change the console tty keymap automatically as well. However, if it doesn't do a good enough job, you can explicitly set the console tty keymap eg with

$ localectl --no-convert set-keymap us-dvorak

(Use --no-convert to not disturb the X11 map). Use localectl list-keymaps to see what dvorak names are possible.

Related Question