
Showing posts with label OSCAM. Show all posts
Showing posts with label OSCAM. Show all posts

OSCam/en/examples/Reader
Example Reader Configurations
The reader is the module that allows OSCam server to translate ECMs received from clients into CWs, which are sent back to clients for decrypting channels. There are two types of readers: hardware readers, which are somehow connected to the machine which runs OSCam server, and remote readers, which are running on different machines than the one running the OSCam server.
For the hardware readers, OSCam needs to know what type the reader is, how it is connected to the machine, what protocol it "speaks", and what subscription cards are inserted in that device.
For the remote readers, OSCam must know the IP address and port where to connect, the protocol spoken, and how to authenticate itself (username/password). Again, you can specify subscriptions that can be found there.
The following list shows example configurations for the supported readers.
Serial-Mouse kompatible Reader
[reader] label = myserialmouserreader protocol = mouse detect = CD device = /dev/ttyS0 group = 1 emmcache = 1,3,2 services = myservice,thisservice caid = 0100
USB-Mouse kompatible Reader
[reader] label = myusbmousereader protocol = mouse detect = CD device = /dev/ttyUSB0 aeskey = 0102030405060708090a0b0c0d0e0f10 group = 2 emmcache = 1,3,2 services = services2 caid = 0200
Remote Camd3.78x Reader with fallback for group 1
[reader] label = mycamd378xreader protocol = cs378x device = 192.168.0.1,1234 user = user1, password = password1 group = 1 fallback = 1
Remote Newcamd Reader with fallback for group 2
[reader] label = mynewcamdreader protocol = newcamd key = 0102030405060708091011121314 device = 192.168.0.2,2345 user = user2 password = password2 group = 2 fallback = 1
Remote CCcam Reader
[reader] label = mycccamreader protocol = cccam device = 192.168.0.3,3456 user = user3 password = password3 group = 3 caid = 0300,0400,0500 cccversion= 1.2.3 cccbuild = 4567
PCSC Reader
[reader] label = mypcscreader protocol = pcsc device = 0 aeskey = 0102030405060708090a0b0c0d0e0f10 group = 4 caid = 0600
Smargo Smartreader+
# example 1 [reader] label = mysmargoreader protocol = smartreader device = 001:002 aeskey = 0102030405060708090a0b0c0d0e0f10 group = 5 caid = 0700 # example 2 [reader] label = mysmargoreader protocol = smartreader device = Serial:Reader 1 detect = cd mhz = 600 cardmhz = 600 emmcache = 1,3,2 group = 5 services = my_services
Internal Reader
[reader] label = myinternalreader protocol = internal device = /dev/sci0 group = 6 caid = 0800
Constant CW
[reader] label = myconstantcw protocol = constcw device = /var/keys/constant.cw group = 7
Remote Radegast Reader
[reader] label = myradegastreader protocol = radegast device = 192.168.0.6,56789 group = 9 caid = 0500
AD-Teknik
AB Multiprogrammer 3.5 serial
[reader] label = mymultiprogrammer3.5 protocol = mp35 detect = CD device = /dev/ttyS1 group = 10 emmcache = 1,3,2 services = services10 caid = 0900
AB Multiprogrammer 3.6. USB
[reader] label = mymultiprogrammer3.6 protocol = mp35 detect = CD device = /dev/ttyUSB1 group = 11 emmcache = 1,3,2 services = services11 caid = 1000
AB USB Phoenix at 6.00 mhz
[reader] label = mymultiprogrammerUSBPhoenix protocol = mp35 detect = CD device = /dev/ttyUSB2 mhz = 600 group = 12 emmcache = 1,3,2 services = services12 caid = 1100
sc8in1 reader
[reader] label = mysc8in1reader protocol = sc8in1 device = /dev/ttyUSB0:1 group = 13 emmcache = 1,3,2 services = services11 caid = 1200
Smargo Special
First, read about udev => http://en.wikipedia.org/wiki/Udev
Smargo readers do not offer clear identification in a standard manner, at least before firmware 1.04. Starting from firmware 1.04, one can assign a clear identifier with the Smargo tools. To find out how to set the identifier (the clear name), please refer to the Smargo tool documentation, which should be included in the Smargo tools package.
The following example shows three Smargos and a MasterCRD on Debian Linux.
We remove all Smargos from the PC and attach them in sequence, while using Smargo tools to identify each device, as follows:
cd /where/the/smargotools/are # change directory to where Smargo tools are
# Attach first Smargo WITHOUT card, in a different USB slot, and then... ./srp_tool -n 1 # we assign identifier "1" to this device, later assigned to OSCam as "Serial:Reader 1"
# Attach another Smargo, then... ./srp_tool -n 2 # we assign identifier "2" to this device, later assigned to OSCam as "Serial:Reader 2"
# and so on...
An example using udev-rules:
# provide new udev-rules vi /lib/udev/rules.d/10-usb-name-for-example.rules
# then type as follows:
# Smargo 1
SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{serial}=="Reader 1", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="smargo1", MODE="0666"
# Smargo 2
SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{serial}=="Reader 2", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="smargo2", MODE="0666"
# Smargo 3
SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{serial}=="Reader 3", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="smargo3", MODE="0666"
# MasterCRD over Serial connector *************************
SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{idVendor}=="4711", ATTRS{idProduct}=="4712", SYMLINK+="masterCRD", MODE="0666"
An example udev-rule for Smargo SmartReader and Triple Reader+ [1]:
# File: /etc/udev/rules.d/45-smargo-reader.rules
############################## smargo tripple ###########################
SUBSYSTEMS=="usb", ATTRS{interface}=="Triple Reader+", ATTRS{../serial}=="12345678", ATTRS{bInterfaceNumber}=="01", SYMLINK+="sc/my-special-card", GOTO="smargo_tripple_end"
SUBSYSTEMS=="usb", ATTRS{interface}=="Triple Reader+", SYMLINK+="sc/triple-$attr{../serial}-$attr{bInterfaceNumber}"
LABEL="smargo_tripple_end"
############################## smargo stick ##############################
SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{serial}=="Reader 1234567", SYMLINK+="sc/my-very-important-card"
Finally, modify oscam.server as follows:
[reader] label = my_smargo1 protocol = smartreader # or "mouse" device = Serial:Reader 1 # /dev/smargo1, if "mouse" detect = cd mhz = 600 cardmhz = 600 emmcache = 1,3,2 group = 1 [reader] label = my_smargo2 protocol = mouse # or "smartreader" device = /dev/smargo2 # Serial:Reader 2, if "smartreader" detect = cd mhz = 368 cardmhz = 368 emmcache = 1,3,2 group = 2 # and so on...
Example Reader Configurations
The reader is the module that allows OSCam server to translate ECMs received from clients into CWs, which are sent back to clients for decrypting channels. There are two types of readers: hardware readers, which are somehow connected to the machine which runs OSCam server, and remote readers, which are running on different machines than the one running the OSCam server.
For the hardware readers, OSCam needs to know what type the reader is, how it is connected to the machine, what protocol it "speaks", and what subscription cards are inserted in that device.
For the remote readers, OSCam must know the IP address and port where to connect, the protocol spoken, and how to authenticate itself (username/password). Again, you can specify subscriptions that can be found there.
The following list shows example configurations for the supported readers.
Serial-Mouse kompatible Reader
[reader]
label = myserialmouserreader
protocol = mouse
detect = CD
device = /dev/ttyS0
group = 1
emmcache = 1,3,2
services = myservice,thisservice
caid = 0100
USB-Mouse kompatible Reader
[reader]
label = myusbmousereader
protocol = mouse
detect = CD
device = /dev/ttyUSB0
aeskey = 0102030405060708090a0b0c0d0e0f10
group = 2
emmcache = 1,3,2
services = services2
caid = 0200
Remote Camd3.78x Reader with fallback for group 1
[reader]
label = mycamd378xreader
protocol = cs378x
device = 192.168.0.1,1234
user = user1,
password = password1
group = 1
fallback = 1
Remote Newcamd Reader with fallback for group 2
[reader]
label = mynewcamdreader
protocol = newcamd
key = 0102030405060708091011121314
device = 192.168.0.2,2345
user = user2
password = password2
group = 2
fallback = 1
Remote CCcam Reader
[reader]
label = mycccamreader
protocol = cccam
device = 192.168.0.3,3456
user = user3
password = password3
group = 3
caid = 0300,0400,0500
cccversion= 1.2.3
cccbuild = 4567
PCSC Reader
[reader]
label = mypcscreader
protocol = pcsc
device = 0
aeskey = 0102030405060708090a0b0c0d0e0f10
group = 4
caid = 0600
Smargo Smartreader+
# example 1
[reader]
label = mysmargoreader
protocol = smartreader
device = 001:002
aeskey = 0102030405060708090a0b0c0d0e0f10
group = 5
caid = 0700
# example 2
[reader]
label = mysmargoreader
protocol = smartreader
device = Serial:Reader 1
detect = cd
mhz = 600
cardmhz = 600
emmcache = 1,3,2
group = 5
services = my_services
Internal Reader
[reader]
label = myinternalreader
protocol = internal
device = /dev/sci0
group = 6
caid = 0800
Constant CW
[reader]
label = myconstantcw
protocol = constcw
device = /var/keys/constant.cw
group = 7
Remote Radegast Reader
[reader]
label = myradegastreader
protocol = radegast
device = 192.168.0.6,56789
group = 9
caid = 0500
AD-Teknik
AB Multiprogrammer 3.5 serial
[reader]
label = mymultiprogrammer3.5
protocol = mp35
detect = CD
device = /dev/ttyS1
group = 10
emmcache = 1,3,2
services = services10
caid = 0900
AB Multiprogrammer 3.6. USB
[reader]
label = mymultiprogrammer3.6
protocol = mp35
detect = CD
device = /dev/ttyUSB1
group = 11
emmcache = 1,3,2
services = services11
caid = 1000
AB USB Phoenix at 6.00 mhz
[reader]
label = mymultiprogrammerUSBPhoenix
protocol = mp35
detect = CD
device = /dev/ttyUSB2
mhz = 600
group = 12
emmcache = 1,3,2
services = services12
caid = 1100
sc8in1 reader
[reader]
label = mysc8in1reader
protocol = sc8in1
device = /dev/ttyUSB0:1
group = 13
emmcache = 1,3,2
services = services11
caid = 1200
Smargo Special
First, read about udev => http://en.wikipedia.org/wiki/Udev
Smargo readers do not offer clear identification in a standard manner, at least before firmware 1.04. Starting from firmware 1.04, one can assign a clear identifier with the Smargo tools. To find out how to set the identifier (the clear name), please refer to the Smargo tool documentation, which should be included in the Smargo tools package.
The following example shows three Smargos and a MasterCRD on Debian Linux.
We remove all Smargos from the PC and attach them in sequence, while using Smargo tools to identify each device, as follows:
cd /where/the/smargotools/are # change directory to where Smargo tools are
# Attach first Smargo WITHOUT card, in a different USB slot, and then...
./srp_tool -n 1 # we assign identifier "1" to this device, later assigned to OSCam as "Serial:Reader 1"
# Attach another Smargo, then...
./srp_tool -n 2 # we assign identifier "2" to this device, later assigned to OSCam as "Serial:Reader 2"
# and so on...
An example using udev-rules:
# provide new udev-rules
vi /lib/udev/rules.d/10-usb-name-for-example.rules
# then type as follows:
# Smargo 1
SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{serial}=="Reader 1", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="smargo1", MODE="0666"
# Smargo 2
SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{serial}=="Reader 2", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="smargo2", MODE="0666"
# Smargo 3
SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{serial}=="Reader 3", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="smargo3", MODE="0666"
# MasterCRD over Serial connector *************************
SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{idVendor}=="4711", ATTRS{idProduct}=="4712", SYMLINK+="masterCRD", MODE="0666"
An example udev-rule for Smargo SmartReader and Triple Reader+ [1]:
# File: /etc/udev/rules.d/45-smargo-reader.rules
############################## smargo tripple ###########################
SUBSYSTEMS=="usb", ATTRS{interface}=="Triple Reader+", ATTRS{../serial}=="12345678", ATTRS{bInterfaceNumber}=="01", SYMLINK+="sc/my-special-card", GOTO="smargo_tripple_end"
SUBSYSTEMS=="usb", ATTRS{interface}=="Triple Reader+", SYMLINK+="sc/triple-$attr{../serial}-$attr{bInterfaceNumber}"
LABEL="smargo_tripple_end"
############################## smargo stick ##############################
SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{serial}=="Reader 1234567", SYMLINK+="sc/my-very-important-card"
Finally, modify oscam.server as follows:
[reader]
label = my_smargo1
protocol = smartreader # or "mouse"
device = Serial:Reader 1 # /dev/smargo1, if "mouse"
detect = cd
mhz = 600
cardmhz = 600
emmcache = 1,3,2
group = 1
[reader]
label = my_smargo2
protocol = mouse # or "smartreader"
device = /dev/smargo2 # Serial:Reader 2, if "smartreader"
detect = cd
mhz = 368
cardmhz = 368
emmcache = 1,3,2
group = 2
# and so on...

