linux RedHat 7+
RedHat - ,
.
/etc/sysconfig/i18n
# LANG
#
LANG="ru_RU.koi8r"
LC_ALL="ru_RU.koi8r"
LINGUAS="ru_RU.koi8r"
#SYSFONT="koi8-8x16"
SYSFONT="cyr-sun16"
SYSFONTACM="koi8-r"
/etc/sysconfig/keyboard
#
KEYTABLE="ru"
# KEYTABLE="ru_win"
.profile
# "ru" / LANG shell'
alias ru='if [ -z "$LANG" ] ; then export LANG=ru_RU.koi8r LC_CTYPE=ru_RU.koi8r ; else unset LANG LC_CTYPE ; fi ; echo "LANG=$LANG\nLC_CTYPE=$LC_CTYPE\n" ;'
X-windows
Origin: http://mls.by.ru/
3 .
cabextract-0.6-i386-1dl.tgz
freetype2-2.1.4rc2-i386-4dl.tgz
webfonts-1.0-i386-3dl.tgz
4- .
- .
:
webfonts.tar.gz /usr/share/webfonts,
./sh doinst.sh.
9 Slackware.(., .)
:
1. /etc/rc.d/rc.font
setfont Cyr_a8x16
mapscrn koi2alt
for n in 1 2 3 4 5 6; do
echo -ne "\033(K" > /dev/tty$n
done
2. /etc/rc.d/rc.keymap
loadkeys ru-ms.map
3. /etc/profile.d/lang.sh
export LC_ALL=
export LANG=ru_RU.KOI8-R
export LC_NUMERIC=C
export LC_TIME=ru_RU.KOI8-R
export LC_COLLATE=ru_RU.KOI8-R
export LC_MONETARY=ru_RU.KOI8-R
export LC_MESSAGES=ru_RU.KOI8-R
export LC_PAPER=ru_RU.KOI8-R
export LC_NAME=ru_RU.KOI8-R
export LC_ADDRESS=ru_RU.KOI8-R
export LC_TELEPHONE=ru_RU.KOI8-R
export LC_MEASUREMENT=ru_RU.KOI8-R
export LC_IDENTIFICATION=ru_RU.KOI8-R
LC_ALL=ru_RU.KOi8-R,
,
LICQ.
4. /usr/share/locale
locale.alias russian :
russian ru
ru ru_RU
ru_RU ru_RU.KOI8-R
.
5. /etc/X11
XF86Config :
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,ru(winkeys)"
Option "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll"
EndSection
us,ru -
6.
truetype , ,
fonts.cache-1 /usr/X11R6/bin/fc-cache
\usepackage[koi8-r]{inputenc}
\usepackage[russian]{babel}
1. :
export LANG="C"
export LC_CTYPE="ru_RU.KOI8-R"
export LC_COLLATE="ru_RU.KOI8-R"
export LC_TIME="C"
( cut-n-paste,
export LANG="C" ,
-).
2. .emacs
(set-language-environment 'cyrillic-KOI8)
(set-selection-coding-system 'x-ctext-with-extensions)
Origin: http://www.livejournal.com/users/tiphareth/545870.html
/etc/environment:
G_FILENAME_ENCODING="@locale"
G_BROKEN_FILENAMES=1
Last-modified: Sat, 16 Dec 2006 20:32:35 GMT