<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>repats blog &#187; pam_face_authentication karmic 9.10</title>
	<atom:link href="http://repat.de/tag/pam_face_authentication-karmic-9-10/feed/" rel="self" type="application/rss+xml" />
	<link>http://repat.de</link>
	<description>Thoughts of a digital native</description>
	<lastBuildDate>Tue, 24 Jan 2012 02:01:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>pam_face_authentication with Ubuntu 9.10(Karmic Koala) + GDM + Speedlink Webcam</title>
		<link>http://repat.de/2010/05/pam_face_authentication-with-ubuntu-9-10karmic-koala-gdm-speedlink-webcam/</link>
		<comments>http://repat.de/2010/05/pam_face_authentication-with-ubuntu-9-10karmic-koala-gdm-speedlink-webcam/#comments</comments>
		<pubDate>Sun, 02 May 2010 23:56:09 +0000</pubDate>
		<dc:creator>repat</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmvorstellungen]]></category>
		<category><![CDATA[face recognition webcam]]></category>
		<category><![CDATA[pam_face_authentication karmic 9.10]]></category>
		<category><![CDATA[pam_face_authentication ubuntu]]></category>
		<category><![CDATA[Speedlink Sl-6810 Linux]]></category>
		<category><![CDATA[speedlink sl-6810 pam_face_authentication]]></category>
		<category><![CDATA[speedlink webcam pam_face_authentication]]></category>
		<category><![CDATA[ubuntu gdm pam_face_authentication]]></category>

		<guid isPermaLink="false">http://repat.de/?p=266</guid>
		<description><![CDATA[I'll write this in English because I couldn't find a lot of articles about this topic, so everybody can understand what this is about. Found a lot of Spanish/Portuguese sites though o0. There are probably several ways to install OpenCV. I decided to compile it by myself, because the .deb-package(found here) collided with lib-something and [...]]]></description>
			<content:encoded><![CDATA[<p>I'll write this in English because I couldn't find a lot of articles about this topic, so everybody can understand what this is about. Found a lot of Spanish/Portuguese sites though o0.</p>
<p>There are probably several ways to install <a href="http://opencv.willowgarage.com/wiki/">OpenCV</a>. I decided to compile it by myself, because the .deb-package(<a href="https://launchpad.net/~gijzelaar/+archive/opencv2">found here</a>) collided with lib-something and that was definitely necessary for pam_face_authentication, though that happened on my Toshiba M10 with Lucid Lynx 10.04 and not on the Karmic Laptop.<br />
Anyway, even if it works for you, this is definitely not wrong to do:<br />
Download the latest version of OpenCV(2.1.0 at the time) <a href="http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.1/">here</a> and follow the very same <a href="http://opencv.willowgarage.com/wiki/InstallGuide">Installation Guide</a>:<br />
<strong>(DO NOT COPY PASTE THIS! THINK FIRST!)</strong></p>
<pre>cd ~/projects/OpenCV-2.1.0
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ..
make
make install
export LD_LIBRARY_PATH=~/projects/OpenCV-2.1.0/release/lib:$LD_LIBRARY_PATH
sudo ldconfig</pre>
<p>This <em>should</em> work without any error messages, which - of course - it didn't. For example, I had to install <em>libqt4-dev</em> and <em>qt4-make </em>or something, just have a look at synaptic or apt-cache. Just try to google the error message. Also took quite a while. Go and have a coffee;)</p>
<p>Now download the source code from <a href="http://code.google.com/p/pam-face-authentication/">http://code.google.com/p/pam-face-authentication/</a> , my version is 0.3. Then follow the video instructions, if you can't watch it or whatorever:</p>
<pre>cd pam_face_authentication-0.3
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=/usr ..
make
sudo make install</pre>
<p>Same thing, should work perfectly fine. Try to google any error messages, if you get any. On my Toshiba with Lucid I got shit loads of error messages, don't know what went wrong, but the cmake command just doesn't work. On Karmic however no worries at all.</p>
<p>Next thing was nearly more difficult...installing a webcam. <a href="http://repat.de/2008/01/speedlink-sl-6810-webcam-mit-linux/">As I posted before, my Speedlink SL-6810</a> worked out of the box with camorama, but somehow I couldn't get it to work-.- Turns out you need sudo(root privilege) to open /dev/video0. Same thing with cheese or other programs for webcams. These programs are designed to use libv4l drivers and stuff. qt-facetrainer, the program you need to capture a couple of sets for the recognition of your face, however has to be told to use these for this specific webcam.<br />
Try</p>
<pre>sudo LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so qt-facetrainer</pre>
<p>(<a href="http://code.google.com/p/pam-face-authentication/issues/detail?id=21#c4">Thanks to rohan.anil and mystercoco</a>)</p>
<p>So once you got your camera working, we'll try to implement the whole thing into GDM, which I thought is pretty complicated but is actually quite easy. Thanks again to <a href="http://lifeasiknow-it.blogspot.com/2009/08/pam-face-authentication-musings-how-to.html">Rohan's Blog</a>:<br />
Just add this line:</p>
<pre>auth sufficient pam_face_authentication.so enableX</pre>
<p>to <em>/etc/pam.d/gdm</em>, as it is said in his blog. Works fine for Karmic, can't say anything about Lucid.<br />
For my webcam, you'll also need the libv4l for login, so create a <em>/etc/ld.so.preload</em> and just write</p>
<pre>/usr/lib/libv4l/v4l1compat.so</pre>
<p>in it. This will provide GDM with any information required to login by face authentication.</p>
<p>That's it. Leave comments if there are any questions:)</p>
<p><strong>Weblinks</strong></p>
<ul>
<li><a href="http://pam-face-authentication.org/wiki/index.php?title=Installation">PAM face authentication Wiki</a></li>
<li><a href="http://wiki.ubuntuusers.de/Gesichtserkennung">Ubuntu Wiki article</a></li>
<li><a href="http://linuxundich.de/de/ubuntu/einloggen-in-kdm-gesichtserkennung/">Another blog article(German) from linuxundich.de</a></li>
</ul>
 <script type="text/javascript"><!--
google_ad_client = "ca-pub-7669015055464925";
/* beitrag_banner */
google_ad_slot = "1265385456";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://repat.de/2010/05/pam_face_authentication-with-ubuntu-9-10karmic-koala-gdm-speedlink-webcam/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

