How to compile and run manually Oscam for Debian

Started by mevko757, May 03, 2011, 03:54:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mevko757

As i am asked several times how to for Debian, then here it is. That tuto can be useful if the automated scripts fails, or u want learn manual way. Includes next oscam modules: webinterface, smargo smartreader (USB), serial (COM) reader, mouse (USB) reader and omnikey/SCM (PCSC) reader.


1) Prepair for compile with installing new needed packs:
apt-get update
apt-get install build-essential
apt-get install libssl-dev libpcsclite-dev
apt-get install mercurial cvs subversion libncurses-dev
apt-get install cmake

2) Oscam compile:
cd /usr/src
svn co oscam - Revision 5165: /trunk oscam
cd oscam
cmake -DWEBIF=1 -DPCSC=1
make

3) Oscam rename (you can skip rename if u don´t want add .x86 to the end) and copy (if you use /var/bin as your default cam path). If you use another path add your´s.
mv oscam oscam.x86
cp oscam.x86 /var/bin

4) Unused oscam compile directory delete:
cd ..
rm -rf oscam

5) Setting oscam to correct attribute:
cd /var/bin
chmod 755 oscam.x86

6) Oscam automatic startup with debian bootup:
nano /etc/rc.local add next line before the "exit0" line, like so:
/var/bin/oscam.x86 &
exit0

7) Downloading 3 oscam config files:
cd /usr/local/etc/
wget http://web.zone.ee/kapzas/oscam.conf
wget http://web.zone.ee/kapzas/oscam.server
wget http://web.zone.ee/kapzas/oscam.user
wget http://web.zone.ee/kapzas/oscam.services
chmod 755 oscam.conf
chmod 755 oscam.server
chmod 755 oscam.user
chmod 755 oscam.services
At last edit oscam config files for your needs. If u want update your oscam for latest svn just run setp 2), 3) and 4) over again. How to conf oscam for your needs you find from ECS, google or try
Oscam config sampels for various cards



mjoninhas

hi,

Can u please update this tutorial? I'm having some difficulties on configure my raspberry pi.

thanks