Po uspesnom skompilovani oscamu svoju binarku alebo aj stiahnutu z netu ulozime do /usr/bin a vyskusame spustitelnost
Kód: Vybrat vše
root@rpi4:~# /usr/bin/oscam -V
Version: oscam-1.20_svn-r11691
Compiler: arm-linux-gnueabihf
Box type: generic (generic)
PID: 3183
TempDir:
ConfigDir: /etc/tuxbox/config/oscam/
WebifPort: 0
Web interface support: yes
LiveLog support: yes
jQuery support intern: yes
Touch interface support: no
SSL support: no
DVB API support: no
Irdeto guessing: yes
Anti-cascading support: no
Debug mode: yes
Monitor: no
Loadbalancing support: yes
Cache exchange support: no
Cache exchange AIO support: no
CW Cycle Check support: no
LCD support: no
LED support: no
Clockfix with realtime clock: yes
IPv6 support: no
camd 3.3x: no
camd 3.5 UDP: yes
camd 3.5 TCP: yes
newcamd: yes
CCcam: yes
CCcam share: yes
gbox: no
radegast: no
scam: no
serial: no
constant CW: no
Pandora: no
ghttp: no
Reader support: yes
Nagra: no - no EMM support!
Nagra Merlin: no - no EMM support!
Irdeto: yes
Conax: yes
Cryptoworks: yes
Seca: no - no EMM support!
Viaccess: no - no EMM support!
NDS Videoguard: no - no EMM support!
DRE Crypt: no - no EMM support!
TONGFANG: no - no EMM support!
Bulcrypt: no - no EMM support!
Griffin: no - no EMM support!
DGCrypt: no - no EMM support!
cardreader_phoenix: yes
cardreader_drecas: no
cardreader_internal_azbox: no
cardreader_internal_coolapi: no
cardreader_internal_coolapi2: no
cardreader_internal_sci: no
cardreader_sc8in1: yes
cardreader_mp35: yes
cardreader_smargo: yes
cardreader_pcsc: yes
cardreader_smartreader: no
cardreader_db2com: no
cardreader_stapi: no
cardreader_stapi5: no
cardreader_stinger: no
Pokial binarka vykazuje funkcnost, vytvorime v /etc/init.d/ spustitelny skript oscam s nasledovnym obsahom
Kód: Vybrat vše
#!/bin/sh
### BEGIN INIT INFO
# Provides: oscam
# Required-Start: $local_fs $network
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: oscam
# Description: oscam start and stop
### END INIT INFO
case "$1" in
start)
/usr/bin/oscam -c /etc/tuxbox/config/oscam -b -B /tmp/oscam.pid -r 2 -u
;;
stop)
kill `cat /tmp/oscam.pid` 2> /dev/null
;;
restart|reload)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 start|stop|restart"
exit 1
;;
esac
exit 0
Dalej vytvorime adresar pre konfiguracne subory
Do toho umiestnime subory oscam.conf, oscam.user a oscam.server
oscam.conf
Kód: Vybrat vše
# oscam.conf generated automatically by Streamboard OSCAM 1.20_svn SVN r11606
# Read more: https://svn.streamboard.tv/oscam/trunk/Distribution/doc/txt/oscam.conf.txt
[global]
logfile = /tmp/oscam.log
disableuserfile = 0
clienttimeout = 1600
fallbacktimeout = 900
nice = -1
maxlogsize = 100
usrfile = /tmp/usrfile
emmlogdir = /tmp
lb_mode = 2
lb_nbest_readers = 2
lb_stat_cleanup = 1
suppresscmd08 = 1
[cs357x]
port = 12006
suppresscmd08 = 1
[cs378x]
port = 12005
suppresscmd08 = 1
[cccam]
port = 12001
version = 2.3.0
reshare_mode = 1
ignorereshare = 1
[webif]
httpport = 8888
httpscript = /root/scripts
httpshowmeminfo = 1
httpshowuserinfo = 1
httpshowreaderinfo = 1
httpshowecminfo = 1
httpshowloadinfo = 1
httpallowed = 10.0.0.0-10.255.255.255,172.16.0.0-172.31.255.255,192.168.0.0-192.168.255.255,127.0.0.1
https_force_secure_mode = 0
httposcamlabel = RPi
oscam.server
Kód: Vybrat vše
[reader]
label = RTVS
enable = 0
protocol = mouse
device = /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A7031XJZ-if00-port0
autospeed = 0
caid = 0668
boxkey = B1B2B3B4B5B6B7B8
rsakey = AB722A8CAA9F58DE0D1CBB6FF329C961ED9DD759B103082D1BAE64C27A861D42E7F631891C2660EFA57484F80BBB4E0E8249A8368E31BD3FFC369FBE95160528
needsemmfirst = 1
detect = cd
mhz = 1000
cardmhz = 600
group = 1
emmcache = 0,2,15,0
[reader]
label = 0624_CZ
enable = 0
protocol = mouse
device = /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A105BTTA-if00-port0
autospeed = 0
caid = 0624
boxkey = A1C6F3D8B5E1F2C1
rsakey = 79EA25A763DA2C3E02B456A13962E60BCE63E628A2C177BE951CED96A9C6131A146F98D5867B7AE6682324FD6481913C0241F065C8D3457E54BB59B7B5DE0362
force_irdeto = 1
needsemmfirst = 1
detect = cd
mhz = 1000
ident = 0624:000000
group = 1
emmcache = 0,2,2,0
blockemm-unknown = 1
[reader]
label = 0624_SK
enable = 0
protocol = mouse
device = /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A100N0DB-if00-port0
autospeed = 0
caid = 0624
boxkey = A1C6F3D8B5E1F2C1
rsakey = 79EA25A763DA2C3E02B456A13962E60BCE63E628A2C177BE951CED96A9C6131A146F98D5867B7AE6682324FD6481913C0241F065C8D3457E54BB59B7B5DE0362
force_irdeto = 1
needsemmfirst = 1
detect = cd
mhz = 1000
ident = 0624:000000
group = 1
emmcache = 0,2,2,0
[reader]
label = 0B00_peter
enable = 0
protocol = pcsc
pincode = 1234
detect = cd
pincode = 1234
disablecrccws_only_for = 0B00:000000
group = 1
[reader]
label = CZ_2
enable = 0
protocol = cs357x
device = localhost,22006
user = oscam
password = oscam
caid = 0624
group = 1
emmcache = 0,1,2,0
[reader]
label = SK_3
enable = 0
protocol = cs357x
device = localhost,32006
user = oscam
password = oscam
caid = 0624
group = 1
emmcache = 0,1,2,0
[reader]
label = kamos
enable = 0
protocol = cs378x
device = ipcka_kamosa,12345
user = peter
password = xxxxxxx
group = 1
audisabled = 1
[reader]
label = 0B00_antikmouse
enable = 0
protocol = mouse
device = /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A7031XJZ-if00-port0
autospeed = 0
caid = 0B00
detect = cd
pincode = 1234
disablecrccws_only_for = 0B00:000000
mhz = 1000
group = 1
a posledny co musi byt je oscam.user
Kód: Vybrat vše
[account]
user = obyv3
pwd = obyvak
caid = 0B00
keepalive = 1
au = 1
group = 1
ident = 0B00:000000
[account]
user = octa2
pwd = xxxxxx
keepalive = 1
au = 1
group = 1,3
[account]
user = octa1
pwd = xxxxxx
keepalive = 1
au = CZ_2
group = 1
V tejto chvili by mal oscam ist spustit cez cli prikazom
Po uspesnom spusteni spravujeme oscam cez webif na porte 8888. Kto chce aby sa oscam spustal pri starte sam,musi este zadat
a to je vsecko. Teraz sa mozno hrat s kartami a citackami.
Je tiez mozne spustit oscamov viac, nesmu vsak pouzivat rovnake porty ako uz beziace.
Dakujem za pozornost, pripomienky vitam.