N line in oscam to update card
Below are my current settings - Using Oscam 1.20 & cam 2.1.4. If anyone could point me in the right direction I would appreciate it. My cline for CCcam is in the format c: my ip, port, user pass 1 0 1 {0:0:2} and I have the Nline in CCcam.cfg
OSCAM conf
[global]
logfile = /var/local/oscam.log
cachedelay = 120
nice = -1
maxlogsize = 0
saveinithistory = 1
[newcamd]
port = xxxx@0963:000000
key = 0102030405060708091011121314
allowed = 127.0.0.1,192.168.0.0-192.168.255.255
keepalive = 1
[webif]
httpport = 12000
httpuser =
httppwd =
httprefresh = 10
httpallowed = 127.0.0.1,192.168.0.0-192.168.255.255
OSCAM Server
[reader]
label = skyuk
protocol = internal
enable = 1
device = /dev/sci0
caid = 0963
boxid = XX XX XX XX
detect = cd
mhz = 600
cardmhz = 600
ident = 0963:000000
group = 1
emmcache = 1,3,2
blockemm-g = 1
blockemm-unknown = 1
blockemm-u = 0
blockemm-s = 0
lb_weight = 100
ecmwhitelist = 0963@000000:3E,4E,4F,42,44,45,47,53,54,61,6A,6B,6D ,6E,6F,62, 67,68,69,7A,7C,7D,7E,71,72,73,77,78,79,80,8B
OSCAM USER
[account]
user = xxxx
pwd = xxxx
uniq = 2
monlevel = 1
caid = 0963
ident = 0963:000000
group = 1
au = skyuk
blockemm-unknown = 1
blockemm-g = 1
blockemm-u = 0
blockemm-s = 0
CCcam cfg
#####################
#CCcam.cfg settings #
#####################
SERVER LISTEN PORT : xxxxx
ALLOW TELNETINFO: yes
ALLOW WEBINFO: yes
SHOW EXTENEDED CLIENT INFO : yes
WEBINFO LISTEN PORT : 16001
WEBINFO USERNAME : xxxx
WEBINFO PASSWORD : xxxx
TELNETINFO LISTEN PORT : 16000
TELNETINFO USERNAME : xxxx
TELNETINFO PASSWORD : xxxx
ZAP OSD TIME : 1
OSD USERNAME : xxxx
OSD PASSWORD : xxxx
OSD PORT : 80
BOXKEY: /dev/sci0 xx xx xx xx
SMARTCARD CLOCK FREQUENCY: /dev/sci0 3570000
SHOW TIMING : yes
MINI OSD : no
DEBUG : yes
NEWCAMD CONF yes
DISABLE EMM : yes
EXTRA EMM LEVEL : no
EMM THREADS : 1
SOFTKEY FILE : /var/keys/SoftCam.Key
AUTOROLL FILE : /var/keys/AutoRoll.Key
STATIC CW FILE : /var/keys/constant.cw
CHANNELINFO FILE : /var/etc/CCcam.channelinfo
CAID PRIO FILE : /var/etc/CCcam.prio
PROVIDERINFO FILE : /var/etc/CCcam.providers
MINIMUM DOWNHOPS: 0
MINIMUM CLIENT VERSION : 1.7.0
#LOG WARNINGS : /tmp/warnings.txt
N: my ip, port, user pass yes 0102030405060708091011121314
<@@@@@@@@@@@@@@@@@@@@@@@@@@@@>
Below are my current settings - Using Oscam 1.20 & cam 2.1.4. If anyone could point me in the right direction I would appreciate it. My cline for CCcam is in the format c: my ip, port, user pass 1 0 1 {0:0:2} and I have the Nline in CCcam.cfg
OSCAM conf
[global]
logfile = /var/local/oscam.log
cachedelay = 120
nice = -1
maxlogsize = 0
saveinithistory = 1
[newcamd]
port = xxxx@0963:000000
key = 0102030405060708091011121314
allowed = 127.0.0.1,192.168.0.0-192.168.255.255
keepalive = 1
[webif]
httpport = 12000
httpuser =
httppwd =
httprefresh = 10
httpallowed = 127.0.0.1,192.168.0.0-192.168.255.255
OSCAM Server
[reader]
label = skyuk
protocol = internal
enable = 1
device = /dev/sci0
caid = 0963
boxid = XX XX XX XX
detect = cd
mhz = 600
cardmhz = 600
ident = 0963:000000
group = 1
emmcache = 1,3,2
blockemm-g = 1
blockemm-unknown = 1
blockemm-u = 0
blockemm-s = 0
lb_weight = 100
ecmwhitelist = 0963@000000:3E,4E,4F,42,44,45,47,53,54,61,6A,6B,6D ,6E,6F,62, 67,68,69,7A,7C,7D,7E,71,72,73,77,78,79,80,8B
OSCAM USER
[account]
user = xxxx
pwd = xxxx
uniq = 2
monlevel = 1
caid = 0963
ident = 0963:000000
group = 1
au = skyuk
blockemm-unknown = 1
blockemm-g = 1
blockemm-u = 0
blockemm-s = 0
CCcam cfg
#####################
#CCcam.cfg settings #
#####################
SERVER LISTEN PORT : xxxxx
ALLOW TELNETINFO: yes
ALLOW WEBINFO: yes
SHOW EXTENEDED CLIENT INFO : yes
WEBINFO LISTEN PORT : 16001
WEBINFO USERNAME : xxxx
WEBINFO PASSWORD : xxxx
TELNETINFO LISTEN PORT : 16000
TELNETINFO USERNAME : xxxx
TELNETINFO PASSWORD : xxxx
ZAP OSD TIME : 1
OSD USERNAME : xxxx
OSD PASSWORD : xxxx
OSD PORT : 80
BOXKEY: /dev/sci0 xx xx xx xx
SMARTCARD CLOCK FREQUENCY: /dev/sci0 3570000
SHOW TIMING : yes
MINI OSD : no
DEBUG : yes
NEWCAMD CONF yes
DISABLE EMM : yes
EXTRA EMM LEVEL : no
EMM THREADS : 1
SOFTKEY FILE : /var/keys/SoftCam.Key
AUTOROLL FILE : /var/keys/AutoRoll.Key
STATIC CW FILE : /var/keys/constant.cw
CHANNELINFO FILE : /var/etc/CCcam.channelinfo
CAID PRIO FILE : /var/etc/CCcam.prio
PROVIDERINFO FILE : /var/etc/CCcam.providers
MINIMUM DOWNHOPS: 0
MINIMUM CLIENT VERSION : 1.7.0
#LOG WARNINGS : /tmp/warnings.txt
N: my ip, port, user pass yes 0102030405060708091011121314
first,CCcam 2.1.4 will not show your card as local(best things to change to 2.1.3)
second all your settings looks good,try to change Oscam.user to that after change CCcam ver.
OSCAM USER
[account]
user = xxxx
pwd = xxxx
uniq = 2
monlevel = 1
caid = 0963
ident = 0963:000000
group = 1
au = 1
blockemm-unknown = 1
blockemm-g = 1
blockemm-u = 0
blockemm-s = 0

