Just after 15 days I’m publishing a second English tutorial. This time I’ll speak about the Fellowship crypto card and how to make it work with a card reader (don’t you know what I’m talking about? Read this page about the fsfe card).
There are some nice tutorials around the net, I assembled them and there you will find how to install a card reader (in this case the famous SCR335) under Ubuntu, but it should work with every distro which uses Udev.
With this tutorial, you will be able to access your smart card reader without being root!
This tutorial is COPY & PASTE capable, if you don’t want to read all the comments, you can just copy and past these commands in your terminal, it should work without adjustments
EDIT: you don’t need pcscd/libpcsclite-dev, I would really thank Michael Kallas and Matthias Kirschner for their help!
First, install libusb-dev:
sudo apt-get install libusb-dev
I reccommend to install pcsc for accessing the card reader:
sudo apt-get install pcsc-tools pcscd
Now we need to set up the Udev rules and scripts, for accessing the usb card reader.
Download gnupg-ccid.rules in the right dir:
cd /etc/udev/
sudo wget http://www.fsfe.org/en/content/download/17665/125518/file/gnupg-ccid.rules
Download gnupg-ccid in the scripts dir:
cd /etc/udev/scripts/ (create it if it doesn’t exists)
sudo wget http://www.fsfe.org/en/content/download/17248/121800/file/gnupg-ccid
We need to set the correct permissions and a symbolic link:
sudo chmod +x /etc/udev/scripts/gnupg-ccid
sudo ln -s /etc/udev/gnupg-ccid.rules /etc/udev/rules.d/gnupg-ccid.rules
All the configuration files are in the right place and with the right permissions by now.
You will now create a group scard, give this group permission to access the smart card reader, and include the users who should have access to the card reader to this group.
sudo addgroup scard
sudo addgroup $USER scard
If $USER doesn’t work, replace it with your user login name.
Then create the file /etc/udev/rules.d/smart_card.rules using this command (thanks to gerloff)
cd /etc/udev/rules.d/
sudo wget http://download.task3.cc/smart_card.rules
Install libpcslite-dev (you need it because of some Udev problems)
sudo apt-get install libpcsclite-dev
Restart the system. You can verify the correct installation of the card reader with:
gpg –card-status
I hope you will find this tutorial useful
Credits:
Related posts
Recent Comments