This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
локализация_окружения [2016/07/28 09:12] val [Systemd] |
локализация_окружения [2023/06/02 13:57] (current) val [Debian/Ubuntu] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Локализация окружения ====== | ====== Локализация окружения ====== | ||
| - | ===== Systemd ===== | + | ===== Debian/Ubuntu ===== |
| - | * [[http://theurbanpenguin.com/wp/index.php/configuring-the-locale-in-centos-7/|Configuring the Locale in CentOS 7]] | + | * [[https://wiki.debian.org/Locale|Debian Locale]] |
| + | * [[https://www.linux16.ru/notes/ustanovka-cp1251-locale-v-linux.html|Установка CP1251 locale в Linux]] | ||
| <code> | <code> | ||
| - | ubuntu# apt install language-pack-ru | + | # apt install locales dialog |
| + | </code> | ||
| + | <code> | ||
| + | # echo 'ru_RU.UTF-8 UTF-8' >> /etc/locale.gen | ||
| - | # localectl status | + | # locale-gen |
| - | # localectl list-locales | + | # LANG=ru_RU.UTF-8 date |
| - | # localectl set-locale LANG=ru_RU.utf8 | + | # export LANG=ru_RU.UTF-8 |
| - | # export LANG=ru_RU.utf8 | + | # echo LANG=ru_RU.UTF-8 > /etc/default/locale |
| + | </code> | ||
| + | или | ||
| + | <code> | ||
| + | # dpkg-reconfigure locales | ||
| </code> | </code> | ||
| - | ===== Ubuntu ===== | + | ==== Debian 11 ==== |
| <code> | <code> | ||
| - | # apt-get install language-pack-ru | + | client3:~# dpkg-reconfigure keyboard-configuration |
| + | </code> | ||
| + | ===== Ubuntu/CentOS Systemd ===== | ||
| + | * [[http://theurbanpenguin.com/wp/index.php/configuring-the-locale-in-centos-7/|Configuring the Locale in CentOS 7]] | ||
| + | |||
| + | <code> | ||
| + | $ localectl status | ||
| + | |||
| + | $ localectl list-locales | ||
| + | |||
| + | # localectl set-locale LANG=ru_RU.utf8 | ||
| + | |||
| + | $ export LANG=ru_RU.utf8 | ||
| + | </code> | ||
| + | |||
| + | ===== Ubuntu Upstart ===== | ||
| + | <code> | ||
| # update-locale LANG="ru_RU.UTF-8" | # update-locale LANG="ru_RU.UTF-8" | ||