Return to note index?

Quick notes on localectl settings


Automaattinen sisällysluettelo / Automatically generated Table of Contents

Ready commands


sudo localectl set-keymap fi
sudo localectl set-locale fi_FI.UTF-8
sudo localectl set-x11-locale fi

Finland compatible internationalish English

sudo localectl set-locale LANG=en_IE.UTF-8 LC_TIME=en_DK.UTF-8 LC_MONETARY=fi_FI.UTF-8 LC_NAME=fi_FI.UTF-8 LC_TELEPHONE=fi_FI.UTF-8


And naturally to use these locales, they must be compiled.

So /etc/locale.gen must include the lines

en_DK.UTF-8 UTF-8
en_IE.UTF-8 UTF-8
fi_FI.UTF-8 UTF-8

and as always, after editing that file, you must run sudo locale-gen.

(Debian & deriative users, you have dpkg-reconfigure locales that merges the editing and locale-gen and that is probably what you are supposed to use.)

It seems like I didn’t even say anything about that UTF-8 part, but it’s 2024 and everything is UTF-8 (or your things are horribly broken and the rest of the world hates you).


2019-12-27: I don’t see LANGUAGE mentioned here, but it was blocking me from changing language of GNOME and sudo dpkg-reconfigure locales in the end gave me *** update-locale: Warning: LANGUAGE (en_US:en) is not compatible with LANG (fi_FI.UTF-8). Disabling it..

Either I was wrong on it being list of fallback languages I wish to use, or GNOME has different view on it, but as I think I have seen errors related to it before, I will drop LANGUAGE from the variables I set.

2024-04-04: export LANGUAGE=eo:fi:en in a file read by my zshrc works fine as it gets read before my startsway anyway.

2024-06-02: fixed a lot of language, practically rewrote the page.

Return to note index?

Dear reader, you may be missing a content blocker! 🙀 Please consider installing one to protect yourself, and your close ones, from manipulation and targeted malvertising! Personally I love both Privacy Badger and uBlock Origin (with EFF DNT Policy Allowlist) together, while AdNauseam alone would be more direct protest tool to oppose how the internet is nowadays. Android users may be better served by Rethink while for iOS there is AdGuard. Learn more about targeted advertising! PS. I am sorry if you are already protected and this silly EasyList targeting(?) script doesn't detect that, thank you for taking the steps towards a safer internet! 💜