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)
or
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:
LANG="en_US"
LANGUAGE="en_US:en"
or only
LANG=C.UTF-8

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

Generate again the new locales:
locale-gen

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.

2 comments:


  1. I agree with a lot of the points you made in this article. If you are looking for the buy antivirus online, then visit K7 Computing. I love your content, they are very nice and very useful to us and this text is worth everyone’s attention.

    ReplyDelete
  2. Great observation! Optimizing the locale settings on Kali for Raspberry Pi definitely helps streamline performance and save storage. Removing unused keyboards is a smart move, especially on limited hardware.

    Just like fine-tuning your system improves efficiency, keeping your home in top shape matters too. For reliable and professional roof maintenance, you can count on New York Roofing services to handle it with expert care.

    ReplyDelete