Wednesday, June 22, 2011

Guide how to make OsCaM work on ClearOS 5.1

Hello fellow ECS'ers ;)
Long time since i wrote a guide for you, but this one is well needed!
First of all i want to thank a old friend of mine, spitz, for making this possible, you saved me from more sleepless nights staring into my screen :)
Also many MANY thanks to our wonderful mod here @ ECS, kapzas, thought i know most of the time i can be a PITA you still are there to help me out :)
This guide is based on a fresh installed ClearOS box, but i see no problems using this guide on a exstising machine. I have no idea if this works on other linux distros like the old clarke connect, feel free to test and report in this thread, allthought i had no problems on ClearOS 5.1
This guide will fix the anoying problem of librareryfiles missing making oscam not to start at all.

cd /lib/
ln -s
yum install subversion gcc automake make openssl-devel
yum upgrade
cd /usr/local/bin/
svn co oscam-svn
cd oscam-svn/
cd Distribution/
mv <the filename of your oscam binfile depending on svn version> oscam (example: mv oscam-0.99.4svn1739-i686-pc-linux oscam)
cp oscam /usr/local/bin/oscam 
cd /usr/local/bin/
rm -fr OSCam-0.99.4-i686-pc-linux*
rm -fr oscam-svn
Okey now when you are this far its time to upload your config files to /usr/local/etc/

The 3 most important files the oscam.conf, oscam.server and oscam.user of mine looks like this (i use a smargo as reader):

nice = -19
WaitForCards = 1
port = 988
aulow = 120
monlevel = 0
key = 0102030405060708091011121314
port = 34000@Cards CAID:000000
Label = Your card
Protocol = mouse
Detect = cd
Device = /dev/ttyUSB0
mhz = 357
EMMCache = 1,1,2
Group = 1
BoxID = ****** :)
user = user
pwd = pass
group = 1
uniq = 1
caid = Cards CAID
ident = Cards CAID:000000
AU = Your card
monlevel = 0
Check so all the files in /usr/local/etc/ has chmod 755, also oscam file in /usr/local/bin/ should also have chmod 755!

Then its time to execute the bin file, if you have done everything right it will start without any error messages. Best thing is to write ./oscam -b and check the file oscam.log in /var/log/

Then just add a N: line in your cccam.cfg or your choice of emu:
N: serverip 34000 user pass 01 02 03 04 05 06 07 08 09 10 11 12 13 14
For making oscam autostart each time you restart or start your server simply:
nano /etc/rc.d/rc.local
In the empty space at the bottom under the last line you add:
Then Ctrl+O for save and then Ctrl+X for exit the editor.

This have been working for 2 straight days in my server now without any problems, no lost ecm's etc. I am currently running a NDS3 card with this config.

Have a great weekend! Cheers

No comments:

Post a Comment