Операционная система Linux DietPi снабжена удобными утилитами, упрощающими настройку операционной системы. Утилита dietpi-config позволяет в диалоговом режиме сделать языковую настройку операционной системы.

Запустите из командной строки dietpi-config:

root@DietPi:~# dietpi-config

Далее следуйте подсказкам на экране:

DietPi-Config                                                                           
                   ┌───────────────┤ DietPi-Config ├────────────────┐                   
                   │  Hardware : OrangePi PC (armv7l)               │                   
                   │                                                │                   
                   │          1  Display Options                    │                   
                   │          2  Audio Options                      │                   
                   │          3  Performance Options                │                   
                   │          4  Advanced Options                   │                   
                   │          5  Language/Regional Options          │                   
                   │          6  Security Options                   │                   
                   │          7  Network Options: Adapters          │                   
                   │          8  Network Options: NAS/Misc          │                   
                   │          9  AutoStart Options                  │                   
                   │          10 Tools                              │                   
                   │                                                │                   
                   │                                                │                   
                   │           <Ok>               <Exit>            │                   
                   │                                                │                   
                   └────────────────────────────────────────────────┘                   
                                                                                        
DietPi-Config                                                                           
              ┌────────┤ DietPi - Language and Regional Options ├────────┐              
              │ Please select an option:                                 │              
              │                                                          │              
              │      Locale   Change Language and Regional Settings      │              
              │      Timezone Change Timezone Location Setting           │              
              │      Keyboard Change Keyboard Layout Setting             │              
              │                                                          │              
              │                                                          │              
              │                                                          │              
              │              <Ok>                  <Back>                │              
              │                                                          │              
              └──────────────────────────────────────────────────────────┘              
                                                                                        
DietPi-Config                                                                           
           ┌───────────────────────┤ DietPi Locale ├───────────────────────┐            
           │                                                               │            
           │ DietPi requires en_GB.UTF-8 to be installed. This ensures all │            
           │ DietPi scripts can scrape correctly.                          │            
           │                                                               │            
           │ Please do NOT remove en_GB.UTF-8 from the system, when        │            
           │ selecting your Locale.                                        │            
           │                                                               │            
           │                                                               │            
           │                            <Ok>                               │            
           │                                                               │            
           └───────────────────────────────────────────────────────────────┘            

Package configuration                                                                   
 ┌──────────────────────────────┤ Configuring locales ├──────────────────────────────┐  
 │ Locales are a framework to switch between multiple languages and allow users to   │  
 │ use their language, country, characters, collation order, etc.                    │  
 │                                                                                   │  
 │ Please choose which locales to generate. UTF-8 locales should be chosen by        │  
 │ default, particularly for new installations. Other character sets may be useful   │  
 │ for backwards compatibility with older systems and software.                      │  
 │                                                                                   │  
 │ Locales to be generated:                                                          │  
 │                                                                                   │  
 │    [ ] ro_RO.UTF-8 UTF-8                                                      ↑   │  
 │    [ ] ru_RU ISO-8859-5                                                       ▒   │  
 │    [*] ru_RU.CP1251 CP1251                                                    ▒   │  
 │    [*] ru_RU.KOI8-R KOI8-R                                                    ▒   │  
 │    [*] ru_RU.UTF-8 UTF-8                                                      ▮   │  
 │    [ ] ru_UA KOI8-U                                                           ▒   │  
 │    [ ] ru_UA.UTF-8 UTF-8                                                      ▒   │  
 │    [ ] rw_RW UTF-8                                                            ↓   │  
 │                                                                                   │  
 │                                                                                   │  
 │                      <Ok>                          <Cancel>                       │  
 │                                                                                   │  
 └───────────────────────────────────────────────────────────────────────────────────┘  
                                                                                        
Package configuration                                                                   
 ┌──────────────────────────────┤ Configuring locales ├──────────────────────────────┐  
 │ Many packages in Debian use locales to display text in the correct language for   │  
 │ the user. You can choose a default locale for the system from the generated       │  
 │ locales.                                                                          │  
 │                                                                                   │  
 │ This will select the default language for the entire system. If this system is a  │  
 │ multi-user system where not all users are able to speak the default language,     │  
 │ they will experience difficulties.                                                │  
 │                                                                                   │  
 │ Default locale for the system environment:                                        │  
 │                                                                                   │  
 │                                   None                                            │  
 │                                   C.UTF-8                                         │  
 │                                   en_GB.UTF-8                                     │  
 │                                   ru_RU.CP1251                                    │  
 │                                   ru_RU.KOI8-R                                    │  
 │                                   ru_RU.UTF-8                                     │  
 │                                                                                   │  
 │                                                                                   │  
 │                      <Ok>                          <Cancel>                       │  
 │                                                                                   │  
 └───────────────────────────────────────────────────────────────────────────────────┘  
                                                                                        
