Setting up your card reader on GNU/Linux (udev)
This howto describes how to set up your smart card reader for use with the Fellowship crypto card on GNU/Linux systems using udev functionality.
Please note:
This is only an introductory document, aimed at a generic hard- and software setting involving GNU/Linux. For a full-length description please see the full-length Fellowship crypto card Howto. If you run into problems specific to your GnuPG setup, you may want to read other GnuPG Howtos.
What do you need to use the card?
- A smart card reader. A list of tested readers can be found here.
- Root privileges on your GNU/linux system.
- GnuPG 1.4.2 or higher.
Setting up the card reader
First of all, you will need to download two files for udev and copy them to the udev configuration directories, in order to let it identify your card reader:
Now, open a terminal and become root (you will be asked for your root password):
$ su -
On Ubuntu systems, you should run (and then you will be asked for the user password):
$ sudo su -
Then you will have to move the files from the directory you have saved them to, to the udev configuration directories:
# cd /home/directory/where/you/saved/the/file (change for the right path) # cp gnupg-ccid.rules /etc/udev/gnupg-ccid.rules # cp gnupg-ccid /etc/udev/scripts/gnupg-ccid # chmod +x /etc/udev/scripts/gnupg-ccid # 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.
# addgroup scard # addgroup yourusername scard (change for the right username) # exit (to logout the root user)
Done! Your smart card reader should be working now.
If you want to take a look on what you have in your card, plug in the smart card reader, insert your Fellowship crypto card and type:
$ gpg --card-status
Back to howtos' page for next steps
Feel free to leave comments to improve this howto. Comments will be removed after having made their way into the howto.


Chipdrive on Ubuntu 8.04
cgz
07. agosto 2008