LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-01-2011, 10:26 AM   #1
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Rep: Reputation: 242Reputation: 242Reputation: 242
cyberJack smartcard reader and VirtualBox


Hi everyone,

I am trying to get a cyberJack smartcard reader working on my Slackware64-13.37 host and in a VirtualBox Win7 guest system.

What are the pre-requisites on the Slackware (host) side?
What non-stock software is required in order to get the smartcard reader working?
Finally, how do I enable the Win7 guest to use the device?


There is a Linux driver, that I compiled from source. After that, the device was identified correctly, when I plugged it to my computer, and VirtualBox "saw" it, also, but I was unable to do anything with it. Installing the Windows drivers in the guest didn't have any effect. While the VM "knows" the device by its name, even a dedicated "redirection filter" didn't help the guest. The Win7 guest still doesn't see the card reader.

On the host, I installed pcscd and some other packages related to card readers, such as (g)scriptor (part of another package), and now I can connect the card reader to my Slackware64 system and read out the contents of smartcards. No success on the guest, though, up to now.

I have researched the web for days, now, and found lots of information, but nothing helped. Seems, I have to narrow my queries, but in order to do so I need to better understand what's going on. BTW, one post I found suggested to install PAM, but as far as I recall it, PAM is included already with Slackware64-13.37, right?

Thanks for any hint pointing me into the right direction!

gargamel

Last edited by gargamel; 10-02-2011 at 03:32 AM.
 
Old 10-01-2011, 12:06 PM   #2
zasavage
Member
 
Registered: Sep 2010
Location: Bloemfontein , South Africa
Distribution: Slackware 13.37 and Slackware 14
Posts: 201

Rep: Reputation: 6
@gargamel

I think you need to add the user using Virtualbox to the group vboxusers .

And make sure the guest additions is installed on the guest operating system

Regards

Lawrence
 
Old 10-01-2011, 01:58 PM   #3
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
Thanks, the installer automatically created the group vboxusers and added the user to it. And the guest additions are installed. So something else must be wrong.

Further suggestions appreciated!

gargamel
 
Old 10-01-2011, 04:01 PM   #4
hf2046
Member
 
Registered: Mar 2011
Distribution: Slack64
Posts: 111

Rep: Reputation: 20
Quote:
Originally Posted by gargamel View Post
Thanks, the installer automatically created the group vboxusers and added the user to it. And the guest additions are installed. So something else must be wrong.

Further suggestions appreciated!

gargamel
Is the card reader on USB? If so, did you try following the steps listed in the manual below?

http://www.virtualbox.org/manual/ch03.html#idp11184208
 
Old 10-01-2011, 05:39 PM   #5
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
Quote:
Originally Posted by hf2046 View Post
Is the card reader on USB? If so, did you try following the steps listed in the manual below?

http://www.virtualbox.org/manual/ch03.html#idp11184208
Yes to both questions.
The virtual USB 2.0 controller is activated, and a virtual USB device is available in the guest. However, while the VM correctly identifies the cyberJack, the guest only "sees" a generic USB device. And the GUI tool that comes with card reader driver for Win7 doesn't find the connected reader.

gargamel
 
Old 10-01-2011, 05:50 PM   #6
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
BTW, the patch for rc.S in this thread Slackware 13.1 and VirtualBox USB didn't help, either.

I guess, I'll decommission my VBox VM including the guest and start this all over.

Coming back to my original post: Do I need all the additional stuff, such as fribid, ccid, coolkey and opensc, that I installed from SBo, or would the cyberJack usually work in unmodified stock Slackware64-13.37? And as I am a newbie in the area of smartcards etc.: How would I reliably check this, and what programs are there in stock Slackware that can make use of a card reader?

Thanks, everyone!

gargamel
 
Old 10-21-2011, 05:09 PM   #7
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
Hi folks,

as it turns out, a library is missing or not found by the smartcard driver: ctapi-cyberjack.so.
I've searched the web for that library and, indeed, found a source package and found libchipcard and a package ctapi-cyberjack-3.0.6rc4.tar.gz.

But even that didn't help. src2pkg fails to compile the sources, and complains about missing libraries, such as readline-devel. Now, AFAIK Slackware packages comprise 'user' and 'developer' stuff, and therefore contain in one package, what other distros split into two, readline and readline-devel in this case. Correct? And readline is, of course, installed.

The smartcard reader is 'seen' by udev and can be 'connected' with gscriptor (part of the package pcsc-tools available at SBo). But that's it.

I've seen a few reports that the Reiner-SCT driver is a 32-bit driver, but my system currently is purely 64-bit. Maybe that is one cause for the trouble, but I am by no means certain.

I think, this is where the research ends. Before I try to get these things working in what I call a multi-level virtualisation environment, I should make sure, that the card reader is functional on the native Slackware system.

Therefore I'll close this thread, and create a new one, with a clearer focus on a simpler scenario.

Thanks anyway,

gargamel
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rdesktop with smartcard reader rahul_217 Linux - Newbie 2 01-04-2014 08:42 PM
Smartcard reader GemPlus410 wrongman Linux - Hardware 0 01-21-2006 06:37 AM
USB smartcard reader akilles Linux - Newbie 3 11-16-2005 03:11 PM
SmartCard reader setup Slacker_Rex Linux - Hardware 1 04-05-2005 09:13 AM
USB SmartCard Reader HwzrHlslndr Linux - Hardware 5 03-12-2003 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration