<?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>repat&#039;s blog</title>
	<atom:link href="http://repat.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://repat.de</link>
	<description>Here you&#039;ll find all about I found out.</description>
	<lastBuildDate>Tue, 08 Jun 2010 16:16:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>E-Technik Linux &#8211; gSchem Hintergrund ändern</title>
		<link>http://repat.de/2010/06/e-technik-linux-gschem-hintergrund-andern/</link>
		<comments>http://repat.de/2010/06/e-technik-linux-gschem-hintergrund-andern/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 16:10:18 +0000</pubDate>
		<dc:creator>repat</dc:creator>
				<category><![CDATA[Linux Stuff]]></category>
		<category><![CDATA[Programmvorstellungen]]></category>
		<category><![CDATA[etechnik linux schaltpläne]]></category>
		<category><![CDATA[geda gschem linux]]></category>
		<category><![CDATA[hintergrund ändern gschem]]></category>
		<category><![CDATA[hintergrund gschem]]></category>
		<category><![CDATA[programme etechnik linux]]></category>
		<category><![CDATA[pspice linux ersatz]]></category>
		<category><![CDATA[schaltpläne linux]]></category>

		<guid isPermaLink="false">http://repat.de/?p=297</guid>
		<description><![CDATA[Ich studiere ja E-Technik und habe mich mal nach einigen Tools unter Linux umgesehen. Ein simples aber super Projekt/Programm finde ich ist gEDA bzw. gschem, mit dem lassen sich einfach Schaltungen erstellen und als Bild exportieren. Mehr hab ich damit bis jetzt noch nicht gemacht. Jetzt zu dem eigentlichen Grund für diesen Beitrag: Die Hintergrundfarbe [...]]]></description>
			<content:encoded><![CDATA[<p>Ich studiere ja E-Technik und habe mich mal nach einigen Tools unter Linux umgesehen. Ein simples aber super Projekt/Programm finde ich ist <a href="http://www.gpleda.org/">gEDA bzw. gschem</a>, mit dem lassen sich einfach Schaltungen erstellen und als Bild exportieren. Mehr hab ich damit bis jetzt noch nicht gemacht.</p>
<p>Jetzt zu dem eigentlichen Grund für diesen Beitrag: Die Hintergrundfarbe schwarz ist zwar nicht unüblich bei solchen Programmen, nervt jedoch, wenn man das Bild in sein (natürlich weißes) LaTeX-Protokoll importieren will. Bei den neueren Versionen lässt sich das mit<em> v+l</em> bzw. <em>v+d</em> umschalten, bzw. unter Ansicht. Für alle anderen ist das Ganze ist ja Open Source und gut dokumentiert, man sucht also ein bisschen und stößt auf: http://www.thelinuxdaily.com/2008/11/how-to-change-the-background-color-in-geda-tutorial/</p>
<p><code>sudo nano /etc/gEDA/system-gschemrc</code></p>
<p>Einfach die Zeile mit dem <em>; dark background</em> auskommentieren und die mit <em>; light background </em>ersetzen.</p>
<p>Dann kann man in der<em>/etc/gEDA/gschem-lightbg</em> noch <em>grey34</em> durch <em>white</em> ersetzen und schon kann man die Bilder wunderbar überall einfügen:)</p>
]]></content:encoded>
			<wfw:commentRss>http://repat.de/2010/06/e-technik-linux-gschem-hintergrund-andern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mapstraceroute &#8211; graphical traceroute with google maps</title>
		<link>http://repat.de/2010/05/mapstraceroute-graphical-traceroute-with-google-maps/</link>
		<comments>http://repat.de/2010/05/mapstraceroute-graphical-traceroute-with-google-maps/#comments</comments>
		<pubDate>Mon, 17 May 2010 19:11:05 +0000</pubDate>
		<dc:creator>repat</dc:creator>
				<category><![CDATA[Linux Stuff]]></category>
		<category><![CDATA[My Progs]]></category>
		<category><![CDATA[Networking Stuff]]></category>
		<category><![CDATA[Programmvorstellungen]]></category>
		<category><![CDATA[google maps traceroute]]></category>
		<category><![CDATA[graphical tracerout]]></category>
		<category><![CDATA[linux traceroute graphical]]></category>
		<category><![CDATA[mapstraceroute]]></category>
		<category><![CDATA[pymaps traceroute]]></category>
		<category><![CDATA[traceroute latitude longitude map]]></category>
		<category><![CDATA[traceroute with maps]]></category>
		<category><![CDATA[use of pymaps]]></category>
		<category><![CDATA[xtraceroute geotrace gtrace alternative]]></category>

		<guid isPermaLink="false">http://repat.de/?p=287</guid>
		<description><![CDATA[Wird mal wieder Zeit für ein neues Projekt von mir. Ich hatte ja schonmal irgendwann über Gtrace/Geotrace/xtraceroute etc geschrieben, aber diese Programme sind alle schon knapp 10 Jahre alt. Teilweise funktionieren sie noch aber in Zeiten von google maps und APIs kam mir die Idee ein neues Programm zu schreiben, in Python. Das Programm bekommt [...]]]></description>
			<content:encoded><![CDATA[<p>Wird mal wieder Zeit für ein neues Projekt von mir. Ich hatte ja schonmal irgendwann über <a href="http://repat.de/2008/04/geotrace-mit-debian/">Gtrace/Geotrace/xtraceroute</a> etc geschrieben, aber diese Programme sind alle schon knapp 10 Jahre alt. Teilweise funktionieren sie noch aber in Zeiten von google maps und APIs kam mir die Idee ein neues Programm zu schreiben, in Python.</p>
<p>Das Programm bekommt also vom Programm traceroute die IP-Adressen, holt sich dann von hostip.info die entsprechenden Koordinaten und mithilfe des python wrappers für die google maps API <a href="http://code.google.com/p/pymaps/">pymaps</a> wird dann eine html-Seite erstellt. Diese wird direkt im Anschluss über das python modul <a href="http://www.mozilla.org/unix/gtk-embedding.html">python-gtkmozembed</a> angezeigt. Sie enthält allerdings bis jetzt nur Punkte. Demnächst werd ich mich nochmal damit beschäftigen, dass zwischen den Punkten dann in der richtigen Reihenfolge auch Linien gezogen werden. So sieht das Ganze bis jetzt aus:<br />
<a href="http://repat.de/Bilder/mapstraceroute_screenie.png"><img src="http://repat.de/Bilder/mapstraceroute_screenie.png" alt="" width="400" height="200" /></a><br />
<strong>Requirements:</strong></p>
<ul>
<li><a href="http://www.python.org/">python</a></li>
<li><a href="http://en.wikipedia.org/wiki/Traceroute">traceroute</a></li>
<li>python-gtkmozembed</li>
</ul>
<p><strong>How-To:</strong></p>
<ol>
<li>Download <a href="http://repat.de/files/mapstraceroute_0.1a.tar.gz">mapstraceroute_0.1a.tar.gz</a></li>
<li>unpack and cd in the folder</li>
<li>run install.sh as root or with sudo</li>
<li>try it out: <em>mapstraceroute &lt;host&gt;</em></li>
</ol>
<p>There's heaps of things to do though(Thats why it's only o.1a;)):</p>
<ul>
<li>rewrite the whole code more modular/write it a bit more elegant;)</li>
<li>draw lines between the points</li>
<li>include own traceroute in python<em>(?)<br />
</em></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://repat.de/2010/05/mapstraceroute-graphical-traceroute-with-google-maps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Orpheus Abspielprobleme</title>
		<link>http://repat.de/2010/05/orpheus-abspielprobleme/</link>
		<comments>http://repat.de/2010/05/orpheus-abspielprobleme/#comments</comments>
		<pubDate>Mon, 10 May 2010 02:17:45 +0000</pubDate>
		<dc:creator>repat</dc:creator>
				<category><![CDATA[Linux Stuff]]></category>
		<category><![CDATA[Networking Stuff]]></category>
		<category><![CDATA[orpheus abspielprobleme]]></category>
		<category><![CDATA[orpheus ssh bug]]></category>
		<category><![CDATA[orpheus überspringt mp3s]]></category>
		<category><![CDATA[ubuntu ssh orpheus]]></category>

		<guid isPermaLink="false">http://repat.de/?p=284</guid>
		<description><![CDATA[Kurz nachdem ich dachte, dass ich einen richtig coolen Mp3player für die commandline gefunden habe, hat orpheus rumgesponnen und nach einem fertig gespielten Lied alle anderen für ca. 1-2 Sekunden angespielt und ist dann weiter gesprungen bis zu Ende der Playlist. Ich hab ein bisschen rumprobiert und mir nachher über sudo apt-get install mpg321 ein [...]]]></description>
			<content:encoded><![CDATA[<p>Kurz nachdem ich dachte, dass ich einen richtig coolen Mp3player für die commandline gefunden habe, hat <a href="http://thekonst.net/orpheus/">orpheus</a> rumgesponnen und nach einem fertig gespielten Lied alle anderen für ca. 1-2 Sekunden angespielt und ist dann weiter gesprungen bis zu Ende der Playlist.</p>
<p>Ich hab ein bisschen rumprobiert und mir nachher über</p>
<pre>sudo apt-get install mpg321</pre>
<p>ein alternatives Backend geholt. Was ich nun also probiert habe, ist dergleiche Befehl, nur mit mpg321 statt mpg123:</p>
<pre>mpg321 -R -</pre>
<p>spielt orpheus wie gewünscht alle Files der Playlist schön hintereinander ab, warum auch immer, aber es funktioniert:)</p>
]]></content:encoded>
			<wfw:commentRss>http://repat.de/2010/05/orpheus-abspielprobleme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cool things to do with ssh and Linux</title>
		<link>http://repat.de/2010/05/cool-things-to-do-with-ssh-and-linux/</link>
		<comments>http://repat.de/2010/05/cool-things-to-do-with-ssh-and-linux/#comments</comments>
		<pubDate>Mon, 10 May 2010 02:10:37 +0000</pubDate>
		<dc:creator>repat</dc:creator>
				<category><![CDATA[Hardware Stuff]]></category>
		<category><![CDATA[Linux Stuff]]></category>
		<category><![CDATA[Networking Stuff]]></category>
		<category><![CDATA[ncurses mp3player]]></category>
		<category><![CDATA[orpheus mp3 ogg ssh]]></category>
		<category><![CDATA[orpheus ssh]]></category>
		<category><![CDATA[ssh cool things]]></category>
		<category><![CDATA[ssh mp3player]]></category>
		<category><![CDATA[ssh tunnel vnc]]></category>
		<category><![CDATA[ssh tunnel webcam]]></category>
		<category><![CDATA[ssh vlc stream webcam]]></category>
		<category><![CDATA[ssh vnc linux]]></category>
		<category><![CDATA[ssh webcam linux ubuntu stream]]></category>
		<category><![CDATA[terminal mp3player ubuntu linux ssh]]></category>
		<category><![CDATA[ubuntu command line mp3player oggplayer ssh]]></category>
		<category><![CDATA[ubuntu vnc ssh]]></category>
		<category><![CDATA[vlc stream webcam ssh]]></category>
		<category><![CDATA[vnc x0vncserver ubuntu]]></category>

		<guid isPermaLink="false">http://repat.de/?p=281</guid>
		<description><![CDATA[Ich habe mich in den letzten paar Tagen mal mit SSH auseinandergesetzt und folgende "Projekte" sind entstanden: 1. Webcamübertragung 2. VNC, also Remote Desktop Steuerung 3. Steuerung von mp3playern/Musik generell --- 1. Wie schon im anderen Artikel beschrieben, nutzt man hier das /dev/videoX - Device, welches -  im Normalfall -  eine Webcam enthalten sollte. Drauf [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe mich in den letzten paar Tagen mal mit SSH auseinandergesetzt und folgende "Projekte" sind entstanden:</p>
<p>1. Webcamübertragung</p>
<p>2. VNC, also Remote Desktop Steuerung</p>
<p>3. Steuerung von mp3playern/Musik generell<br />
---<br />
1. Wie schon im anderen Artikel beschrieben, nutzt man hier das <em>/dev/videoX</em> - Device, welches -  im Normalfall -  eine Webcam enthalten sollte. Drauf achten, dass es nicht  z.B. TV-Karte ist. Einige Tips zum Einrichten der Webcam gibt es <a href="http://wiki.ubuntuusers.de/Webcam">hier</a></p>
<p>Um nicht potentiell seinen Webcam Stream anderen zugänglich zu machen, kann man also einen <em>SSH</em> Tunnel nutzen. Dazu muss zum WebcamPC mit einem Client mit folgendem Befehl ein Tunnel erstellt werden:</p>
<pre>ssh -L 9091:localhost:9091 user@host</pre>
<p>Natürlich kann man hier jeden beliebigen Port nehmen. Wenn man schonmal über <em>SSH</em> verbunden ist, kann man hier auch gleich den <em>VLC</em> Stream starten:</p>
<pre>vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-adev=/dev/dsp :v4l2-standard=0 :sout="#transcode{vcodec=mp4v,vb=640,scale=0.9,acodec=mpga,ab=128, channels=2}:duplicate{dst=std{access=http,mux=ts,dst=localhost:9091}}"</pre>
<p>Dieser ganze Kram gibt einen <em>VCL</em> Stream mit dem <em>V4L2Framework</em> aus und zwar mit der Ausflösung 640 und einer grösse von 0.9. Guckt euch<a href="http://www.videolan.org/doc/streaming-howto/en/streaming-howto-en.html"> die VLC Seite zu Streaming</a> an:</p>
<p>Jetzt braucht man nur noch einen geeigneten Client um das alles anzugucken...wie wärs mit <em>VLC</em>? Also:</p>
<pre>vlc http://localhost:9091</pre>
<p>Fertig ist der Stream:) Das hab ich mir natürlich nicht komplett alleine zusammengebastelt also danke an Ben von <a href="http://moblog.bradleyit.com/2009/02/eeepc-webcam-spy.html">MoBlog</a>.</p>
<p>Wenn es hier Probleme mit der Webcam gibt, guckt doch einfach mal <a href="http://repat.de/2010/05/devvideo0-permission-denied/">einen Beitrag tiefer</a> <img src='http://repat.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>2. Ok, selbes Spiel hier, nehmen wir mal den Port 5900 für <em>VNC</em>, also Tunnel erstellen:</p>
<pre>ssh -L 5900:localhost:5900 user@host</pre>
<p>Selbes Spiel, jetzt sind wir schonmal da, starten wir doch <em>x0vncserver</em>(evtl über <em>-PasswordFile </em>ein Passwort angeben, lässt sich mit <em>vncserver</em> anlegen). Dann nur noch mit einem <em>VNC Client</em> auf <em>localhost:0</em> connecten und das wars schon. Alternativ kann man natürlich auch :1 oder :2 connecten, jenachdem welchen Server man startet, dazu gibt es eine gute Seite aus dem Ubuntu Wiki: <a href="http://wiki.ubuntuusers.de/VNC">http://wiki.ubuntuusers.de/VNC</a></p>
<p>3. Ok, dieser Teil hat etwas länger gedauert. Ich wollte also über <em>SSH</em>, z.B. über ein <em>Android/Iphone</em>-Handy oder über einen anderen Rechner einen vollwertigen <em>MP3/OGG</em>-Player haben. <em>VLC</em> geht natürlich wieder über eine Standard <em>SSH</em> Verbindung:</p>
<pre>ssh user@host
vlc -I ncurses</pre>
<p>Irgendwie war ich damit aber nicht so zufrieden, also hab ich mal weiter gegoogelt und habe <a href="http://mp3blaster.sourceforge.net/">mp3blaster</a> und <a href="http://thekonst.net/orpheus/">orpheus</a> gefunden. Beide eigentlich ganz zufriedenstellend, nur ist bei mp3blaster die Funktion "Select Files" auf F1 gelegt und das ruft im <em>gnome-terminal</em> nunmal die Hilfe aus-.- Das lässt sich bestimmt umstellen, aber mit <em>orpheus</em> war ich eigentlich ganz zufrieden, also hab ich den genommen.</p>
<p>Alternative: <em>audacious2</em> mit <em>audtty</em>, da gibt es nur ein kleines Problem mit d-bus. Man muss dann ein kleines Script ausführen und wenn ich über <em>WOL</em> den Rechner anmache, muss ich - soweit ich das verstanden habe - am eigentlichen Rechner sitzen, und das ist nunmal nicht der Fall und nervt. Ausserdem hat es bei mir nur einmal funktioniert. Klar, hier geht auch <em>mplayer/mpd </em>etc.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 342px; width: 1px; height: 1px; overflow: hidden;">http://www.videolan.org/doc/streaming-howto/en/streaming-howto-en.html</div>
]]></content:encoded>
			<wfw:commentRss>http://repat.de/2010/05/cool-things-to-do-with-ssh-and-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/dev/video0: Permission denied</title>
		<link>http://repat.de/2010/05/devvideo0-permission-denied/</link>
		<comments>http://repat.de/2010/05/devvideo0-permission-denied/#comments</comments>
		<pubDate>Sun, 09 May 2010 04:00:09 +0000</pubDate>
		<dc:creator>repat</dc:creator>
				<category><![CDATA[Hardware Stuff]]></category>
		<category><![CDATA[Linux Stuff]]></category>
		<category><![CDATA[Networking Stuff]]></category>
		<category><![CDATA[/dev/video0 permission]]></category>
		<category><![CDATA[permission denied webcam linux]]></category>
		<category><![CDATA[rechte webcam linux]]></category>
		<category><![CDATA[root rechte webcam ubuntu]]></category>
		<category><![CDATA[ubuntu linux webcam vlc stream]]></category>
		<category><![CDATA[vlc permission denied /dev/video0]]></category>
		<category><![CDATA[webcam streaming permission denied]]></category>
		<category><![CDATA[webcam usb linux vlc streaming]]></category>

		<guid isPermaLink="false">http://repat.de/?p=277</guid>
		<description><![CDATA[Für alle die das auch bekommen, wenn sie mit einem Programm und User Rechten auf die Webcam zugreifen möchten, auch nachdem man tausend Sachen versucht hat, von chown user /dev/video0 bis chmod 777 /dev/video0, es hat alles nichts genützt, weil der Fehler dort garnicht lag, sondern an einer ganz anderen Datei. Alternativ geht das alles [...]]]></description>
			<content:encoded><![CDATA[<p>Für alle die das auch bekommen, wenn sie mit einem Programm und User Rechten auf die Webcam zugreifen möchten, auch nachdem man tausend Sachen versucht hat, von chown user <em>/dev/video0</em> bis <em>chmod 777 /dev/video0</em>, es hat alles nichts genützt, weil der Fehler dort garnicht lag, sondern an einer ganz anderen Datei. Alternativ geht das alles mit sudo, also Root Rechten, aber das ist ja nicht wirklich das wahre und hilft in einigen Sachen(Webcam Streaming) auch nicht weiter. Abhilft schafft</p>
<pre>$ sudo chown user.group /dev/shm/usb-*</pre>
<p>Jetzt kann ich endlich beruhigt schlafen:)</p>
]]></content:encoded>
			<wfw:commentRss>http://repat.de/2010/05/devvideo0-permission-denied/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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 Stuff]]></category>
		<category><![CDATA[Programmvorstellungen]]></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>
