3 Attachment(s)
HOWTO: Fingerprint reading in Ubuntu with fprint
Getting your fingerprint reader to work in Ubuntu
Project fprint homepage: http://reactivated.net/fprint/wiki/Main_Page
Packages for fprint: http://www.madman2k.net/comments/105
Quote:
The fprint project aims to plug a gap in the Linux desktop: support for consumer fingerprint reader devices.
Previously, Linux support for such devices has been scattered amongst different projects (many incomplete) and inconsistent in that application developers would have to implement support for each type of fingerprint reader separately. For more information on where we came from, see the project history page.
We're trying to change that by providing a central system to support all the fingerprint readers we can get our hands on. The software is open source and in the long term we're shooting for adoption by distributions, integration into common desktop environments, etc.
Note: These instructions are intended for Ubuntu Jaunty.
First off, remember that fprint is not entirely stable, and may not work all the time. A list of supported devices is here, and the list of unsupported devices is here.
1. Next, update your sources and install fprint:
Code:
sudo apt-get update
sudo apt-get install fprint-demo libfprint-dev libfprint0 libpam-fprint aes2501-wy
2. Now you can enroll your fingers using either the terminal or a graphical user interface.
Terminal:
GUI:
3. Last thing to do is configure PAM so that the fingerprint reader can be useful. Open up your PAM authentication file and edit it:
Code:
sudo gedit /etc/pam.d/common-auth
4. If you want the fingerprint to be sufficient, add this at the top of the commands (do it multiple times for however many attempts you want to allow):
Quote:
auth sufficient pam_fprint.so
Use this if you want to require the fingerprint and the password.
Quote:
auth required pam_fprint.so
5. For programs using gksudo/gksu, you should get the wrapper attached to this post and to add fingerprint support and enter the following code:
Code:
sudo mv ./gksu.py /usr/local/bin/gksu
sudo chmod 755 /usr/local/bin/gksu
sudo apt-get install python-gnome2-extras python-pexpect
7. Enjoy your fingerprint reader support!
Steps 4 and 5 tell Ubuntu to check your fingerprint, and if that fails, then ask your password. This rule has some exceptions, one that I have encountered is on the login screen. I have to scan my fingerprint before typing my password. One thing I did notice is that when you use sudo in the terminal, it asks for your fingerprint, which I thought was pretty cool. One disadvantage is that anything using gksu does not seem to work properly, specifically because it does not tell you to scan your finger when needed.
Troubleshooting:
The one problem I ran into when using fprint was that I could not run fprint_demo without sudo. It failed with the error message below:
Quote:
uru4000:error [dev_init] interface claim failed
fp:error [fp_dev_open] device initialisation failed, driver=uru4000
I decided to post my problem here on the forums.
Here is the solution. You have to add yourself to the plugdev group and then change the permissions of the usb folder to allow access to the plugdev group. You can verify you are in the plugdev group by using groups:
Code:
sudo usermod -a -G plugdev $USER
groups | grep plugdev # Make sure there is output from this
sudo chgrp -R plugdev /dev/bus/usb/
Then try running fprint_demo, and hopefully it will work:
Re: HOWTO: Fingerprint reading in Ubuntu with fprint
Everything works fine for me UNTIL i try to enroll, and then it tells me no device found. I knwo it's there because it shows up in verbose mode bootup. Help?
Re: HOWTO: Fingerprint reading in Ubuntu with fprint
Quote:
Originally Posted by
Evil Wayz
Everything works fine for me UNTIL i try to enroll, and then it tells me no device found. I knwo it's there because it shows up in verbose mode bootup. Help?
Same problem here...
Re: HOWTO: Fingerprint reading in Ubuntu with fprint
Everything worked great for me, except I had to change
to
Otherwise, fprint_demo couldn't open the fingerprint reader (a Microsoft reader, btw). Works great, last time I tried this it couldn't recognize the device.
[EDIT] After a reboot I've got some strange behavior. Anything that requires a password now requires a password, a fingerprint scan, then the password again before anything can continue. Any ideas?
[EDIT2] Fixed it. Reordering the entries in /etc/pam.d/common-auth to list the fingerprint reader first eliminated the multiple password entries.
Re: HOWTO: Fingerprint reading in Ubuntu with fprint
Quote:
Originally Posted by
Evil Wayz
Everything works fine for me UNTIL i try to enroll, and then it tells me no device found. I knwo it's there because it shows up in verbose mode bootup. Help?
Try following the steps in troubleshooting to fix this.
Re: HOWTO: Fingerprint reading in Ubuntu with fprint
Thanks, that worked almost perfect for me.
I have only one problem: Since I installed my fingerprint reader, I cannot change network or user settings using the GUI.
If I click on "Unlock" the window freezes for ~20sec and then it shows an error message saying approximately: "authentification failed! an unexpected error has occurred." (German version: "Authentifizierung fehlgeschlagen! Es ist ein unerwarteter Fehler aufgetreten.")
Has anyone an idea?
Re: HOWTO: Fingerprint reading in Ubuntu with fprint
Quote:
Originally Posted by
Nurionn
Thanks, that worked almost perfect for me.
I have only one problem: Since I installed my fingerprint reader, I cannot change network or user settings using the GUI.
If I click on "Unlock" the window freezes for ~20sec and then it shows an error message saying approximately: "authentification failed! an unexpected error has occurred." (German version: "Authentifizierung fehlgeschlagen! Es ist ein unerwarteter Fehler aufgetreten.")
Has anyone an idea?
This is just one of the bugs in fprint; I get this error too. If you find a fix, let me know.
Re: HOWTO: Fingerprint reading in Ubuntu with fprint
Quote:
Originally Posted by
master_kernel
Try following the steps in troubleshooting to fix this.
I have similar problem like Evil Wayz has. I was googling in I-mess. But i still can't find reason.
I know that my fprintreader is working propertly (i used it in Vista).
When I type su:
Code:
Could not locate any suitable fingerprints matched with available hardware.
pam_fprint_enroll:
Code:
No devices detected.
What kind of information do you need from my side?
Thank you.
Re: HOWTO: Fingerprint reading in Ubuntu with fprint
Re: HOWTO: Fingerprint reading in Ubuntu with fprint
Quote:
Originally Posted by
Gotterdammerung
up
What do you mean by this? You mean your fprint is working? How did you solved it?