Author Topic: How to compile and run manually Oscam for Debian  (Read 5922 times)

0 Members and 2 Guests are viewing this topic.

Offline mevko757

  • Jr. Member
  • **
  • Posts: 35
How to compile and run manually Oscam for Debian
« 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 You are not allowed to view links. Register or Login 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 You are not allowed to view links. Register or Login
wget You are not allowed to view links. Register or Login
wget You are not allowed to view links. Register or Login
wget You are not allowed to view links. Register or Login
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
You are not allowed to view links. Register or Login



Offline mjoninhas

  • Jr. Member
  • **
  • Posts: 2
How to compile and run manually Oscam for Debian
« Reply #1 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