tuanthng / pam-face-authentication

Automatically exported from code.google.com/p/pam-face-authentication
0 stars 0 forks source link

Installing pam-face-authentication on Kubuntu 10.04 Lucid lynx 86x #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installing On a clean install of Kubuntu 10.04 lucid lynx

What is the expected output?:the package being built 

What do you see instead?: I get this error: The CXX compiler identification is 
unknown
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   
Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error at /usr/share/cmake-2.8/Modules/FindX11.cmake:372 (MESSAGE):
  Could not find X11
Call Stack (most recent call first):
  CMakeLists.txt:72 (FIND_PACKAGE

After running the command: cmake -D CMAKE_INSTALL_PREFIX=/usr ..

What version of the product are you using? On what operating system?: Product: 
Pam-face-authentication-0.3.tar.gz

Operating System: Kubuntu 10.04 Lucid lynx 86x

Please provide any additional information below:

This is my first time really compiling a program on linux

Original issue reported on code.google.com by Clashing...@gmail.com on 31 Jul 2010 at 9:44

GoogleCodeExporter commented 9 years ago
Obviously, you've no compiler installed.

I would recommend you to issue the following:
apt-get install build-essential gcc g++ libcxxtools-dev 

There might be also other packages needed. If so, try with:
apt-get install libqt4-dev qt4-qmake libqtcore4 libqtgui4 libpam0g libpam0g-dev

Original comment by feichtne...@gmail.com on 31 Jul 2010 at 10:13

GoogleCodeExporter commented 9 years ago
Thank you so much feichtne, that did the trick, I also had to install OpenCV

But now I'm having problems installing kdm-plugin-pam-face-authentication-0.1

After I fallow the guild and I run the command: "cmake -D 
CMAKE_INSTALL_PREFIX=/usr/kde/4 .." I get this error "CMake Error at 
/usr/share/cmake-2.8/Modules/FindKDE4.cmake:98 (MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
  /home/espada-n7/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
  CMakeLists.txt:3 (FIND_PACKAGE)" I thought I had all the dependencies, Is there something I missed? Also Thank you So much! =D!

Original comment by Clashing...@gmail.com on 31 Jul 2010 at 11:56

GoogleCodeExporter commented 9 years ago
apt-get install kdebase-workspace-dev

Original comment by rohan.a...@gmail.com on 1 Aug 2010 at 8:30

GoogleCodeExporter commented 9 years ago
Thank you Rohan =D That did the trick, But it seems I have run in to one last 
problem

Configuring KDM to use KDM Greeter Plugin
Edit /usr/kde/4/share/config/kdm/kdmrc
search for PluginsLogin
uncomment the line and add
PluginsLogin=classic, faceauthenticate

The File kdmrc is not there in Kubnutu lucid lynx, has it be removed or do I 
need to add it somewhere else??

And Sorry for being such a pain ><

Original comment by Clashing...@gmail.com on 1 Aug 2010 at 4:59

GoogleCodeExporter commented 9 years ago
I am sure kdmrc exists proly in a different path

goto /etc/
and find . | grep kdmrc

and also try in /usr/

Original comment by rohan.a...@gmail.com on 1 Aug 2010 at 5:37

GoogleCodeExporter commented 9 years ago
Hi DarkG
you must edit the /etc/kde4/kdm/kdmrc
Under 
[X-*-Greeter] add
PluginsLogin=classic, faceauthenticate

Then you must copy the 
/usr/kde/4/lib/kde4/kgreet_faceauthenticate.so
to 
/usr/lib/kde4/kgreet_faceauthenticate.so

It works on my Lucid Lynx Kubuntu

sorry for my bad english

Original comment by Hottenro...@gmail.com on 1 Aug 2010 at 7:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
does that cause problems?  Are you able to login?

Original comment by rohan.a...@gmail.com on 1 Aug 2010 at 7:35

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
No i can not login.

Original comment by Hottenro...@gmail.com on 1 Aug 2010 at 7:50

GoogleCodeExporter commented 9 years ago
are you on 64bit ?

Original comment by rohan.a...@gmail.com on 1 Aug 2010 at 7:56

GoogleCodeExporter commented 9 years ago
Oh sorry now it works and i can login.

I have change the  /etc/pam.d/kdm-faceauthenticate to 

#%PAM-1.0
auth sufficient pam_face_authentication.so
@include common-account
@include common-password
@include common-session
session optional pam_console.so
session optional pam_polkit_console.so

see here:
http://code.google.com/p/pam-face-authentication/issues/detail?id=18#c14 

Thanks rohan for your great work

Kubuntu 10.04 lucid lynx 

Original comment by Hottenro...@gmail.com on 1 Aug 2010 at 8:06

GoogleCodeExporter commented 9 years ago
Thank you everyone for helping me with this so far =]

Okay I think this will be the last problem

When I chose the face authenticate method in KDM it gives me a blank screen area
where the webcam feed should be, also it doesn't seem to even turn my webcam. 
So~ What did I do wrong with time around?

And once again thank you for the help everyone =]

