Automated Oscam/CCcam 2.1.3 Install Package For Debian 6

There are 252 replies in this Thread which was already clicked 60,900 times. The last Post () by ilk.

  • this is what i have mate which ones



    # /etc/crontab: system-wide crontab
    # Unlike any other crontab you don't have to run the `crontab'
    # command to install the new version when you edit this file
    # and files in /etc/cron.d. These files also have username fields,
    # that none of the other crontabs do.


    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin


    # m h dom mon dow user command
    17 * * * * root cd / && run-parts --report /etc/cron.hourly
    25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
    47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
    52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
    #



    00 3 * * * root /emu/script/./configupdate.sh >> /emu/log/configupdate.log 2>&1
    15,45 * * * * root /emu/script/./illegal.sh >> /emu/log/illegal.log 2>&1
    */5 * * * * root /emu/script/./check.sh >>/emu/log/check.log 2>&1
    02 * * * * root wget -O - http://127.0.0.1/cron_update.php?p=1 >/dev/null 2>&1
    30 * * * * root wget -O - http://127.0.0.1/cron_ping.php?p=1 >/dev/null 2>&1

    THANKYOU TO COMING TO THIS FANTASTIC SITE AND POSTING YOUR COMMENTS AND KNOWLEDGE FOR US ALL TO USE LONG LIVE THIS SITE

  • Hi i dont know what i did mate i though i'd solved it but once i rebooted server it is doing the same thing again.


    I use one omnikey card reader but have tried nothing at all in the cccam.cfg and it still reboots; that's why i thought it may be the scripts. Bang on the 5 minute mark it reboots every time.


    I'll see if i can disable the scripts somehow and see how it goes then.


    Thanks



    Edit, i just removed this line as it's the only one that had 5 mins set in it, will let you know how it goes.. (so far Uptime : 00d 00:11:49 )


    */5 * * * * root /emu/script/./check.sh >>/emu/log/check.log 2>&1

    • Official Post

    Delete the scripts in emu/script then edit the files crontab & rc.local in ect so they are left looking as below,


    crontab


    rc.local

    Code
    /bin/cccam start &
    /emu/oscam/oscam &
    exit 0

  • Hi
    Is the same information above available for a smargo reader.
    I have just installed debian and oscam and cccam on an old pc, and all of this is very new to me.
    Thanks in advance
    Pedigree

  • i installed my server with this script, and oscam are reading the card perfekt now but i can't access cccam how can i check if it's running or how do i fix it ?

  • I just did the installation. Debian6 + the script.
    I can confirm it should work correctly.


    Only thing is, that the default installed oscam.conf with the script, has parameter:


    httpallowed = 127.0.0.1,192.168.0.0-192.168.255.255

    --


    For this reason, people with networks outside this scope, like me, can't get access to Oscam.


    --


    To fix, change /usr/local/etc/oscam.conf and set this parameter to:


    httpallowed = 127.0.0.1,192.168.0.0-192.168.255.255,10.0.0.0-10.255.255.255,172.0.0.0-172.255.255.255

    and restart debian.

  • hi to all!


    how to limit the size of the file : debug.txt


    this file is create in the log directory by your cccam start script.


    this file on my server is 8 GB!!! i want to limit the size pleaaaseee

  • Introductions first questions later, please post an introduction in the introduction thread first of all.


    Thanks in advance


    I am not obligated, or connected to any particular brand, seller or retailer so any opinions given are not biased in anyway.
    Any information given is for hobby and research purposes only, and whilst every effort is made to ensure that all my responses are accurate, - Any action you may take based on my replies is done so at your own risk.
    Viewing Premium Channels or Media, without paying for them is illegal and if you do so, you do so at your own risk!

    BpGgW.jpg



    • Official Post


    8GB is crazy lol, either delete it manually at regular intervals or add this one,
    LogCleanup script to keep your server clean every week



    Another option to manage your server,


    Installing Webmin On Your Debian Server

  • OK here goes.. Great forum, lots of info and tutoritals, lots of hard work gone into these forums, so thanks for it all.. But im stuck, so
    after reading lots of posts over the past few days, and trying different "hardware" here is my problems.
    I want to setup a server for myself and friends and relatives..this tutorial seemed the best and easiest for my needs.
    I install debian (with smargo reader + sly card in USB port... wasnt sure if this was a necessity or not), and the auto scripts and the webservers work fine, on both 8888 and 16001
    i download the sly UK Oscam+CCcam2.1.3 config files and ftp them across as per the How to : Oscam Server or Cardreader with CCcam2.1.3 S*Y UK IPK guide
    now im stuck really. not sure how to create the clines and if i need to add them to the CCcam.cfg or the OScam.cfg or both...
    Other problem i have is with my card reader. do i need it on a specific firmware? do i need to configure it? and how do i check its working...
    I looked at the Smargo tutorial, and added the serial reader line to the top of the /var/etcCCcam.cfg file (used USB6 as i guess mine is on usb port 6 or is it USB0)
    I ran a lsusb and found the card to be on 006:003, so added that as a device to oscam.server, device is found but produces errors.



    when i do dmesg, i get >
    [ 311.400041] usb 6-2: new full speed USB device using uhci_hcd and address 4
    [ 316.563361] usb 6-2: New USB device found, idVendor=0403, idProduct=6001
    [ 316.563365] usb 6-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [ 316.563439] usb 6-2: configuration #1 chosen from 1 choice
    [ 316.571392] ftdi_sio 6-2:1.0: FTDI USB Serial Device converter detected
    [ 316.571416] usb 6-2: Detected FT232BM
    [ 316.571418] usb 6-2: Number of endpoints 2
    [ 316.571421] usb 6-2: Endpoint 1 MaxPacketSize 64
    [ 316.571423] usb 6-2: Endpoint 2 MaxPacketSize 64
    [ 316.571426] usb 6-2: Setting MaxPacketSize 64
    [ 316.572358] ftdi_sio ttyUSB0: Unable to read latency timer: -32
    [ 316.572454] usb 6-2: FTDI USB Serial Device converter now attached to ttyUSB0
    [ 317.302510] usb 6-2: usbfs: interface 0 claimed by ftdi_sio while 'brltty' sets config #1
    [ 317.305556] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
    [ 317.305582] ftdi_sio 6-2:1.0: device disconnected


    root@myserver:~# lsusb
    Bus 002 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC



    oscam logs...
    25/09/2012 16:30:30 0 s waiting for local card init
    25/09/2012 16:30:30 8766A28 r ***uk [smartreader] Using 0x82 as endpoint for smartreader hardware detection
    25/09/2012 16:30:30 8766A28 r Found smartreader device 002:005
    25/09/2012 16:30:30 8766A28 r ***uk [smartreader] Reader initialized (device=002:005, detect=cd, mhz=357, cardmhz=357)
    25/09/2012 16:30:31 8766A28 r ***uk [smartreader] card detected
    25/09/2012 16:30:35 8766A28 r ***uk [smartreader] usb bulk write failed : ret = -4
    25/09/2012 16:30:35 0 ***uk [smartreader] SR: USB bulk read failed with error 5
    25/09/2012 16:30:35 8766A28 r ***uk [smartreader] usb bulk write failed : ret = -1
    25/09/2012 16:30:35 0 ***uk [smartreader] SR: USB bulk read failed with error 5
    25/09/2012 16:30:35 8766A28 r ***uk [smartreader] usb bulk write failed : ret = -1
    25/09/2012 16:30:40 8766A28 r ***uk [smartreader] usb bulk write failed : ret = -4
    25/09/2012 16:30:40 8766A28 r ***uk [smartreader] usb bulk write failed : ret = -1



    everything seems simple and understandable, till using the card reader stage...
    Read posts about updating the smargo, others saying its not needed...
    But baffled as to what todo next.
    Is my Card broken or need downgrading?
    Any help or pointers appreciated. !!



    ** Updating this post as and when i fix/find/update things **

  • Hope you can help me with this one. I installed cccam and oscam with your great scripts and amended the config files. I am a little confused about what the top two lines are showing in the oscam webinterface. They were they went installed so assumed were the dummy/text ones as with cccam.


    How/should I delete?


    As you can see from the attached, one was showing as having a current channel


    27ea6f.png

  • Dont worry ¬
    its a good question though -
    i assumed that they refer to oscam program running - perhaps like "task manager" and the Http client being Apache ?


    However now the question has been asked i'm sure a more knowledgeable Answer will be forthcoming !


    Be sure its nothing to worry about dude ¬ unless its not there

    78cm dish on tm2300 metal gear motor + 1m Orb with tm2300 + 1.8m Channel Master on H-H floor mount + 80cm ISS with TM2300 AND Inverto Black LNB,inverto Unicable QUDL 42 LNB,- Global invacom Dscc LNB,- Triax KA LNB, - Yuri LNBF C Band YLF-CDP16C

  • I used the one on the oscam and cccam script; it's version 1.20-unstable_svn Rev. 7209. I am just unsure what those two boxes are or are doing.


    I think I am just about there with the Debian server - seems like everything is working except the decode of the card via oscam. The CCcam config file on the debian server shows as connected to oscam throught the n line but no local cards or entitlements are showing.


    I have also managed to connect the sat box to the debian server and decode channels (hop 2) via a test c line I applied to the debian server from a friend peer. I have now removed that text line and get nothing as oscam seems not to be decoding. I'll post the oscam config files soon.

  • Oscam files:


    oscam.conf


    [global]
    logfile = /dev/null
    cachedelay = 120
    nice = -1
    preferlocalcards = 1


    [newcamd]
    port = 10000@0963:000000
    key = 0102030405060708091011121314


    [webif]
    httpport = 8888
    httpuser = ****
    httppwd = ****
    httprefresh = 5
    httpallowed = 192.168.0.0-255.255.255.255


    oscam.user


    [account]
    user = ******
    pwd = *****
    monlevel = 0
    uniq = 0
    group = 1
    au = omnikey1


    oscam.server


    [reader]
    label = omnikey1
    protocol = pcsc
    device = 0
    caid = 0963
    detect = cd
    mhz = 357
    cardmhz = 357
    group = 1
    blockemm-u = 0
    blockemm-s = 0
    blockemm-g = 1
    blockemm-unknown = 1
    emmcache = 1,3,2


    oscam.services


    [***UK]
    caid=0963
    provid=000000
    srvid= 1915,1916,etc....


    oscam.srvid


    0963:D071|*** UK|?TV
    0963:1025|*** UK|100% Babes
    0963:2481|*** UK|1429 etc....



    Anything wrong with this?


    I have the n line on the debian service cccam config file as: N: 127.0.0.1 10001 [oscam user id] [oscam user pwd] 01 02 03 04 05 06 07 08 09 10 11 12 13 14 256

  • Still can't suss out what to do to get the card decoded. Oscam is giving reading to suugest decoded - acknowledges card, lists entitlements etc but then get this:


    19/10/2012 22:33:21 0 s init for all local cards done
    19/10/2012 22:33:21 0 s anti cascading disabled
    19/10/2012 23:05:48 ********** h Refresh Accounts requested by WebIF from 192.168.1.72
    19/10/2012 23:05:48 ********** h userdb reloaded: 1 accounts loaded, 0 expired, 0 disabled
    19/10/2012 23:05:48 ********** h userdb 1 accounts freed


    Doing my head in. CCam config connected vua c line but no locals or entitlements showing!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!