==================== HowTo Oscam @ Ubuntu ==================== ================================================ Example: ORF ICE card @ smargo & AustriaSat Keys ================================================ #/> sudo apt-get install build-essential cmake g++ gcc libusb-1.0-0-dev libpcsclite-dev libpcsclite1 libssl-dev subversion #/> cd /usr/local/src #/> sudo svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn #/> cd oscam-svn #/> sudo mkdir build_dir #/> cd build_dir #/> sudo cmake -DWITH_SSL=1 /usr/local/src/oscam-svn #/> sudo make #/> sudo make install #/> sudo cp utils/list_smargo /usr/local/bin ----------------------------------- Only in case of a new installation: ----------------------------------- #/> sudo chmod +x /usr/local/bin/list_smargo -------------------------------------- Only in case of an update, to restart: -------------------------------------- #/> sudo killall -9 oscam #/> sudo list_smargo Looking for smartreader with an out endpoint = 0x82 : bus 004, device 002 : 0403:6001 Smartreader (Device=004:002 EndPoint=0x82 insert in oscam.server 'Device = Serial:12345678') => Remember the serial exactly like printed! In this example : "Serial:12345678" the word "Serial" belongs to it! ========================================================== Copy static linked binary "camd3" also to "/usr/local/bin" ========================================================== =========================================================== Configuration under /usr/local/etc: ----------------------------------------------------------- => please use your own IP range, ports, users and passwords =========================================================== #################################################### /usr/local/etc/oscam.conf: ---------------------------------------------------- [global] logfile = /var/log/oscam.log usrfile = /var/log/oscamuser.log WaitForCards = 1 CacheDelay = 120 saveinithistory = 1 maxlogsize = 1024 [dvbapi] enabled = 1 au = 1 boxtype = pc user = dvbapi pmt_mode = 1 reopenonzap = 1 request_mode = 1 [webif] httpport = 19042 httphelplang = de httpuser = http httppwd = ptth httprefresh = 7 httpallowed = 127.0.0.1,192.168.69.0-192.168.69.255 ### camd3 protocol port (udp) for oscam-to-oscam access [cs357x] Port = 19043 --------------------------------------------------- ############################ /usr/local/etc/oscam.dvbapi: ------------- P: 0648 P: 0D95 P: 0D05 I: 0 ------------ ###################################### /usr/local/etc/oscam.ird (empty file): -------------------------------------- -------------------------------------- ########################################################################################################################################## /usr/local/etc/oscam.server: ------------------------------------------------------------------------------------------------------------------------------------------ ### Physical smartreader smargo connected thru USB [reader] label = ORF enable = 1 protocol = smartreader device = Serial:12345678 detect = CD group = 1 services = orf emmcache = 1,1,2 ### down to here ORF just in cryptoworks mode ### additional from here ORF in Irdeto mode caid = 0648 cardmhz = 600 mhz = 600 force_irdeto = 1 rsakey = DF57B08C0F13E67BD17AD37EAAF4EAA25393F8A0EFE8ACE6708AAF97C985CBA8A6C13826963BD3092EB9FC72F773A430724706AA5E1D14E1747842D32069A12D boxkey = 1122334455667788 ### Virtual reader camd3 running on local host for key file [reader] label = AUSTRIASAT enable = 1 protocol = camd35 device = 127.0.0.1,38086 user = AustriaSat password = taSairtsuA group = 2 services = austriasat caid = 0D05 ----------------------------------------------------------------------------------------------------------------------------------------- ###################################################################################################### /usr/local/etc/oscam.services: ------------------------------------------------------------------------------------------------------ [orf] caid = 0648,0D95 provid = 000000,000004 srvid = 132F,1330,3332,332D,33A5,33A7,32C9,32CA,32CB,32CC,32CD,32CE,32CF,32D0,32D1,32D2,32D3,32D4,4E27 [austriasat] caid = 0D05 provid = 00000,000010 srvid = 0025,003B,6FEE,6FEF,6FF0,6FF3,6FFF,0046,2EFE,07FA,07FF,4461,4462,31FA ------------------------------------------------------------------------------------------------------ ############################################ /usr/local/etc/oscam.srvid: -------------------------------------------- ####### ORF ####### 0648,0D95:32C9|ORF|ORF1|TV| 0648,0D95:32CA|ORF|ORF2|TV| 0648,0D95:32CB|ORF|ORF2 Wien|TV| 0648,0D95:32CC|ORF|ORF2 Nieder�sterreich|TV| 0648,0D95:32CD|ORF|ORF2 Burgenland|TV| 0648,0D95:32CE|ORF|ORF2 Ober�sterreich|TV| 0648,0D95:32CF|ORF|ORF2 Salzburg|TV| 0648,0D95:32D0|ORF|ORF2 Tirol|TV| 0648,0D95:32D1|ORF|ORF2 Vorarlberg|TV| 0648,0D95:32D2|ORF|ORF2 Steiermark|TV| 0648,0D95:32D3|ORF|ORF2 K�rnten|TV| 0648,0D95:32D4|ORF|ATV+|TV| 0648,0D95:33A7|ORF|ATV2|TV| 0648,0D95:3332|ORF|Austria 9 TV|TV| 0648,0D95:332D|ORF|ORF III|TV| 0648,0D95:33A5|ORF|ORF SPORT+|TV| 0648,0D95:4E27|ORF|Puls 4 Austria|TV| 0648,0D95:132F|ORF|ORF1 HD|TV| 0648,0D95:1330|ORF|ORF2 HD|TV| ### AustriaSat #### 0D05:0025|Austriasat|AXN Deutschland|TV| 0D05:003B|Austriasat|Sportdigital.tv|TV| 0D05:6FEE|Austriasat|MTV Hits|TV| 0D05:6FEF|Austriasat|MTV Dance|TV| 0D05:6FF0|Austriasat|VH-1 (Video Hits One)|TV| 0D05:6FF3|Austriasat|MTV Rocks|TV| 0D05:6FFF|Austriasat|MTV Music|TV| 0D05:0046|Austriasat|Alpengl�hen TVX|TV| 0D05:2EFE|Austriasat|RTL Living|TV| 0D05:07FA|Austriasat|Hustler TV|TV| 0D05:07FF|Austriasat|Animax|TV| 0D05:4461|Austriasat|Sat 1 emotions|TV| 0D05:4462|Austriasat|Kabel Eins Classics|TV| 0D05:31FA|Austriasat|Dorcel TV|TV| ---------------------------------------------- ############################################# /usr/local/etc/oscam.user: --------------------------------------------- ### an user for camd3 connection per oscam/sc [account] user = vdr1 pwd = 1rdv group = 1 au = ORF services = orf caid = 0648,0D95 ### an user for camd3 connection per oscam/sc [account] user = vdr2 pwd = 2rdv group = 1 au = ORF services = orf caid = 0648,0D95 ### dvbapi account, must have! [account] user = dvbapi pwd = group = 1,2 au = ORF services = orf,austriasat caid = 0648,0D95,0D05 --------------------------------------------- ################################ /usr/local/etc/camd3.config: -------------------------------- BOXTYPE=9 UDP_PORT=38086 HTTP_PORT=38084 HTTP_ADMIN=Camd3 HTTP_PASSWORD=3dmaC LOG=0 USERS=/usr/local/etc/camd3.users KEYS=/usr/local/etc/camd3.keys -------------------------------- ################################ /usr/local/etc/camd3.keys: -------------------------------------------------------------------- # ****** AustriaSat ****** 0D05:000010:0000000000:00:0000000000000000C2E01777E69B850D // ECM 00 0D05:000010:0000000000:01:0000000000000000307E4DAC065BA686 // ECM 01 0D05:000010:0000000000:06:0987CF2A611D // SYSTEM -------------------------------------------------------------------- ########################### /usr/local/etc/camd3.users: --------------------------- AustriaSat:taSairtsuA --------------------------- ########################### ===================================== Startup configuration upstart & udev: ===================================== ############################################################# /etc/init/oscam.conf: ------------------------------------------------------------- # OSCam - Open Source Conditional Access Module # # OSCam is mainly a protocol- and cross-platform card server. description "open source conditional access module" start on smargo-add stop on smargo-remove stop on runlevel [016] respawn exec /usr/local/bin/oscam ------------------------------------------------------------- ##################################################### /etc/init/camd3.conf: ----------------------------------------------------- # Camd3 description "camd3" start on smargo-add stop on smargo-remove stop on runlevel [016] respawn exec /usr/local/bin/camd3 /usr/local/etc/camd3.config ----------------------------------------------------- ################################################################################################################################################# /etc/udev/rules.d/50-oscam.rules: ------------------------------------------------------------------------------------------------------------------------------------------------- SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ACTION=="add", RUN+="/sbin/initctl --quiet emit --no-wait smargo-add" SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ACTION=="remove", RUN+="/sbin/initctl --quiet emit --no-wait smargo-remove" ------------------------------------------------------------------------------------------------------------------------------------------------- #################################################################################################################################################