Squares instead of Cyrillic (Russian letters) in the server console

Sometimes in the Linux console you can see “squares” instead of Cyrillic.

This prevents reading system messages if the Cyrillic locale is installed (Russian locale).

This problem is typical for Ubuntu, the solution is here.

The problem can be solved by running this command:

sudo -i
echo 'FRAMEBUFFER=Y' >> /etc/initramfs-tools/initramfs.conf
sudo update-initramfs -u
sudo dpkg-reconfigure console-setup
sudo init 6

The second option for setting up the console is to Russify it

To do this, you will need to download the localization package for the system and set the correct locale in the default system settings.

sudo apt-get install console-cyrillic

Editing the console configuration file

sudo nano /etc/default/console-setup

We change the following variables:

CODESET="CyrSlav"
FONTFACE="VGA"
FONTSIZE="16"

Save the file Apply the changes made:

setupcon -v

The last change is to register the Russian locale in the system in the file /etc/default/locale

sudo nano /etc/default/locale

We enter there instead of what is indicated there:

LANG="ru_RU.UTF-8"

Save the file, and exit and log in or restart the PC