I wanted to use fcitx as the input method framework in Xubuntu desktop and made the changes using im-config. After the change I restarted X Server and can't get into desktop. I tried rebooting, switching back to previous input method (ibus) which is chosen automatically, using alternative desktop environments (I have also Ubuntu unity and Lubuntu installed), nothing worked. Can someone give me some ideas as to where to check and how to fix this? I really don't want to re-install this box (it's a VM).
For normal use, you should never need to call im-config manually in the first place. Switching between IBus and fcitx is best done using Language Support.
Anyway, you did. If you are reasonably sure that the problem is caused by your "messing" with IM settings, I'd suggest these steps:
Open a console window with Ctrl+Alt+F1 and log in.
Run these commands:
rm .xinputrc sudo apt-get purge im-config sudo apt-get install im-config sudo apt-get install xubuntu-desktop sudo reboot
Please note that purging im-config will likely result in the removal of a bunch of other packages. You need to accept that. Re-installing xubuntu-desktop should put those packages (at least most of them) back in place.