I am running Lubuntu in a VirtualBox guest on a Windows 7 host.

I have started the X server XMing on the host.

I use Putty with X-forwarding to ssh into the guest and use it to start lxterminal.

This works pretty well except that my Swedish keyboard presses are not coming across correctly. The effect is that I seem to be using a US keyboard although I am not. E.g. when I press 'รถ', ';' appears in the terminal. The same happens in xterm too.

Running this in the lxterminal:

$ setxkbmap -v 10 -query

Produces:

Setting verbose level to 10
locale is C
Applied rules from xorg:
rules:      xorg
model:      pc105
layout:     se
Trying to build keymap using the following components:
keycodes:   xfree86+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+se+inet(pc105)
geometry:   pc(pc105)
rules:      xorg
model:      pc105
layout:     se

So it seems that the layout is set correctly. Right?

Is there anything I can do?

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

I solved it myself. By chance I discovered the command lxkeymap. It seems to be the same dialog that is used to select keymap when installing Lubuntu. In it, Sweden was selected, but Swedish was not, so I selected that and pressed Apply. Now it works as it should!

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.