DEV Community

Cover image for Change keyboard to Spanish distribution on Ubuntu Server
Sergio Peris
Sergio Peris

Posted on • Originally published at sertxu.dev

Change keyboard to Spanish distribution on Ubuntu Server

To change the keyboard distribution to Spanish on an Ubuntu Server, we must execute the following command.

sudo dpkg-reconfigure keyboard-configuration
Enter fullscreen mode Exit fullscreen mode

This command will open a wizard with multiple steps, first we should select the keyboard model, generally you will select Generic 105-key PC.

Next, we should select the country distribution, in our case Spanish.

Now we should select which key will be AltGr, usually Right Alt (AltGr).

Last, we should select which key will be the Compose Key, usually No compose key.

Once we're finished the wizard it will reconfigure the system in order to start using the new keyboard distribution.

It's recommended to restart the computer to apply the changes.

sudo reboot
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay