Русификация Slackware 12: различия между версиями

Содержимое удалено Содержимое добавлено
Нет описания правки
Строка 9:
Для выбора пакетов удобнее всего режим menu, lilo проще настраивается,
если выбрать метод simple. При выборе пакетов важно не забыть:
* l/glibc-i18n (содержит locale)
* x/x11-fonts-cyrillic (русские шрифты для старых toolkitов, не использующих freetype2, например, gtk1)
* x/dejavu-ttf или x/x11-fonts-scalable (русские ttf-шрифты, dejavu --- более новый и удачный вариант)
x/dejavu-ttf или
x/x11-fonts-scalable (русские ttf-шрифты, dejavu --- более новый и
удачный вариант)
 
Если используется kde:
* kdei/kde-i18n-ru (русский перевод kde)
* kdei/koffice-i18n-ru (русский перевод koffice)
 
=== 2. ===
 
Поставить нужные пакеты из extra/ и при желании обновиться из testing/
* extra/aspell-word-lists/aspell-ru --- русский словарь для aspell
 
extra/aspell-word-lists/aspell-ru --- русский словарь для aspell
 
=== 3. Стандартный набор ttf-шрифтов от Microsoft. ===
Строка 49 ⟶ 46 :
Русский шрифт в /etc/rc.d/rc.font
<code>
#!/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
</code>
 
Раскладка клавиатуры в /etc/rc.d/rc.keymap
<code>
#!/bin/sh
# Load the keyboard map. More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
/usr/bin/loadkeys ru-utf.map
fi
</code>
 
Локаль в /etc/profile.d/lang.sh
<code>
#!/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
 
# 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
</code>
 
и /etc/profile.d/lang.csh
<code>
#!/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
 
# Another option for en_US:
# End of /etc/profile.d/lang.csh
#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
</code>
 
Строка 150 ⟶ 147 :
бинарными фирменными.
Для свободных драйверов скачиваем и ставим libdrm, скачиваем mesa-6.4.2 и собираем:
make linux-dri-x86
Mesa-6.4.2/lib/r300_dri.so переносим в /usr/X11R6/lib/modules/dri
 
Строка 158 ⟶ 155 :
support, то в /etc/fstab надо дописать строчку:
 
tmpfs /dev/shm tmpfs defaults 0 0
 
Скачать с сайта ati ati-driver-installer и запустить его.
Строка 203 ⟶ 200 :
EndSection
 
=== 8. Настройка звука ===
 
Далее необходимо настроить звук: