Установка OSCAM
Устанавливаем необходимые пакеты
apt-get install pkg-config subversion dialog libusb-dev libusb-1.0-0 libssl-dev cmake g++ monit
Устанавливаем OSCAM
cd /usr/src
svn co http://streamboard.gmc.to/svn/oscam/trunk oscam-svn
cd oscam-svn
# Для больших нагрузок в globals.h меняем CS_MAXPENDING 32 ==> 128
./config.sh
mkdir build
cd build
cmake ..
make
make install
Конфиг Monit:
set daemon 2 # seconds
set logfile /var/log/monit.log
check process oscam with pidfile /var/run/oscam.pid
start program = "/bin/bash -c '/usr/local/bin/oscam -b -t /tmp/.oscam && pidof oscam > /var/run/oscam.pid'"
stop program = "/usr/bin/killall -9 oscam"
if cpu > 30% for 2 cycles then restart
Устанавливаем скрипты для апдейта oscam.srvid с сайта lynsat.com
wget -O /usr/local/bin/lyngsat2srvid.pl http://sokolov.me/iptv/linuxstreamer/lyngsat2srvid.pl
chmod 755 /usr/local/bin/lyngsat2srvid.pl
wget -O /usr/local/bin/channelsfilter.pl http://sokolov.me/iptv/linuxstreamer/channelsfilter.pl
chmod 755 /usr/local/bin/channelsfilter.pl