Русский шрифт в /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и /etc/profile.d/lang.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:
#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
2. Правка конфигурационного файла /etc/aide.conf по типу:
/etc p+i+u+g
!/etc/mtab
3. Создание снимка указанной ф.с:
# aide --init
4. Копируем базу из /var/lib/aide/aide.db.new.gz в /var/lib/aide/aide.db.gz
5. Создаём скрипт проверки:
#!/bin/bash
ReportDir=/usr/local/stat/report
LogFile=/var/log/aide.log
Hostname="www"
Mail='unix@domain.kz'
Date=`date '+%Y-%m-%d'`
cd $ReportDir
/usr/sbin/aide --check
SZ=`ls -l /var/log/aide.log | awk {'print $5'}`;
if [ $SZ -eq 0 ]; then
/bin/logger -p local0.info "Integrity Check was succesfull complete. Nothing changes."
else
# service sendmail start; sleep 15;
mail -s "Integrity Checking Warning from ${HOSTNAME}" $Mail < $LogFile # sleep 15; service sendmail stop; fi exit 0 6. Далее можно сделать снапшот системы и забакапить его на CD к примеру, для дальнейшей сверки в случае непрошенного вторжения:
# mkisofs -V Aide_DB`date +%F` -J -R -o aide.iso /Aide/directory
# cdrecord -v -eject aide.iso
Всё! Всем удачи и целостности в НГ !!!