03.10.11

Ubuntu 10.10 VNC keyboard mapping nightmare.

Posted in Linux at 10:38 am by mike

My Amazon EC2 dev box crashed yesterday and I had to rebuild it from scratch. Installed Ubuntu 10.10, configured VNC and ran into a keyboard mapping problem. Every time I hit the letter “d”, all my windows would iconify. I went down many false paths as did this poor soul, applying solutions from old releases.   I was finally able to determine the problem was actually the window manager, in this case it was metacity.    I didn’t bother to try to change the window manager in the gnome settings, because they didn’t appear to be running correctly either.    The simple solution was to just specify fvwm in .vnc/xstartup:

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work (doesn't do shat for me)
export XKL_XMODMAP_DISABLE=1
gnome-panel &
fvwm

Hopefully this will save someone else the time I wasted on this.

3 Comments

  1. Willem said,

    November 30, 2011 at 4:05 pm

    Thanks for the hint, VNC works fine with fvwm. My symptoms were identical. However, I’m going to fiddle with metacity / gnome to get that working properly. Guess I just want the juicy look.

  2. mike said,

    November 30, 2011 at 10:36 pm

    Please tell me if you get it working. I was considering trying it again with the latest release.

  3. TED said,

    June 2, 2012 at 6:22 am

    Thanks a million!!! Yes this saved me time!!!