OsCam compiled on Raspberry Pi and use for Ziggo TV

I started of with the latest raspbian lite image since I don’t need a GUI for this.

After the image is created you need to copy an empty file with the name ‘ssh’ to the boot partition ( else you can’t ssh into the Pi)

Let’s upgrade it before we start compiling:

sudo apt update && sudo apt dist-upgrade -y
sudo rpi-update

And some extra packages that should avoid errors when we start to compile:

sudo apt-get install subversion cmake build-essential libssl-dev libpcsclite1 libpcsclite-dev dialog libudev-dev -y

We’re using a smardcard reader so we first need to compile the library for it.
Let’s grab te latest source and extract it:

cd ~
wget https://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.21/libusb-1.0.21.tar.bz2
tar xjvf libusb-1.0.21.tar.bz2

Now we can build it:

cd libusb-1.0.21/
sudo make install

Let’s grab the latest OsCam source:

cd ~
svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn

cd oscam-svn

./config.sh -g

Goto ‘Readers’ and deselect ‘READER_CRYPTOWORKS’.
( it will fail to compile with this reader and we don’t use it.)
select save to exit the menu.

mdkir build
cd build/
cmake ..
sudo make install

OsCam should now be installed in /usr/local/bin/

Place your config files in /usr/local/etc/ and start oscam:

/usr/local/bin/oscam &

More to come..

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.