Wednesday, June 22, 2011

Guide how to make oscam work on ClearOS 5.1 + smargo

This guide will fix the anoying problem of librareryfiles missing making oscam not to start at all.


Code:
cd /lib/
ln -s libcrypto.so.0.9.8e libcrypto.so.0.9.8
yum install subversion gcc automake make openssl-devel
yum upgrade
cd /usr/local/bin/
svn co http://oscam.ump2002.net/svn/oscam/trunk oscam-svn
cd oscam-svn/
make
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-svnOkey 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


Code:
[global]
nice = -19
WaitForCards = 1
[monitor]
port = 988
aulow = 120
monlevel = 0
[newcamd]
key = 0102030405060708091011121314
port = 34000@Cards CAID:000000oscam.server


Code:
[reader]
Label = Your card
Protocol = mouse
Detect = cd
Device = /dev/ttyUSB0
mhz = 357
EMMCache = 1,1,2
Group = 1
CAID = Cards CAID
BoxID = ****** oscam.user


Code:
[account]
user = user
pwd = pass
group = 1
uniq = 1
caid = Cards CAID
ident = Cards CAID:000000
AU = Your card
monlevel = 0Check 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:
Example:

Code:
N: serverip 34000 user pass 01 02 03 04 05 06 07 08 09 10 11 12 13 14For making oscam autostart each time you restart or start your server simply:

Code:
nano /etc/rc.d/rc.local
In the empty space at the bottom under the last line you add:
/usr/local/bin/oscamThen Ctrl+O for save and then Ctrl+X for exit the editor.
__________________

No comments:

Post a Comment