Romanian Afrikaans Albanian Arabic Armenian Azerbaijani Belarusian Bulgarian Chinese (Simplified) Croatian Czech Danish Dutch English Estonian Finnish French Georgian German Greek Hebrew Hungarian Icelandic Irish Italian Latvian Lithuanian Macedonian Norwegian Polish Portuguese Russian Serbian Slovak Slovenian Spanish Swedish Turkish Ukrainian
Login/Register
Welcome, Guest
Username Password: Remember me
 
youtube
  • Page:
  • 1

TOPIC: HOW TO : Oscam on Debian

HOW TO : Oscam on Debian 2 years, 9 months ago #4038

  • stelian
  • OFFLINE
  • Administrator
  • Posts: 5723
  • Karma: 38
OSCAM on DEBIAN

'' Get Debian Lenny latest unstable version installed on your PC.
It is easier for linux begginers to use that version as all necesary files can be easy installed/updated using Synaptic Package Manager. Make sure kernel version is 12.30 or higher, current as I write this is 12.33. This is important if you use USB reader ie. Smargo in native mode. Earlier kernels have a problem with USB timing.

Using the Manager to check/update kernel and get/update all files listed below:
OSCam Forum | OSCam - General | Everything needed to compile
(note: make sure cmake is 2.8.0-5 or higher, it is important)

Start Update Manager and do search for all listed files, install not installed, update all with newer versions if required. Easy.

Now open console and do:

su
(put admin password)
(alternatively you can work as root, but not reccomended)
mkdir /usr/src/build
(if not there make directory /usr/local/bin and /usr/local/etc ie. mkdir /usr/local/bin )
Debian apt-get install bzip2
apt-get install gcc g++ cmake libpcsclite1 libpcsclite-dev subversion

(now compile your oscam binary)
cd /usr/src
wget cdnetworks-us-2.dl.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.6/libusb-1.0.6.tar.bz2
tar xjvf libusb-1.0.6.tar.bz2
cd libusb-1.0.6
./configure --enable-shared=no
make
make install
cd /usr/src
svn co oscam - Revision 1927: /trunk oscam
cd oscam
mkdir build
cd build
cmake .. (note: those 2 dots are required)
make

If all ok you should find oscam binary in /usr/src/oscam/build directory.

cd /usr/src/oscam/build
ls (this will list the contents of build)

now we will copy oscam to /usr/local/bin

cp oscam /usr/local/bin
cd /usr/local/bin
ls

oscam should be listed here. Next:
chmod 755 oscam

Before you start the server make sure you got all 3 oscam config files in /usr/local/etc directory.


while in /usr/local/bin start oscam:
./oscam -b
to stop oscam just put:
killall -9 oscam
Your oscam log file will be in /var/log/ directory

Open another terminal window and put command:
tail -f /var/log/oscam.log (this will show you what is going on in real time)

To compile latest version next time, just follow this:
cd /usr/src
svn co oscam - Revision 1927: /trunk oscam
cd /usr/src/oscam/build
cmake ..
make

To get webif support replace cmake .. with cmake -DWEBIF=1 .. ''

Thanks @ mborkp


Don't dream your life - live your DREAMbox !
DON'T FORGET TO SAY '' THANKS '' Note: Viewing Pay TV without a valid subscription is illegal All the files available here are kept for experimental and educational purpose only!


Last Edit: 2 years, 9 months ago by stelian.
  • Page:
  • 1
Time to create page: 0.30 seconds