Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old April 19th, 2008   #1
master_kernel
Dipped in Ubuntu
 
master_kernel's Avatar
 
Join Date: Nov 2006
Location: United States
Beans: 635
Ubuntu 9.04 Jaunty Jackalope
Lightbulb 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:
Code:
pam_fprint_enroll
GUI:
Code:
fprint_demo
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:
Code:
fprint_demo
Attached Images
File Type: png fprint.png (92.1 KB, 684 views)
File Type: png fprint2.png (59.6 KB, 787 views)
Attached Files
File Type: py gksu.py (4.0 KB, 666 views)
__________________
The one and only, Master Kernel Thread
KernelCheck - Finally. A way to easily download, compile, and install the latest kernel. Release 1.2.5 available now.

Last edited by master_kernel; July 22nd, 2009 at 11:26 AM.. Reason: Updates
master_kernel is offline   Reply With Quote
Old April 24th, 2008   #2
Evil Wayz
Just Give Me the Beans!
 
Evil Wayz's Avatar
 
Join Date: Oct 2007
Location: Titletown, USA
Beans: 80
Ubuntu Jaunty Jackalope (testing)
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?
Evil Wayz is offline   Reply With Quote
Old April 24th, 2008   #3
Gotterdammerung
Just Give Me the Beans!
 
Gotterdammerung's Avatar
 
Join Date: Sep 2006
Location: Brasil
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Fingerprint reading in Ubuntu with fprint

Quote:
Originally Posted by Evil Wayz View Post
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...
__________________
“Nothing happens by chance, my friend... No such thing as luck. A meaning behind every little thing, and such a meaning behind this. Part for you, part for me, may not see it all real clear right now, but we will, before long.” Richard Bach
Gotterdammerung is offline   Reply With Quote
Old April 26th, 2008   #4
master_kernel
Dipped in Ubuntu
 
master_kernel's Avatar
 
Join Date: Nov 2006
Location: United States
Beans: 635
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Fingerprint reading in Ubuntu with fprint

Quote:
Originally Posted by Evil Wayz View Post
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.
__________________
The one and only, Master Kernel Thread
KernelCheck - Finally. A way to easily download, compile, and install the latest kernel. Release 1.2.5 available now.
master_kernel is offline   Reply With Quote
Old April 28th, 2008   #5
Nurionn
First Cup of Ubuntu
 
Join Date: Jan 2008
Location: Switzerland
Beans: 7
Ubuntu 8.04 Hardy Heron
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?
__________________
Spelling might be wrong, English isn't my native tongue.

Last edited by Nurionn; June 3rd, 2008 at 06:09 AM..
Nurionn is offline   Reply With Quote
Old April 28th, 2008   #6
master_kernel
Dipped in Ubuntu
 
master_kernel's Avatar
 
Join Date: Nov 2006
Location: United States
Beans: 635
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Fingerprint reading in Ubuntu with fprint

Quote:
Originally Posted by Nurionn View Post
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.
__________________
The one and only, Master Kernel Thread
KernelCheck - Finally. A way to easily download, compile, and install the latest kernel. Release 1.2.5 available now.
master_kernel is offline   Reply With Quote
Old August 15th, 2008   #7
chase809
First Cup of Ubuntu
 
Join Date: Jul 2007
Beans: 1
Re: HOWTO: Fingerprint reading in Ubuntu with fprint

Quote:
Originally Posted by Nurionn View Post
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?
I was having the same problem until I realized that I can insert the

auth sufficient pam_fprint.so

into any pam.d file. So instead of entering this into the common-auth which is pulled by most files/auth methods I insert this line into the functions I wish to have my finger reader. For example if I want my finger reader to unlock my screensaver I inserted it into the gnome-screensaver (above the include common-auth section). The final product looks like this.

auth sufficient pam_fprint.so
@include common-auth
auth optional pam_gnome_keyring.so

Now my finger reader works for just my gnome-screensaver and doesn't cause my policy kit to lock up. I have a feeling the pam_fprint.so has not been developed for the new policy kit in 8.04. Hope this helps, you can explore with different pam.d files and turn the finger reader on or off.
chase809 is offline   Reply With Quote
Old December 22nd, 2008   #8
emecas
5 Cups of Ubuntu
 
emecas's Avatar
 
Join Date: Sep 2008
Location: Denver, Colorado
Beans: 19
Ubuntu 8.04 Hardy Heron
Re: HOWTO: Fingerprint reading in Ubuntu with fprint

Hey thanks chase809

I was looking long time for the causes about that problem

A real help that appear like a surprise and in a place looking for other subject..

http://ubuntuforums.org/showthread.p...54#post6307354


Quote:
Originally Posted by chase809 View Post
I was having the same problem until I realized that I can insert the

auth sufficient pam_fprint.so

into any pam.d file. So instead of entering this into the common-auth which is pulled by most files/auth methods I insert this line into the functions I wish to have my finger reader. For example if I want my finger reader to unlock my screensaver I inserted it into the gnome-screensaver (above the include common-auth section). The final product looks like this.

auth sufficient pam_fprint.so
@include common-auth
auth optional pam_gnome_keyring.so

Now my finger reader works for just my gnome-screensaver and doesn't cause my policy kit to lock up. I have a feeling the pam_fprint.so has not been developed for the new policy kit in 8.04. Hope this helps, you can explore with different pam.d files and turn the finger reader on or off.
emecas is offline   Reply With Quote
Old April 29th, 2008   #9
moob
5 Cups of Ubuntu
 
Join Date: Mar 2008
Beans: 22
Re: HOWTO: Fingerprint reading in Ubuntu with fprint

Quote:
Originally Posted by master_kernel View Post
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.
moob is offline   Reply With Quote
Old May 7th, 2008   #10
Gotterdammerung
Just Give Me the Beans!
 
Gotterdammerung's Avatar
 
Join Date: Sep 2006
Location: Brasil
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Fingerprint reading in Ubuntu with fprint

up
__________________
“Nothing happens by chance, my friend... No such thing as luck. A meaning behind every little thing, and such a meaning behind this. Part for you, part for me, may not see it all real clear right now, but we will, before long.” Richard Bach
Gotterdammerung is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:17 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry