OK, so here's the situation basically.
I have an Ubuntu server running on a VM. I'm accessing this system mainly remotely, and usually with a console connection. I export the output of some applications (like Skype, Google Chrome etc.) to my Windows desktop, where I run Xming as my X server. Everything works pretty neat, but... I can't change the keyboard layout, because the applications are running on the remote machine. So is there a way to change the keyboard layout in CLI?