Keyboard layout issues using Ubuntu 12.04 in ssh via X11 for mac

view story

http://askubuntu.com – I just upgraded from 10.04 LTS to 12.04 LTS on my server (DELL Intel XEON). By SSH login from my mac (OS X Lion) everything is fine (no issues with command lines) but when I open a window through X11, the keyboard layout is now completely messed up. As an owner of a french mac keyboard, I got used to such issues and could deal by guessing the "QUERTY" keys, but this time it's worse. To fix it, I tried: 1/ sudo dpkg-reconfigure keyboard-configuration => no effect 2/ sudo gnome-control-center then change the keyboard settings, however adding a couple of keyboard layouts did not change a (HowTos)