<?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>Chris im Netz - Software, Hardware, Tutorials und mehr..</title>
	<atom:link href="http://www.christian-pfnuer.de/feed" rel="self" type="application/rss+xml" />
	<link>http://www.christian-pfnuer.de</link>
	<description>In Deutschland unterwegs, im Netz zu Hause</description>
	<lastBuildDate>Thu, 11 Mar 2010 19:46:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Pyrit Mini-Cluster</title>
		<link>http://www.christian-pfnuer.de/pyrit-mini-cluster</link>
		<comments>http://www.christian-pfnuer.de/pyrit-mini-cluster#comments</comments>
		<pubDate>Tue, 09 Mar 2010 10:19:14 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[brute force]]></category>
		<category><![CDATA[pyrit]]></category>
		<category><![CDATA[wlan]]></category>
		<category><![CDATA[wpa]]></category>

		<guid isPermaLink="false">http://www.christian-pfnuer.de/?p=744</guid>
		<description><![CDATA[Wenn man langeweile hat kommt ja bekanntlich auf dumme Gedanken. Ich habe momentan ein bisschen mit dem Tool Pyrit zu tun, welches auch eine Netzwerk-Funktionalität bietet. Man kann also eine ganze Serverfarm nutzen um einen WPA-Schlüssel zu knacken wenn man das möchte. Dazu wird ein Server in den Modus &#8220;pyrit serve&#8221; gesetzt &#8211; er wartet [...]]]></description>
			<content:encoded><![CDATA[<p>Wenn man langeweile hat kommt ja bekanntlich auf dumme Gedanken. Ich habe momentan ein bisschen mit dem Tool Pyrit zu tun, welches auch eine Netzwerk-Funktionalität bietet. Man kann also eine ganze Serverfarm nutzen um einen WPA-Schlüssel zu knacken wenn man das möchte. Dazu wird ein Server in den Modus &#8220;pyrit serve&#8221; gesetzt &#8211; er wartet dann auf Jobs, die vom Client vergeben werden. Ich habe also mal testweise einige Server verbunden um zu testen was denn so an Rechenleistung bei einem kleinen &#8220;Cluster&#8221; aus Pyrit-Servern leistungstechnisch geht. Es sind 6 Server an der Zahl: Genauer 1 Dual-Quad-Core, 4 Quad-Core und 1 Dual Core System, die aber alle auch zum Testzeitpunkt normal im Produktiveinsatz genutzt wurden. Der Client rechts im Bilde ist ebenfalls ein Dual-Quad-Core System.</p>
<p style="text-align: center;"><a href="http://www.christian-pfnuer.de/wp-content/uploads/2010/03/pyrit-cluster.png"><img class="aligncenter size-medium wp-image-745" title="Pyrit Client mit 6 Servern" src="http://www.christian-pfnuer.de/wp-content/uploads/2010/03/pyrit-cluster-300x152.png" alt="Pyrit Client mit 6 Servern" width="300" height="152" /></a></p>
<p style="text-align: left;">Ernüchternd ist am Ende jedoch die Erkenntnis, dass die gleiche Leistung mit EINER GeForce 295 GTX erreicht werden kann. 4 dieser Karten sollen wohl 90.000 PMKs/s erreichen. Da kann man sich natürlich berechtigterweise fragen, ob WPA sicher vor Bruteforce-Attacken ist. Daher möchte ich die Zeit einmal in der Theorie durchrechnen.</p>
<p style="text-align: left;">Gegeben sei ein WLAN-Router mit einem 16-stelligen Code nur aus Zahlen. Das würde bedeuten <strong>10</strong> Möglichkeiten (0-9) <strong>hoch 16</strong> Stellen also in einer Zahl 10.000.000.000.000.000 verschiedene Möglichkeiten für den werksgesetzten WLAN-Schlüssel. Wenn ich mit dem kleinen zusammengeschusterten Cluster  hier 20000 PMKs/s erreiche sind das 500000000000 Sekunden oder 833333333 Minuten oder 138888888 Stunden oder 5787037 Tage..das wären also ca 16000 Jahre in etwa..wenn man die Entwicklung neuer Internetstandarts bedenkt, wofür man neue Router benötigt ist das also ein ziemlich sinnloses Unterfangen. Hat man 10 Systeme mit jeweils 4xGeForce 295 GTX kann man es auch schon in knapp einem Jahr schaffen, aber das setzt voraus man weiß, dass der Schlüssel tatsächlich nur aus Zahlen besteht und 16-stellig ist. Wählt man für sein WPA-verschlüsseltes WLAN also ein mindestens 10-stelliges Passwort aus Zahlen, Klein- und Großbuchstaben, so ist es mit &#8220;normalen&#8221;  Mitteln nicht knackbar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christian-pfnuer.de/pyrit-mini-cluster/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Benchmark &#8211; Textpattern mit und ohne Cache</title>
		<link>http://www.christian-pfnuer.de/benchmark-textpattern-mit-und-ohne-cache</link>
		<comments>http://www.christian-pfnuer.de/benchmark-textpattern-mit-und-ohne-cache#comments</comments>
		<pubDate>Tue, 19 Jan 2010 09:04:15 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[apachebench]]></category>
		<category><![CDATA[asy_jpcache]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[optimierung]]></category>
		<category><![CDATA[textpattern]]></category>
		<category><![CDATA[xcache]]></category>

		<guid isPermaLink="false">http://www.christian-pfnuer.de/?p=732</guid>
		<description><![CDATA[Ich habe heute rein aus reiner Neugierde ausprobiert, wie effektiv das Cache-System asy_jpcache für Textpattern arbeitet beziehungsweise um welchen Faktor die Anzahl der ausgelieferten Seiten steigen würde. Mir ist klar, dass solche Benchmark-Werte nicht die repräsentativsten sind, daher beschreibe ich in aller Kürze die Testbedingungen damit sich jeder selbst ein Bild machen kann. Der Benchmark [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe heute rein aus reiner Neugierde ausprobiert, wie effektiv das Cache-System <a title="Asy_Jpcache" rel="nofollow" href="http://forum.textpattern.com/viewtopic.php?id=8352" target="_blank">asy_jpcache</a> für Textpattern arbeitet beziehungsweise um welchen Faktor die Anzahl der ausgelieferten Seiten steigen würde. Mir ist klar, dass solche Benchmark-Werte nicht die repräsentativsten sind, daher beschreibe ich in aller Kürze die Testbedingungen damit sich jeder selbst ein Bild machen kann. Der Benchmark wird mit ApacheBench auf einem EEE PC ausgeführt und das Gerät, dessen Leistung getestet wird ist eine <a title="Sheevaplug" rel="nofollow" href="http://en.wikipedia.org/wiki/SheevaPlug" target="_blank">SheevaPlug</a> mit einem 1,2Ghz ARM Prozessor und 512MB RAM. Der verwendete Webserver ist (natürlich) <a title="Nginx" rel="nofollow" href="http://nginx.org/" target="_blank">Nginx</a> in der Version 0.8.31, der auf einem Debian Lenny läuft. Die beiden Rechner sind über einen 100Mbit-Switch verbunden (was aber keine Rolle spielen sollte, da die SheevaPlug ohnehin nicht so viel ausliefern kann). Die Seite, auf die der Benchmark ausgeführt wurde ist die Startseite von Textpattern nach einer frischen Installation.</p>
<p>Benchmark erfolgte mit diesen Parametern</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ab <span style="color: #660033;">-n</span> <span style="color: #000000;">1000</span> <span style="color: #660033;">-c</span> <span style="color: #000000;">10</span> http:<span style="color: #000000; font-weight: bold;">//</span>SheevaPlug<span style="color: #000000; font-weight: bold;">/</span>index.php</pre></div></div>

<p>Benchmark #1 (ohne Cache)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Server Software:        nginx<span style="color: #000000; font-weight: bold;">/</span>0.8.31
Server Hostname:        SheevaPlug
Server Port:            <span style="color: #000000;">80</span>
&nbsp;
Document Path:          <span style="color: #000000; font-weight: bold;">/</span>index.php
Document Length:        <span style="color: #000000;">7668</span> bytes
&nbsp;
Concurrency Level:      <span style="color: #000000;">10</span>
Time taken <span style="color: #000000; font-weight: bold;">for</span> tests:   <span style="color: #000000;">390.297</span> seconds
Complete requests:      <span style="color: #000000;">1000</span>
Failed requests:        <span style="color: #000000;">0</span>
Write errors:           <span style="color: #000000;">0</span>
Total transferred:      <span style="color: #000000;">8008000</span> bytes
HTML transferred:       <span style="color: #000000;">7668000</span> bytes
Requests per second:    <span style="color: #000000;">2.56</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #666666; font-style: italic;">#/sec] (mean)</span>
Time per request:       <span style="color: #000000;">3902.969</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>ms<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>mean<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Time per request:       <span style="color: #000000;">390.297</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>ms<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>mean, across all concurrent requests<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Transfer rate:          <span style="color: #000000;">20.04</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Kbytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#93;</span> received</pre></div></div>

<p>Benchmark #2 (mit Cache)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Server Software:        nginx<span style="color: #000000; font-weight: bold;">/</span>0.8.31
Server Hostname:        SheevaPlug
Server Port:            <span style="color: #000000;">80</span>
&nbsp;
Document Path:          <span style="color: #000000; font-weight: bold;">/</span>index.php
Document Length:        <span style="color: #000000;">7668</span> bytes
&nbsp;
Concurrency Level:      <span style="color: #000000;">10</span>
Time taken <span style="color: #000000; font-weight: bold;">for</span> tests:   <span style="color: #000000;">90.844</span> seconds
Complete requests:      <span style="color: #000000;">1000</span>
Failed requests:        <span style="color: #000000;">0</span>
Write errors:           <span style="color: #000000;">0</span>
Total transferred:      <span style="color: #000000;">8238254</span> bytes
HTML transferred:       <span style="color: #000000;">7668000</span> bytes
Requests per second:    <span style="color: #000000;">11.01</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #666666; font-style: italic;">#/sec] (mean)</span>
Time per request:       <span style="color: #000000;">908.438</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>ms<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>mean<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Time per request:       <span style="color: #000000;">90.844</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>ms<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>mean, across all concurrent requests<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Transfer rate:          <span style="color: #000000;">88.56</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Kbytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#93;</span> received</pre></div></div>

<p>Natürlich ist die Betrachtung aller Werte wichtig für das Ergebnis, doch ich nehme für einen ungefähren Performancevergleich die &#8220;Time taken for tests&#8221; heran, die ohne Cache bei 390 Sekunden und mit Cache bei 91 Sekunden lag. Daraus folgt, dass durch den Einsatz eines Cache-Systems wie hier asy_jpcache etwa Faktor 390/91=4,3 mehr Seiten ausgeliefert werden können.</p>
<p><strong><span style="color: #ff6600;">//Nachtrag</span></strong>: Ich habe (ohne mir noch viel mehr zu Versprechen) zu der oben genannten Konfiguration noch <a title="XCache" rel="nofollow" href="http://xcache.lighttpd.net/" target="_blank">XCache</a> hinzugefügt und es hat mich fast aus den Socken gerissen. Ich hätte ja mit einer winzigen Verbesserung gerechnet, aber seht selbst:</p>
<p>Benchmark #3 (mit Textpattern Cache und XCache)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Server Software:        nginx<span style="color: #000000; font-weight: bold;">/</span>0.8.31
Server Hostname:        SheevaPlug
Server Port:            <span style="color: #000000;">80</span>
&nbsp;
Document Path:          <span style="color: #000000; font-weight: bold;">/</span>index.php
Document Length:        <span style="color: #000000;">7667</span> bytes
&nbsp;
Concurrency Level:      <span style="color: #000000;">10</span>
Time taken <span style="color: #000000; font-weight: bold;">for</span> tests:   <span style="color: #000000;">26.063</span> seconds
Complete requests:      <span style="color: #000000;">1000</span>
Failed requests:        <span style="color: #000000;">0</span>
Write errors:           <span style="color: #000000;">0</span>
Total transferred:      <span style="color: #000000;">8238247</span> bytes
HTML transferred:       <span style="color: #000000;">7667000</span> bytes
Requests per second:    <span style="color: #000000;">38.37</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #666666; font-style: italic;">#/sec] (mean)</span>
Time per request:       <span style="color: #000000;">260.625</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>ms<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>mean<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Time per request:       <span style="color: #000000;">26.063</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>ms<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>mean, across all concurrent requests<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Transfer rate:          <span style="color: #000000;">308.69</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Kbytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#93;</span> received</pre></div></div>

<p>Noch einmal konnten die 1000 Abfragen um fast Faktor 4 schneller ausgegeben werden, was am Ende bedeutet, dass ein optimiertes System mit einem Cache für das CMS kombiniert mit einem opcode Cache wie XCache in meinem Beispiel Faktor 390/26=15 schneller arbeiten kann. Mit weiteren Optimierungen ist da sicherlich noch etwas mehr drin, allerdings reicht dieser Wert für mich erstmal locker aus <img src='http://www.christian-pfnuer.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Benchmark   Textpattern mit und ohne Cache" /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.christian-pfnuer.de/benchmark-textpattern-mit-und-ohne-cache/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nginx mit Directory Listing</title>
		<link>http://www.christian-pfnuer.de/nginx-mit-directory-listing</link>
		<comments>http://www.christian-pfnuer.de/nginx-mit-directory-listing#comments</comments>
		<pubDate>Wed, 13 Jan 2010 18:13:29 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Tipps]]></category>
		<category><![CDATA[directory listing]]></category>
		<category><![CDATA[einstellung]]></category>
		<category><![CDATA[konfiguration]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.christian-pfnuer.de/?p=729</guid>
		<description><![CDATA[Das war eine kurze und kleine Problemstellung die ich hatte. Man muss einfach in der Seitenkonfiguration folgendes ergänzen:

autoindex on;

Das Ganze sieht dann also zb so aus

server &#123;
        listen   80;
        server_name  domain.de;
        [...]]]></description>
			<content:encoded><![CDATA[<p>Das war eine kurze und kleine Problemstellung die ich hatte. Man muss einfach in der Seitenkonfiguration folgendes ergänzen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">autoindex on;</pre></div></div>

<p>Das Ganze sieht dann also zb so aus</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">server <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        listen   <span style="color: #000000;">80</span>;
        server_name  domain.de;
        autoindex on;
        access_log  off;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.christian-pfnuer.de/nginx-mit-directory-listing/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dhyana &#8211; Screenshots und Previews von Filmen unter Debian</title>
		<link>http://www.christian-pfnuer.de/dhyana-screenshots-und-preview-von-filmen-unter-debian</link>
		<comments>http://www.christian-pfnuer.de/dhyana-screenshots-und-preview-von-filmen-unter-debian#comments</comments>
		<pubDate>Wed, 13 Jan 2010 11:49:06 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Anleitungen]]></category>
		<category><![CDATA[For Dummies]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[avi]]></category>
		<category><![CDATA[dhyana]]></category>
		<category><![CDATA[film]]></category>
		<category><![CDATA[generieren]]></category>
		<category><![CDATA[preview]]></category>
		<category><![CDATA[screenshot]]></category>
		<category><![CDATA[vorschau]]></category>

		<guid isPermaLink="false">http://www.christian-pfnuer.de/?p=723</guid>
		<description><![CDATA[Wer mir der Bearbeitung mit Videos zu tun hat, der hat unter Umständen Interesse an der Erstellung von Vorschau-Bildern. Da mein Rechenknecht keinen Bildschirm hat mache ich einige Sachen über SSH auf dem Server, unter anderem benötige ich ab und an einen Screenshot. Dhyana ist ein ganz hervorragendes Perl-Script, was genau das tut.
Um Dhyana einsetzen [...]]]></description>
			<content:encoded><![CDATA[<p>Wer mir der Bearbeitung mit Videos zu tun hat, der hat unter Umständen Interesse an der Erstellung von Vorschau-Bildern. Da mein Rechenknecht keinen Bildschirm hat mache ich einige Sachen über SSH auf dem Server, unter anderem benötige ich ab und an einen Screenshot. Dhyana ist ein ganz hervorragendes Perl-Script, was genau das tut.</p>
<p>Um Dhyana einsetzen zu können benötigt man einige Abhängigkeiten, die aber schnell installiert sind.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #c20cb9; font-weight: bold;">mplayer</span> imagemagick <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> libfile-chdir-perl libgetopt-argvfile-perl <span style="color: #c20cb9; font-weight: bold;">bzip2</span></pre></div></div>

<p>Man benötigt noch ein Tool des Mplayers, was aber nicht im Mplayer-Packet enthalten ist. Man läd sich also mal den aktuellen Mplayer-Snapshot:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.mplayerhq.hu<span style="color: #000000; font-weight: bold;">/</span>MPlayer<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>mplayer-checkout-snapshot.tar.bz2</pre></div></div>

<p>was dann entpackt wird..</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xf mplayer-checkout-snapshot.tar.bz2</pre></div></div>

<p>Man geht mal in den Tools-Ordner</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> mplayer-checkout-<span style="color: #000000; font-weight: bold;">*/</span>TOOLS</pre></div></div>

<p>und guckt ob die midentify.sh drin ist. Wenn sie es ist kopieren wir sie in unseren Binary-Ordner, in dem Dhyana beim Ausführen nachguckt.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> midentify.sh <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>midentify <span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>midentify</pre></div></div>

<p>Wir besorgen uns nun, da wir die Vorbereitungen abgeschlossen haben, das Perl-Script Dhyana von hier und machen es ausführbar:<br />
http://tobyinkster.co.uk/blog/2008/01/06/dhyana/</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>tobyinkster.co.uk<span style="color: #000000; font-weight: bold;">/</span>blog<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2008</span><span style="color: #000000; font-weight: bold;">/</span>01<span style="color: #000000; font-weight: bold;">/</span>06<span style="color: #000000; font-weight: bold;">/</span>dhyana<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span>dhyana.pl <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #c20cb9; font-weight: bold;">chmod</span> +x dhyana.pl</pre></div></div>

<p>Das war es auch schon. Wir können nun das Script ausführen zb. mit:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>dhyana.pl big_buck_bunny_1080p_surround.avi</pre></div></div>

<p>Und fertig, unsere Vorschau liegt im gleichen Ordner wie das Ausgangsmaterial und sieht dann so aus:</p>
<p style="text-align: center;"><a href="http://www.christian-pfnuer.de/wp-content/uploads/2010/01/big_buck_bunny_1080p_surround_1.jpeg"><img class="aligncenter size-medium wp-image-724" title="Beispiel: big_buck_bunny_1080p_surround.jpg" src="http://www.christian-pfnuer.de/wp-content/uploads/2010/01/big_buck_bunny_1080p_surround_1-300x268.jpg" alt="Beispiel: big_buck_bunny_1080p_surround.jpg" width="300" height="268" /></a></p>
<p>Dhyana bietet noch die Möglichkeit einige Einstellungen anzupassen. Die Parameter könnt ihr  euch hier angucken. Es ist auch sehr einfach im Script selbst ein bisschen rumzuschrauben.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Usage:
      dhyana.pl <span style="color: #7a0874; font-weight: bold;">&#91;</span>options<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>cols <span style="color: #7a0874; font-weight: bold;">&#91;</span>rows <span style="color: #7a0874; font-weight: bold;">&#91;</span>geometry <span style="color: #7a0874; font-weight: bold;">&#91;</span>title<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
      dhyana.pl <span style="color: #660033;">--multi</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>options<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #c20cb9; font-weight: bold;">file</span> ...<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
      Options:
        <span style="color: #660033;">--help</span>                   brief <span style="color: #7a0874; font-weight: bold;">help</span> message
        <span style="color: #660033;">--man</span>                    full documentation
        <span style="color: #660033;">--version</span>                print version number
        --verbose, <span style="color: #660033;">-v</span>            increase verbosity
        <span style="color: #660033;">--quiet</span>                  no status output
        <span style="color: #660033;">--path</span> <span style="color: #007800;">TOOL</span>=PATH         <span style="color: #000000; font-weight: bold;">set</span> path <span style="color: #000000; font-weight: bold;">for</span> external tool
&nbsp;
  Capture options:
        <span style="color: #660033;">--cols</span>=X, <span style="color: #660033;">-c</span> X           columns of images to capture <span style="color: #7a0874; font-weight: bold;">&#40;</span>default <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #660033;">--rows</span>=Y, <span style="color: #660033;">-r</span> Y           rows of images to capture <span style="color: #7a0874; font-weight: bold;">&#40;</span>default <span style="color: #000000;">6</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #660033;">--geometry</span>=G, <span style="color: #660033;">-g</span> G       geometry of thumbnails <span style="color: #7a0874; font-weight: bold;">&#40;</span>default <span style="color: #ff0000;">'auto'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #660033;">--title</span>=T, <span style="color: #660033;">-t</span> T          title <span style="color: #000000; font-weight: bold;">for</span> thumbnails <span style="color: #7a0874; font-weight: bold;">&#40;</span>filename default<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #660033;">--capture-mode</span>=M, <span style="color: #660033;">-C</span> M   capture technique <span style="color: #7a0874; font-weight: bold;">&#40;</span>default <span style="color: #ff0000;">'auto'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
  Style options:
        <span style="color: #660033;">--background</span>             background colour <span style="color: #7a0874; font-weight: bold;">&#40;</span>e.g. <span style="color: #ff0000;">'green'</span>, <span style="color: #ff0000;">'#00ff00'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #660033;">--font-family</span>            path to TTF <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">for</span> text
        <span style="color: #660033;">--font-size</span>              <span style="color: #c20cb9; font-weight: bold;">size</span> of text <span style="color: #000000; font-weight: bold;">in</span> pixels
        --colour, <span style="color: #660033;">--color</span>        colour <span style="color: #000000; font-weight: bold;">for</span> text
        <span style="color: #660033;">--heading-font-family</span>    path to TTF <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">for</span> heading
        <span style="color: #660033;">--heading-font-size</span>      <span style="color: #c20cb9; font-weight: bold;">size</span> of heading <span style="color: #000000; font-weight: bold;">in</span> pixels
        <span style="color: #660033;">--heading-colour</span>         colour <span style="color: #000000; font-weight: bold;">for</span> heading</pre></div></div>

<p style="text-align: left;">
<p style="text-align: center;">Preis: Kostenlos | <a title="Dhyana" rel="nofollow" href="http://tobyinkster.co.uk/blog/2008/01/06/dhyana/" target="_blank">Webseite</a><a title="Adminer Demo" rel="nofollow" href="http://adminer.sourceforge.net/adminer.php?username=" target="_blank"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.christian-pfnuer.de/dhyana-screenshots-und-preview-von-filmen-unter-debian/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Datenbankverwaltung mit Adminer statt PhpMyAdmin</title>
		<link>http://www.christian-pfnuer.de/datenbankverwaltung-mit-adminer-statt-phpmyadmin</link>
		<comments>http://www.christian-pfnuer.de/datenbankverwaltung-mit-adminer-statt-phpmyadmin#comments</comments>
		<pubDate>Mon, 07 Dec 2009 10:18:59 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Empfehlungen]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[adminer]]></category>
		<category><![CDATA[alternative]]></category>
		<category><![CDATA[datenbankverwaltung]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.christian-pfnuer.de/?p=710</guid>
		<description><![CDATA[Wen hat es nicht auch schonmal gestört, dass die Verwaltung von MySQL Datenbanken bei mehreren auszuführenden Operationen auf der Kommandozeile umständlich ist und mit Phpmyadmin ein zu umfangreiches Packet bereitsteht (ca. 10MB), was gerne auch mal bei der Installation in Zusammenhang mit alternativen Webservern rumzickt. Nach dem letzten Zwischenfall als Phpmyadmin noch unbedingt das Packet [...]]]></description>
			<content:encoded><![CDATA[<p>Wen hat es nicht auch schonmal gestört, dass die Verwaltung von MySQL Datenbanken bei mehreren auszuführenden Operationen auf der Kommandozeile umständlich ist und mit Phpmyadmin ein zu umfangreiches Packet bereitsteht (ca. 10MB), was gerne auch mal bei der Installation in Zusammenhang mit alternativen Webservern rumzickt. Nach dem letzten Zwischenfall als Phpmyadmin noch unbedingt das Packet php5-mysqli brauchte um zu funktionieren reichte es mir und ich suchte nach einer Alternative, die schlank und schnell einsatzbereit ist. Ich fand schnell zu <a title="Adminer" href="http://www.adminer.org/en/" rel="nofollow" target="_blank">Adminer</a>..</p>
<p><img class="aligncenter size-full wp-image-714" title="Adminer Webseite" src="http://www.christian-pfnuer.de/wp-content/uploads/2009/12/adminer1.png" alt="Adminer Webseite" width="493" height="380" />Ruft man den Downloadlink auf sollte sich jeder erstmal wundern, warum man nur eine einzige PHP-Datei herunterlädt um sich dann direkt danach zu freuen, dass Adminer tatsächlich nur eine Datei schlank ist. Die Datei auf den Webserver geladen ist er auch schon installiert, es ist kein weiterer Schritt notwendig. Man kann sich mit seinen Zugangsdaten am MySQL anmelden und gewohnte Operationen ausführen wie Datenbanken erstellen, ändern löschen, Tabellen einsehen und diese ändern..naja so ziemlich alles, was man im Grunde braucht in einer Datei!</p>
<p style="text-align: center;">Preis: Kostenlos | <a title="Adminer" rel="nofollow" href="http://www.adminer.org/en/" target="_blank">Webseite</a> | <a title="Adminer Demo" href="http://adminer.sourceforge.net/adminer.php?username=" rel="nofollow" target="_blank">Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.christian-pfnuer.de/datenbankverwaltung-mit-adminer-statt-phpmyadmin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sql Dateien in MySql Datenbank importieren</title>
		<link>http://www.christian-pfnuer.de/sql-dateien-in-mysql-datenbank-importieren</link>
		<comments>http://www.christian-pfnuer.de/sql-dateien-in-mysql-datenbank-importieren#comments</comments>
		<pubDate>Sun, 06 Dec 2009 16:29:25 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Anleitungen]]></category>
		<category><![CDATA[datenbank]]></category>
		<category><![CDATA[importieren]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.christian-pfnuer.de/?p=705</guid>
		<description><![CDATA[Man muss um Datenbanken wieder einzuspielen nicht Programme wie PHPMyAdmin benutzten, wenn man auf seinen Webspace, vServer bzw Root-Server per SSH zugreifen kann. Liegt eine sql-Datei vor so kann man ganz einfach folgenden Command benutzen:

 mysql -h localhost -u Username -p Datenbankname &#60; /link/zur/datei.sql

Viel Spaß
]]></description>
			<content:encoded><![CDATA[<p>Man muss um Datenbanken wieder einzuspielen nicht Programme wie PHPMyAdmin benutzten, wenn man auf seinen Webspace, vServer bzw Root-Server per SSH zugreifen kann. Liegt eine sql-Datei vor so kann man ganz einfach folgenden Command benutzen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> mysql <span style="color: #660033;">-h</span> localhost <span style="color: #660033;">-u</span> Username <span style="color: #660033;">-p</span> Datenbankname <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">/</span>link<span style="color: #000000; font-weight: bold;">/</span>zur<span style="color: #000000; font-weight: bold;">/</span>datei.sql</pre></div></div>

<p>Viel Spaß</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christian-pfnuer.de/sql-dateien-in-mysql-datenbank-importieren/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extrahieren einer Tonspur aus einer MKV unter Debian</title>
		<link>http://www.christian-pfnuer.de/extrahieren-einer-tonspur-aus-einer-mkv-unter-debian</link>
		<comments>http://www.christian-pfnuer.de/extrahieren-einer-tonspur-aus-einer-mkv-unter-debian#comments</comments>
		<pubDate>Sun, 06 Dec 2009 14:01:43 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Anleitungen]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[matroska]]></category>
		<category><![CDATA[mkv]]></category>
		<category><![CDATA[mkvextract]]></category>
		<category><![CDATA[mkvmerge]]></category>
		<category><![CDATA[muxen]]></category>
		<category><![CDATA[tonspur]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.christian-pfnuer.de/?p=698</guid>
		<description><![CDATA[Immer öfter wird der Matroska-Container als Container für x264-codiertes Video mit einer Audiospur verwendet. Auch Untertitel oder weitere Audiospuren kann der Container aufnehmen. Wenn man ein wenig zum Beispiel mit Fernsehaufnahmen rumspielt kann man schonmal in die Situation kommen, dass man aus einem MKV-Container nur eine bestimmte Audiospur oder Untertitel-Informationen extrahieren möchte. Unter Windows ist [...]]]></description>
			<content:encoded><![CDATA[<p>Immer öfter wird der Matroska-Container als Container für x264-codiertes Video mit einer Audiospur verwendet. Auch Untertitel oder weitere Audiospuren kann der Container aufnehmen. Wenn man ein wenig zum Beispiel mit Fernsehaufnahmen rumspielt kann man schonmal in die Situation kommen, dass man aus einem MKV-Container nur eine bestimmte Audiospur oder Untertitel-Informationen extrahieren möchte. Unter Windows ist das leicht zu bewerkstelligen, unter Debian und Ubuntu aber eben so einfach.</p>
<p>Nachdem man aus den Binaries per &#8220;apt-get install mkvtoolnix&#8221; das MKVTool installiert hat kann man auch MKVExtract verwenden. Auf der Kommandozeile guckt man erst einmal was für Spuren in der MKV enthalten sind mit:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mkvmerge <span style="color: #660033;">-i</span> container.mkv</pre></div></div>

<p>Ausgegeben wird dann etwas wie:</p>
<p>Track ID 1: video (V_MPEG4/ISO/AVC)<br />
Track ID 2: audio (A_AC3)<br />
Track ID 3: subtitles (S_TEXT/UTF8)</p>
<p>Man weiß also nun, dass der Container 3 Elemente aufbewahrt. Um nun ein Element aus dem Container zu extrahieren benutzt man nun mkvextract, die 2 steht für die ID, die wir ja vorher abgelesen haben:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mkvextract tracks container.mkv <span style="color: #000000;">2</span>:tonspur.ac3</pre></div></div>

<p>Das kann nun ein wenig dauern und ihr habt die extrahierte Tonspur. Um Untertitel zu extrahieren benutzt man dementsprechend folgenden Befehl:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mkvextract tracks container.mkv <span style="color: #000000;">3</span>:untertitel.srt</pre></div></div>

<p>Viel Spaß beim basteln, inspiriert hat mich <a href="http://www.geekology.co.za/blog/2009/02/extracting-audio-video-and-subtitle-tracks-from-matroska-video-mkv-files/">Geekology</a> <img src='http://www.christian-pfnuer.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Extrahieren einer Tonspur aus einer MKV unter Debian" /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.christian-pfnuer.de/extrahieren-einer-tonspur-aus-einer-mkv-unter-debian/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Baut der immer noch?</title>
		<link>http://www.christian-pfnuer.de/baut-der-immer-noch</link>
		<comments>http://www.christian-pfnuer.de/baut-der-immer-noch#comments</comments>
		<pubDate>Mon, 19 Oct 2009 01:18:29 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://www.christian-pfnuer.de/?p=696</guid>
		<description><![CDATA[Ja, er baut immer noch. Privat hat sich in den letzten Monaten viel für mich verändert, aber ich habe den Umbau meines Blogs (Ziel ist der Einsatz eines performanteren CMS sowie die Nutzung eines schlanken Webservers) nicht aus den Augen verloren. Es ist nicht so, dass der Blog momentan langsam läuft, aber dieser Apache-Brei + [...]]]></description>
			<content:encoded><![CDATA[<p>Ja, er baut immer noch. Privat hat sich in den letzten Monaten viel für mich verändert, aber ich habe den Umbau meines Blogs (Ziel ist der Einsatz eines performanteren CMS sowie die Nutzung eines schlanken Webservers) nicht aus den Augen verloren. Es ist nicht so, dass der Blog momentan langsam läuft, aber dieser Apache-Brei + Wordpress fordert einen einfach überhaupt nicht. Ich gebe zu es funktioniert alles ganz einfach, aber warum denn einfach, wenn es auch kompliziert geht <img src='http://www.christian-pfnuer.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Baut der immer noch?" /> </p>
<p>Ich hoffe mit dem Übernehmen der Artikel und der SEO-Anpassung an das neue System werde ich in den nächsten Wochen abschließen können. Ich freue mich ja selbst schon darauf euch die Verwendete Software, Benchmarks und so weiter vorzustellen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christian-pfnuer.de/baut-der-immer-noch/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Tutorial] Saubere Installation von Nginx mit PHP und MySQL auf Debian</title>
		<link>http://www.christian-pfnuer.de/tutorial-saubere-installation-von-nginx-mit-php-und-mysql-auf-debian</link>
		<comments>http://www.christian-pfnuer.de/tutorial-saubere-installation-von-nginx-mit-php-und-mysql-auf-debian#comments</comments>
		<pubDate>Sun, 30 Aug 2009 19:09:27 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Anleitungen]]></category>
		<category><![CDATA[For Dummies]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.christian-pfnuer.de/?p=693</guid>
		<description><![CDATA[Ich habe leider keine Anleitung gefunden, die die Installation von Nginx wirklich gut beschreibt und habe daher beschlossen selbst eine zu machen. Sie dient mir als Denkstütze und hilft euch hoffentlich unter Umständen auch mal. Wir fangen an mit der Installation des MySQL Servers.

aptitude install mysql-server mysql-client

Kurz und schmerzlos, Passwort vergeben und fertig. Dann wird [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe leider keine Anleitung gefunden, die die Installation von Nginx wirklich gut beschreibt und habe daher beschlossen selbst eine zu machen. Sie dient mir als Denkstütze und hilft euch hoffentlich unter Umständen auch mal. Wir fangen an mit der Installation des MySQL Servers.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server mysql-client</pre></div></div>

<p>Kurz und schmerzlos, Passwort vergeben und fertig. Dann wird Nginx installiert, was auch noch easy ist:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> nginx</pre></div></div>

<p>Da er sich nach der Installation nicht allein startet tuen wir das:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>nginx start</pre></div></div>

<p>Nun installieren wir erstmal PHP und einige Module wie zum Beispiel unter anderem das MySQL Modul.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php5-cgi php5-mysql php5-gd php-pear</pre></div></div>

<p>In der php.ini</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>cgi<span style="color: #000000; font-weight: bold;">/</span>php.ini</pre></div></div>

<p> ändern wir nun diese Angabe wir folgt</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span>
cgi.fix_pathinfo = <span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Da Nginx leider nich ab Werk mit PHP-Unterstützung kommt müssen wir diese noch über CGI einrichten. Andere Anleitungen schlagen hier vor den Webserver Lighttpd zu installieren, weil dort das Spawn-fcgi Packet enthalten ist, was wir brauchen. Das ist aber absolut überflüssig, da wir die Packete auch von hier bekommen können:</p>
<pre>http://packages.debian.org/de/sid/web/spawn-fcgi</pre>
<p>Entsprechende Plattform auswählen (durch Eingabe von &#8220;uname -m&#8221; in der Shell kann man sein System herausfinden) und herunterladen</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>ftp.cl.debian.org<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span>pool<span style="color: #000000; font-weight: bold;">/</span>main<span style="color: #000000; font-weight: bold;">/</span>s<span style="color: #000000; font-weight: bold;">/</span>spawn-fcgi<span style="color: #000000; font-weight: bold;">/</span>spawn-fcgi_1.6.2-<span style="color: #000000;">3</span>_i386.deb</pre></div></div>

<p>und installieren.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> spawn-fcgi_1.6.2-<span style="color: #000000;">3</span>_i386.deb</pre></div></div>

<p>Nun starten wir einen Fast CGI Daemon für die PHP-Unterstützung auf Port 9000</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>spawn-fcgi <span style="color: #660033;">-a</span> 127.0.0.1 <span style="color: #660033;">-p</span> <span style="color: #000000;">9000</span> <span style="color: #660033;">-u</span> www-data <span style="color: #660033;">-g</span> www-data <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php5-cgi <span style="color: #660033;">-P</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>fastcgi-php.pid</pre></div></div>

<p>und packen ihn zusammen mit dem Startbefehl für Nginx in den Systemstart von Debian.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.local</pre></div></div>

<p>Meine sieht dann zum Beispiel so aus:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh -e</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># rc.local</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># This script is executed at the end of each multiuser runlevel.</span>
<span style="color: #666666; font-style: italic;"># Make sure that the script will &quot;exit 0&quot; on success or any other</span>
<span style="color: #666666; font-style: italic;"># value on error.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># In order to enable or disable this script just change the execution</span>
<span style="color: #666666; font-style: italic;"># bits.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># By default this script does nothing.</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>spawn-fcgi <span style="color: #660033;">-a</span> 127.0.0.1 <span style="color: #660033;">-p</span> <span style="color: #000000;">9000</span> <span style="color: #660033;">-u</span> www-data <span style="color: #660033;">-g</span> www-data <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ph$
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>nginx start
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p>Wobei ich den Webserver auch durch einen Benutzer starten lasse. Wir editieren die Standard-Einstellung von Nginx für die default-Seite wie folgt:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>sites-available<span style="color: #000000; font-weight: bold;">/</span>default</pre></div></div>

<p>Dieser Bereich wird geändert:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">location ~ .php$ <span style="color: #7a0874; font-weight: bold;">&#123;</span>
fastcgi_pass   127.0.0.1:<span style="color: #000000;">9000</span>;
fastcgi_index  index.php;
fastcgi_param  SCRIPT_FILENAME  <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #007800;">$fastcgi_script_name</span>;
include        fastcgi_params;
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>Man beachte dabei die stelle include fastcgi_params, die wegen einem Bug vorher zusammen geschrieben wurde. Das war auch schon alles..man startet Nginx neu und alles funktioniert <img src='http://www.christian-pfnuer.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="[Tutorial] Saubere Installation von Nginx mit PHP und MySQL auf Debian" /> </p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>nginx restart</pre></div></div>

<p>Viel Spaß</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christian-pfnuer.de/tutorial-saubere-installation-von-nginx-mit-php-und-mysql-auf-debian/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Blogumbau</title>
		<link>http://www.christian-pfnuer.de/blogumbau</link>
		<comments>http://www.christian-pfnuer.de/blogumbau#comments</comments>
		<pubDate>Sun, 16 Aug 2009 15:03:54 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.christian-pfnuer.de/?p=691</guid>
		<description><![CDATA[Vielleicht wundern sich einige (ich weiß nicht, ob ich tatsächlich regelmäßige Leser habe), warum hier nichts mehr passiert. Aber ich bin durchaus noch aktiv an der Arbeit für diesen Blog. Was momentan so viel Zeit frisst ist der Umbau dieses Wordpress Blogs auf Textpattern. Der darauf laufende Webserver wird Nginx sein und er wird natürlich [...]]]></description>
			<content:encoded><![CDATA[<p>Vielleicht wundern sich einige (ich weiß nicht, ob ich tatsächlich regelmäßige Leser habe), warum hier nichts mehr passiert. Aber ich bin durchaus noch aktiv an der Arbeit für diesen Blog. Was momentan so viel Zeit frisst ist der Umbau dieses Wordpress Blogs auf Textpattern. Der darauf laufende Webserver wird Nginx sein und er wird natürlich auch mod_rewrite unterstützen und euch schöne URLs liefern, die gleich den Titel des jeweiligen Artikels verraten wie bisher. Darum geduldet euch noch ein wenig <img src='http://www.christian-pfnuer.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Blogumbau" /> </p>
<p>Ich werde eventuell hin und wieder von dem Umbau berichten. Fest steht, es bringt auf jeden Fall mehr Performance von Apache loszukommen und Wordpress ist langsam und umständlich im Vergleich zu anderen Systemen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christian-pfnuer.de/blogumbau/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