DietPi-Config                                                                           
              ┌────────┤ DietPi - Language and Regional Options ├────────┐              
              │ Please select an option:                                 │              
              │                                                          │              
              │      Locale   Change Language and Regional Settings      │              
              │      Timezone Change Timezone Location Setting           │              
              │      Keyboard Change Keyboard Layout Setting             │              
              │                                                          │              
              │                                                          │              
              │                                                          │              
              │              <Ok>                  <Back>                │              
              │                                                          │              
              └──────────────────────────────────────────────────────────┘              
                                                                                        
Package configuration                                                                   
 ┌──────────────────────────────┤ Configuring tzdata ├───────────────────────────────┐  
 │ Please select the geographic area in which you live. Subsequent configuration     │  
 │ questions will narrow this down by presenting a list of cities, representing the  │  
 │ time zones in which they are located.                                             │  
 │                                                                                   │  
 │ Geographic area:                                                                  │  
 │                                                                                   │  
 │                                Africa                                             │  
 │                                America                                            │  
 │                                Antarctica                                         │  
 │                                Australia                                          │  
 │                                Arctic Ocean                                       │  
 │                                Asia                                               │  
 │                                Atlantic Ocean                                     │  
 │                                Europe                                             │  
 │                                Indian Ocean                                       │  
 │                                Pacific Ocean                                      │  
 │                                System V timezones                                 │  
 │                                US                                                 │  
 │                                None of the above                                  │  
 │                                                                                   │  
 │                                                                                   │  
 │                      <Ok>                          <Cancel>                       │  
 │                                                                                   │  
 └───────────────────────────────────────────────────────────────────────────────────┘  
                                                                                        
Package configuration                                                                   
         ┌───────────────────────┤ Configuring tzdata ├───────────────────────┐         
         │ Please select the city or region corresponding to your time zone.  │         
         │                                                                    │         
         │ Time zone:                                                         │         
         │                                                                    │         
         │                           Luxembourg     ↑                         │         
         │                           Madrid         ▒                         │         
         │                           Malta          ▒                         │         
         │                           Mariehamn      ▒                         │         
         │                           Minsk          ▒                         │         
         │                           Monaco         ▒                         │         
         │                           Moscow         ▮                         │         
         │                           Nicosia        ▒                         │         
         │                           Oslo           ▒                         │         
         │                           Paris          ▒                         │         
         │                           Podgorica      ▒                         │         
         │                           Prague         ▒                         │         
         │                           Riga           ↓                         │         
         │                                                                    │         
         │                                                                    │         
         │                 <Ok>                     <Cancel>                  │         
         │                                                                    │         
         └────────────────────────────────────────────────────────────────────┘         
                                                                                        
DietPi-Config                                                                           
              ┌────────┤ DietPi - Language and Regional Options ├────────┐              
              │ Please select an option:                                 │              
              │                                                          │              
              │      Locale   Change Language and Regional Settings      │              
              │      Timezone Change Timezone Location Setting           │              
              │      Keyboard Change Keyboard Layout Setting             │              
              │                                                          │              
              │                                                          │              
              │                                                          │              
              │              <Ok>                  <Back>                │              
              │                                                          │              
              └──────────────────────────────────────────────────────────┘              
                                                                                        
DietPi-Config                                                                           
           ┌───────────────┤ DietPi keyboard-configuration ├───────────────┐            
           │                                                               │            
           │ NB: A keyboard must be psychically plugged into the system,   │            
           │ before its configuration can be changed.                      │            
           │                                                               │            
           │ If a keyboard is plugged in, please ignore this message. If   │            
           │ not, plug one in ;)                                           │            
           │                                                               │            
           │                                                               │            
           │                            <Ok>                               │            
           │                                                               │            
           └───────────────────────────────────────────────────────────────┘            
                                                                                        
Package configuration                                                                   
   ┌────────────────────┤ Configuring keyboard-configuration ├─────────────────────┐    
   │ Please select the model of the keyboard of this machine.                      │    
   │                                                                               │    
   │ Keyboard model:                                                               │    
   │                                                                               │    
   │    Dell SK-8135                                                            ↑  │    
   │    Dell USB Multimedia Keyboard                                            ▒  │    
   │    Dexxa Wireless Desktop Keyboard                                         ▒  │    
   │    Diamond 9801 / 9802 series                                              ▒  │    
   │    DTK2000                                                                 ▮  │    
   │    Ennyah DKB-1008                                                         ▒  │    
   │    Everex STEPnote                                                         ▒  │    
   │    FL90                                                                    ▒  │    
   │    Fujitsu-Siemens Computers AMILO laptop                                  ▒  │    
   │    Generic 101-key PC                                                      ▒  │    
   │    Generic 102-key (Intl) PC                                               ▒  │    
   │    Generic 104-key PC                                                      ▒  │    
   │    Generic 105-key (Intl) PC                                               ↓  │    
   │                                                                               │    
   │                                                                               │    
   │                     <Ok>                         <Cancel>                     │    
   │                                                                               │    
   └───────────────────────────────────────────────────────────────────────────────┘    
                                                                                        
