Posts by cracker22

    Hello, I do not know much about it, but maybe you will find it here.


    pcsclite.h


    https://github.com/smartcardse…tcardservices/find/master


    libccidtwin.so


    https://github.com/LudovicRousseau/CCID/find/master


    Greeting

    So, below is a systemd script which can control OSCam – you might need to change the binary and PID file paths but this works on my system. Simply create a new systemd script;

    Code
    sudo nano /etc/systemd/system/oscam.service

    …and add the following content…

    This will start OSCam in daemon mode (the -b flag) and then create a PID file for the deamon (-B) at /var/run/oscam.pid – as mentioned above, you might need to alter the paths but this is the basic systemd service required to control OSCam.

    Once you’ve created the service, you need to reload the systemd daemons by issuing;

    Code
    sudo systemctl daemon-reload

    …then you can simply start the OSCam daemon by issuing;

    Code
    sudo systemctl start oscam

    You can check OSCam is running by visiting the web interface or by running;

    Code
    sudo systemctl status oscam

    …where you should see something like this;

    Code
    ● oscam.service - OScam   Loaded: loaded (/etc/systemd/system/oscam.service; disabled; vendor preset: enabled)   Active: active (running) since Fri 2016-09-30 11:40:30 BST; 10min ago  Process: 21828 ExecStop=/usr/bin/rm /var/run/oscam.pid (code=exited, status=203/EXEC)  Process: 24126 ExecStart=/usr/local/bin/oscam -b -B /var/run/oscam.pid (code=exited, status=0/SUCCESS) Main PID: 24131 (oscam)   CGroup: /system.slice/oscam.service           ├─24130 /usr/local/bin/oscam -b -B /var/run/oscam.pid           └─24131 /usr/local/bin/oscam -b -B /var/run/oscam.pid

    One final thing is to ensure OSCam starts on boot, to do that, issue the following command;

    Code
    sudo systemctl enable oscam.service

    And that’s it!

    Happy viewing!



    Hier in Germany !


    Im Folgenden sehen Sie ein systemd-Skript, das OSCam steuern kann. Möglicherweise müssen Sie die Pfade für Binär- und PID-Dateien ändern,

    dies funktioniert jedoch auf meinem System. Erstellen Sie einfach ein neues systemd-Skript.

    Code
      sudo nano /etc/systemd/system/oscam.service 

    … Und folgenden Inhalt hinzufügen…

    Dies startet OSCam im Dämonmodus (das -b-Flag) und erstellt dann eine PID-Datei für den Dämon (-B) unter /var/run/oscam.pid - wie oben erwähnt, müssen Sie möglicherweise die Pfade ändern, dies ist jedoch der Fall Der grundlegende Systemdienst, der zur Steuerung von OSCam erforderlich ist.

    Nachdem Sie den Service erstellt haben, müssen Sie die systemd-Daemons durch Ausgabe neu laden.

    Code
    sudo systemctl daemon-reload 

    ... dann können Sie einfach den OSCam-Daemon durch Ausgabe von starten.

    Code
    sudo systemctl start oscam 

    Sie können überprüfen, ob OSCam ausgeführt wird, indem Sie die Weboberfläche besuchen oder ausführen.


    Code
    sudo systemctl status oscam



    ... wo Sie so etwas sehen sollten;

    Code
      ● oscam.service - OScam    Loaded: loaded (/etc/systemd/system/oscam.service; disabled; Herstellervoreinstellung: enabled)    Aktiv: aktiv (läuft) seit Fr 30.09.2016 11:40:30 GMT;  Vor 10min   Prozess: 21828 ExecStop = /usr/bin/rm/var/run/oscam.pid (Code = beendet, Status = 203 / EXEC)   Prozess: 24126 ExecStart = / usr / local / bin / oscam -b -B /var/run/oscam.pid (Code = beendet, Status = 0 / SUCCESS)  Haupt-PID: 24131 (oscam)    CGruppe: /system.slice/oscam.service            ├─24130 / usr / local / bin / oscam -b-B /var/run/oscam.pid            └─24131 / usr / local / bin / oscam -b-B /var/run/oscam.pid

    Als letztes müssen Sie sicherstellen, dass OSCam beim Booten gestartet wird. Geben Sie dazu den folgenden Befehl ein.

    Code
    sudo systemctl enable oscam.service

    Und das ist es!

    Viel Spaß


    Gruß