0

I have been messing around with my fairly new installation of Ubuntu 13.10 Gnome, where I installed two keyboard layouts - English (UK) and Russian. They worked well, I could switch them with the quirky Super+Space combination, but up until the point I tried to run Unity alongside Gnome. Mind you, it worked (kind of) - I got the Unity dock etc, but only on the root account.

But then I changed my mind. I didn't want Unity, after all. I uninstalled it by typing sudo apt-get remove --purge unity and sudo apt-get remove --purge ubuntu-desktop, which, as I have later found out, uninstalled Nautilus and other useful things. I had to do a lot of rebooting and reconfiguring (so much that I can't remember) to make things work again, and when I needed the Russian keyboard, I found out that I couldn't change to it. I can assure you, I have tried everything in the Keyboard Settings, and I followed a few Ask Ubuntu threads - here and here.

All of this didn't help me. I also tried editing the /etc/default/keyboard file, but that didn't help either. Now I'm stuck with the English default keyboard, even if I try to remove it through the Keyboard Settings GUI and change it to Russian, I still type in latin alphabet.

P.S. I later found out that changing keyboard layouts works if I login as root, and that changing the system language to Russian works too, but does not affect my keyboard setup.

Nick
  • 63
  • Try creating a new user? – user.dz Jan 19 '14 at 13:38
  • Hmm, I haven't thought of that.. – Nick Jan 19 '14 at 13:52
  • 1
    So I've created a new user, and the keyboards are fine! Now, I'll have to think of a way of how to transfer all of my files and settings to that new user account... Thanks for the help! – Nick Jan 19 '14 at 14:01
  • It means there is a configuration in the old user home which prevent layout switch or override its shortcut? – user.dz Jan 19 '14 at 14:06
  • Hmm, is there a way to reconfigure a user account? i.e. like dpkg, but for users? If there's such a thing... – Nick Jan 19 '14 at 14:11
  • Well all user conf are in /home/user/ most files and folder are hidden (using names start with dot) so check nautilus to show hidden files. All contents can be copied but we end up with same problem, I don't know the exact config file doing that. If it worth to try, make mutiple users, put a copy of part of the config files from old user, Then try each user, if one of them didn't work, that problem file is in that part. and new users again .. till you get the exact file or folder, :D headache! – user.dz Jan 19 '14 at 14:28
  • Hmm, still working on it. Such a headache. At least I've learned that the conf files that are messing up my keyboard are somewhere in my /home/user/ directory. What I'm currently doing to try to resolve my issue, is move each .* directory to a backup folder, one by one and see which one causes the error... – Nick Jan 20 '14 at 16:42
  • I really don't want to move user accounts, I've installed programs such as Virtualbox and PS, which would be very hard to reconfigure on the new account... – Nick Jan 20 '14 at 16:43
  • 1
    As a matter of fact, yes. But after clearing out my .cache and moving my .local and checking some other folders, I decided to stuff the idea, and move on to browse through my /usr/share/X11/ directory. Now reading this how-to... – Nick Jan 20 '14 at 16:59
  • 1
    I made a breakthrough! Ш have loaded the Russian keyboard by doing setxkbmap -option grp:alt_shift_toggle ru, and and am now using Google Translate to write in latin alphabet, as I have forgot to add the us option when carrying out the command – Nick Jan 20 '14 at 17:17
  • 1
    Yep, it's working now! I have found the answer to my long, heart aching quest! This answer helped me very much. – Nick Jan 20 '14 at 17:20

2 Answers2

1

After spending a very long day and a half trying to figure out why my keyboard layouts wouldn't switch from English (UK) to Russian on my main user account, I found the solution - I ran this command which I found on another askubuntu answer topic -

setxkbmap -option grp:alt_shift_toggle gb,ru

Where the gb and ru are the languages, and the alt_shift_toggle is the key combination to change the languages. However, because I have applied this sort of a hack, it means that the keyboard settings which I set via the GUI did not update and will remain in a "broken" state (at least that's how it is for me)...

Update: After logging out and logging back in, I found that my changes did not stay, and that I had to carry out that command again to be able to use both of the keyboard layouts...

Nick
  • 63
0

Install TweakTool:

sudo apt-get install gnome-tweak-tool

Tweak Tool → Typing → Switching to another layout

user.dz
  • 48,105
  • 1
    I have it, I tried everything, Tweak Tool doesn't change anything... I still don't know what happened there, after I uninstalled Unity. – Nick Jan 19 '14 at 13:25