i am looking for how to change the keyboard mappings under free-BSD
so that i can have a french keyboard (azertyuiop) ..
(i have FreeBSD v2.0)
thx for your help
--
Sylvain Nierveze , etudiant a Supelec en 3eme Annee
Sylvain....@supelec-rennes.fr
Sylvain> Hello, i am looking for how to change the keyboard
Sylvain> mappings under free-BSD so that i can have a french
Sylvain> keyboard (azertyuiop) .. (i have FreeBSD v2.0)
the file fr.iso.kbd is missing in 2.0. You must get it from current sources
which are available in france at
ftp.ibp.fr:/pub/FreeBSD/FreeBSD-current/src/share/syscons/keymaps/fr.iso.kbd
1) get the file and put it in /usr/share/syscons/keymaps/
2) add kbdcontrol -l /usr/share/syscons/keymaps/fr.iso.kbd at the end of
your /etc/rc.local file. You need to reboot to enable french mapping. For
now just run the command.
3) if you intend to run X, you also need to create a .xmodmaprc in your
home directory, containing:
keycode 0x0A = ampersand 1
keycode 0x0B = eacute 2 asciitilde
keycode 0x0C = quotedbl 3 numbersign
keycode 0x0D = apostrophe 4 braceleft
keycode 0x0E = parenleft 5 bracketleft
keycode 0x0F = minus 6 bar
keycode 0x10 = egrave 7 grave
keycode 0x11 = underscore 8 backslash
keycode 0x12 = ccedilla 9 asciicircum
keycode 0x13 = agrave 0 at
keycode 0x14 = parenright degree bracketright
keycode 0x15 = equal plus braceright
keycode 0x71 = Mode_switch
clear Mod1
clear Mod5
add Mod1 = Alt_L
add Mod5 = Mode_switch
Note that `keycode 0x71 = Mode_switch' is for Alt_Gr key.
4) add the line xmodmap .xmodmaprc in your .xinitrc
--
----- -----
Philippe Charnier char...@lirmm.fr
LIRMM, 161 rue Ada, 34392 Montpellier cedex 5 -- France
------------------------------------------------------------------------
: i am looking for how to change the keyboard mappings under free-BSD
: so that i can have a french keyboard (azertyuiop) ..
: (i have FreeBSD v2.0)
: thx for your help
may my script that sets video and kbd for russian - will help you here it is:
#!/bin/sh
# Load KOI8-R screen mapping.
vidcontrol -l koi8-r2cp866
# Load Alternate Codes screen font.
vidcontrol -f 8x16 cp866b-8x16
vidcontrol -f 8x14 cp866-8x14
vidcontrol -f 8x8 cp866-8x8
# Install JCUKEN keyboard mapping.
kbdcontrol -l ru.koi8-r # Not needed for kernel compiled with RUKEYMAP option
# Maximum key rate
kbdcontrol -r fast
# Blank after 5 min
vidcontrol -t 300
vidcontrol -s snake
sns
as an entry in /root/.login. (Are there more elegant solutions ?).
Just replace german.cp850.kbd as desired. Unfortunately there are no french
maps in my directory now.