August 28, 2012

Installing Peter Pan on Dreambox

Hi,

In this post I will explain how you install Peter Pan Neverland v. 2.3 on a Dreambox DM500HD.

1. Downloading Peter Pan Neverland v. 2.3 Image
First of all you need to find the Peter Pan Neverland v.2.3 Image on the internet.

I found the image on this site:
http://digsat.net/wbb3/index.php?page=Thread&threadID=55071

But you can also find it on this site:
http://www.dreamboxtool.com/Other-Images/Peter-Pan-Neverland-Lightning-v2-3-for-DM500HD.html

2. Installing Peter Pan
Now we need to update the Dreambox DM500HD with this image (also called a firmware update). Be aware that all settings, plugins etc. on your Dreambox will be removed (normally this would not be a problem - especially not if the dreambox is brand new).

I assume that you Dreambox is connected to your local network and that the Dreambox gets its IP-address from a DHCP-server.

To open for the firmware update you need to do the following:

  1. Turn off the power to your Dreambox (standby is not enough).
    It is recommended that you switch off the power switch.
  2. On the front of the box you have a power button, press and hold this button.
  3. Switch on your Dreambox while you continue pressing the power button for about 5 - 10 seconds.
  4. Your Dreambox should now have received an IP-address from your DHCP server.
    Find out which IP-adresss.
  5. Connect through a browser (In this case I recommend Internet Explorer running in Compatibility State) to the IP, for example: http://192.168.1.105/
  6. You should get a webpage from your Dreambox on your screen now. In the bottom of this page you should have a link called "Firmware Upgrade". Click this link.
  7. On the next page choose the Peter Pan Neverland v. 2.3 Image file and push "Flash!".
    The image has the .nfi file-extension. If it doesn't have that file-extension, then it is the wrong file!
  8. The page should now show a progress-bar telling you how far the upgrade process is. When it is done, please reboot the Dreambox.
  9. Now connect the Dreambox to your TV and start it. You are now running Peter Pan Neverland v. 2.3 on your Dreambox.
  10. Please run through the Peter Pan Configuration Wizard at the first Startup and make a full channel search.
Have fun!

A.A.

August 22, 2012

Oscam Config: oscam.user


Hi,

This post will guide you through some of the most important properties in my oscam.user file. My oscam.user file looks like this:

[account]
user                  = username1
pwd                   = password1
group                 = 1
cccmaxhops            = 0
cccreshare            = 0

[account]
user                  = username2
pwd                   = password2
group                 = 1
cccmaxhops            = 0
cccreshare            = 0

Both cardreaders are in oscam.server defined as being related to group number 1. Therefore all users should also be related to this group.

The above oscam.user file contains two users. Simply just change the user and the pwd to make your own users. To add more users simply just create a new [account]-section in the file with those 5 properies.

Put your oscam.user file in the directory /usr/local/etc/

Now all three needed configuration files are done and ready.
Now you are ready to start Oscam.

Start Oscam through PuTTY by typing:

/usr/local/bin/oscam -b

Have fun!

A.A.

Oscam Config: oscam.server

Hi,


This post will show you my oscam.server file setup to read cards from Viasat Nordic and Canal Digital Nordic through Omnikey Cardreader 3121.

This config also works with Viasats new cards with the blue arrow.
Viasat HD channels however do not work.


My oscam.server file looks like this:


[reader]
label                 = viasat
protocol              = pcsc
device                = 0
caid                  = 093E
boxid                 = BOXID
ecmwhitelist          = 093E:88,84,AA,A6,68,98
detect                = cd
ident                 = 093E:000000
group                 = 1
emmcache              = 1,3,2
blockemm-g            = 1

[reader]
label                 = canaldigital
protocol              = pcsc
device                = 1
caid                  = 0B00
detect                = cd
ident                 = 0B00:000000
group                 = 1
emmcache              = 1,3,2

For the Viasat reader change the value for the propertie "boxid".
First of all you need to find the Box ID on your original Viasat Satbox. 
Then you remove the first 0 in that number and remove the last number too.

After that I generated a Hex value of the number. I used my Dreambox to do that. Under the Cam Menu there is a "Key Generator" you can use. Simply just put in the numbers and hit Generate. Type down the result of the generation and set it as the Box ID in your oscam.server file.

