OSCAM on Debian 9: possible?

There are 4 replies in this Thread which was already clicked 8,261 times. The last Post () by prilly1.

  • I use Oscam on a RPi2 with Jessie. Now I bought another SD card and I've installed on it the latest image STRETCH (Debian 9), I used the same tutorial to install OSEmu & OSCAM and read my SAT card in an Omnikey. The problem is OSCAM doesn't work, won't start. I tried to launch it manually from /usr/local/bin but I have an error on libssl-1.0.0 (I don't remember the exact error).

    I was able to install OSCAM in Jessie using many tutorials, but I'm total begginner in linux and oscam. So, if you need other info tell me how to get them.


    Is there an OSCAM version working on Debian 9? Can anyone help me?


    Thanks

  • Try this tutorial ( work well in Ubuntu 16.04 LTS on dedicated server ):


    ################################################################

    # Title:.......Automatic install/update OScam #

    # Author:......Prilly #

    # Support:.....prilly@speedbox.me
    # Date:........06 September 2015 #
    # Description:.Automaticaly install OScam and support scripts #
    # Updates OScam to latest or specific version #
    ################################################################
    Automatic install script for Multi instance OScam deployments

    It will install 1 to 9 instances of OScam depending on selection

    1. it will compile OScam from streamboard for HEAD or desired SVN version. both for upgrade and new installations
    2. install script will also install FIRMWARE for HID omnikey usb readers (if selected) this firmware is downloaded from HID global,
    http://www.hidglobal.com/drivers setup dependencys for smartreader (smargo usb) (if selected)
    3. init.d startup script for sysv is also installed, this makes monitoring and default startup of oscam upon restart of server easy, it also support status of running oscam deamon (support for systemd is on its way)
    4. propperly set up logging for each instances of oscam /var/log/oscam
    5. propperly setting up config directory AND install optimized default config to avoid oscam instances to use same ports /usr/local/etc
    6. install maintances script (/usr/local/etc/oscam_chk_inst.sh) that takes care of all instances of OScam, it will check if oscam is running, if not it wil start it, it grep checks oscam logs for DEADLOCK error (trylock and ins40) if found it will restart oscam. it checks if logging directorys is propperly setup (to perform grep testing for deadlock error) this is a very powerfull script that makes shure oscam is running at all times, it also logs to /var/log/oscam/oscam(instance number)/oscam_restart. log here you can check how healty oscam is for each instance and if errors are found and handled. maintance script is run from a cron entry in /etc/crontab
    7. easy check how ALL instances is doing on your system by runningthis command:

    ( cd /usr/local/etc/ | ./oscam_chk_inst.sh )
    8. install script also contains a upgrade function to upgrade ALL instances of oscam to desired OR HEAD version ALWAYS use this to change version of the running oscam binary (ALL instances of oscam is running same SVN version, its not possible to have different SVN versoins of oscam for different instances)
    WHEN RUNNING UPGRADE OPTION NO CONFIG FILES ARE TOUCHED, THIS PRESERV USER CHANGES IN OSCAM
    This script will give you a good starting point with configs and a proper log solution. crash check script will parse logs for errors and will restart oscam if undesired messages are logged.


    Info:
    ################################################################
    OScam binary is placed here: /usr/local/bin/
    OScam temp directory: /tmp/.oscam{INSTANCE Number}/
    OScam PID is placed here: /var/run/oscam{INSTANCE Number}.pid
    OScam log directory: /var/log/oscam/oscam{INSTANCE Number}/
    OScam Config directory: /usr/local/etc/oscam{INSTANCE Number}/
    OScam maintance script: /usr/local/etc/oscam_chk_inst.sh
    OScam init.d {start|stop|restart|status} script: /etc/init.d/oscam{INSTANCE Number}/

    url: http://your-ip-adress:888(1--->9)
    login: root/root
    ################################################################

    This values are recommended to change after you have logged in
    This script works only with Debian / Ubuntu 32 and 64 bit, in Ubuntu you need to have root user to be able to run it, sudo is not good enough.


    To start or stop OScam you can use this commands, or you can use the restart inside OScam Webif:
    /etc/init.d/oscam{INSTANCE Number} start
    /etc/init.d/oscam{INSTANCE Number} stop
    /etc/init.d/oscam{INSTANCE Number} restart
    /etc/init.d/oscam{INSTANCE Number} status


    To run this script you need to be root users!
    #################################################################
    apt-get -y install subversion

    svn co http://svn.speedbox.me/svn/oscam-install/trunk oscam

    chmod -R 0755 oscam

    cd oscam

    ./install.sh

    #################################################################
    If you have used this script and want to update to a later OR SPECIFIC svn version of oscam use update selection.
    This script will prompt you with a menu asking if you want to update to latest svn version of oscam or if you want to update to a specific version, if you choose specific enter the svn version number and hit enter.

    Script will then replace current OScam binary with new one making a downtime less then 5 sec!


    Enjoy!

    E1 - DreamBox 500s - Gemini v4.70 BackUp by SATmax
    E2 - DreamBox 800HD SE Sim2.10
    E2 - GigaBlue 800HD SE
    HD - SkyBox F3s Full HD 1080p PVR + GPRS
    ____________________________________________


    Panasonic Viera Plasma PDP TV TX-P42CX3F



  • Now I have another problem: I installed OSEmu + Oscam but I don't know if OSEmu is working. I put SoftC@m.K3y and const@nt.cw in /usr/keys folder, set 0755 to both files and create 2 symbolic link in /home/pi/OSEmu folder.


    In Oscam WebIf I can see OSEmu_Raspberry Reader connected, I replicate the same parameters of Oscam in old SD (with old SD I have no problem, I can read my local card and can view SRG). Now I can read the local card only (it's shared, I have 2 decoders) but no SRG. I can't find the problem....


    This is the error in log ("sala" is the decoder I want see SRG from, "camera" is the decoder who show correctly Tivusat):


    • 2017/10/04 21:55:59 1001B70 c (ecm) sala (0500&023800/08E2/36E3/2A:FBB3F1136756585A284BF0D37FB76314): timeout (5000 ms) by OSemu_Raspberry (F/1/1/3)
    • 2017/10/04 21:55:59 FEFB30 p (constcw) [CONSTCW] find controlword for CAID 0500 PROVID 050800 SRVID 36E3 ECMPID 0000 PMTPID 0000 VPID 0000
    • 2017/10/04 21:55:59 1001B70 c (ecm) sala (0500&050800/08E2/36E3/2A:A602C1E35059B023E4A6EA5305EE36AA): rejected reader sid (3 ms) by Softcam (F/1/1/2)
    • 2017/10/04 21:55:59 758051E8 p (constcw) [CONSTCW] find controlword for CAID 0500 PROVID 060200 SRVID 36E3 ECMPID 0000 PMTPID 0000 VPID 0000
    • 2017/10/04 21:55:59 1001B70 c (ecm) sala (0500&060200/08DE/36E3/30:6DE304DC473F97719DBA432E1F6B68D6): rejected reader sid (11 ms) by ConstantCW (F/1/1/2)
    • 2017/10/04 21:56:00 FFFD40 c (ecm) camera (183D&000000/0000/0D49/91:E585D68DD19561678F418A237E068AC0): found (124 ms) by Tivusat
    • 2017/10/04 21:56:03 FEFB30 p (constcw) [CONSTCW] find controlword for CAID 0500 PROVID 060200 SRVID 36E3 ECMPID 0000 PMTPID 0000 VPID 0000
    • 2017/10/04 21:56:03 1001B70 c (ecm) sala (0500&060200/08DE/36E3/30:89188ADA902AD7B8FB877E88A50D71CE): rejected reader sid (4 ms) by Softcam (F/1/1/2)
    • 2017/10/04 21:56:04 758051E8 p (constcw) [CONSTCW] find controlword for CAID 0500 PROVID 040810 SRVID 36E3 ECMPID 0000 PMTPID 0000 VPID 0000
    • 2017/10/04 21:56:04 1001B70 c (ecm) sala (0500&040810/18E2/36E3/2A:766E94A2E8493895D6D0C0FA3F9CD9A3): rejected reader sid (10 ms) by ConstantCW (F/1/1/2)
    • 2017/10/04 21:56:05 758051E8 p (constcw) [CONSTCW] find controlword for CAID 0500 PROVID 050800 SRVID 36E3 ECMPID 0000 PMTPID 0000 VPID 0000
    • 2017/10/04 21:56:05 1001B70 c (ecm) sala (0500&050800/08E2/36E3/2A:B0C0C78B7195B2C591E2EC1D43126402): rejected reader sid (10 ms) by ConstantCW (F/1/1/2)


    What is the problem? I used the same oscam.conf, oscam.server and oscam.user of old SD (in new SD Oscam is latest version, not in old SD).

  • I found the problem: from OSCAM's old installation configuration files, in addition to the OSEmu reader and the Omnik € y card, they reported two more readers referring to a Softcam file and constant.cw files that did not work OSEmu .


    Now I have ECM Time of (3 ms) on OSEmu reader.


    There is a way to have lowest value for the Omnik€y reader? On these channels I have (127 ms) of ECM Time.....


    Thanks

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!