How To Setup fprint For Fingerprint Authentication On Ubuntu

Karol Krizka @ March 28, 2008

Linux

A while ago I talked about how you can setup the ThinkFinger package to enable fingerprint authentication on Ubuntu. The entire setup works quite well (at least for me), but it has its problems because it is specific for Lenovo laptops and so there is not much demand for it. This is where fprint enters: fprint is an attempt at creating an open source module that can interface with different fingerprint scanners (not only limited to ThinkPads!) and has reached a relatively “usable” stage at which I think exceeds ThinkFinger. First of all it has a nice (however simple) graphical interface and allows you to enroll several fingers. This tutorial is based on information provided by Fabián Rodríguez and packages created by Pavel Rojtberg. Therefore most of the credit goes to them as I only mean to create a condensed version of Fabián’s tutorial that can be followed by any non-technical Ubuntu user.

  1. The first step is to add the PPA repository to your sources list. Just add the following line to the end of the /etc/apt/sources.list file:
    deb http://ppa.launchpad.net/madman2k/ubuntu hardy main restricted universe multiverse
  2. Now you have to update your apt cache to include the list of packaged from the newly added repository. Just run the following command:
    sudo aptitude update
  3. The next step is to install the actual packages, including: a graphical interface (fprint-demo), the actual module (libfprint) and a PAM module to allow easy authentication (libpam-print).
    sudo aptitude install fprint-demo libpam-fprint libfprint
  4. Run the command fprint_demo to enroll yourself into the database. The opened application should look like the following screenshot. Just click on the enroll button, and swipe your finger three times for each. Also note if you have trouble with scanning certain fingers, just skip them. You do not need to have the entire collection.screenshot-fprint-project-demo.png
  5. Make sure that your /etc/pam.d/common-auth file contains the following lines. If you already added the ThinkFinger PAM module, make sure to remove any referenced to it from the same file!
    auth sufficient pam_fprint.so
    auth required pam_unix.so nullok_secure
  6. You are done, just make sure to leave normal password authentication enabled for now. Because fprint is still at an early stage and might have some problems.

Did you enjoy this post? Then why not subscribe to my RSS feed or subscribe by e-mail? Also check out the many other FREE ways to appreciate a blogger.


Related Posts

RSS feed | Trackback URI

7 Comments »

Comment by Martin Subscribed to comments via email
2008-05-03 03:23:46

Great Posts - thanks a lot. Fprint works fine for me on my Thinkpad X61t with Ubuntu Hardy.

But there are two issues, which I’m not so happy about:

- I have to enter my username to login - so I have to swivel the screen to keyboard mode. Is there a way to setup a standard username?

- During login, the username box will be deactivated and the system is waiting for the fingerprint. Without any message. A message would be great - at least, which fingerprint the system is expecting. Right at the moment I only have stored one fingerprint, but I like to add all fingers.

Do you have any ideas or solutions?

Cheers,
Martin

 
Comment by Paul
2008-05-19 13:13:44

Thanks for the great guide.

 
2008-05-19 15:17:26

[...] to install the fingerprint reader driver due to its’ unstable nature. The guide provided by Karol Krizka solved the problem of installing this driver of which I have spent about an hour researching with [...]

 
Comment by Nicholas Subscribed to comments via email
2008-08-20 12:34:32

Aptitude isn’t finding installation candidates for fprint-demo, libpam-fprint, or libfprint, even though I’ve added the correct repository and updated apt. Any ideas?

 
Comment by Dalis Subscribed to comments via email
2008-08-26 03:21:02

The same by me, the reason is simple. http://ppa.launchpad.net/madman2k/ubuntu is no more containing the Hardy packages (nor Gutsy).

Workaround for Gutsy users is to download tarball here:
http://legacy.madman2k.net/files/fprint-packages.tar.

The packages for Hardy I haven’t found yet ;-(

Any idea?

BR,
Dalis

 
Comment by rac Subscribed to comments via email
2008-08-31 03:54:03

they are in hardy-backports and in interpids repo…
but there is a bug within sudo application
for a howto do a partial config (gdm login and screensaver lock) you can go to https://www.2030.tk/wiki/Install_Ubuntu_8.04_on_Lenovo_3000_N200_with_encrypted_LVM

 
Comment by Drew
2008-09-17 19:28:07

I used your method, works great, except for one issue… sudo gives me a segmentation fault at what seemed like random times. A quick search found this…
http://www.mail-archive.com/ubuntu-bugs@lists.ubuntu.com/msg946814.html
Hope is helps out others too.

Drew

http://www.geedew.com
https://www.sominty.com

 
Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line=""> in your comment.

Feed