This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
локализация_окружения [2017/06/19 15:57] val |
локализация_окружения [2022/10/02 16:51] val |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Локализация окружения ====== | ====== Локализация окружения ====== | ||
- | ===== Debian ===== | + | ===== Debian/Ubuntu ===== |
* [[https://wiki.debian.org/Locale|Debian Locale]] | * [[https://wiki.debian.org/Locale|Debian Locale]] | ||
+ | * [[https://www.linux16.ru/notes/ustanovka-cp1251-locale-v-linux.html|Установка CP1251 locale в Linux]] | ||
<code> | <code> | ||
- | # dpkg-reconfigure locales | + | # apt install locales dialog |
</code> | </code> | ||
+ | <code> | ||
+ | # echo 'ru_RU.UTF-8 UTF-8' > /etc/locale.gen | ||
- | ===== CentOS ===== | + | # locale-gen |
- | * [[http://theurbanpenguin.com/wp/index.php/configuring-the-locale-in-centos-7/|Configuring the Locale in CentOS 7]] | + | # LANG=ru_RU.UTF-8 date |
- | ===== Ubuntu ===== | + | # export LANG=ru_RU.UTF-8 |
- | ==== Systemd ==== | + | # echo LANG=ru_RU.UTF-8 > /etc/default/locale |
+ | </code> | ||
+ | или | ||
<code> | <code> | ||
- | # apt install language-pack-ru | + | # dpkg-reconfigure locales |
+ | </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 status | ||
Line 28: | Line 39: | ||
</code> | </code> | ||
- | ==== Upstart ==== | + | ===== Ubuntu Upstart ===== |
<code> | <code> | ||
- | # apt-get install language-pack-ru | ||
- | |||
# update-locale LANG="ru_RU.UTF-8" | # update-locale LANG="ru_RU.UTF-8" | ||