How to install OSCam on Debian and Ubuntu
1) Prepair for compile with installing new needed packs:
2) Oscam compile:
2.1 Download OSCam
2.2 Compile OSCam
2.3 Copy OSCam Compiled file
3) Unused oscam compile directory delete:
4) Setting oscam to correct attribute:
5) Oscam automatic startup with bootup
EDIT RC.LOCAL FROM NORMAL WINDOW
add next line before the "exit0" line, /usr/local/bin/oscam -b -r2
in server edition type
HTML Code:
sudo apt-get install build-essential sudo apt-get install libssl-dev libpcsclite-dev sudo apt-get install mercurial cvs subversion libncurses-dev sudo apt-get install cmake
2.1 Download OSCam
HTML Code:
cd /usr/src sudo svn co http://oscam.to/svn/oscam/trunk oscam
OR
svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn
HTML Code:
cd oscam sudo cmake -DWEBIF=1 -DPCSC=1 sudo make
HTML Code:
sudo cp oscam /usr/local/bin
HTML Code:
cd .. sudo rm -rf oscam
HTML Code:
cd /usr/local/bin sudo chmod 755 oscam
EDIT RC.LOCAL FROM NORMAL WINDOW
HTML Code:
nano /etc/rc.local
in server edition type

How to install OSCam on Debian and Ubuntu
1) Prepair for compile with installing new needed packs:
2) Oscam compile:
2.1 Download OSCam
2.2 Compile OSCam
2.3 Copy OSCam Compiled file
3) Unused oscam compile directory delete:
4) Setting oscam to correct attribute:
5) Oscam automatic startup with bootup
EDIT RC.LOCAL FROM NORMAL WINDOW
add next line before the "exit0" line, /usr/local/bin/oscam -b -r2
in server edition type
HTML Code:
sudo apt-get install build-essential sudo apt-get install libssl-dev libpcsclite-dev sudo apt-get install mercurial cvs subversion libncurses-dev sudo apt-get install cmake
2.1 Download OSCam
HTML Code:
cd /usr/src sudo svn co http://oscam.to/svn/oscam/trunk oscam
OR
svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn
HTML Code:
cd oscam sudo cmake -DWEBIF=1 -DPCSC=1 sudo make
HTML Code:
sudo cp oscam /usr/local/bin
HTML Code:
cd .. sudo rm -rf oscam
HTML Code:
cd /usr/local/bin sudo chmod 755 oscam
EDIT RC.LOCAL FROM NORMAL WINDOW
HTML Code:
nano /etc/rc.local
in server edition type

