Prerequisites :-
1. A networked PC that has no real purpose in life.
2. A clean install of ubuntu desktop edition. ( _http://www.ubuntu.com/GetUbuntu/download )
3. Configured telnet access to ubuntu.
4. Configured FTP server on ubuntu.
5. Omnikey 3121 USB card reader. ( _http://www.omnikey.com )
6. 1 - 2 spare hours.
I'm not going into the initial setup of Ubuntu , telnet or FTP as there are many places you can find help with that. Its dead easy !
At this point I should mention that much of this setup is done using command line instructions, in my case executed from my mac via telnet. You can of course use putty in windows or do it locally on the ubuntu machine in a terminal window. I wll not stipulate the difference between these options, thats up to you.
Required Software :-
NewCS
CCcam
PCSCd
pcsc-tools
Omnikey Driver
To install the required components simply type the following, enter your password and answer the prompt with 'yes'
sudo apt-get install pcscd
sudo apt-get install pcsc-tools
Omnikey Driver
_http://www.omnikey.com/index.php?id=69&rName=CardMan%203x21%20PC/SC%20CCID%20for%20Linux%2032%20Bit&did=69
New
_http://www.hidglobal.com/driverDownloads.php?techCat=19&prod_id=188
This is a tarball I believe they're known as, its an archive basically, I unpacked it on my mac and then just FTP'd the unpacked folder to the ubuntu desktop. You can use Winrar also to unpack it or I'm sure there's a way in linux too.
Again in telnet, navigate to the unpacked folder and install by typing
./install
Once you have everything installed you can test the card reader for a response. Simply type
pcsc_scan
Code:
b16mcc@b16mcc-desktop:~$ pcsc_scan
PC/SC device scanner
V 1.4.14 (c) 2001-2008, Ludovic Rousseau
Compiled with PC/SC lite version: 1.4.99
Scanning present readers
0: OmniKey CardMan 3121 00 00
Code:
Possibly identified card (using /home/b16mcc/.smartcard_list.txt):
3F FD 13 25 02 50 00 0F 33 B0 0F 69 FF 4A 50 D0 00 00 53 59 02
Sly Digital (DSS satellite TV card) 2009 issue
Ok so via FTP lets setup some files and folders. By default the home directory of your FTP server will be /home/username/
In that folder I made a new folder, NewCS. I did this using my FTP software.
Now lets put the files we need in those folders.
Sticking with just NewCS for now, we'll add CCcam later.
In /home/username/NewCS you need :-
newcs.i686.pcsc
newcs.xml
If you like you can now rename your newcs.i686.pcsc , I called it newcs_167
Ok, next we need to edit the newcs.xml file to read our card using our Omnikey reader. Here's my config with a few personal details removed. This is exactly my config it does work.
Code:
Omnikey
pcsc
368
0
odd
normal
Yes
Yes
01020304
No
No
Yes
Yes
Yes
12010
Yes
round
No
10001
localhost
20
-1
8080
yes
admin
admin
admin
NewCSpwd
simple
internal
all
1001
normal,init
Yes
newcs
01 02 03 04 05 06 07 08 09 10 11 12 13 14
CCcam
CCcam
on
off
No
1
./newcs_167 -C /home/username/NewCS/newcs.xml
The -C switch simply means use this location for the config. You can see all switches by using -h for help.
So, thats it she's running. You should now be able to open up the web browser and see your card. In your address bar type in :-
_http://dreamboxip:8080
Enter your user name and password and you're in. Have a click around the different options on the left and you should see your card.
To stop NewCS simply type in your telnet session :-
killall newcs_167
Now, its a little long winded typing that startup command with the great big -C switch so we'll make a tiny script file to do it for us.
Code:
#!/bin/bash
cd /home/username/NewCS
./newcs_167 -C /home/username/NewCS/newcs.xml
Now to start NewCS you can simply type :-
./startnewcs.sh
This is a very very simply way of doing it, but it works. If someone out there is a linux god then maybe you can retort here and show us how its done properly. Cheers.....
So now that the server is up and running lets connect to it from CCcam. Simply add this line to the CCcam.cfg in your Dreambox.
Code:
N: 192.168.100.100 12010 CCcam CCcam 01 02 03 04 05 06 07 08 09 10 11 12 13 14
You'll notice the port number 12010 matches with the
As normal if you want to access this from outside your LAN then you'll need to forward port 12010 in your router to the Linux PC IP address and replace the IP address in the N: line with your WAN IP or your DNS address.
Ok so that enough for now, I'm going bog eyed. Oh just one thing, all the files and folders we have FTP'd or created, just make sure you CHMOD them all to 755 to ensure they have the correct permissions. Things can be a little confusing when you don't do this.
Guys, some of this I've done from memory so if there's anything thats troubling you I'm sure you'll comment and I'll be happy to help.
I'm pretty sure you can setup the CCcam server too using this basis but if anyone wants it adding to this tutorial then please ask and I'll oblige.
---------------------------------------------------------------------------------------------
2. What version of CCcam
3. Are you giving out N or C lines
4. What reader are you using
1. 1.67
2. 2.0.11
3. I'm giving peers C lines
4. Omikey 3132
Hi
ReplyDeleteCan you send me your email please ? becuase i need to learn about linux pc card server.
Thanks