How To Setup fprint For Fingerprint Authentication On Ubuntu
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.
- 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
- 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
- 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
- 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.
- 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 - 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.
27 Comments
Leave a commentTrackbacks and Pingbacks
- How To Install Ubuntu 8.04 Hardy Heron On The Asus M50Sv-A1 « See This, Now Read This
- debian on bullman v-klasse 8 | Jitu
- ThinkPad X61 Tablet and Ubuntu Karmic Koala | Karol Krizka
- ThinkPad X61 Tablet and Ubuntu Lucid Lynx | Karol Krizka
- Another Problem With Fingerprints And Linux: SSH and sudo | Karol Krizka
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
Thanks for the great guide.
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?
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
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
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
how do i add the lines
“auth sufficient pam_fprint.so
auth required pam_unix.so nullok_secure” to my /etc/pam.d/common-auth file? Thanks!
Nick: You can use a text editor. Type the following in a terminal:
sudo gedit /etc/pam.d/common-auth
You will be then asked for your password (the sudo command gives you administrator privileges) and a text editor will pop up.
Hello
Thanks a lot for your Website full of usefull information.
I followed your instructions, but i have the following problem, that i’m now always asked to authenticate BOTH with my password and then with my finger. I expected that i could choose either one or the other way. Isn’t it ?
nico
Great tutorial BUT:
when I follow all that in Ubuntu 10.10, and I reastart, nothing is recognized. I am unable to login; nor with keyboard or finger scan!!!
What can I do?
PS
by running in root mode and editing the file /etc/pam.d/common-auth
and takeing the lines
auth sufficient pam_fprint.so
auth required pam_unix.so nullok_secure
out of the file, I could login with the keyboard.
I still need to understand how to be able to use the fprint (but keeping the keyboard as an option).
Any help?
I am having the same problems as Bacco except I’m still running 10.04, any insight?
No news from my side.
I simply not going to use it.
I guess the technology is not yet fine tuned for all flavors
But who knows, maybe one day someone will find more options to have finger print working.
I agree with that. It is impossible ASAIK to use both keyboard and fingerprint at the same time. It is one or the other… More work needs to be still done in this field.
Really thanks! It works for me!!
Thank you very much with regard to a really superb blog! I can think about a lot of webpage that does not provide helpful information UNLIKE yours blogsite. Excellent!
Great! It is cool to see this. I learned something new
Hi Karol,
Finally your useful instructions…………………worked right away no problems at all!!! Great.
Deleted the double references lines in the configuration file, important
(I followed so many experts advice but nothing worked untill now)
Thanks Thanks hugs 🙂
i have done programming in fprint..
1 to match with many fingerprint….
if u want to any information …
so contact on my email address:
dipen.ec2010@gmail.com
Hi!
Thanks for the useful post. Fingerprint Authentication works seamlessly on my Acer Aspire 5738z.
I’ve been successfully install it on my system
but, the apps can’t detect the hardware
my system :
Acer Extensa 4630 (notebook)
OS : BackBox Linux
Thanks a lot! Really helped me!
It is a good added info that the place where
auth sufficient pam_fprint.so
auth required pam_unix.so nullok_secure
is put in “/etc/pam.d/common-auth”
makes a great difference to the login process!