How to map a console keyboard layout to a X keyboard layout in Linux

view full story

http://unix.stackexchange.com – In my distribution (Slackware 13.37), the console keyboard layout is chosen among some of those available in /usr/share/kbd/keymaps ' sub directories, coming from the kbd package. Under X instead the keyboard layout is chosen in a "layout" list included in the file /etc/X11/xkb/rules/evdev.lst. Does anybody knows a way to, given some console keyboard layout, map it to an X keyboard layout, in order to set up accordingly the "XkbLayout" option in an X configuration file? I am specially interested in knowing the way other distributions than Slackware deal with this for initial configuration. (HowTos)