How to installation Oscam On Linux Server
What you will need:
1. A PC (moderate power ).
2. A Smartcard reader
3. A valid smartcard
Skip Step 1 to 7, if you already have Debian server running and ftp server installed[
1. Download the latest Debian CD from here:
http://cdimage.debian.org/cdimage/we...-i386-CD-1.iso
2. Install using the default options. When prompted for features, untick "Desktop Environment", and tick "SSH Server".
3. Log in and switch to the 'root' user:
su root
4. Set a static IP address:
a. Backup original config:
cp /etc/network/interfaces /etc/network/interfaces.bak
b. Edit the file:
nano/etc/networking/interfaces
c. Edit the file such that the iface etho entry looks like this:
iface eth0 inet static
address 192.168.10.6
gateway 192.168.10.1
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
5. Log out of the console session:
exit
6. You can now ssh into 192.168.0.6 using putty. After you login:
su root
7. OPTIONAL Install ftp server:
apt-get install vsftpd
Backup the original configuration file:
cp /etc/vsftpd.conf /etc/vsftpd.conf.ORIG
Open /etc/vsftpd.conf in an editor:
nano /etc/vsftpd.conf
To configure vsftpd to authenticate system users and allow them to upload filesuncomment the lines:
local_enable=YES
write_enable=YES
Now restart vsftpd:
/etc/init.d/vsftpd restart
8. Install oscam:
Code:
cd /lib/
ln -s libcrypto.so.0.9.8e libcrypto.so.0.9.8
apt-get install yum bzip2 gcc g++ cmake libpcsclite1 libpcsclite-dev subversion make
cd /usr/src
wget http://cdnetworks-us-2.dl.sourceforg...-1.0.8.tar.bz2
tar xjvf libusb-1.0.8.tar.bz2
cd libusb-1.0.8
./configure --enable-shared=no
make
make install
cd /usr/src
svn co http://streamboard.gmc.to/svn/oscam/trunk oscam
cd oscam
mkdir build
cd build
cmake -DWEBIF=1 ..
make install
9. Create oscam config files
Code:
nano /usr/local/etc/oscam.server
"copy below text into file as sample"
[reader]
label=reader1
protocol=SmartReader
detect=CD
group=1
emmcache=1,1,2
device=Serial:Reader XXX
caid=096C
boxid=XXXXXXXX
**To determine what to put in the oscam.server boxid= line:
a. Get your 11 digit box serial (101*******5)
b. Remove the last digit (101*******) and type it in the windows calculator in dec mode
c. Click hex - this will give you the 7 or 8 digit hex to replace the xxxxxxxx's with
**To determine what to put in the oscam.server device= line:
a. Ensure your smartcard reader is running.
b. Insert the reader into a usb port on the server.
c. Now that oscam is actually installed you can point a web browser to 192.168.0.6:8888 (or whatever ip address you gave the server). User Name is username, Password is password.
d. When you have accessed the web interface successfully, go to the "Readers" section and click the "Scan USB" link. Output will be something like:
Bus 001 Device 003: ID 0403:6001 USB-Serial (UART) IC
iProduct 0
iSerial 3 Reader 67
In the example output above the "iSerial 3 Reader 67" is of interest to us. Change the line:
device=Serial:Reader XXX
To:
device = Serial:Reader 67
Code:
nano /usr/local/etc/oscam.conf
"copy below text into file as sample"
[global]
nice = -19
WaitForCards = 1
saveinithistory = 1
# logging
pidfile = /var/run/oscam.pid
logfile = /var/log/oscam.log
usrfile = /var/log/oscamuser.log
cwlogdir = /var/log/cw.log
maxlogsize = 1000
[newcamd]
key = 0102030405060708091011121314
port = 10000@096c:000000;
# web interface
[webif]
httpport = 8888
httpuser = username
httppwd = password
httpallowed = 0.0.0.0-255.255.255.255
Code:
nano /usr/local/etc/oscam.user
"copy below text into file as sample"
[account]
user = username
pwd = password
uniq = 1
group = 1
au = reader1
ident = 096c:000000
caid = 096c
10. Make oscam start and stop automatically with server bootup/shutdown. Create script:
Code:
nano /etc/init.d/oscam
Copy and paste below code.
#!/bin/sh
# Start/stop the OScam daemon.
#
### BEGIN INIT INFO
# Provides: OScam
# Required-Start: $syslog $network $pcscd
# Required-Stop: $syslog $network $pcscd
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and Stop OScam
# Description: OScam init script. This script start and stop OScam.
### END INIT INFO
. /lib/lsb/init-functions
NAME=oscam
DAEMON=/usr/local/bin/$NAME
CONFIG_DIR=/usr/local/etc
PIDFILE=/var/run/oscam.pid
LOG=/var/log/oscam.log
LOGUSR=/var/log/oscamuser.log
LOGCW=/var/log/cw.log
STARTAS="$DAEMON -- -b -c $CONFIG_DIR"
#test -f $DAEMON || exit 0
[ -d $CONFIG_DIR ] || exit 0
echo $NAME
clear_file() {
# Clear log and pid file if exists
if [ -e $PIDFILE ]
then
rm -f $PIDFILE
fi
if [ -e $LOG ]
then
rm -f $LOG
fi
if [ -e $LOGUSR ]
then
rm -f $LOGUSR
fi
if [ -e $LOGCW ]
then
rm -f $LOGCW
fi
}
case "$1" in
start)
clear_file
log_daemon_msg "Starting OScam daemon" "OScam"
start-stop-daemon --start --quiet --exe $DAEMON --startas $STARTAS
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping OScam daemon" "OScam"
start-stop-daemon --stop --quiet --exe $DAEMON
log_end_msg $?
;;
restart)
log_daemon_msg "Restarting OScam daemon" "OScam"
start-stop-daemon --stop --retry 5 --quiet --exe $DAEMON
clear_file
start-stop-daemon --start --quiet --exe $DAEMON --startas $STARTAS
log_end_msg $?
;;
status)
status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
;;
*)
log_action_msg "Usage: /etc/init.d/OScam {start|stop|restart|status}"
exit 2
;;
esac
exit 0
then press ctr+x to exit, then "y" to save on prompt
Then:
Code:
chmod 755 /etc/init.d/oscam
Then:
Code:
update-rc.d oscam defaults
11. On the clients, install CCcam. This is done via the blue panel.
12. Configure CCcam by editing /var/etc/CCcam.cfg:
nano /var/etc/CCcam.cfg
Delete the contents of the file and add a single line:
N: 192.168.0.6 10000 username password 01 02 03 04 05 06 07 08 09 10 11 12 13 14
13. Insert the smartcard into the reader and reboot.
14. Once server is restarted, on webbrowser type"http://your server_ip:8888"
NOTES:
To get info on the various options in the oscam config files and what they mean, look here:
http://streamboard.gmc.to/svn/oscam/...ution/doc/txt/
To remove a dir:
rm -rf build_dir/
To check log:
tail -f /var/log/oscam.log
To see if oscam running:
ps -A | grep oscam
To start oscam:
oscam -b
To stop oscam:
pkill oscam
OR:
/etc/init.d/oscam status
/etc/init.d/oscam start
/etc/init.d/oscam stop
/etc/init.d/oscam restart
To see usb devices and their address:
lsusb -v
To compile a new version of oscam:
/etc/init.d/oscam stop
cp /usr/local/bin/oscam /usr/local/bin/oscam.PREVIOUS
cd /usr/src
rm -rf oscam
svn co http://streamboard.gmc.to/svn/oscam/trunk oscam
cd oscam
mkdir build
cd build
cmake -DWEBIF=1 ..
make install
1. A PC (moderate power ).
2. A Smartcard reader
3. A valid smartcard
Skip Step 1 to 7, if you already have Debian server running and ftp server installed[
1. Download the latest Debian CD from here:
http://cdimage.debian.org/cdimage/we...-i386-CD-1.iso
2. Install using the default options. When prompted for features, untick "Desktop Environment", and tick "SSH Server".
3. Log in and switch to the 'root' user:
su root
4. Set a static IP address:
a. Backup original config:
cp /etc/network/interfaces /etc/network/interfaces.bak
b. Edit the file:
nano/etc/networking/interfaces
c. Edit the file such that the iface etho entry looks like this:
iface eth0 inet static
address 192.168.10.6
gateway 192.168.10.1
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
5. Log out of the console session:
exit
6. You can now ssh into 192.168.0.6 using putty. After you login:
su root
7. OPTIONAL Install ftp server:
apt-get install vsftpd
Backup the original configuration file:
cp /etc/vsftpd.conf /etc/vsftpd.conf.ORIG
Open /etc/vsftpd.conf in an editor:
nano /etc/vsftpd.conf
To configure vsftpd to authenticate system users and allow them to upload filesuncomment the lines:
local_enable=YES
write_enable=YES
Now restart vsftpd:
/etc/init.d/vsftpd restart
8. Install oscam:
Code:
cd /lib/
ln -s libcrypto.so.0.9.8e libcrypto.so.0.9.8
apt-get install yum bzip2 gcc g++ cmake libpcsclite1 libpcsclite-dev subversion make
cd /usr/src
wget http://cdnetworks-us-2.dl.sourceforg...-1.0.8.tar.bz2
tar xjvf libusb-1.0.8.tar.bz2
cd libusb-1.0.8
./configure --enable-shared=no
make
make install
cd /usr/src
svn co http://streamboard.gmc.to/svn/oscam/trunk oscam
cd oscam
mkdir build
cd build
cmake -DWEBIF=1 ..
make install
9. Create oscam config files
Code:
nano /usr/local/etc/oscam.server
"copy below text into file as sample"
[reader]
label=reader1
protocol=SmartReader
detect=CD
group=1
emmcache=1,1,2
device=Serial:Reader XXX
caid=096C
boxid=XXXXXXXX
**To determine what to put in the oscam.server boxid= line:
a. Get your 11 digit box serial (101*******5)
b. Remove the last digit (101*******) and type it in the windows calculator in dec mode
c. Click hex - this will give you the 7 or 8 digit hex to replace the xxxxxxxx's with
**To determine what to put in the oscam.server device= line:
a. Ensure your smartcard reader is running.
b. Insert the reader into a usb port on the server.
c. Now that oscam is actually installed you can point a web browser to 192.168.0.6:8888 (or whatever ip address you gave the server). User Name is username, Password is password.
d. When you have accessed the web interface successfully, go to the "Readers" section and click the "Scan USB" link. Output will be something like:
Bus 001 Device 003: ID 0403:6001 USB-Serial (UART) IC
iProduct 0
iSerial 3 Reader 67
In the example output above the "iSerial 3 Reader 67" is of interest to us. Change the line:
device=Serial:Reader XXX
To:
device = Serial:Reader 67
Code:
nano /usr/local/etc/oscam.conf
"copy below text into file as sample"
[global]
nice = -19
WaitForCards = 1
saveinithistory = 1
# logging
pidfile = /var/run/oscam.pid
logfile = /var/log/oscam.log
usrfile = /var/log/oscamuser.log
cwlogdir = /var/log/cw.log
maxlogsize = 1000
[newcamd]
key = 0102030405060708091011121314
port = 10000@096c:000000;
# web interface
[webif]
httpport = 8888
httpuser = username
httppwd = password
httpallowed = 0.0.0.0-255.255.255.255
Code:
nano /usr/local/etc/oscam.user
"copy below text into file as sample"
[account]
user = username
pwd = password
uniq = 1
group = 1
au = reader1
ident = 096c:000000
caid = 096c
10. Make oscam start and stop automatically with server bootup/shutdown. Create script:
Code:
nano /etc/init.d/oscam
Copy and paste below code.
#!/bin/sh
# Start/stop the OScam daemon.
#
### BEGIN INIT INFO
# Provides: OScam
# Required-Start: $syslog $network $pcscd
# Required-Stop: $syslog $network $pcscd
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and Stop OScam
# Description: OScam init script. This script start and stop OScam.
### END INIT INFO
. /lib/lsb/init-functions
NAME=oscam
DAEMON=/usr/local/bin/$NAME
CONFIG_DIR=/usr/local/etc
PIDFILE=/var/run/oscam.pid
LOG=/var/log/oscam.log
LOGUSR=/var/log/oscamuser.log
LOGCW=/var/log/cw.log
STARTAS="$DAEMON -- -b -c $CONFIG_DIR"
#test -f $DAEMON || exit 0
[ -d $CONFIG_DIR ] || exit 0
echo $NAME
clear_file() {
# Clear log and pid file if exists
if [ -e $PIDFILE ]
then
rm -f $PIDFILE
fi
if [ -e $LOG ]
then
rm -f $LOG
fi
if [ -e $LOGUSR ]
then
rm -f $LOGUSR
fi
if [ -e $LOGCW ]
then
rm -f $LOGCW
fi
}
case "$1" in
start)
clear_file
log_daemon_msg "Starting OScam daemon" "OScam"
start-stop-daemon --start --quiet --exe $DAEMON --startas $STARTAS
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping OScam daemon" "OScam"
start-stop-daemon --stop --quiet --exe $DAEMON
log_end_msg $?
;;
restart)
log_daemon_msg "Restarting OScam daemon" "OScam"
start-stop-daemon --stop --retry 5 --quiet --exe $DAEMON
clear_file
start-stop-daemon --start --quiet --exe $DAEMON --startas $STARTAS
log_end_msg $?
;;
status)
status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
;;
*)
log_action_msg "Usage: /etc/init.d/OScam {start|stop|restart|status}"
exit 2
;;
esac
exit 0
then press ctr+x to exit, then "y" to save on prompt
Then:
Code:
chmod 755 /etc/init.d/oscam
Then:
Code:
update-rc.d oscam defaults
11. On the clients, install CCcam. This is done via the blue panel.
12. Configure CCcam by editing /var/etc/CCcam.cfg:
nano /var/etc/CCcam.cfg
Delete the contents of the file and add a single line:
N: 192.168.0.6 10000 username password 01 02 03 04 05 06 07 08 09 10 11 12 13 14
13. Insert the smartcard into the reader and reboot.
14. Once server is restarted, on webbrowser type"http://your server_ip:8888"
NOTES:
To get info on the various options in the oscam config files and what they mean, look here:
http://streamboard.gmc.to/svn/oscam/...ution/doc/txt/
To remove a dir:
rm -rf build_dir/
To check log:
tail -f /var/log/oscam.log
To see if oscam running:
ps -A | grep oscam
To start oscam:
oscam -b
To stop oscam:
pkill oscam
OR:
/etc/init.d/oscam status
/etc/init.d/oscam start
/etc/init.d/oscam stop
/etc/init.d/oscam restart
To see usb devices and their address:
lsusb -v
To compile a new version of oscam:
/etc/init.d/oscam stop
cp /usr/local/bin/oscam /usr/local/bin/oscam.PREVIOUS
cd /usr/src
rm -rf oscam
svn co http://streamboard.gmc.to/svn/oscam/trunk oscam
cd oscam
mkdir build
cd build
cmake -DWEBIF=1 ..
make install
Subscribe to:
Posts (Atom)
Recently Updated
LINKS
- Biss keys
- Cache Exchange
- CCcam
- CCcam on Dreambox
- CCcam Prio
- CCcam Server
- CCcam-Newcamd Line Tester
- CCcam.channelinfo
- CCcam.Providers
- Channels
- DISH TV CHANELS
- DISHTV REPLACE LIST
- Dream Box
- Dream Box Key
- DreamBox OSCAM
- Exchange Cache
- FREE CCCAM
- IP TV
- LIVE TV
- MpegTV Server
- Multi CardServer
- Multics
- MultiCS Cache
- MultiCS CSS Style
- Multics Dishtv Profiles
- Multics Profiles
- Multics To Oscam
- OpenVPN
- OSCAM
- OScam + CCcam
- OSCAM Cache-EX
- OScam CCcam
- Oscam to OScam share
- Receivers
- Reset Dreambox Password
- Satellite
- Satellite Frequency
- Satellite KEYS
- Satellite Receivers Codes
- SMART PHONE
- SoftCam Key
- Songs
- UBUNTU
- Video Tutorials
- WiFi
- World Cup 2018 European
- Xtream
- Xtream Codes

