Making keymap
Code:
setxkbmap -rules xfree86 -model pc104 -layout /* your layput here */ -print > server-0
Compiling it (there'll be a lot of warnings, ignore them).
Code:
xkbcomp server-0
You should get a new file caled server-0.xkm
And now just move it:
cp -f server-0.xkm /usr/lib/X11/xkb/compiled/server-0.xkm