Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
there is absolutely no X on that machine.
The keymap is just fine, what is not working is solely the AltGr Key.
Do you know how to map it right?
I was about trying with showkeys -s and the using it as input for setkeycodes, but I get more than one hex number, and I guess setkeycodes doesnt like that. An "" does not help...
Keyboard configuration without X is a bit of a black art! If you can't sort out how to use the tools (I've never tried very hard), you can always alter the files directly.
The drivers are usually stored in /lib/kbd/keymaps/i386/qwerty/ in g-zipped form and should include the line
include "linux-with-alt-and-altgr"
which will set the AltGr key. What were you expecting it to do? Unlike in X, the UK and US keyboards only seem to use it with the symbol keys, like AltGr+7 giving {.
Don't forget you have compose sequences in the console for accented letters; the default is to press Alt+AltGr for Compose.
For the record,
man keymaps
will reveal some useful information about the console keyboard drivers
and the relevant commands for manipulation are
dumpkeys, loadkeys, getkeycodes, setkeycodes, showkey
In answer to the original question, the correct command was actually
showkey -k
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.