Package configuration                                                                   
  ┌─────────────────────┤ Configuring keyboard-configuration ├──────────────────────┐   
  │ Please select the layout matching the keyboard for this machine.                │   
  │                                                                                 │   
  │ Keyboard layout:                                                                │   
  │                                                                                 │   
  │    English (US) - English (left handed Dvorak)                               ↑  │   
  │    English (US) - English (Macintosh)                                        ▒  │   
  │    English (US) - English (programmer Dvorak)                                ▒  │   
  │    English (US) - English (right handed Dvorak)                              ▒  │   
  │    English (US) - English (the divide/multiply keys toggle the layout)       ▒  │   
  │    English (US) - English (US, alternative international)                    ▒  │   
  │    English (US) - English (US, international with dead keys)                 ▒  │   
  │    English (US) - English (US, with euro on 5)                               ▒  │   
  │    English (US) - English (Workman)                                          ▒  │   
  │    English (US) - English (Workman, international with dead keys)            ▒  │   
  │    English (US) - Russian (US, phonetic)                                     ▒  │   
  │    English (US) - Serbo-Croatian (US)                                        ▮  │   
  │    Other                                                                     ↓  │   
  │                                                                                 │   
  │                                                                                 │   
  │                      <Ok>                          <Cancel>                     │   
  │                                                                                 │   
  └─────────────────────────────────────────────────────────────────────────────────┘   
                                                                                        
Package configuration                                                                   
 ┌──────────────────────┤ Configuring keyboard-configuration ├───────────────────────┐  
 │ The layout of keyboards varies per country, with some countries having multiple   │  
 │ common layouts. Please select the country of origin for the keyboard of this      │  
 │ computer.                                                                         │  
 │                                                                                   │  
 │ Country of origin for the keyboard:                                               │  
 │                                                                                   │  
 │                    Persian                                      ↑                 │  
 │                    Polish                                       ▒                 │  
 │                    Portuguese                                   ▒                 │  
 │                    Portuguese (Brazil)                          ▒                 │  
 │                    Romanian                                     ▒                 │  
 │                    Russian                                      ▒                 │  
 │                    Serbian                                      ▒                 │  
 │                    Sinhala (phonetic)                           ▮                 │  
 │                    Slovak                                       ▒                 │  
 │                    Slovenian                                    ▒                 │  
 │                    Spanish                                      ↓                 │  
 │                                                                                   │  
 │                                                                                   │  
 │                      <Ok>                          <Cancel>                       │  
 │                                                                                   │  
 └───────────────────────────────────────────────────────────────────────────────────┘  
                                                                                        
Package configuration                                                                   
         ┌──────────────┤ Configuring keyboard-configuration ├───────────────┐          
         │ Please select the layout matching the keyboard for this machine.  │          
         │                                                                   │          
         │ Keyboard layout:                                                  │          
         │                                                                   │          
         │             Russian                                   ↑           │          
         │             Russian - Bashkirian                      ▮           │          
         │             Russian - Chuvash                         ▒           │          
         │             Russian - Chuvash (Latin)                 ▒           │          
         │             Russian - Kalmyk                          ▒           │          
         │             Russian - Komi                            ▒           │          
         │             Russian - Mari                            ▒           │          
         │             Russian - Ossetian (legacy)               ▒           │          
         │             Russian - Ossetian (WinKeys)              ▒           │          
         │             Russian - Russian (DOS)                   ▒           │          
         │             Russian - Russian (legacy)                ▒           │          
         │             Russian - Russian (Macintosh)             ▒           │          
         │             Russian - Russian (phonetic)              ↓           │          
         │                                                                   │          
         │                                                                   │          
         │                 <Ok>                     <Cancel>                 │          
         │                                                                   │          
         └───────────────────────────────────────────────────────────────────┘          
                                                                                        
Package configuration                                                                   
 ┌──────────────────────┤ Configuring keyboard-configuration ├───────────────────────┐  
 │ You will need a way to toggle the keyboard between the national layout and the    │  
 │ standard Latin layout.                                                            │  
 │                                                                                   │  
 │ Right Alt or Caps Lock keys are often chosen for ergonomic reasons (in the        │  
 │ latter case, use the combination Shift+Caps Lock for normal Caps toggle).         │  
 │ Alt+Shift is also a popular combination; it will however lose its usual behavior  │  
 │ in Emacs and other programs that use it for specific needs.                       │  
 │                                                                                   │  
 │ Not all listed keys are present on all keyboards.                                 │  
 │                                                                                   │  
 │ Method for toggling between national and Latin mode:                              │  
 │                                                                                   │  
 │                             Right Logo key             ↑                          │  
 │                             Menu key                   ▮                          │  
 │                             Alt+Shift                  ▒                          │  
 │                             Control+Shift              ▒                          │  
 │                             Control+Alt                ↓                          │  
 │                                                                                   │  
 │                                                                                   │  
 │                      <Ok>                          <Cancel>                       │  
 │                                                                                   │  
 └───────────────────────────────────────────────────────────────────────────────────┘  
                                                                                        
