Get 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

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 Hardy. I have not personally tried this on Gutsy, but if it works, let me know.

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. First thing to do is add the [third-party] fprint repository to your sources file:
echo -e "# Fingerprint reader support (fprint)\ndeb http://ppa.launchpad.net/madman2k/ubuntu hardy main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list

2. Next, update your sources and install fprint:
sudo apt-get update
sudo apt-get install fprint-demo libfprint-dev libfprint0 libpam-fprint

3. Now you can enroll your fingers using either the terminal or a graphical user interface.
Terminal:
pam_fprint_enroll
GUI:
fprint_demo
4. Last thing to do is configure PAM so that the fingerprint reader can be useful. Open up your PAM authentication file and edit it:
sudo gedit /etc/pam.d/common-auth
5. Edit it to contain:
auth sufficient pam_fprint.so
auth required pam_unix.so nullok_secure

6. 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:

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:
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:
fprint_demo

This content was found on the Ubuntu forums, please see here for updates

Comments (26)

Loading... Logging you in...
  • Logged in as
pezmanlou's avatar

pezmanlou · 884 weeks ago

This is an excellent collection of suggestions. I used all of them and enjoy having more of my hardware working under linux. Something I think you should mention is that gksudo actually does work, you just have to know to scan your finger because the window won't show up.

For those interested, this is my fingerprint reader:

045e:00bd Microsoft Corp. Fingerprint Reader
Excellent. Worked like a charm. I had been searching for this but many of the HowTo's did not work or worked with only few types of readers.

I am using HP tx1000 with Authentec aes1610
Hello,

Nice howto, the problem for me is that when I reboot, the permissions on /dev/bus/usb is set to root:root again ? Any suggestions ?

Thanks

Pi-r
Worked great with UPEK Touchstrip on Thinkpad R61 as well. Thanks!
ChefBodini's avatar

ChefBodini · 882 weeks ago

Very nice! Works great with HP Pavilion dv9700t. One thing to note... You want to add the fprint pam options before any other options in the config file so the fingerprint reader gets priority.
Hi Folks,

I tried this on my HP TX 1320us, and it installed like a charm. My problem is that now using fprint_demo i can enroll a finger, but have not yet managed to get anything other then "Status: Finger does not match" when I use the verify/identify option. Anyone knows why that is (am i doing something wrong).

Lastly, once i get this thing working, how to i use it to sign into Ubuntu?

thanks
Definitely got all the hardware recognized (using an integrated AuthenTec AES1610), however I ran into a few issues as well.

As mentioned above, after trying to authenticate in certain areas, my system just spins for a bit, and nothing loads.

Also, when logging in, I have to type my username and password, swipe my finger, then enter my password again before being allowed to log in.

Anyone else running into any of these issues?

I'll post back if I figure any of it out.

~RJGII
I hava ThinkPad X41 Tablet and I'm getting the following error:

Found device claimed by UPEK TouchStrip driver

fp:error [fp_dev_open] device initialisation failed, driver=upekts

Could not open device.

Any ideas?

Thanks,

jj
has anyone been able to use this with a vaio sz340?

thanks
Everything works too bad my network cannot access the default keyring application anymore as this is also protected now by the fprint app. So now i dont have to enter my password at loging but i do after i have done my finger print scan because else i have no network connection :-) ... Hope this one gets implemented as soon as all the bugs are worked out good job allready. Is there allready a workaround so that the fingerprint scan only works at login and not for all other apps like sudo/synaptic/network access etc?

Cheers
Ray
Works on Asus F3v AuthenTec AES1610. Altho I have not tried any software stuff yet.
when i get to the iinstall step i get a
Couldn't find package fprint-demo

anyone seen this?
1 reply · active 862 weeks ago
i got HP/Compaq 6715b

got this error when fetching the packages with apt:
------------
nuno@carla-laptop:/$ sudo apt-get install fprint-demo libfprint-dev libfprint0 libpam-fprint
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package fprint-demo
nuno@carla-laptop:/$
------------
and yes i did verify that the repo is in the source.list.

any ideas? help!
it seems that the packages have moved to hardy-backport repository.
To add it:
System --> Administration --> Synaptic Package Manager
Settings --> Repositories --> Updates --> Add unsupported updates
when i try to do sudo things through terminal , the 1st command works fine , but all other command r giving me [code]
Segmentation fault [/code]
any help ?
thanks
this thing is way too crapy to tested, it sucks
Yip, works well on a Dell Precision M6300, running Intrepid Ibex.
Uses the upekts driver for the UPTEK TouchStrip

Had to add the pam fprint options before any other options in the config file as suggested by ChefBodini above. The only problem is that the GTK pop-up windows that normally used to prompt for a password, now simply don't appear. But scanning the fingerprint, does log me into the application.

Nice work guys :)
Hey,

Thank you for this how-to, worked like a charm. I tried to use thinkfinger without success, this worked flawlessly.

One question though. If I try to log in and i use the wrong finger, the screen defaults to the password. Is there a way to remove the password option?

I would imagine it would be commenting out the original code in /etc/pam.d/common-auth?
Only confirming the concept here.

Thanks for any input.
José Raul Arana's avatar

José Raul Arana · 844 weeks ago

Hi!

Thank you very much!! it has worked perfectly. I'm using ubuntu 8.10 Intrepid Ibex with a Dell vostro 1310 with upek fingerprint reader. I had to enter every command, inclusive the ones detailed on the troubleshooting.
The only thing that i have done different was the editing of the common-auth file.
I had to put the auth sufficient pam_fprint.so line before any other line to make it work perfect...

Thank you very much excellente work, much appreciated...
Hi,
I works in a Fujitsu s7110!!!! However, does not open any screen in the login process. Any suggestion?
Also worked for me on Lenovo 3000 N200, thank you!
It worked fine but fprint_demo cannot identify my enrolled finger.
any other software ???
I can identify my finger in fprint_demo, but it tells me that it cant identify it when i try to use it somewhere.. :/
Works a treat on my Dell XPS M1530, unlike the aforementioned thinkfinger which was a nightmare to get working properly (in fact I never really got it working satisfactorily).

My one complaint (well niggle really), and it really is a small thing, is that as others have mentioned it doesn't tell you when it's waiting for you to swipe (unless you have terminal open), but I get around this by just swiping my finger every time I'm asked for my password which works every time, in fact it's become second nature to me now :-)

Keep up the good work and I'm sure this will be become a standard package in most if not all distributions, it's way ahead of (and far more reliable / stable than) other similar projects.

Post a new comment

Comments by

Clicky Web Analytics