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 [Systemd] |
локализация_окружения [2019/11/21 12:28] val [Debian] |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Debian ===== | ===== Debian ===== | ||
- | [[https://wiki.debian.org/Locale|Debian Locale]] | + | * [[https://wiki.debian.org/Locale|Debian Locale]] |
<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]] | + | # echo LANG=ru_RU.UTF-8 > /etc/default/locale |
- | ===== Systemd Ubuntu ===== | + | # export LANG=ru_RU.UTF-8 |
+ | </code> | ||
+ | или | ||
+ | <code> | ||
+ | # dpkg-reconfigure locales | ||
+ | </code> | ||
+ | |||
+ | ===== Ubuntu ===== | ||
<code> | <code> | ||
# apt install language-pack-ru | # apt install language-pack-ru | ||
+ | </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 26: | Line 41: | ||
$ export LANG=ru_RU.utf8 | $ export LANG=ru_RU.utf8 | ||
</code> | </code> | ||
- | ===== Ubuntu ===== | ||
- | <code> | ||
- | # apt-get install language-pack-ru | ||
+ | ===== Ubuntu Upstart ===== | ||
+ | <code> | ||
# update-locale LANG="ru_RU.UTF-8" | # update-locale LANG="ru_RU.UTF-8" | ||