Ubuntu change Keyboard

If you set up an Ubuntu server with the default US keyboard, you might like to change to your local keyboard. This is a quick note on how to do it.

Share
Ubuntu change Keyboard
Photo by Martin Garrido / Unsplash

Change Keyboard Settings

To set the keyboard layout on an Ubuntu server via the command line, you can use the command sudo loadkeys <layout> for a temporary change.

To make a permanent change, edit the /etc/default/keyboard file for a permanent change. After editing the file, run sudo setupcon to apply the changes.