When you get to start the Oscam software you should check if the cards in the readers needs to be switched with each other (so that it's not the Viasat card in the reader for Canal Digital an so on).

The above setup has been tested and it works fine!

Put your oscam.server file in the directory /usr/local/etc/

Have fun!

A.A.

Oscam Config: oscam.conf

Hi,

This post will guide you through some of the most important properties in my oscam.conf file.
My oscam.conf file looks like this:


[global]
logfile               = /root/logs/oscam.log
clienttimeout         = 3000
cachedelay            = 120
nice                  = -19
maxlogsize            = 500
preferlocalcards      = 1
saveinithistory       = 1

[monitor]
hideclient_to         = 15
monlevel              = 0
appendchaninfo        = 0

[newcamd]
port                  = 50000@093E:000000;50001@0B00:000000
key                   = 0102030405060708091011121314
keepalive             = 0

[webif]
httpport              = 3001
httpuser              = admin
httppwd               = oscam
httprefresh           = 10
httpallowed           = 192.168.1.1-192.168.1.255

global - logfile
The logfile propertie tells Oscam where to place its main logfile. You can choose what ever location that you want.

global - nice

The nice propertie tells Oscam which CPU priority it is allowed. -20 is the highest priority, while 20 is the lowest priority.

I have chosen -19 because my server is not used for any other software, so the propertie for my situation does not make that big effect anyway.

global - maxlogsize
Indicates in kilobytes how large the main logfile for Oscam is allowed to be before being cleared.

newcamd - port
The port propertie tells Oscam which readers/servers are running on which network-ports.
The syntax is: port-number@caid:provider-id

If you supply more than one port each port much be separated with ;


I have set up two ports in my config - one for Viasat (50000@093E:000000) and one for Canal Digital (50001@0B00:000000).

newcamd - key
The key is used as an encryption between the client and the server. You must have a total of 28 numbers, however you decide the numbers. I have just set up a standard key.

webif - httpallowed
The httpallowed propertie tells Oscam what IPs that are allowed to connect to the Oscam Webinterface. In this case I have put in 192.168.1.1 to 192.168.1.255 because that is the range of my local network IPs. You can also set an WAN IP instead of just LAN IPs.

You can setup a range with a - between the lowest and the highest IP in the range, and you can add seperate IPs by setting a , between them. For example:
192.168.1.1-192.168.1.255,10.10.10.10
192.168.1.1-192.168.1.255,10.10.10.1-10.10.10.10

You can find a wiki-site of all properties in the oscam.conf by clicking here.

Put your oscam.conf file in the directory /usr/local/etc/

Have fun!

A.A.

August 21, 2012

Installing Oscam software

Hi,

After installing the cardreaders you are now ready to install Oscam.

Oscam is one of many types of software that can share your data from the card with other users connected.

Sharing card with others is illegal and you should not do it. However I do not know the rules of using card sharing locally on your network between rooms (for example between your living room, your kids room etc.).

I guide you to use Oscam, because I know that Oscam works with the new type of cards from Viasat (marked with a "blue" arrow on the card).

First step: Logon to ClearOS through SSH
Logon to ClearOS through SSH. This procedure is descriped in my other post "Installing Omnikey Cardreader 3121 with software".

Second step: Installing some build/developer packages
When logged in as root you need to install some build/developer packages.

Execute the following command:

yum install mercurial cvs subversion libncurses-dev gcc-c++ g++ gcc gdb make cmake

Third step: Installing Oscam
Now you are ready to install Oscam.

Start by executing the following command:

cd /

The command will change the currenct directory to the root-directory of the filesystem. Then you need to download Oscam from the SVN site:

If you want to install version 1.10 (current latest stable version) type the following:

svn co http://streamboard.de.vu/svn/oscam/tags/1.10/ oscam

If you want to install current developer (not stable!) version type the following:

svn co http://streamboard.de.vu/svn/oscam/trunk oscam

The system now downloads the files and places them in a folder called "oscam". Now execute the following commands:

cd oscam
mkdir build
cd build
cmake -DWEBIF=1 -DLIBUSB=1 ..
make
make install
chmod 755 /usr/local/bin/oscam

Oscam is now installed. You now only need to create the configuration files for Oscam. The files needs to be placed in /usr/local/etc/ and you need at least three files: oscam.conf, oscam.server, oscam.user.

After they are placed in /usr/local/etc/ you can start Oscam by typing:

/usr/local/bin/oscam -b

In my next post I will write some working configuration files that only needs a bit modification before working on your system too.

Have fun!

A.A.

Installing Omnikey Cardreader 3121 with software

Hi,

Next step is to install some cardreaders.

I prefer Omnikey Cardreader 3121 because they are cheap and they are easy to install and setup.

First task: Connect to the server through SSH
The first task is to connect to SSH on the new ClearOS installation.
You can do this through PuTTY - a small, free and very nice client. Download it here.

Simply just run PuTTY, type in the hostname, check that the port is 22 and then hit the Open-button. Now type in the username "root" and afterwards type in the password for the root-user.

You are now succesfully connected to the server through SSH.

Second task: Installing some general packages to the server
Next thing to do is to install some general packages for the ClearOS system.

Just type in the following and afterwards follow the instructions on the screen:

yum install wget autoconf libccid automake libtool gettext tar bzip2 gzip patch ncurses-bin flex bison pkg-config libpng2 libpng3 zlib monosim libpng3 libpcsclite1 libpcsclite-dev libusb-dev libssl-dev libpng12-0 libpng12-dev libpng3 libpng-sixlegs-java libpnglite-dev pngquant libpngwriter0-dev libpngwriter0c2 zlib-bin zlib1g-dbg zlib1g-dev zlib1g zlibc dialog hal

Please notice that the above command line is one line, not 2, 3 or more than that!

Third task: Install software for the Omnikey Cardreaders
You are now ready to install the software for the Omnikey Cardreaders.

Execute the following commands through SSH:

yum install pcsc-lite pcsc-lite-devel pcsc-lite-doc pcsc-lite-libs pcsc-perl ctapi-cyberjack-pcsc ccid

yum remove openct

The first line installs some software, and the last line removes a packages called OpenCT. OpenCT must be removed for the cardreaders to work properly.

Now connect your cardreader(s) to the computer through USB and then execute the following command:

service pcscd start

This line manually starts the PCSC Daemon that reads from the cardreaders.

Later on I will write a post that makes the PCSC Daemon startup automatic when the OS starts up. I will also write a post regarding a cronjob checking if PCSC is running or not (and if not running, then start PCSC).

Have fun!

A.A.

Installing an Operative System

Hi,

First of all you have to find a computer. The requirements for the computer is not crazy. A computer with an Intel Atom processor and 1 GB of ram should be OK.

However I recommend a larger processor and at least 2 GB of ram.

Afterwards you need to find a operative system to install on the computer. Normally I'm all into Windows, but for this I would recommend a Linux-based OS.

I have chosen ClearOS, and all my posts on this blog will be based on ClearOS is installed on the computer. ClearOS is a webbased OS. That means you do not have a GUI interface on the computer. Instead you work with the system through a website or through SSH.

You can find the ISO for ClearOS on their official site. I downloaded the Community Edition (free) in version 6.2 (newest version at this time).

I burned out the ISO on a CD, put it in my computer and booted from the CD. Just choose to install the OS on the computer.

The installation takes around 15 - 20 mins. in total. Afterwards you will be able to logon to the server through SSH or through the ClearOS Webpanel (https://local-ip:81).

Problems with installing? KeyError: 'eth0' ?
When I tried to install ClearOS on a certain computer I had a problem under the installation. It came with an error like "KeyError: 'eth0'" and then just stopped the installation.

The solution for this problem is to start the installation with a parameter. You type in the parameter when being in the first menu under the installation (the menu where you choose if you want to install, upgrade etc.). You need to be on the first option in the menu, then hit the "Tab"-key on your keyboard. Afterwards a command line is displayed. Add a space at the end of the line and then type biosdevname=0 and hit Enter.

The installation should proceed now without any errors.

Have fun!

A.A.

The reason for this blog...

Hello,

The reason for me writing on this blog is that I would like to share my experience regarding Card Sharing of Viasat Nordic and Canal Digital Nordic.

I will in no way urge you to use this information in any illegal way. For me it is just sharing of information and experiences.

You are most welcome to comment on my posts, however I do not want any comments regarding illegal card sharing.

Have fun!

A.A.