Monday, April 7, 2025

Arch Linux: Changing locale, console russification

To Russify the console in Arch Linux to display messages in Russian, as well as correctly display Cyrillic, follow these steps to configure:

1. Configure the system locale configuration:
sudo nano /etc/locale.gen
Uncomment:"ru_RU.UTF-8 UTF-8"

2. Generate a new list of locales:
sudo locale-gen

3. Set the default locale:
sudo nano /etc/locale.conf
Specify:
LANG=ru_RU.UTF-8
LC_CTYPE=ru_RU.UTF-8


4. Install a font with Cyrillic support (for example, "terminus-font"):
sudo pacman -S terminus-font

5. To test the font display, change the current console font to a new one (for example, "ter-v22b"; symbols: 22 - size, b - bold, n - normal):
sudo setfont ter-v22b

6. Display the character table of the new font:
sudo showconsolefont

7. Add the font to startup:
sudo nano /etc/vconsole.conf
Specify:
FONT=ter-v22b   #Terminus font (Cyrillic)
KEYMAP=ru   #Keyboard layout: Russian
FONT_MAP=8859-5   #Use ISO 8859-5 encoding


8. Update initramfs:
sudo mkinitcpio -P

9. Configure kernel parameters for boot type "systemd-boot":
sudo nano /boot/loader/loader.conf
Add parameters to the end of the file:
vconsole.font=ter-v22b
vconsole.keymap=ru

No comments:

Post a Comment