Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I was using a comfort curve keyboard which had media keys, those keys worked as media keys in X ( with different users), in single-user mode and in multiuser-mode without X.

Then I switched to an RK-9000, which is a quite excellent keyboard but has no media keys. ;...(

But there are a few keys I never use. Scroll lock comes to mind as well as pause. So things like scrl-lck-cursor-up can be mapped to media on/off.

I'm vaguely aware of a technique using xev/xmodmap but my understanding is that that technique is done at the X level, and is assigned to a particular user.

I would like a more primitive way of redefining keys. Two things that occur to me are:

1) The way tty's are mapped to ALT-CTL-Fn ( in my distro, LMDE, I believe this is true of Fedora as well but might vary with distros ). This way works whether or not X is started. 2) When installing a distro, you are generally asked to choose a keyboard.

Once you make the choice, it is my understanding that some keymapping is assigned. Uniformly at all levels and will will in multiuser X-less modes and single user modes.

So how do I achieve this?

share|improve this question

In the Debian-derived distros the console and X key mappings are now both set up in /etc/default/keyboard. See http://wiki.debian.org/Keyboard.

Before that both X and console key mappings were set up separately each with its own respective set of utilities and configuration files. See http://www.tldp.org/HOWTO/text/Keyboard-and-Console-HOWTO.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.