如何運行 Pam 人臉驗證

如何運行 Pam 人臉驗證

我使用的是 Ubuntu 11.10。我到以下網址下載了軟體帕姆人臉認證 並下載了 natty narhwall 的版本。

我使用以下命令安裝了該軟體:

sudo apt-get install build-essential cmake qt4-qmake libx11-dev libcv-dev libcvaux-dev libhighgui2.1 libhighgui-dev libqt4-dev libpam0g-dev checkinstall
cd /tmp && wget http://pam-face-authentication.googlecode.com/files/pam-face-authentication-0.3.tar.gz
sudo add-apt-repository ppa:antonio.chiurazzi  
sudo apt-get update    
sudo apt-get install pam-face-authentication  

cat << EOF | sudo tee /usr/share/pam-configs/face_authentication /dev/null

**Name:** face_authentication profile  
**Default:** yes  
**Priority:** 900   
**Auth-Type:** Primary  
**Auth:** [success=end default=ignore] pam_face_authentication.so enableX 
EOF

 sudo pam-auth-update --package face_authentication

軟體已安裝,我可以運行 qt-facetrainer。但問題是,當我重新啟動系統時,我看到預設登入畫面出現,我應該在其中輸入密碼進行登入。網路攝影機根本沒有啟動。而且我無法用我的臉登入。這意味著我認為 pam 人臉身份驗證程序根本沒有啟動。

請告訴我如何使用 pam 人臉驗證程式以人臉登入。

答案1

安裝PAM人臉認證

首先打開終端,然後執行以下命令:

sudo add-apt-repository ppa:antonio.chiurazzi
sudo apt-get update
sudo apt-get install pam-face-authentication 

上面的命令將用於 pam-face-authentication 的 Ubuntu 儲存庫新增至您的軟體套件來源清單中,然後實際安裝該插件。

配置

現在需要向系統學習一些人臉圖形。因此,從開始功能表啟動 Facetrainer 應用程式並按照指示進行操作。

為了能夠使用人臉驗證登錄,必須先啟用該模組。因此,您必須在終端機中執行以下命令(立即):

cat << EOF | sudo tee /usr/share/pam-configs/face_authentication /dev/null
Name: face_authentication profile
Default: yes
Priority: 900
Auth-Type: Primary
Auth:
[success=end default=ignore] pam_face_authentication.so enableX
EOF 

透過此操作,將建立文件/usr/share/pam-configs/face_authentication並包含插件資訊。

使用下一個命令,您可以啟用或停用該插件:

sudo pam-auth-update --package face_authentication

來源

相關內容