Raspberry Pi and Oscam

chopps

DW Regular
Joined
Sep 14, 2011
Messages
330
Reaction score
461
After much mucking about and pulling of hair, today I successfully got Oscam running on my Raspberry Pi. Yay me! Had to build it from scratch as I failed to find any ARM binaries out there that work.

Only tested with constcw reader so far as I don't have a usb reader yet - but it runs great!

Might write a little tutorial if anyones interested?

Also would be very useful if I could find the YMOD source, anyone please?

Cheers
 
how i got oscam running on the raspberry pi using omnikey 3121
# installed debian sqeeze to sd card from raspberry pi website
# user = pi password = raspberry

sudo update-rc.d ssh defaults
sudo /etc/rc2.d/*ssh start



# now ssh in to

sudo apt-get install update-manager-core
sudo apt-get update
sudo apt-get update
sudo apt-get install proftpd

sudo chown pi /usr/local/bin
sudo chown pi /usr/local/etc

sudo apt-get install openssl
sudo apt-get install libssl-dev
sudo apt-get install cmake build-essential
sudo apt-get install gcc g++ cmake libpcsclite1 libpcsclite-dev subversion
sudo wget h**p://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.8/libusb-1.0.8.tar.bz2 #replace ** with tt
sudo tar xjvf libusb-1.0.8.tar.bz2
cd libusb-1.0.8
sudo ./configure --enable-shared=no
sudo make
sudo make install
cd /usr/src
sudo svn co h**p://www.oscam.to/svn/oscam/trunk oscam #replace ** with tt
cd oscam
sudo mkdir build
cd build
sudo cmake -DWEBIF=1 ..
sudo make
sudo cp oscam /usr/local/bin
sudo chmod 755 /usr/local/bin/oscam

# put oscam files in /usr/local/etc
cd

sudo apt-get install pcscd
sudo apt-get install pcsc-tools

# test card reader
cd
pcsc_scan

#start oscam
cd /usr/local/bin
sudo oscam -b


only checked with one client so far but ecm times at 90ms working great

#oscam files

#oscam.conf

[global]
logfile = stdout
disablelog = 0
disableuserfile = 0
usrfileflag = 0
clienttimeout = 5000
fallbacktimeout = 2500
clientmaxidle = 120
failbantime = 30
cachedelay = 120
bindwait = 120
netprio = 0
clientdyndns = 0
resolvedelay = 30
unlockparental = 0
nice = -1
serialreadertimeout = 1500
maxlogsize = 50
waitforcards = 1
preferlocalcards = 1
saveinithistory = 1
readerrestartseconds = 5
lb_mode = 1
lb_save = 0
lb_nbest_readers = 2
lb_nfb_readers = 1
lb_min_ecmcount = 5
lb_max_ecmcount = 500
lb_reopen_seconds = 900
resolvegethostbyname = 0
failbantime = 10
double_check = 0

[newcamd]
port = 34000@0963:000000
key = 0102030405060708091011121314
allowed = 1.0.0.0-255.255.255.255
keepalive = 1
mgclient = 0

[cccam]
port = 12000
reshare = 1
version = 2.1.3
stealth = 1

[webif]
httpport = 8888
httpuser = user
httppwd = password
httprefresh = 10
httpallowed = 127.0.0.1,192.168.0.1-192.168.0.111
httphideidleclients = 1
httpreadonly = 0

[monitor]
port = 988
aulow = 120
monlevel = 2
NoCrypt = 192.168.0.1-192.168.0.111



#oscam.server

[reader]
label= Foxtel
protocol = pcsc
enable = 1
device = 0
detect = cd
cardmhz = 357
caid = 0963
boxid = 00000000
group = 1
emmcache = 1,3,2
ecmcache = 1
blockemm-unknown = 1
blockemm-g = 1
lb_weight = 101



#oscam.user

[account]
user = user
pwd = password
monlevel = 0
uniq = 0
group = 1,2
au = 1
caid = 0963

[account]
user = monitor
pwd = monitor
monlevel = 2

#just added cline as normal to client
c: raspberrypi 12000 user password
 
Last edited:
After much mucking about and pulling of hair, today I successfully got Oscam running on my Raspberry Pi. Yay me! Had to build it from scratch as I failed to find any ARM binaries out there that work.

Only tested with constcw reader so far as I don't have a usb reader yet - but it runs great!

Might write a little tutorial if anyones interested?

Also would be very useful if I could find the YMOD source, anyone please?

Cheers

Have got my PI turning up in a few days & would like to see a tut please

Thanks
 
Nice one Havelin. Essentially the same here. Im struggling to add or modify users in the web interface, but other than that its all looking good. Just need the omnikey now.
 
been playing around with this running very stable cpu load not more than 5% not using more than 50mb of memory
also if you want to set staic ip and have oscam run obn boot

# set static ip

sudo nano /etc/network/interfaces
#change the dhcp to static then under it put like this but chaneg to your addresses you want
address 192.168.0.2
netmask 255.255.255.0
broadcast 192.168.0.2
gateway 192.168.0.1

# save by pushing ctrl x

# setup oscam to auto start

sudo nano /etc/rc.local

# add this line just above exit

/usr/local/bin/oscam -b

# save by pushing ctrl x
 
I was thinking about having a go at this only last week. Now I've read this thread I am glad I didn't bother. Bit over my head :)
 
What the hell is a raspberry PI when its all at home ?
 
Yep. It's a little single board computer the size of a fag packet. HDMI, 2x USB, ethernet, ARM cpu
Runs Linux and can be used as a desktop PC if you want. outputs 1080p no probs.
The idea is to get kids into coding for a tiny cost, but there's a million uses for it. Sold out in minutes.

Loads more info on google and BBC and on the official Paspberry Pi forums.
 
So where do you put your ccam config file with the f lines on it please?

You don't you add them to Oscam.user file like this

[account]
user = user
pwd = password
monlevel = 0
uniq = 0
group = 1,2
au = 1
caid = 096

Just add one of them for each user and put the username and password you want
 
been playing around with this running very stable cpu load not more than 5% not using more than 50mb of memory
also if you want to set st

# setup oscam to auto start

sudo nano /etc/rc.local

# add this line just above exit

/usr/local/bin/oscam -b

# save by pushing ctrl x

Hi M8,

where do you put /usr/local/bin/oscam -b, you say just above exit but the only exit I can see is "exit 0"?

Thanks
 
Hi M8,

where do you put /usr/local/bin/oscam -b, you say just above exit but the only exit I can see is "exit 0"?

Thanks

i know most people arent linux friendly.

so this command

sudo nano /etc/rc.local

will open up the nano editor and t will open the file rc.local

in that fail at the bottom is "exit"

just above that place "/usr/local/bin/oscam -b"


then ctrl+x hit Y and enter, and enter again


now it will start oscam on startup (rc.local) is startup file, bit like the the startup shortcut in windows start menu ;)
 
sounds very good , but how many clients , could it handle 20?
 
i know most people arent linux friendly.

so this command

sudo nano /etc/rc.local

will open up the nano editor and t will open the file rc.local

in that fail at the bottom is "exit"

just above that place "/usr/local/bin/oscam -b"


then ctrl+x hit Y and enter, and enter again


now it will start oscam on startup (rc.local) is startup file, bit like the the startup shortcut in windows start menu ;)

Thanks will give that a go & report back.

Also will this update entitlements also?

Thanks
 
i know most people arent linux friendly.

so this command

sudo nano /etc/rc.local

will open up the nano editor and t will open the file rc.local

in that fail at the bottom is "exit"

just above that place "/usr/local/bin/oscam -b"


then ctrl+x hit Y and enter, and enter again


now it will start oscam on startup (rc.local) is startup file, bit like the the startup shortcut in windows start menu ;)

Right, have finally got around to try & do this today & all I get after typing in this command sudo nano /etc/rc.local is this screen

Pi.jpg

Any help please?
 
just go donw to the bottom and your see exit

Thanks m8, I was looking so hard could not see trees for the forest, lol.

Any idea how many clients you can have on the Pi?

Thanks
Calisto
 
Back
Top