I use 12.04 Server in command line mode (no X installed), and I would like to change the keyboard layout. How can I do this?
9 Answers
After trying sudo dpkg-reconfigure console-data, I found out that it doesn't work after a reboot.
However,
sudo dpkg-reconfigure keyboard-configuration
does work after reboot and also has more options.
- 119,640
- 2,741
- 2
- 13
- 2
Please try the following command:
sudo dpkg-reconfigure console-data
If it says you don't have the package, then install console-data with:
sudo apt-get install console-data
More about Locale Configuration: LocaleConf - Community Help Wiki
- 26,994
- 763
Try:
loadkeys es (Spanish)
loadkeys pt (Portuguese)
loadkeys br (Brazilian Portuguese)
loadkeys ch (Swiss German)
- 334
- 537
- 4
- 2
For Ubuntu Desktop, you can use:
- Set US layout:
setxkbmap us - Set GB layout:
setxkbmap gb
- 321
I just had this issue on a console mode only VM.
The solution in my case was editing /etc/default/keyboard and changing the
XKBLAYOUT="de"
line (a german VM) to
XKBLAYOUT="us"
to work with my US keyboard and then rebooting.
- 151
- 2
- 4
Using Ubuntu 13.10 Server as a Virtual Machine in VirtualBox, this worked for me:
(no GUI, only command-line mode)
Default keyboard layout was French, 'AZERTY'
loadkeys us (English, was not 'en' for me, as some docs state)
Note that you will likely have to run the command as sudo loadkeys us.
I succeeded today configuring this on my Raspberry Pi 3 via:
- generating the required locale
locale-gen de_DE.UTF-8 - calling
loadkeys de
- 11
so many potential solutions, but here is what helped me in the end:
sudo dpkg-reconfigure locales
if it failes with something like locales not found, install the package locales and rerun the above command.
- 277