W
W
whats2014-03-04 21:48:07
Debian
whats, 2014-03-04 21:48:07

How to solve locale problem in Debian (console)?

Greetings.
For an hour I have been reading manuals and solutions, but none of them fit. I am not a system administrator. Therefore, I may not understand something.
Debian locale issue. I want to through Putty, there I select UTF8 in the encoding tab.

uname -a
Linux loc 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux

Did the following
dpkg-reconfigure locales
Generating locales (this might take a while)...
  de_DE.UTF-8... done
  en_US.UTF-8... done
  ru_RU.UTF-8... done
Generation complete

dpkg-reconfigure console-cyrillic
I set the parameters like this
What virtual consoles do you use?                           -->  /dev/tty[1-6]
Choose the keyboard layout                                  -->  Russian
Toggling between Cyrillic and Latin characters              -->  Caps Lock
Switching temporarily between Cyrillic and Latin characters -->  No temporary switch
Choose a font for the console.                              -->  UniCyr
What is your favourite font size?                           -->  14
What is your encoding?                                      -->  UNICODE
Do you want to setup Cyrillic on the console at boot-time?  -->  Yes

In the file /etc/default/locale
#  File generated by update-locale
LANG=ru_RU.UTF-8

Everything is done as they write everywhere.
I re-login. I do
locale

LANG=ru_RU.UTF-8
LANGUAGE=
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=

As a result
746304f20ef40155b89bdb6eb51fdf67b8b12af31e103f74ddd3733266407dd10b5cc0e10f895b1f
But if the locale is set as
export LANG=en_US.UTF-8
something everything is normally translated. But it is the Russian locale that is needed.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Karabanov, 2014-03-05
@whats

Try:

sudo locale-gen
sudo update-locale LANG=ru_RU.UTF-8 LC_MESSAGES=POSIX

I urge to post @inkvizitor68sl

S
slaykovsky, 2014-03-05
@slaykovsky

Change the font. By analogy: https://wiki.archlinux.org/index.php/fonts#Console...

V
Vlad Zhivotnev, 2014-03-05
@inkvizitor68sl

Try changing the font in putty to the Lucida Console to begin with (type, font). If it doesn't help, then it's easier to get in there and see than to guess here)
Well, in general, use sourceforge.net/projects/sshwindows/files/OpenSSH%... openssh. Install it, open cmd.exe, write ssh [email protected] into it, and get into ssh)

N
novomin, 2014-03-05
@novomin

Try in PuTTY in the Translation tab select KOI8-R

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question