Page 1 of 2 12 LastLast
Results 1 to 20 of 40

Thread: Oscam on Debian baby steps.

  1. #1
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    264
    Reputation
    1466

    Default Oscam on Debian baby steps.

    For a starter I'm not Linux guru but this steps got me running. If any mistakes or something missing, please correct

    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:

    (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
    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
    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
    cd /usr/src/oscam/build
    cmake ..
    make

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

    Hope some begginers will find it usefull.

    Cheers

  2. The Following 6 Users Say Thank You to mborkp For This Useful Post:

    gl007 (26-08-10),Grudge (01-04-10),kronk (31-03-10),malrose (16-03-10),OldTimer (06-09-10),sat 49 (16-03-10)



Look Here ->
  • #2
    Junior Member kronk's Avatar
    Join Date
    Jan 2008
    Posts
    30
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Rep Power
    200
    Reputation
    10

    Default

    Thanks mborkp for the quick tutorial.

    I have just built a VM last night and your steps work great.
    If I am using a a serial card reader (instead of USB) what is the line in the device= section in oscam.server ? Is it \dev\ttyS0 ?

    Are you able to post and example of oscam.server for Debian please ?

    Cheers,

    KronK.

  • #3
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    264
    Reputation
    1466

    Default

    Hi,
    this should work. Play with mhz and cardmhz if you got problems with ATZ. As below, the 3.57MHz card is overclocked to 6MHz. CAID for orange is as below and for blue is 090B.

    [reader]
    Label = Orange
    Protocol = Mouse
    Detect = CD (or RING or whatever )
    Device = /dev/ttyUSB0
    mhz = 600
    cardmhz = 357
    EMMCache = 1,3,2
    BoxID = XXXXXXXX
    Group = 1
    CAID = 096C

    Cheers
    EDIT: oh, and pay attention: /dev/ttyUSB0 not \dev\ttyUSB0, this is not windoze
    Last edited by mborkp; 03-04-10 at 02:36 PM.

  • The Following User Says Thank You to mborkp For This Useful Post:

    kronk (05-04-10)

  • #4
    Junior Member kronk's Avatar
    Join Date
    Jan 2008
    Posts
    30
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Rep Power
    200
    Reputation
    10

    Default

    Thanks mborkp,

    I made some adjustments and it is working great. Just need to learn a little more linux commands to make this autostart at login.

    Also you have mentioned that you use this setup win a Win 7 media centre. How do you intergrate this with Win 7 machine ? Which CAM do you use ? How does that connect to the linux machine ? With a config file on the Win 7 box ?

    Sorry for all the questions. Any info would be greatly apprecaited.

    Cheers,

    KronK

  • #5
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    264
    Reputation
    1466

    Default

    no problem kronk.
    I use DVB Viewer which is cheap and great media player like software. You can use remote controll with it, blind scanning and all the PC flexibility.
    In my case it does work with 2 sat cards ( AzureWave HD) and Acamd as a plugin which connects to oscam as newcamd or cccam client. I use newcamd because it does emm updates and no glitching. I got also CoreAVC codec which does a great job with NV 8600 silent video card. For bluerays I got TMT3 and sonar slim HDMI audio (true HD streaming) All this on W7 works reasonably good. Newer ATI video cards do thrue HD audio as well.

    If you really need WMC you can use software (forgot the name but it is on this forum) which connects to dreambox and gives you picture in WMC.
    You are limited to MS codecs and other limitation nonsense I think, main reason I preffere other software.
    Cheers



    Quote Originally Posted by kronk View Post
    Thanks mborkp,

    I made some adjustments and it is working great. Just need to learn a little more linux commands to make this autostart at login.

    Also you have mentioned that you use this setup win a Win 7 media centre. How do you intergrate this with Win 7 machine ? Which CAM do you use ? How does that connect to the linux machine ? With a config file on the Win 7 box ?

    Sorry for all the questions. Any info would be greatly apprecaited.

    Cheers,

    KronK

  • The Following User Says Thank You to mborkp For This Useful Post:

    kronk (07-04-10)

  • #6
    Junior Member kronk's Avatar
    Join Date
    Jan 2008
    Posts
    30
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Rep Power
    200
    Reputation
    10

    Default

    Thanks again mborkp.

    I am trying DVB Link for dreambox with WMC. Might try DVB Viewer with acamd and see how I go.

    What do you use for a program guide. Are you able to program recodrings etc like WMC ?

    Appreciate the help.

    Cheers,
    KronK.

  • #7
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    264
    Reputation
    1466

    Default

    The build in DVBViewer program guide has only now and next. There is some plugin for 7 days epg but I've never tested it so I do not know if it works in au. Sure you can program recordings manually. DVBViewer has also streaming ability so you can use any PC or able box at home to watch. Having 2 or more cards will allow you to watch and record/stream on different channels. You can also put terrestial dvb card to watch fta tv. So yes HTPC is great as you have everything in one box. There is DVB Link for DVBViewer which I tested with limited success but other people have it running, I was not very desperate for this The DVBViewer is only 15 Euro so really it is nothing for the program that sofisticated.

    I'm not sure that if you use dvb link for dreambox if you can use the epg from dreambox maybe? there should be dvb link users on this forum so maybe they can help.
    Cheers




    Quote Originally Posted by kronk View Post
    Thanks again mborkp.

    I am trying DVB Link for dreambox with WMC. Might try DVB Viewer with acamd and see how I go.

    What do you use for a program guide. Are you able to program recodrings etc like WMC ?

    Appreciate the help.

    Cheers,
    KronK.

  • The Following User Says Thank You to mborkp For This Useful Post:

    kronk (07-04-10)

  • #8
    Junior Member
    Join Date
    Mar 2009
    Posts
    165
    Thanks
    28
    Thanked 63 Times in 31 Posts
    Rep Power
    195
    Reputation
    316

    Default

    I needed to;
    cmake -DLIBUSBDIR=/usr/local -DHAVE_LIBUSB=1 ..

    To get the smartreader support enabled on lenny.. but then you need >= 2.6.30 too so dist-upgrade to squeeze we go.

  • #9
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    264
    Reputation
    1466

    Default

    hmmmm,
    "svn co oscam"

    should be really:

    "svn co oscam" ->remove ""

    so please change it while compiling last version.
    Cheers

    Quote Originally Posted by mborkp View Post
    For a starter I'm not Linux guru but this steps got me running. If any mistakes or something missing, please correct

    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:

    (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
    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
    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
    cd /usr/src/oscam/build
    cmake ..
    make

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

    Hope some begginers will find it usefull.

    Cheers
    Last edited by mborkp; 10-05-10 at 06:02 PM.

  • #10
    Junior Member
    Join Date
    May 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Reputation
    10

    Default

    Quote Originally Posted by mborkp View Post
    hmmmm,
    "svn co oscam"

    should be really:

    "svn co oscam" ->remove ""

    so please change it while compiling last version.
    Cheers

    Hi

    It looks like a realy good guide.

    It just don't work for me on my Ubuntu 8.04.
    Any change that you could help me there.
    Then we could end up with a guide for that too.
    I think it is well needed as beginners support for Oscam is pour.

    Thank

    T40T40

  • #11
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    264
    Reputation
    1466

    Default

    Hi,
    there is a very good thread how to setup Oscam on Ubuntu on this forum.
    Please do a search, I don't remember the exact thread of my head now.
    Cheers

    Quote Originally Posted by t40t40 View Post
    Hi

    It looks like a realy good guide.

    It just don't work for me on my Ubuntu 8.04.
    Any change that you could help me there.
    Then we could end up with a guide for that too.
    I think it is well needed as beginners support for Oscam is pour.

    Thank

    T40T40

  • #12
    Junior Member
    Join Date
    May 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Reputation
    10

    Default

    Yes I got it.



    I will try to read there..

    Thanks

  • #13
    Junior Member ident's Avatar
    Join Date
    Jun 2009
    Age
    45
    Posts
    102
    Thanks
    89
    Thanked 13 Times in 7 Posts
    Rep Power
    185
    Reputation
    75

    Default

    Hi,

    1st thanks for the useful post.

    I've been playing for many hours trying to get a working oscam server. I'm determined to get a my server faster with my ND$3 card but so far the best times have come from the DM800 internal slot and from what I here the cards run too hot in there and will burn up?

    Anyway since I dont want to risk it I figured SMARGO to be the best option but so far have had very little joy getting it going on anything other than UBUNTU and that has slow ECM times. I read that this is due to the kernal version? I'd next like to try getting it to work with UNSTABLE DEBIAN LENNY. I've tried Squeeze but had problems with CMAKE when trying to compile my Oscam.

    My question is how do I get Unstable Lenny on my machine (i386 PC based)? Is it easy to do because all I can find is stable releases which don't seem to allow extra packages?

    thanks for any help.

  • #14
    Senior Member porkchops's Avatar
    Join Date
    Nov 2009
    Location
    Mt Gambier
    Age
    48
    Posts
    536
    Thanks
    168
    Thanked 95 Times in 81 Posts
    Rep Power
    204
    Reputation
    543

    Default

    Quote Originally Posted by ident View Post
    My question is how do I get Unstable Lenny on my machine (i386 PC based)? Is it easy to do because all I can find is stable releases which don't seem to allow extra packages?


    The above link should answer this question - as looks like you need to install a stable version first to progress.

    Although a little bewildered as to your intentions, as have a similar thing with Ubuntu having 2 partitions one with Lucid and the other with Maverick, and find the later somewhat interesting in its behaviour, although as a pre-release, this is expected!

    What extra packages are you after, as me a simple matter of adding them to the sources repoistory!
    We cannot solve our problems with the same thinking we used when we created them - Albert Einstein

  • The Following User Says Thank You to porkchops For This Useful Post:

    ident (16-08-10)

  • #15
    Junior Member ident's Avatar
    Join Date
    Jun 2009
    Age
    45
    Posts
    102
    Thanks
    89
    Thanked 13 Times in 7 Posts
    Rep Power
    185
    Reputation
    75

    Default

    I admit I'm a complete linux noob. I've been simply trying to learn as I go whilst achieving a working CS server. Thanks for the link I'll have a read and will give Lenny another go.

  • #16
    Junior Member
    Join Date
    Mar 2008
    Posts
    38
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    198
    Reputation
    15

    Default Issues with oscam USB problems

    Ive followed the above advice in this thread without success. Ive setup a vmware ESX server with an install of the latest debian squeeze.

    uname shows I am running the correct version of kernel to avoid usb write issues while using smartreader protocol.

    Croot@debian:~# uname -r
    2.6.32-5-amd64

    I have issues with the following error.

    2010/08/24 22:56:08 7124 r02 IO:SR: Trying with parity EVEN
    2010/08/24 22:56:08 7124 r02 IO:SR: sending F=0174 (372) to smartreader
    2010/08/24 22:56:08 7124 r02 IO:SR: sending D=01 (1) to smartreader
    2010/08/24 22:56:18 7124 r02 usb bulk write failed : ret = -7
    2010/08/24 22:56:18 7124 r02 IO:SR: USB write error : -7

    Oscam never seems to get card ATR.... card is an orange one.

    my config files are as below... Any ideas ???

    oscam.server
    [reader]
    label = fx
    protocol = smartreader
    detect = CD
    device = 002:002
    mhz = 600
    cardmhz = 357
    EMMCache = 1,3,2
    Group = 1
    caid = 096c
    boxid = ********

    oscam.conf
    [global]
    nice = -19
    WaitForCards = 1
    [monitor]
    port = 988
    aulow = 120
    monlevel = 0
    [newcamd]
    key = 0102030405060708091011121314
    port = 10000@096c:000000;
    [webif]
    httpport = 8888
    httpuser = *****
    httppwd = *****
    httprefresh = 5
    httphideidleclients = 1
    httpallowed = 192.168.1.0-192.168.1.255

    oscam.user
    [account]
    user = test
    pwd = test
    uniq = 1
    group = 1
    au = fx
    ident = 096c:000000
    caid = 096c

  • #17
    Junior Member
    Join Date
    Mar 2009
    Posts
    165
    Thanks
    28
    Thanked 63 Times in 31 Posts
    Rep Power
    195
    Reputation
    316

    Default

    All I require is;

    [reader]
    label = fruit
    protocol = smartreader
    device = 005:002
    group = 1
    emmcache = 1,1,2
    caid = 069c
    boxid = 12345678

    If you have used serial/mouse protocol, detach/reset the device before using smartreader mode iirc

  • #18
    Member davo's Avatar
    Join Date
    Jan 2008
    Location
    In A House
    Age
    55
    Posts
    464
    Thanks
    32
    Thanked 202 Times in 103 Posts
    Rep Power
    232
    Reputation
    921

    Default

    i bet your "device = 002:002" is not correct.

    run the utility or log into WEBIF and Click on Readers, then hit the "Scan USB" it will come back with your actual correct address of your USB reader, (hopefully)

    change this line and your ready for next step.

  • #19
    Junior Member
    Join Date
    Mar 2008
    Posts
    38
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    198
    Reputation
    15

    Default device ID.

    I believe the device id is correct. I got information from list_smargo in compiled utils folder.... any other ideas ?? Would using vmware ESX affect how the smargo functions? Has anyone out there successfully installed oscam on a virtual debian install ?

    xdefiantx.

  • #20
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    264
    Reputation
    1466

    Default

    hi,
    check your libusb version, should be 1.0.6 or higher. Your smartreader version should not be lower than 1.3 also reader setting?
    Also lsusb for smargo address to meke sure.
    Cheers
    Last edited by mborkp; 26-08-10 at 04:38 PM.

  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Replies: 145
      Last Post: 09-10-09, 03:12 PM
    2. problem updating debian server to CCcam 2.1.0
      By ktm200 in forum Dreambox
      Replies: 3
      Last Post: 28-03-09, 01:19 PM
    3. Debian Linux server on PC
      By Humtum in forum Dreambox
      Replies: 0
      Last Post: 14-03-09, 10:21 PM
    4. DM500S + SCAM 3.29a setup steps?
      By sub in forum Dreambox
      Replies: 1
      Last Post: 13-05-08, 02:20 PM

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •