Friday, August 6, 2010

to get a Omnikey or SCM reader working with NewCs/Oscam under Linux and Windows

How to get ID cardreader Omnikey 1021, 3021, 3121 or SCM SCR3310 to work as sat smartcard reader with NewCs or Oscam.

1: A cheap USB identity cardreader Omnikey or SCM both works fine. I self have tested they. And they cost around 7.- to 11.- euro. Very handy reader with that 256 trick :)

2:You need "pcsc" version of newcs. Exmple u have PC linux server, then you need newcs.i686.pcsc Download link: NewCS 1.67 RC1 or Oscam from here OSCam support board

3: Next we need install drivers for these readers.
OpenSC install under ClearOs/Fedora/CentOs/Debian/Ubuntu/Windows


Code:
ClearOs/Fedora/CentOS way:
yum install opensc pcsc-lite ccid
chkconfig pcscd on
service pcscd start
Code:
Debian way:
apt-get install opensc pcscd libccid

Next command:
nano /etc/opensc/opensc.conf
And change thise lines by removing # from front and reader_drivers lines u delete one comand too:
reader_drivers = pcsc, ctapi;
try_emulation_first = yes;
lock_login = false;

If that is done hit from keyboard ctrl+o and enter, then ctrl+x to exit

Next give command:
opensc-tool --list-readers
And you should see your reader there present like so, but with your reader info. Examlpe:

Readers known about:
Nr. Driver Name
0 pcsc Omnikey 1020

How to disable pcscd never ending loggin to /var/log/messages what can write your /var partion full after some time.
Please enter next commands under putty or over terminal command line as root:
nano /etc/init.d/pcscd

There look next lines:
# if you need to pass arguments to pcscd you should edit the file
# /etc/default/pcscd and add a line
# DAEMON_ARGS="--your-option"


And please change it to:
# if you need to pass arguments to pcscd edit to:
# /etc/default/pcscd and add a line
DAEMON_ARGS="--error"

And hit from the keyboard ctrl+o and enter to save the changes and ctrl+x to exit

Next command to restart pcsc:
/etc/init.d/pcscd restart

Done. No more log from pcsc except start up log if you restart the PC and if there is error.
Code:
Ubuntu way:
sudo apt-get install opensc pcscd libccid

Next command:
nano /etc/opensc/opensc.conf
And change thise lines by removing # from front and reader_drivers lines u delete one comand too:
reader_drivers = pcsc, ctapi;
try_emulation_first = yes;
lock_login = false;

provider_library = /lib/libpcsclite.so.1
If that is done hit from keyboard ctrl+o and enter, then ctrl+x to exit

Next give command:
opensc-tool --list-readers
And you should see your reader there present like so, but with your reader info. Examlpe:

Readers known about:
Nr. Driver Name
0 pcsc Omnikey 1020

How to disable pcscd never ending loggin to /var/log/messages what can write your /var partion full after some time.
Please enter next commands under putty or over terminal command line as root:
nano /etc/init.d/pcscd

There look next lines:
# if you need to pass arguments to pcscd you should edit the file
# /etc/default/pcscd and add a line
# DAEMON_ARGS="--your-option"


And please change it to:
# if you need to pass arguments to pcscd edit to:
# /etc/default/pcscd and add a line
DAEMON_ARGS="--error"

And hit from the keyboard ctrl+o and enter to save the changes and ctrl+x to exit

Next command to restart pcsc:
/etc/init.d/pcscd restart

Done. No more log from pcsc except start up log if you restart the PC and if there is error.
Code:
Windows way:
Automated installation just hit "Continue" and follow the guide for windows drivers installation.
Note:
pcci you use if u have ID reader and smargo same time attached to same PC, then ID reader uses path pcci. Other way smargo does not work anymore!
0 , 1 what usb port u use. If u have ID reader without a smargo attached. Yes u can add more as one ID reader to your system then just adjust correct usb node path to new reader. To determine correct new attached reader path use command:
lsusb

Example setting if in CCcam is smargo and in newcs is ID reader:
SERIAL READER : /dev/ttyUSB0 smartreader+
Then ID reader goes to usb2 and with
pcci
If u do so then your both readers as smargo in CCcam and ID reader in newcs come up.

ID readers can´t overclock under linux! But is possible under widnows to overclock it.

No comments:

Post a Comment