Monday, 16 October 2017

Locales cosmetics. Kali on Raspberry Pi

After installation of the Kali Linux on a Raspberry Pi platform (at least in the Kali GNU/Linux Rolling) I noticed that the Xfce login screen shows in the upper right corner the full list of local keyboards installed (the locales). I don't like it! :) I don't need other than C and US keyboard and more than that, you can save some precious space on the Raspberry Pi storage.

The following post is purely cosmetic. There is no problem with the default installation despite the huge and not necessary keyboard list.

So, let's free some space!

1. First, after login (shell or X), run in console:
locale -a (Display a list of all available locales)
locale -a -v (As above but the -v option causes the LC_IDENTIFICATION metadata about each locale to be included in the output)

2. Make sure the file /etc/default/locale exists (if not, create it) and has proper content, such as:
or only

3. Delete all (but C.UTF-8 and en_US.utf8) generated locale data:
rm -rfv /usr/lib/locale/*

Generate again the new locales:

4. Restart the Pi or stop/start the X service:
service lightdm stop
service lightdm start

Of course, if you need more keyboards (or something different than US) you can in the step 3.

No comments:

Post a Comment