Package configuration                                                                   
  ┌──────────────────────┤ Configuring keyboard-configuration ├──────────────────────┐  
  │ When the keyboard is in national mode and one wants to type only a few Latin     │  
  │ letters, it might be more appropriate to switch temporarily to Latin mode. The   │  
  │ keyboard remains in that mode as long as the chosen key is kept pressed. That    │  
  │ key may also be used to input national letters when the keyboard is in Latin     │  
  │ mode.                                                                            │  
  │                                                                                  │  
  │ You can disable this feature by choosing "No temporary switch".                  │  
  │                                                                                  │  
  │ Method for temporarily toggling between national and Latin input:                │  
  │                                                                                  │  
  │                               No temporary switch                                │  
  │                               Both Logo keys                                     │  
  │                               Right Alt (AltGr)                                  │  
  │                               Right Logo key                                     │  
  │                               Left Alt                                           │  
  │                               Left Logo key                                      │  
  │                                                                                  │  
  │                                                                                  │  
  │                      <Ok>                          <Cancel>                      │  
  │                                                                                  │  
  └──────────────────────────────────────────────────────────────────────────────────┘  
                                                                                        
Package configuration                                                                   
  ┌──────────────────────┤ Configuring keyboard-configuration ├──────────────────────┐  
  │ With some keyboard layouts, AltGr is a modifier key used to input some           │  
  │ characters, primarily ones that are unusual for the language of the keyboard     │  
  │ layout, such as foreign currency symbols and accented letters. These are often   │  
  │ printed as an extra symbol on keys.                                              │  
  │                                                                                  │  
  │ Key to function as AltGr:                                                        │  
  │                                                                                  │  
  │                       The default for the keyboard layout                        │  
  │                       No AltGr key                                               │  
  │                       Right Alt (AltGr)                                          │  
  │                       Right Control                                              │  
  │                       Right Logo key                                             │  
  │                       Menu key                                                   │  
  │                       Left Alt                                                   │  
  │                       Left Logo key                                              │  
  │                       Keypad Enter key                                           │  
  │                       Both Logo keys                                             │  
  │                       Both Alt keys                                              │  
  │                                                                                  │  
  │                                                                                  │  
  │                      <Ok>                          <Cancel>                      │  
  │                                                                                  │  
  └──────────────────────────────────────────────────────────────────────────────────┘  
                                                                                        
Package configuration                                                                   
  ┌──────────────────────┤ Configuring keyboard-configuration ├──────────────────────┐  
  │ The Compose key (known also as Multi_key) causes the computer to interpret the   │  
  │ next few keystrokes as a combination in order to produce a character not found   │  
  │ on the keyboard.                                                                 │  
  │                                                                                  │  
  │ On the text console the Compose key does not work in Unicode mode. If not in     │  
  │ Unicode mode, regardless of what you choose here, you can always also use the    │  
  │ Control+period combination as a Compose key.                                     │  
  │                                                                                  │  
  │ Compose key:                                                                     │  
  │                                                                                  │  
  │                                No compose key                                    │  
  │                                Right Alt (AltGr)                                 │  
  │                                Right Control                                     │  
  │                                Right Logo key                                    │  
  │                                Menu key                                          │  
  │                                Left Logo key                                     │  
  │                                Caps Lock                                         │  
  │                                                                                  │  
  │                                                                                  │  
  │                      <Ok>                          <Cancel>                      │  
  │                                                                                  │  
  └──────────────────────────────────────────────────────────────────────────────────┘  
                                                                                        
DietPi-Config                                                                           
           ┌────────────────┤ Changes Made - Reboot Now? ├─────────────────┐            
           │                                                               │            
           │  A reboot is required to apply your new settings.             │            
           │  Would you like to reboot now?                                │            
           │                                                               │            
           │                                                               │            
           │                <Yes>                   <No>                   │            
           │                                                               │            
           └───────────────────────────────────────────────────────────────┘            

А теперь, чтобы задействовать все настройки поправим файл /etc/default/locale

#  File generated by update-locale
LC_ALL=ru_RU.UTF-8
LC_MESSAGES=ru_RU.UTF-8
LANG=ru_RU.UTF-8
LANGUAGE=ru_RU.UTF-8