Fingerprinting under Ubuntu 8.10 on Asus N10Jc (fingerprintGUI-0.5.tar.gz)
this step-by-step howto was performed using fingerprintGUI-0.5.tar.gz with some limitation for gnome-screensaver and polkit (as described inside the packages under “Some Known Limitations”). If you’re interestested to use gnome-screensaver FP login, please use 0.6 ver. and up.. which not covered in this blog.
Fingerprinting on Ubuntu 8.10 for my Asus N10Jc doesn’t come out of the box. It doesn’t install the needed software automatically. As for the repository, it only provides fprint-demo which is never work on my N10Jc. Fprint-demo doesn’t recognised the fingerprint device on N10Jc, it also doesn’t provide the option to choose device based on bus:address, perhaps there’ll be some development to address this issue but currently, as of Jan 2009, it doesn’t have the capability to choose device based on that. So, we must install it manually (and it’s pretty straighforward, hassle-free installation).
And this is the way I did.
After browsing on the net for quite some time, I’ve found this web site :
Download the latest file (at the time of this writing the latest version is fingerprintGUI-0.5.tar.gz).
And do the following :
$ tar -zxvf ./fingerpintGUI-0.5.tar.gz
$ cd ./fingerprint-0.5
$ sudo ./install.sh –with-upek
There must be ‘no errors’ in this step.
Next step is to make sure “gdm” is your default display manager.
$ cat /etc/X11/default-display-manager
$ sudo gdmsetup
choose ‘Security’ tab, make sure ‘Enable Automatic Login’ is empty (no tick, no anything)
Then follow these several steps :
$ sudo cp /etc/pam.d/common-auth /etc/pam.d/common-auth-no-fingerprint
Next is to edit
$ sudo gedit /etc/pam.d/gdm
edit ‘auth requisite pam_nologin.so’ to become ‘# auth requisite pam_nologin.so’
This avoids PAM to ask for a username prior to fingerprint authentication
$ sudo gedit /etc/pam.d/common-auth
Insert at the first line ‘auth sufficient libpam_fingerprint.so debug’
$ sudo gedit /etc/pam.d/polkit
Change the line ‘@include common-auth’ to ‘@include common-auth-no-fingerprint’
$ sudo gedit /etc/pam.d/gnome-screensaver
change the line ‘@include common-auth’ to ‘@include common-auth-no-fingerprint’
Then, do the following :
Notice the ID 147e:1000, this is your fingerprint device. There’s no info when you see it (I don’t know why).
But if you’re curious or not sure just write this command :
$ lsusb -v -d 147e:1000
You will see the manufacturer is Touchstrip and the product is Fingerprint sensor
Take a look at Bus xxx Device xxx on the left of ID 147e:1000
After you note the bus and device (they keep changing whenever you restart Ubuntu), then do :
$ sudo chmod 777 /dev/bus/usb/xxx -R
The ‘xxx’ is the Bus address you see on the step 4 above. This step will allow you to safe your fingerprint scan after you activating the program. If you think it’s unsafe ’cause it gives permission to all, don’t worry. Once you reboot the system, it will back to default permission policy (755)
From the Menu you can choose
System -> Preference -> Fingerprint GUI
or from the xterm
Then the program will start. Choose :
unknown vendor (0x147e) unknown device (0x1000)
click ‘Next’ button, then choose which finger you want to scan …
click “Next’ then you start scanning.
At this step, if you don’t perform the 12th step above, you won’t be able to safe the scan result. You should scan the same finger 3 times. After it finish, it will ask whether you want to scan other finger. You can scan all of your fingers, but the default GDM login will only use 1 finger.
If you choose “No” or “cancel”, you will go to the next screen.
In this screen you can try / verify to use fingerprint under several login scheme. Practically I only need for GDM and sudo.
Once it recognised your fingerprint, then you’re ready to use it. Just reboot and each time you login, it will show you fingerprint scan rather than user and password..
If you want to add more fingers, do perform step 11 to the rest. The same goes for new users who want this fingerprint login. Just login under the designated user account (user and password), then start with the 11th step above up to the 16th.
nb. Thanks to Wolfgang Ullrich and Daniel Drake for hacking the code, source: http://www.pdfserver.net/fingerprint/index.php