Page 2 of 2 FirstFirst 12
Results 21 to 40 of 40

Thread: Oscam on Debian baby steps.

  1. #21
    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

    make sure the version of oscam you re using is also compiled for SMARTREADER



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

    Default

    Ive got libusb version 1.0.8 installed , oscam is compiled with smartreader support and smartreader firmware version is v1.4.

    Smargo reader settings are defaults ;

    Mode = Autoswitch
    Kernel = Normal
    T-mode = T=0
    EGT = 0

    Is this correct ??

    Cheers,
    xdefiantx.

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

    Default

    Yeh no idea on smargo settings or the list_smargo script. Plug and play.

    You can double check with lsusb.

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

  • #24
    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

    Quote Originally Posted by dibbz View Post
    Yeh no idea on smargo settings or the list_smargo script. Plug and play.

    You can double check with lsusb.

    ~# lsusb
    Bus 005 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
    so using his as an example, his would be

    005:002

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

    Default

    lsusb and list_smargo return the same any other ideas ?

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

    Default

    Quote Originally Posted by xdefiantx View Post
    lsusb and list_smargo return the same any other ideas ?
    hmmm, maybe the vmware got something to do with it, or smartreader faulty did you tried smargo in ttyS0 mode?

    If you got any spare PC or laptop you can tray to setup Debian on it.

    I'm at work now but I can post my latest oscam compiled on Debian sometime tommorow, it definitely works with my 2 smargos.
    Cheers

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

    Default

    Good call, the lines to use the serial protocol are

    protocol = mouse
    device = /dev/ttyUSB0

    works just as well except for slightly higher ecm times.

    baby steps after all.

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

    Default

    Quote Originally Posted by dibbz View Post
    Good call, the lines to use the serial protocol are

    protocol = mouse
    device = /dev/ttyUSB0

    works just as well except for slightly higher ecm times.

    baby steps after all.

    also reader has to be setup for serial mode...
    Cheers

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

    Default

    try this:

    take out the smartgo from vmware and reboot the server then put it in again.
    lsusb, set the device in reader config file, start oscam.

    I read a post on oscam forum that it helped a person who uses vmware and ubuntu and had the same as you in his log. See if it helps.
    Cheers
    Last edited by mborkp; 27-08-10 at 02:28 AM.

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

    Default

    I can't edit first post to update the steps so here we go again, updated:


    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:
    OSCam Forum | OSCam - General | Everything needed to compile
    (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 h**p://cdnetworks-us-2.dl.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.8/libusb-1.0.8.tar.bz2 ( replace ** with tt, had to do this for you to see the link properly.)
    tar xjvf libusb-1.0.8.tar.bz2
    cd libusb-1.0.8
    ./configure --enable-shared=no
    make
    make install
    cd /usr/src
    svn co h**p://streamboard.gmc.to/svn/oscam/tags/0.99.4a oscam ( replace ** with tt again)
    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:
    su
    cd /usr/src
    svn co h**p://streamboard.gmc.to/svn/oscam/tags/0.99.4a oscam ( replace ** with tt again)
    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; 28-08-10 at 09:51 AM. Reason: links not showing properly for copy/paste

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

    Calais24 (09-09-10),Onefella (10-09-10)

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

    Default

    here you go oscam2954svn compiled on debian, webif, pcsc:


    MD5: D7A379BEDBC7E59108C06720D07EC449

    Cheers
    Last edited by mborkp; 27-08-10 at 05:28 PM.

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

    Default

    Another nice function of oscam is anticascading. So if you have a notty friend who is doing re-sharing do following:

    In your oscam config directory create file oscam.ac and put in it:

    #
    # anti-cascading table
    #
    # format: <CAID>:<provider ID>=<seconds>

    090B:000000 = 9
    *=15


    In your oscam.conf add following:
    [anticasc]
    enabled = 1
    numusers = 1
    sampletime = 2
    samples = 5
    penalty = 0
    aclogfile = /var/log/oscam_ac.log
    denysamples = 9
    fakedelay = 1000

    In oscam.user, for each user add:
    penalty = 1

    This will work as follow:
    oscam will sample every user for ecm requests for 10 minutes. If a bad, bad guy exceeds the limit oscam will send a fake cw for the next 9 samples. If in userfile you do penalty = 0 the user will not be punished but it will be loged in aclog file. I found this settings reasonable for blue card, it will work with orange as well. Do not go too tight with the settings as pple chnge channels and create additional ecm requests.
    Above settings works a treat.

    Enjoy,
    Cheers
    Last edited by mborkp; 28-08-10 at 08:37 PM. Reason: spelling

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

    Default

    Just to add to the mystery, Ive built the box as a physical box not on vmware esx.

    It runs perfectly...

    I then converted working physical box to vmware esx virtual server and errors are back... Must be a vmware thing ...

    Anybody out there using another virtual solution that works with oscam??

    xdefiantx

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

    Default

    Hi,
    it seems to be esx problem as I read many posts on forums where pple got it running on windoze vmware. Try to test it on windoze and see how you go?

    In wiki it states that esx put some own drivers to the hosted OS so it could be a problem. Also esx is based on Linux so I wander what kernel version it uses...

    Cheers


    Quote Originally Posted by xdefiantx View Post
    Just to add to the mystery, Ive built the box as a physical box not on vmware esx.

    It runs perfectly...

    I then converted working physical box to vmware esx virtual server and errors are back... Must be a vmware thing ...

    Anybody out there using another virtual solution that works with oscam??

    xdefiantx

  • #35
    Junior Member
    Join Date
    Mar 2008
    Posts
    38
    Thanks
    1
    Thanked 1 Time in 1 Post
    Rep Power
    197
    Reputation
    20

    Default

    when applying the tar command i get this error....
    using debian lenny... all updated

    linuxbox:/usr/src# tar xjvf libusb-1.0.8.tar.bz2
    bzip2: (stdin) is not a bzip2 file.
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    linuxbox:/usr/src#


    any idea on how to fix this??
    cheers all...
    Last edited by Calais24; 09-09-10 at 03:43 PM.

  • #36
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    224
    Reputation
    805

    Default

    Quote Originally Posted by mborkp View Post
    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.
    Debian kernels are at like 2.6.26, what do you mean by 12.30?

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

    Default

    Quote Originally Posted by Calais24 View Post
    bzip2: (stdin) is not a bzip2 file.
    any idea on how to fix this??
    cheers all...
    It's not a bz2 file, re-download it, it's from sourceforge so chances are you right clicked and chose download on a link to a html page and not the file, even if the link looked like a file there will be another link saying "direct link".

    Quote Originally Posted by mborkp View Post
    Get Debian Lenny latest unstable version installed on your PC.
    libusb needs 2.6.30 or greater so you need squeeze (testing) rather than lenny (stable). I 've not personally tried but you could try a testing kernel on lenny with;

    aptitude -t squeeze install linux-image-2.6.32-trunk-amd64 (assuming you run the amd64 kernels)

  • #38
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    224
    Reputation
    805

    Default

    Quote Originally Posted by dibbz View Post
    It's not a bz2 file, re-download it, it's from sourceforge so chances are you right clicked and chose download on a link to a html page and not the file, even if the link looked like a file there will be another link saying "direct link".



    libusb needs 2.6.30 or greater so you need squeeze (testing) rather than lenny (stable). I 've not personally tried but you could try a testing kernel on lenny with;

    aptitude -t squeeze install linux-image-2.6.32-trunk-amd64 (assuming you run the amd64 kernels)
    What is the command for 32 bit?

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

    Default

    sorry, tipo.

    Quote Originally Posted by Lomax View Post
    Debian kernels are at like 2.6.26, what do you mean by 12.30?

  • #40
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    224
    Reputation
    805

    Default

    Got it. So the kernel has to be 2.6.30 or greater.

    FYI anyone browsing this thread - check your kernel version thus:

    uname -a

    Quote Originally Posted by mborkp View Post
    sorry, tipo.

  • Page 2 of 2 FirstFirst 12

    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
    •