CardSharing-X

» CardSharing Section => General Tutorials => » CS Help and Tutorials « => OScam Tutorials => Topic started by: mevko757 on May 03, 2011, 03:54:32 PM

Title: How to compile and run manually Oscam for Debian
Post by: mevko757 on May 03, 2011, 03:54:32 PM
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 (http://oscam.ump2002.net/svn/oscam/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:
Code: You are not allowed to view links. Register or Login
/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 (http://www.oscamconfigs.info/)
Title: How to compile and run manually Oscam for Debian
Post by: mjoninhas on July 01, 2014, 04:11:23 PM
hi,

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

thanks