Север
2008-02-13
Русский шрифт в /etc/rc.d/rc.font
#!/bin/sh # # This selects your default screen font from among the ones in # /usr/share/kbd/consolefonts. # unicode_start LatArCyrHeb-16 for i in 1 2 3 4 5 6;do echo -ne "\033%G" >/dev/tty$i done
Примечание: если вам понравился шрифт, который стоял по-умолчанию, вместо LatArCyrHeb-16 пропишите cyr-sun16
Раскладка клавиатуры в /etc/rc.d/rc.keymap
#!/bin/sh # Load the keyboard map. More maps are in /usr/share/kbd/keymaps. if[ -x /usr/bin/loadkeys ]; then /usr/bin/loadkeys /usr/share/kbd/keymaps/i386/qwerty/ru-utf.map.gz fi
Локаль в /etc/profile.d/lang.sh
#!/bin/sh # Set the system locale. (no, we don't have a menu for this ;-) # For a list of locales which are supported by this machine, type: # locale -aи /etc/profile.d/lang.csh# en_US is the Slackware default locale: #export LANG=en_US export LANG=ru_RU.UTF-8
# 'C' is the old Slackware (and UNIX) default, which is 127-bit # ASCII with a charmap setting of ANSI_X3.4-1968. These days, # it's better to use en_US or another modern $LANG setting to # support extended character sets. #export LANG=C
# There is also support for UTF-8 locales, but be aware that # some programs are not yet able to handle UTF-8 and will fail to # run properly. In those cases, you can set LANG=C before # starting them. Still, I'd avoid UTF unless you actually need it. #export LANG=en_US.UTF-8
# Another option for en_US: #export LANG=en_US.ISO8859-1
# One side effect of the newer locales is that the sort order # is no longer according to ASCII values, so the sort order will # change in many places. Since this isn't usually expected and # can break scripts, we'll stick with traditional ASCII sorting. # If you'd prefer the sort algorithm that goes with your $LANG # setting, comment this out. export LC_COLLATE=C
# End of /etc/profile.d/lang.sh
#!/bin/csh # Set the system locale. (no, we don't have a menu for this ;-) # For a list of locales which are supported by this machine, type: # locale -a
# en_US is the Slackware default locale: ##setenv LANG en_US setenv LANG ru_RU.UTF-8
# 'C' is the old Slackware (and UNIX) default, which is 127-bit # ASCII with a charmap setting of ANSI_X3.4-1968. These days, # it's better to use en_US or another modern $LANG setting to # support extended character sets. #setenv LANG C
# There is also support for UTF-8 locales, but be aware that # some programs are not yet able to handle UTF-8 and will fail to # run properly. In those cases, you can set LANG=C before # starting them. Still, I'd avoid UTF unless you actually need it. #setenv LANG en_US.UTF-8
# Another option for en_US: #setenv LANG en_US.ISO8859-1
# One side effect of the newer locales is that the sort order # is no longer according to ASCII values, so the sort order will # change in many places. Since this isn't usually expected and # can break scripts, we'll stick with traditional ASCII sorting. # If you'd prefer the sort algorithm that goes with your $LANG # setting, comment this out. setenv LC_COLLATE C
# End of /etc/profile.d/lang.csh
Не забудьте убедиться в том, что на файлы rc.font, rc.keymap, lang.sh, lang.csh установлен атрибут "executable"!