2005/Jan/03

ขอแทรกหน่อย เมื่อคืนนี้...

เปลี่ยนจากการEnroll ที่เก็บลายนิ้วมือเพียงครั้งเดียว แระก้อไม่รู้ว่าคุณภาพของลายนิ้วมือที่ได้มานั้นใช้ได้รึป่าว

มาเป็นการ Enroll ที่เก็บลายนิ้วมือถึง 3 ครั้ง และทำการเฉลี่ย + วิเคราะ ห์ ณ เวลานั้นเรยว่าลายนิ้วมือทั้ง 3 นั้นมีคุณภาพรึป่าว

ถ้าไม่มีคุณภาพ โปรแกรมจะทำการวน Loop แร้วให้เรา Enroll อีกครั้งนึง จนกว่าจะได้ลายนิ้วมือที่มีคุณภาพ แร้วเก็บลง Database อีกทีนึง

2005/Jan/03

1) anubislogin [uid] [ttyN]
1.1) user put username instead of UID
sgui@isag43:~$ anubislogin sgui pts/4
Usage : anubislogin [uid] [ttyN]


$anubislogin 1000 tty2

sgui@isag43:~$
1.2) user put UID that system don't have
sgui@isag43:~$ anubislogin 1003 pts/3
pam start to authenticate
VFInitialize returns 0
there is no user or uid
sgui@isag43:~$
1.3) login incorrect
sgui@isag43:~$ anubislogin 1002 pts/1
pam start to authenticate
VFInitialize returns 0
Lsize = 9216
G: 145, size: 103 byetes, minutiae count: 16
Lsize = 9216
G: 145, size: 103 byetes, minutiae count: 16
Lsize = 9216
G: 144, size: 85 byetes, minutiae count: 13
G: 118, size: 25 byetes, minutiae count: 3
Generalization succeeded: 0
Fingerprints didn't match. Similarity: 0
Not Authenticated retval = 7
sgui@isag43:~$
1.4) login correct
sgui@isag43:/root/workspace/src$ ./anubislogin 1002 pts/2
pam start to authenticate
VFInitialize returns 0
Lsize = 9216
G: 145, size: 103 byetes, minutiae count: 16
Lsize = 9216
G: 145, size: 103 byetes, minutiae count: 16
Lsize = 9216
G: 144, size: 85 byetes, minutiae count: 13
G: 142, size: 109 byetes, minutiae count: 17
Generalization succeeded: 0
Fingerprints matched. Similarity: 154
AUthenticated retval = 0
UID passwd entry:
name=post, uid=1002, gid=1002, home=/home/post, shell=/bin/bash
post@isag43:~$


2) anubisdel [username]
2.1 normal run

sgui@isag43:/root/workspace/src$ ./anubisdel pon
anubisdel: Only root may delete a user
sgui@isag43:/root/workspace/src$
2.2 root run
isag43:~/workspace/src# ./anubisdel pon
filename1 = /etc/anubis/1003_1 ,filename2 = /etc/anubis/1003_2 ,filename3 = /etc/anubis/1003_3
symname1 = /etc/anubis/pon_1 ,symname2 = /etc/anubis/pon_2 ,symname3 =/etc/anubis/pon_3
Looking for files to backup/remove...
Removing files...
Removing user `pon'...
done.
delete fingerprint success
2.3 root run but system don't have this user
isag43:~/workspace/src# ./anubisdel adek
there is no this user
isag43:~/workspace/src#

3) anubisadd
3.1 normal user run
sgui@isag43:/root/workspace/src$ ./anubisadd post
anubisadd: Only root may add a user
sgui@isag43:/root/workspace/src$
3.2 root run
isag43:~/workspace/src# ./anubisadd pon
Adding user `pon'...
Adding new group `pon' (1003).
VFInitialize returns 0
Please scan your finger
Adding new user `pon' (1003) with group `pon'.
Creating home directory `/home/pon'.
Copying files from `/etc/skel'
save Image 1 from 3
Lsize = 9216
G: 143, size: 97 byetes, minutiae count: 15
save Image 2 from 3
Lsize = 9216
G: 143, size: 97 byetes, minutiae count: 15
save Image 3 from 3
Lsize = 9216
G: 140, size: 103 byetes, minutiae count: 16
VFGeneralize = 1
your UID is 1003
add fingerprint success
isag43:~/workspace/src#
3.3 your fingerprint is not good for enroll so you have to try again

isag43:~/workspace/src# ./anubisadd ting
Adding user `ting'...
Adding new group `ting' (1003).
VFInitialize returns 0
Please scan your finger
Adding new user `ting' (1003) with group `ting'.
Creating home directory `/home/ting'.
Copying files from `/etc/skel'
save Image 1 from 3
Lsize = 9216
G: 114, size: 49 byetes, minutiae count: 7
save Image 2 from 3
Lsize = 9216
G: 117, size: 7 byetes, minutiae count: 0
save Image 3 from 3
Lsize = 9216
G: 141, size: 115 byetes, minutiae count: 18
VFGeneralize = -1
this enroll is not success. Enroll agin!!
save Image 1 from 3
Lsize = 9216
G: 144, size: 115 byetes, minutiae count: 18
save Image 2 from 3
Lsize = 9216
G: 143, size: 109 byetes, minutiae count: 17
save Image 3 from 3
Lsize = 9216
G: 145, size: 55 byetes, minutiae count: 8
VFGeneralize = -1
this enroll is not success. Enroll agin!!
save Image 1 from 3
Lsize = 9216
G: 142, size: 115 byetes, minutiae count: 18
save Image 2 from 3
Lsize = 9216
G: 141, size: 73 byetes, minutiae count: 11
save Image 3 from 3
Lsize = 9216
G: 144, size: 103 byetes, minutiae count: 16
VFGeneralize = -1
this enroll is not success. Enroll agin!!
save Image 1 from 3
Lsize = 9216
G: 143, size: 115 byetes, minutiae count: 18
save Image 2 from 3
Lsize = 9216
G: 143, size: 121 byetes, minutiae count: 19
save Image 3 from 3
Lsize = 9216
G: 145, size: 121 byetes, minutiae count: 19
VFGeneralize = 2
your UID is 1003
add fingerprint success
isag43:~/workspace/src#





แก้ไขเมื่อ 3/1/2548 1:25:54

2004/Dec/28

install
1. apt-get install libusb-dev
2. mknod /dev/Hardlock c 42 0
3. chmod 666 /dev/Hardlock
4. mount -t usbdevfs none /proc/bus/usb
5. cp libVFinger.so.4.2.0 /usr/lib // copy library file to system
6. cd /usr/lib
7. ln -s libVFinger.so.4.2.0 libVFinger.so.4.2
8. ln -s libVFinger.so.4.2 libVFinger.so
9. ldconfig // run this command
10. aksusbd // run this command for hardlock
11. add some code in etc/fstab like this "none /proc/bus/usb usbdevfs none 0 0"
12. fix this file /etc/initab to load "/root/workspace/bioauthtty tty3"





แก้ไขเมื่อ 3/1/2548 1:24:14