Dies ist eine mobil optimierte Seite, die schnell lädt. Wenn Sie die Seite ohne Optimierung laden möchten, dann klicken Sie auf diesen Text.

How-To OSEmu

    Nobody is reading this thread right now.
Status
Für weitere Antworten geschlossen.

meister85

Boardveteran
Registriert
21. September 2009
Beiträge
7.781
Reaktionspunkte
4.999
Punkte
373
Scaricamento dell sourcecode

Code:
svn checkout https://github.com/oscam-emu/OSEmu/trunk OSEmu

Poi andate nella cartella OSEmu

Code:
cd OSEmu

e fate compilare con

Code:
make

dare i permessi 775

Code:
chmod 775 OSEmu

copiare il file in /usr/bin

Code:
cp OSEmu /usr/bin

Avviare l´OSEmu

Code:
/usr/bin/OSEmu -a [COLOR=#0000cd]emu[/COLOR]:[COLOR=#008000]emu [/COLOR]-p [COLOR=#ff0000]12345[/COLOR]&

12345 puo essere una porta qualsiasi. L´importante che e libera!

Creare un reader in oscam.server

Code:
[reader]
label                         = OSEmu
protocol                      = camd35
device                        = 127.0.0.1,[COLOR=#ff0000]12345[/COLOR]
user                          = [COLOR=#0000cd]emu[/COLOR]
password                      = [COLOR=#008000]emu[/COLOR]
reconnecttimeout              = 60
keepalive                     = 1
caid                          = 0D05
ecmheaderwhitelist            = 80709981FF0000948060,81709981FF0000948060
ident                         = 0D05:000004
group                         = 1

Questo e un esempio per decodare ORF/Austriasat.

Tutto qui

Per chi vuole usare un Script per avviare l´OSEmu prende questo:

Code:
#!/bin/sh
### BEGIN INIT INFO
# Provides:          OSEmu
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: open source cam emu
### END INIT INFO
# /etc/init.d/osemu
#

set -e

DAEMON=/usr/bin/OSEmu
NAME=OSEmu
OPTIONS="-a emu:emu -p 12345"
PIDFILE=/tmp/.osemu/osemu.pid
PATH=/sbin:/bin:/usr/sbin:/usr/bin

test -x $DAEMON || exit 0

. /lib/lsb/init-functions

case "$1" in
  start)
    log_daemon_msg "Starting OSEmu" "OSEmu"
    [ -d /tmp/.osemu ] || mkdir -p /tmp/.osemu
    start-stop-daemon --start --quiet --background --make-pidfile --pidfile $PIDFILE --exec $DAEMON -- $OPTIONS 
    log_end_msg $?
    ;;
  stop)
    log_daemon_msg "Stopping OSEmu" "OSEmu"
    start-stop-daemon --stop --quiet --pidfile $PIDFILE
    log_end_msg $?
    rm -f $PIDFILE
    ;;
  restart)
    $0 stop && sleep 2 && $0 start
    ;;
  reload|force-reload)
    echo "Reloading $NAME configuration files"
    start-stop-daemon --stop --pidfile $PIDFILE --signal 1 --exec $DAEMON
    echo "."
    ;;
  status)
    status_of_proc $DAEMON $NAME
    exit $?
    ;;
  *)
    echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|status}"
    exit 1
    ;;
esac

exit 0

Inoltre vi posto un watchdog:

Code:
#!/bin/sh
if ps x | grep -v grep | grep -c OSEmu >/dev/null
then
echo "OSEmu è in esecuzione"
else
echo "OSEmu non è in esecuzione"
echo $(date '+%Y_%m_%d_%H:%M') 'OSEmu riavviato' >> /usr/local/etc/oecrash.log
killall -9 OSEmu
sleep 1
/usr/bin/OSEmu -a emu:emu -p 12345 &
fi
done
 
Zuletzt bearbeitet:
Status
Für weitere Antworten geschlossen.
Für die Nutzung dieser Website sind Cookies erforderlich. Du musst diese akzeptieren, um die Website weiter nutzen zu können. Erfahre mehr…