<category>karmic koala</category><category>pam-face-authentication</category><category>speelink sl-6810 webcam</category><category>ubuntu 9.10</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 name="OpenCV Homepage" href="http://opencv.willowgarage.com/wiki/">OpenCV</a>. I decided to compile it by myself, because the .deb-package(<a name="OpenCV 2.1 for Ubuntu Lucid and Karmic" 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>
]]></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>0</slash:comments>
		</item>
		<item>
		<title>Fibonacci Folge in C</title>
		<link>http://repat.de/2010/04/fibonacci-folge-in-c/</link>
		<comments>http://repat.de/2010/04/fibonacci-folge-in-c/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 21:34:00 +0000</pubDate>
		<dc:creator>repat</dc:creator>
				<category><![CDATA[Programming Stuff]]></category>
		<category><![CDATA[c sourcecode fibonacci]]></category>
		<category><![CDATA[fibonacci folge c]]></category>
		<category><![CDATA[fibonacci zahlen c quellcode]]></category>
<category>-quotquellcode c fibonacci-quot</category><category>-quotsourcecode fibonacci c-quot</category>
		<guid isPermaLink="false">http://repat.de/?p=258</guid>
		<description><![CDATA[Um mal wieder wegen dem Studium ein bisschen reinzukommen(C diese Semester), hier die Fibonacci Folge in C. Das Ganze wurde eben grade mal schnell zusammengehackt, ist jetzt nicht das beste Programm, was ich je geschrieben habe;) stdio.h fehlt, hat er aufgrund der HTML-Tags nicht mitgenommen, ist aber im Quelltext zum Download. /* quickly coded by [...]]]></description>
			<content:encoded><![CDATA[<p>Um mal wieder wegen dem Studium ein bisschen reinzukommen(C diese Semester), hier die <a href="http://de.wikipedia.org/wiki/Fibonacci-Zahlen">Fibonacci Folge</a> in C. Das Ganze wurde eben grade mal schnell zusammengehackt, ist jetzt nicht das beste Programm, was ich je geschrieben habe;) stdio.h fehlt, hat er aufgrund der HTML-Tags nicht mitgenommen, ist aber im <a href="http://repat.de/files/fibonacci_online.c">Quelltext zum Download</a>.</p>
<pre>/* quickly coded by repat, 19/04/2010, way too late in the evening;) */

#include <stdio.h>

int main(void)
{
	//zaehlvariable und endvariable wird deklariert (max. 4.294.967.295)
	unsigned int i,ende;

	//endvariable wird eingelesen, ob der maximale wert dann tatsächlich berechnet in unsigend long passt, ist eine andere sache.
	printf("Bitte Anzahl der zu berechnenden Zahlen eingeben: ");
	scanf("%u",&#038;ende);

	//dynamisches array wird anhand der eingabe erschaffen
	unsigned long folge[ende];	

	//werte werden laut definition vorgegeben a.k.a. initialisieren
	folge[0]=0;
	folge[1]=1;	

	//wenn nur 0 oder 1 eingeben wurde, eine dementsprechende Meldung ausgeben, sonst anfang schonmal ausgeben.
	if (ende < 2)
	{
		printf("Die vorgegebenen Werte sind %d und %d\n",0,1);
	}
	else
	{
		printf("%d, %d",0,1);
	}

	//array mit der fibonacci folge fuellen und ausgeben, letzte zahl mit einem .
	for ( i=2; i <= ende ;i++)
	{
		folge[i]=folge[i-1]+folge[i-2];		

		if (i==ende)
		{
			printf(", %lu.\n",folge[i]);
		}

		else
		{
			printf(", %lu",folge[i]);
		}
	}
	return 0;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://repat.de/2010/04/fibonacci-folge-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wiimote Whiteboard Deutsche Untertitel</title>
		<link>http://repat.de/2010/04/wiimote-whiteboard-deutsche-untertitel/</link>
		<comments>http://repat.de/2010/04/wiimote-whiteboard-deutsche-untertitel/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 14:18:21 +0000</pubDate>
		<dc:creator>repat</dc:creator>
				<category><![CDATA[Translations]]></category>
		<category><![CDATA[Video Stuff]]></category>
<category>-quotwiimote hack-quot</category><category>-quotwiimote whiteboard-quot</category><category>deutsche untertitel</category>
		<guid isPermaLink="false">http://repat.de/?p=254</guid>
		<description><![CDATA[Es gibt schon einige Übersetzungen aber ich hab auf Anhieb keine Deutsche gefunden. Jetzt habe ich zwar nicht das Problem mit Englisch aber vielleicht andere und ich hatte noch keine Lust schlafen zu gehen und wollte ausserdem schon immer mal wissen wie man Untertitel schreibt:]]></description>
			<content:encoded><![CDATA[<p>Es gibt schon einige Übersetzungen aber ich hab auf Anhieb keine Deutsche gefunden. Jetzt habe ich zwar nicht das Problem mit Englisch aber vielleicht andere und ich hatte noch keine Lust schlafen zu gehen und wollte ausserdem schon immer mal wissen wie man Untertitel schreibt:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/3v_UqG56WWY&amp;hl=de_DE&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/3v_UqG56WWY&amp;hl=de_DE&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://repat.de/2010/04/wiimote-whiteboard-deutsche-untertitel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>X10 Pollin Funk Fernbedienung Ubuntu</title>
		<link>http://repat.de/2010/04/x10-pollin-funk-fernbedienung-ubuntu/</link>
		<comments>http://repat.de/2010/04/x10-pollin-funk-fernbedienung-ubuntu/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 18:14:34 +0000</pubDate>
		<dc:creator>repat</dc:creator>
				<category><![CDATA[Hardware Stuff]]></category>
		<category><![CDATA[Linux Stuff]]></category>
		<category><![CDATA[audicious lirc]]></category>
		<category><![CDATA[fernbedienung x10 linux]]></category>
		<category><![CDATA[festival uhrzeit ausgeben]]></category>
		<category><![CDATA[festival x10 fernbedienung]]></category>
		<category><![CDATA[funk fernbedienung x10 linux ubuntu]]></category>
		<category><![CDATA[lirc x10 fernbedienung]]></category>
		<category><![CDATA[pc laptop ausschalten fernbedienung linux]]></category>
		<category><![CDATA[ubuntu x10 pollin]]></category>

		<guid isPermaLink="false">http://repat.de/?p=248</guid>
		<description><![CDATA[So, nach einer doch nicht einfachen Recherche, bei denen ich mir aus jedem Tutorial das passende raussuchen musste, hier mal eine eindeutige Anleitung zum Anschluss und Betrieb der Pollin (bzw. Aldi soll es die wohl auch geben, ein bisschen anders) X10 Funk Fernbedienung unter Ubuntu 9.10 Was definitiv geholfen hat war diese Anleitung(auf jeden Fall [...]]]></description>
			<content:encoded><![CDATA[<p>So, nach einer doch nicht einfachen Recherche, bei denen ich mir aus jedem Tutorial das passende raussuchen musste, hier mal eine eindeutige Anleitung zum Anschluss und Betrieb der <strong>Pollin</strong> (bzw. Aldi soll es die wohl auch geben, ein bisschen anders) <strong>X10 Funk Fernbedienung unter Ubuntu 9.10</strong><br />
Was definitiv geholfen hat war diese Anleitung(auf jeden Fall wegen der Screenshots angucken!): http://linuxundich.de/de/2009/04/pc-funkfernbedienung-x10-unter-ubuntu-mit-lirc/</p>
<p><em>lsusb</em> gibt folgendes aus:</p>
<pre>Bus 004 Device 006: ID 0bc7:0006 X10 Wireless Technology, Inc. Wireless Transceiver (ACPI-compliant)</pre>
<p>Jetzt <em>lirc</em> installieren und in der Installation<em> ATI/Nvidia X10 RF(userspace)</em> auswählen.<br />
Wie auch im anderen Tutorial erwähnt:</p>
<pre>$ sudo rmmod ati_remote</pre>
<pre>$ sudo /etc/init.d/lirc stop</pre>
<p>stop anstatt restart, weil man jetzt erstmal die<em> lircd.conf </em>erstellen muss(alte verschieben-&gt;mv Befehl):</p>
<pre>$ sudo mv /etc/lirc/lirc.conf /etc/lirc/lirc.conf.old</pre>
<pre>$ sudo irrecord -H atilibusb /etc/lirc/lirc.conf</pre>
<p>Da <em>irrecords</em> kein Zugriff auf die USB Geräte erlaubt ist, brauch man hier ein sudo davor! Mal abgesehen vom Ort(<em>/etc</em>). Der vorgeschlagene Befehl, das ganze ins home-Verzeichnis zu packen und dann zu verschieben, klappt zwar auch, aber auch nur mit einem sudo, also kann man die Datei ja gleich dort erstellen:)</p>
<p>Was bei mir anders war, als in diesem Tutorial, ist, dass die Namen nicht frei wählbar sind, man bekommt folgende Fehlermeldung. Man könnte jetzt natürlich wie vorgeschlagen --disable-namespace benutzen, das hab ich beim ersten Mal überlesen, also falls einer denselben Fehler macht...:</p>
<pre>xxx is not in name space (use --disable-namespace to disable checks)</pre>
<pre>Use 'irrecord --list-namespace' to see a full list of valid button names</pre>
<pre>Please try again.</pre>
<p>Genau das solle man also machen: neue Konsole auf und</p>
<pre>$ irrecords --list-namespace</pre>
<p>Damit man nicht alles durchscrollen muss um z.B. den passenden Namen für die Play Taste(Alle Tastennamen sind groß geschrieben) zu finden, benutzt man grep:</p>
<pre>$ irrecords --list-namespace |grep PLAY</pre>
<p>Man könnte natürlich auch beliebige nehmen, aber für die<em> lircd.conf</em> ist es später einfacher, wenn man die Tasten nach ihren Funktionen benannt hat;) Jetzt nochmal in die <em>lircd.conf</em> gucken und evtl. bei <em>name</em> etwas eintragen, dass einfacher zu behalten/tippen ist, weiss nicht mehr, was da bei mir stand. Jetzt steht da x10, das ist dann der Name der Fernbedienung, den man evtl. in der<em> ~/.lircrc</em> braucht. Apropos, das kommt als nächstes, s. dazu Artikel: http://wiki.ubuntuusers.de/Lirc/Tasten_mit_Funktionen_belegen#.lircrc</p>
<p>Meine sieht z.B. folgendermaßen aus:</p>
<pre>#Musik mit audacious
begin
prog   = irexec
button = KEY_PROG1
config = audacious2
remote = x10
repeat = 0
end
include ~/.lirc/audacious

#Runterfahren
begin
prog   = irexec
button = KEY_EXIT
config = gnome-session-save --shutdown-dialog --gui
mode   = gnome-session-save
repeat = 0
end
include ~/.lirc/gnome-session-save

#Uhrzeit
begin
prog = irexec
button = KEY_INFO
config = spktime
repeat = 0
remote = x10
end

#Globale Laustaerke
begin
prog = irexec
button = KEY_VOLUMEUP
config = amixer -q sset 'Master' 1+ unmute
repeat = 1
remote = x10
end

begin
prog = irexec
button = KEY_VOLUMEDOWN
config = amixer -q sset 'Master' 1- unmute
repeat = 1
remote = x10
end

begin
prog = irexec
button = KEY_MUTE
config = amixer -q sset 'Master' mute
repeat = 0
remote = x10
end</pre>
<p>Jetzt brauch man noch<em> ~/.lirc/audacious</em>:</p>
<pre>begin
     prog = audacious
     button = KEY_PLAY
     config = PLAY
     repeat = 0
end

begin
     prog = audacious
     button = KEY_PAUSE
     config = PAUSE
     repeat = 0
end

begin
     prog = audacious
     button = KEY_STOP
     config = STOP
     repeat = 0
end

begin
     prog = audacious
     button = KEY_NEXTSONG
     config = NEXT
     repeat = 0
end

begin
     prog = audacious
     button = KEY_PREVIOUSSONG
     config = PREV
     repeat = 0
end</pre>
<p><em>~/.lirc/gnome-session-save:</em></p>
<pre>begin gnome-session-save
        begin
                prog = irxevent
                button = KEY_UP
                config = Key Up CurrentWindow
        end
        begin
                prog = irxevent
                button = KEY_DOWN
                config = Key Down CurrentWindow
        end
        begin
                prog = irxevent
                button = KEY_OK
                config = Key Return CurrentWindow
        end
end gnome-session-save</pre>
<p>und <a href="http://repat.de/files/spktime_online.txt"><em>spktime</em></a>, ich muss zugeben, dass ich mir den Code ein bisschen aus verschiedenen Sachen im Internet zusammengeschnippelt hab, aber es funktioniert. Für diese Funktion muss noch das Paket <em>festival</em>, ein Sprach-Synthesizer, installiert werden. Die Datei liegt in <em>/usr/local/bin</em>.</p>
<p>So, das wars auch eigentlich. Ich hab mir dann 2 Dateien erstellt, die startlirc und stoplirc, mit <em>chmod +x file</em> ausführbar gemacht und in <em>/usr/local/bin</em> verschoben, damit man sich die Tipparbeit bei kleinen Änderungen erspart:<br />
<em>/usr/local/bin/startlirc:</em></p>
<pre>sudo /etc/init.d/lirc start &amp;&amp;
irexec -d &amp;&amp;
irxevent -d</pre>
<p><em>/usr/local/bin/stoplirc:</em></p>
<pre>sudo /etc/init.d/lirc stop</pre>
<p>Ich benutz <em>tilda</em> als Drop Down Shell auf F3, und bin damit schneller als zur Maus zu greifen und ein Icon anzuklicken. Wer das gerne grafisch haben möchte kann statt <em>sudo</em> das graphische Pendent <em>gksu</em> verwenden oder das ganze im Terminal starten. Hier also der Text der als Command in die Verlinkung z.B. in der Startleiste, kommt:</p>
<pre>gnome-terminal -e "startlirc"</pre>
<p>Wie gesagt, es gibt zwar schon ein ganzes Tutorial, aber das hier sind halt meine Erfahrungen dazu, ein bisschen anders ist es doch:)</p>
]]></content:encoded>
			<wfw:commentRss>http://repat.de/2010/04/x10-pollin-funk-fernbedienung-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back again</title>
		<link>http://repat.de/2010/02/back-again/</link>
		<comments>http://repat.de/2010/02/back-again/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 17:05:31 +0000</pubDate>
		<dc:creator>repat</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://repat.de/?p=241</guid>
		<description><![CDATA[Und wieder in Deutschland]]></description>
			<content:encoded><![CDATA[<p>Und wieder in Deutschland</p>
]]></content:encoded>
			<wfw:commentRss>http://repat.de/2010/02/back-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
