After Update on Kubuntu 16.04LTS the keyboard layout has changed into CZ_german without any english layout. Thus I want to restore it into US,GR variant.
Due to unexpected keyboard layout change I find it hard to login either via shell or Xorg. Thus the only option is to use either the recovery mode or a live USB.
Thus how I can revocer the keyboard layout into English and Greek one?
Boot from a live usb and mount the disk that has the GNU/Linux Installed, keep in mind to mount the partition having the INSTALLED system's root filesystem (and not the root folder from the liveusb distro).
In my case has been the /dev/sda2 and I mounted as:
Using the command
sudo fdisk -l
and judging from the size and the type (correct oneLinux Filesystem
) you can mount the appropriate partition. In case of a wrongly mounted partition you can unmount it via the command (we are using thecd
command as well in order to make not busy the mounted partition):Also In the mounted partition should containe the
etc
folder as well.Having said that now you can nou type the following command:
And from:
Change it into:
In case that the change has been into a desktop session that you are already logeedin then edit the
/etc/default/keyboard
directly (as long as you are able to locate the correct layout on the CZ_german layout.)Save the file and then reboot. Once you login configure the keyboard layout via these steps:
First of all go to "System Settings" as the following Images show (System Language In Greek):
On the opened window then select "Input Devices" (in Greek "Συσκευές Εισόδου") as seen In the following Image:
Afterwards select Keyboard and click on the icons as seen in the following image (with the particular order):
Afterwards select to Change the layout using
Alt
+Shift
following the instructions shown in this image:So now you have restored the input languages back to Greek and English. Similar steps can be followed to restore into any desired layout.
The whole idea behind it is to first setup into basic
us
layout via any GNU/Linux live usb/cd, then install any localized layout.