I’ve been using Parallels Workstation virtualization a lot recently for testing databases and it works amazingly well.
However I did come across a weird problem. I’d installed Debian linux and the console keyboard layout wasn’t correct for my Apple USB keyboard.
The solution was to use this command
dpkg-reconfigure console-data
Which walked me through selecting the right keyboard layout.
[link]
Update
Djamu posted a comment suggesting that the following command might work better for server installations:
dpkg-reconfigure keyboard-configuration
Thank you; downloaded ISPConfig VM which is based on debian and the german keyboard mapping was driving me nuts!
FINALLY someone who gives an answer that works.. Thank you..
Thanks! I had the same situation as Kris. Nice to get a fix on the first try.
Another “Thank you!”.
It did the trick on my debootstraped xen-installation.
Thanks a lot !
Thank you very much!
Ditto what Kris said!
Thanks!
I’m usually a Fedora guy and I couldn’t find an answer for Debian.
You’re a life saver!
Thanks!!!! ISPConfig was not configured for US American layout. It was causing some headaches for me. After running the command works great, didn’t even have to reboot.
Finally!
A working answer for the keybaord layout problem!!!
Thank you so much 🙂
Thanks a lot, really helped me
Thanks!!!! ISPConfig was not configured for US American layout. It was causing some headaches for me. After running the command works great, didn’t even have to reboot.
Thank you! This finally solved my problem!
Thank you very much.
I’ ve tried setting my keyboard layout to US-Intl (or US-alt with deadkeys..same thing) via this method, but nothing seems to change.
This is on Debian Lenny stable.
just what I needed, many thanks
Wayne
Thank you Angus, this has really saved my life!
I’ve just installed Debian Squeeze and I recall that my very old French keyboard layout– I insist
on just using it because it doesn’t have the Windows logos on it– went just fine during the installation. But after rebooting to gnome it was in US. And as I still had many configs to do that was a huge
problem, especially as I have given a very long and complex password. It took me a along long time to get the right keys in order to type my pass word to do your command.But then
bash told me “command not found” but it was also so kind to tell me that the package “console-data” was not installed. And aptitude said sure no problem.So that’s it,
Thanks a lot Angus
Soliman
Pingback: Configurando la distribución del teclado en la consola | El Blog de Luis
Gracias, esta información sàque ha sido de mucha ayuda!
Thank you.
This solved me a bug with kdm in Ubuntu Lucid. Kdm was not accepting keyboard. In my case the command is “dpkg-reconfigure console-setup”. Mouse was still working, so I could select a console login where keyboard was working.
Thank you!
This helped me alot.
Thanks dude!
Just a note: If you get the error that console-data is not installed, issue this command: sudo apt-get install console-common
Thanks a lot, I had that annoying y-z exchanged…
Thank you very much Angus. This info enabled me to use my F variant Turkish keyboard on terminal as it should be. (Note to Turkish friends: “f klavye” [F keyboard] users, do what Angus say and choose “Turkish F with Unicode support” from “all layouts” list.
Gigigiggty…it works 😛
I am really thankful to this topic because it really gives up to date information ;;.
thanx man!
u really help me!
Doesn’t work permanently will be reset at next boot
anyone know the permanent method?
Thank you! This finally solved my problem!
Mandy said:
“Thanks dude!
Just a note: If you get the error that console-data is not installed, issue this command: sudo apt-get install console-common”
And rightfully so. This was my problem (in a virtualbox image), and exactly that was the solution.
Thx Angus, thx Mandy!
Incomplete info:
server installations usually don’t have console-data installed ( and don’t need it )
correct command = dpkg-reconfigure keyboard-configuration
OMG thank you so much djamu I was sick of trying to reconfigure console-data and console-setup and not getting anywhere ;_;
Thanks a huge lot !!!!!!!!!!
Thanks , The below command fixed by keyboard layout problem in one of the debian Virtual Machine I downloaded
dpkg-reconfigure console-data
Wel the “AT” symbol is my problem – not on my keys – so thx for helping me to the next step
Weel kinda got fixed (Apple keyboard I use) with ALT+LOGO+a
thx!
Thank you! Finally found someting that solved my problem!
Kiitos! Tämä pelasti päiväni~
Thank you! This saved my day~
Djamu command worked for me.
Thanks!
this solve problems with grml.org layout that not come with br-abnt2.kmap.gz configured and we need locale with pt_BR-UTF-8 codepage for all characters and accents. we used dpkg-reconfigure console-data because we are using terminal only gnome nor kde is not installed. so use dpkg-reconfigure console-data and choose keyboard layout pc-105 keys and brazilian-abnt2 keyboard (that have cedilha accent).
Awesome dude, you saved some hours for me
Thanks! It worked fine.
Thanks a lot! Just what i needed!
In addition to the comment of djamu:
It is necessary to restart the keyboard-service:
> dpkg-reconfigure keyboard-configuration
> service keyboard-setup restart
See also: Debian Wiki
Thanks!
I had a problem with my keys at the console. I had no pipe character (it produced a tilde instead – and the tilde produced an A followed by some form. Sometimes characters would refuse to be deleted from the command line!
All worked well within X, but not at the “proper” Linux console.
This command fixed the mapping, now I can have pipes! I wonder what I should do if my pipe character is broken. It’s a little ridiculous.
But there are still some minor problems with the “proper” linux console, namely in the presentation – weird, gibberish characters being used for ASCII table borders instead of the lines, for example. But the consequences are only cosmetic so far.