How to fix keyboard mapping issue of Gnome / Vnc in ubuntu
Posted on June 18, 2009
Yesterday I just intalled an ubuntu 9.04 Server for my co-work.After installed VNC on this server I found the keyboard was messed up while I am connecting this server via vnc client from Windows.After search from internet I found there are 2 good solutions to fix this isssue.
1.In the terminal of this server ,type the following command ,then kill your old vnc then create a new one
gconftool –set /desktop/gnome/peripherals/keyboard/kbd/layouts –type List –list-type String [aa]
2.Another way is to edit your xstartup file and add 1 new line “export XKL_XMODMAP_DISABLE=1″ (location is $HOME/.vnc/xstartup) then re-create a new vnc session.Below is an example.
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
#x-window-manager &
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
Note:Please add this line before line “/etc/X11/Xsession”
tip
Popularity: 35% [?]
Related Posts:
» Filed Under Linux
Comments
13 Responses to “How to fix keyboard mapping issue of Gnome / Vnc in ubuntu”
Leave a Reply
The second example fixed it for me. Thank you very much.
Spot-on, am a “Rookie Linux” guy and this worked for me
Many thanks! (I used the second method as well.)
First solution did nothing. No joy.
The second solution was the key. Thanks!
The first one failed for me (Unknown option -set) but the second one worked like a charm. Thanks!
Thankyou so much, this issue is found so much around the net on various distros of Linux, I’m surprised it hasnt been resolved yet
The second example worked for me just fine. Thank you very much.
#1 worked for me but I had to modify some of the options to use two dashes:
gconftool –-set /desktop/gnome/peripherals/keyboard/kbd/layouts –-type List –-list-type String [aa]
Thanks for tip #2!
What a horrible and frustrating problem!
Great tip, thanks!
nice one! thank you very much.
You saved me a lot of trouble, thanks
Tip number 2 works fine … many thanks!