End to end setup of debian server with oscam and one dreambox

  • Guys none of this is my work but I have spent ther last several days getting my first server off the ground with excellent help from here plus different tutorials. I am up and running now and thought I would put together the end to end process I went through. It was a good learning experience......



    End to end setup of debian server with OScam and one dreambox using smargo sharing Sly locally


    First go here http://linuxsat-support.com/li…-auto-install-script.html (Thanks to Ten Below) and install package and give it a static address then ssh into the server as root using putty.
    Now follow the Tut below (not my work credits to Kapzaz for this)


    1) Prepare 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 oscam - Revision 5692: /trunk 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 yours.
    mv oscam oscam.x86
    cp oscam.x86 /var/bin (I had no var/bin folder so mkdir bin whilst in var)


    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:
    /var/bin/oscam.x86 &
    exit0


    7) Downloading 4 oscam config files:
    cd /usr/local/etc/


    wget http://web.zone.ee/kapzas/oscam.conf
    wget http://web.zone.ee/kapzas/oscam.server
    wget http://web.zone.ee/kapzas/oscam.user
    wget http://web.zone.ee/kapzas/oscam.services


    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.


    Go here for the OScam config files Forum Gateway - Powered by DnP Firewall I used this config… Oscam Sly UK Configs For Updating Entitlements (Thanks to Ten Below) overwrite the ones you downloaded with these then edit the personal stuff.



    These are my config files with relevant stuff edited out.


    OSCAM USER
    [account]
    user = xxxxx
    #description = for local mgcamd or DVBAPI
    pwd = xxxxx
    disabled = 0
    uniq = 1
    group = 1
    au = *** UK
    caid = 0963:000000


    OSCAM CONFIG
    [global]
    nice = -1
    WaitForCards = 1
    logfile = stdout
    preferlocalcards = 1
    saveinithistory = 1


    [webif]
    httpport = 8888
    httpuser = admin
    httppwd = admin
    httpallowed = 127.0.0.1,192.168.0.0-192.168.255.255
    # protocols


    [newcamd]
    key = 0102030405060708091011121314
    port = 15366@0963:000000;10001@0963:000000


    OSCAM SERVER
    [reader]
    label = *** UK
    enable = 1
    protocol = mouse
    device = /dev/ttyUSB0
    caid = 0963:000000
    # 0963 is *** UK.
    boxid = xxxxxxxx Boxkey here no spaces
    # Oscam can read a *** card i.d, but you can also put this
    # in manually (Mine didn’t work until I put in key)
    detect = cd
    cardmhz = 357
    # this helps the card run more smootly
    group = 1
    # Oscam has the concept of groups. Only users in group 1 can
    # use this reader. I'm only using one group.
    emmcache = 1,3,2
    ecmcache = 1
    blockemm-unknown = 1
    blockemm-g = 1
    # these ensure smooth decrypting
    lb_weight = 101
    # for load balancing - can be commented out.


    Smargo Reader
    Configure smargo reader as I did in oscam server use LSUSB to find out what port it’s on and edit accordingly


    DM800HD PVR
    If you were running Cccam before for card sharing then you already have the cccam config file on your dreambox. If not then you need to download CCCam 2.2.1 and install it. You need to configure an N: Line in CCCam.cfg on your dreambox to reflect the Debian Servers IP address, the Port Address (bottom of oscam config. This can be what you want) and user name and password from Oscam user info. It should look something like this…
    N: 192.168.0.xx 15366 xxxxx xxxxx 01 02 03 04 05 06 07 08 09 10 11 12 13 14 256


    For each dreambox you need to add another account in OScam User (just copy/paste first and alter user etc. And you will also need to add another N: line in CCCam.cfg


    Now restart your cccam and oscam You can access the OScam webIF by using the servers IP plus port number (See webif in OScam Config) then fill in user and password. Put your *** card in the smargo reader chip facing the lights


    Usefull Links


    http://streamboard.gmc.to/wiki/index...fig/oscam.user
    http://streamboard.gmc.to/wiki/index...g/oscam.server
    http://streamboard.gmc.to/wiki/index...fig/oscam.conf
    http://streamboard.gmc.to/wiki/index...oscam.services



    Job Done!!
    Steve.

OSCam Support Forum

Configs, discussion, downloads and guides for OSCam Softcam.

Participate now!

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