Create a file called .xmodmaprc in the root of your home directory.
vi ~/.xmodmaprc Copy the following lines into the file: remove Lock
= Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L add Lock =...
To type accents with your keyboard, you will need to configure the
Compose key on your keyboard.
If you do not know the keycode for your Compose key, at a terminal
window, type: xev You will immediately note lots of output in the
window every time...