I didn't get it to work but these steps did.. not mine but easy to follow and maybe useful to someone:
OSCam with PC/CS card reader support
If you like to setup a Linux Server and using OSCam with a local card, you need a card reader.
Here is a simple tutorial on how to get a card reader up and running.
This tutorial will work for most reader out there:
Omnikey
Keyboard with card reader
Integrated reader in a portable computer
This should work on Ubuntu 12.x and up (and other Linux distro)
Install needed software
apt-get install subversion make gcc pcscd pcsc-tools libpcsclite-dev
subversion -> file/documents controll system, compiling
make -> compiling tools
gcc -> compiling tools controlling process
pcscd -> PC/SC Smart Card Daemon
pcsc-tools -> Adds pcsc_scan, a too for scanning PC/SC Smart Card
libpcsclite-dev -> Middleware to access a smart card using PC/SC - files need for compiling and linking app to reader
You can update the card list for the PC/SC software (optional)
wget http://ludovic.rousseau.free.f…-tools/smartcard_list.txt --output-document=/root/.smartcard_list.txt
Test if cardreader is found and working
Run:
pcsc_scan
Insert and remove card, and you should see some like this:
0: HP USB Smart Card Keyboard [CCID Interface] (0819ffc3) 00 00
Wed Apr 9 08:34:44 2014
Reader 0: HP USB Smart Card Keyboard [CCID Interface] (0819ffc3) 00 00
Card state: Card inserted,
ATR: 3C 24 00 20 4A 10 20
ATR: 3C 24 00 20 4A 10 20
+ TS = 3B --> Direct Convention
+ T0 = 24, Y(1): 0010, K: 4 (historical bytes)
TB(1) = 00 --> VPP is not electrically connected
+ Historical bytes: 30 42 30 30
Category indicator byte: 30 (proprietary format)
Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3C 24 00 20 4A 10 20
ComHem Digital-TV smartcard (Sweden)
TNK Telewizja Na Karte (Poland) - Conditional access system : Conax (Sweeden)
http://telewizjanakarte.pl/
Wed Apr 9 08:34:57 2014
Reader 0: HP USB Smart Card Keyboard [CCID Interface] (0819ffc3) 00 00
Card state: Card removed,
Press CTRL-C to exit.
The 0: and Reader 0, tells you that this is reader 0 in OScam
Get and install OSCam (will download latest build)
cd /tmp
svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn
cd oscam-svn
Compile OSCam with PC/SC support
make USE_PCSC=1
All this lines should bee included to tell you that PC/CS support is added
| CFLAGS = -DWITH_PCSC=1 -I/usr/include/PCSC
| LDFLAGS = -Wl,--gc-sections -DWITH_PCSC=1 -I/usr/include/PCSC
| LIBS = -lpcsclite -lpthread -ldl -lrt
| UseFlags = USE_PCSC=1
| Binary : Distribution/oscam-1.20-unstable_svn9646-x86_64-linux-gnu-pcsc
CC csctapi/ifd_pcsc.c
LINK Distribution/oscam-1.20-unstable_svn9646-x86_64-linux-gnu-pcsc.debug
STRIP Distribution/oscam-1.20-unstable_svn9646-x86_64-linux-gnu-pcsc
Copy it to bin directory (replace 9668 with your downloaded version)
cd Distribution
mkdir /var/bin
cp oscam-1.20-unstable_svn9668-i686-linux-gnu /var/bin/oscam9668
Start OSCam
/var/bin/oscam9668 -b
Find Web port (normal 8888)
netstat -topan | grep oscam
Launch webif OSCam
http://ip:8888
Add reader
Reader -> Add Reader
# Give a propper name
Enable: X
Device: 0 #Use device name found by pcsc_scan, remember to reboot after adding new device
Group: 1
Emmcache: 1,3,2
To see new reader if OScam is 9668 or newer, do
Readers -> Reload Readers
for older version
Reload OScam