Original comment by Clashing...@gmail.com on 2 Aug 2010 at 5:48

GoogleCodeExporter commented 9 years ago
Ah yes please remove the kgreet_faceauthenticate.so 

you should use kdm-plugin-pam-face-authentication-0.2 instead of 0.1

Original comment by rohan.a...@gmail.com on 2 Aug 2010 at 6:15

GoogleCodeExporter commented 9 years ago
I have done this Rohan, thank you, but the webcam preview is still blank and 
the light on my webcam still doesn't come on, is there anything I may have 
missed?

Original comment by Clashing...@gmail.com on 2 Aug 2010 at 7:18

GoogleCodeExporter commented 9 years ago
did you add
auth sufficient pam_face_authentication.so

to /etc/pam.d/kdm-faceauthenticate ?

could you paste the output of ls /etc/pam.d/ 

Original comment by rohan.a...@gmail.com on 2 Aug 2010 at 8:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This is the output of the command 1s /etc/pam.d

espada-n7@espada-n7-laptop:~$ ls /etc/pam.d/ 
atd              common-session                 kdm       ppp
chfn             common-session-noninteractive  kdm-np    samba
chpasswd         cron                           login     su
chsh             cups                           newusers  su~
common-account   cvs                            other     sudo
common-auth      kde4-faceauthenticate~         passwd
common-password  kde-faceauthenticate           polkit-1

Oh and the KDM I have been using to try this on is Circles

Original comment by Clashing...@gmail.com on 2 Aug 2010 at 8:25

GoogleCodeExporter commented 9 years ago
Aha there is the problem

what you do is rename kde-faceauthenticate to kdm-faceauthenticate

Original comment by rohan.a...@gmail.com on 2 Aug 2010 at 9:10

GoogleCodeExporter commented 9 years ago
That you So much Rohan that did the trick Everything is working fine now

This is not a problem but just a question, How do I make it so that the KDM 
asks for face authentication first? because it asks for username+password first 
when the kdm starts

And thank you so much for helping me get this working, And I think your Program 
is awesome =D

Original comment by Clashing...@gmail.com on 2 Aug 2010 at 9:58

GoogleCodeExporter commented 9 years ago
Hi DarkG
change in the /etc/kde4/kdm/kdmrc

from
PluginsLogin=classic, faceauthenticate
to
PluginsLogin=faceauthenticate, classic,

thats work

Original comment by Hottenro...@gmail.com on 3 Aug 2010 at 3:16

GoogleCodeExporter commented 9 years ago
Hi Rohan,

I have the same problem with DarkG .. I've followed the same fix but the part 
where the webcam preview is still dark ..

anugroho@athena:/etc/pam.d$ ls 
atd   chpasswd  common-account  common-password  common-session-noninteractive  
cups  kdm                   kdm-np  newusers  passwd    ppp    su
chfn  chsh      common-auth     common-session   cron                           
cvs   kdm-faceauthenticate  login   other     polkit-1  samba  sudo
anugroho@athena:/etc/pam.d$ 
anugroho@athena:/etc/pam.d$ cat kdm-faceauthenticate 
#%PAM-1.0
auth sufficient pam_face_authentication.so
@include common-account
@include common-password
@include common-session
session optional pam_console.so
session optional pam_polkit_console.so
anugroho@athena:/etc/pam.d$ 
anugroho@athena:/etc/pam.d$ 

Original comment by arianto....@gmail.com on 14 Sep 2010 at 5:39

GoogleCodeExporter commented 9 years ago
I followed the instruction on the wiki page and ran "sudo pam-auth-update 
--package face_authentication"

Now, after I enter my password, the system will asked for the face_recognition 
..

which is what I'm looking for btw :)

nice works .. looking forward for any updates.

Original comment by arianto....@gmail.com on 14 Sep 2010 at 10:50

GoogleCodeExporter commented 9 years ago

Original comment by feichtne...@gmail.com on 14 Sep 2010 at 12:11