<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>pregos blog</title>
	
	<link>http://blog.pregos.info</link>
	<description>/me... prego!</description>
	<lastBuildDate>Thu, 11 Mar 2010 11:46:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/PregosBlog" /><feedburner:info uri="pregosblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Alle Dokumente eines bestimmten Users finden</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/LD0xsZZke7M/</link>
		<comments>http://blog.pregos.info/2010/03/11/alle-dokumente-eines-bestimmten-users-finden/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 11:46:31 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[arbeit]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[zeugs]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[find]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1825</guid>
		<description><![CDATA[Liebe KloBlogwand, ein neues gekritzel von mir an Dich da ich immer vergesse wie ich in einem Ordner rekursiv nach allen Dokumenten eines bestimmten Useraccounts durchsuche:
find / -user USERACC 
So simpel und doch so schnell wieder vergessen&#8230;
]]></description>
			<content:encoded><![CDATA[<p>Liebe <del>Klo</del>Blogwand, ein neues gekritzel von mir an Dich da ich immer vergesse wie ich in einem Ordner rekursiv nach allen Dokumenten eines bestimmten Useraccounts durchsuche:</p>
<pre lang=bash>find / -user USERACC </pre>
<p>So simpel und doch so schnell wieder vergessen&#8230;</p>
<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/LD0xsZZke7M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2010/03/11/alle-dokumente-eines-bestimmten-users-finden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2010/03/11/alle-dokumente-eines-bestimmten-users-finden/</feedburner:origLink></item>
		<item>
		<title>Skript: Netzwerkinterface neustarten</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/TgaKqMU24Iw/</link>
		<comments>http://blog.pregos.info/2010/02/12/skript-netzwerkinterface-neustarten/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 09:17:24 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[zeugs]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[down]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[skript]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1817</guid>
		<description><![CDATA[Ich hatte eine Debian etch Maschine, virtualisiert mit KVM, bei der brach unter Last immer die Netzwerkverbindung zusammen. Reproduzierbar. Das Update auf Lenny brachte nix. Ich habe die Maschine gestern mit Lenny neu aufgesetzt und die Probleme existieren nicht mehr. Hier nun das Skript was ueberprueft ob eine Verbindung nach aussen moeglich ist und ggfs. [...]]]></description>
			<content:encoded><![CDATA[<p>Ich hatte eine Debian etch Maschine, virtualisiert mit KVM, bei der brach unter Last immer die Netzwerkverbindung zusammen. Reproduzierbar. Das Update auf Lenny brachte nix. Ich habe die Maschine gestern mit Lenny neu aufgesetzt und die Probleme existieren nicht mehr. Hier nun das Skript was ueberprueft ob eine Verbindung nach aussen moeglich ist und ggfs. das Interface neustartet, ich brauche es nicht mehr, aber bevor ich es loesche hier noch einmal dokumentiert:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">##</span>
<span style="color: #666666; font-style: italic;">#  check if network is available and if not restart</span>
<span style="color: #666666; font-style: italic;">#  the network interface</span>
<span style="color: #666666; font-style: italic;">##</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #c20cb9; font-weight: bold;">ping</span> <span style="color: #660033;">-c</span> <span style="color: #000000;">1</span> <span style="color: #660033;">-w</span> <span style="color: #000000;">1</span> <span style="color: #660033;">-q</span> www.google.de <span style="color: #000000; font-weight: bold;">&amp;&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null; <span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #666666; font-style: italic;">#  echo &quot;Network is up, no further action required&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span><span style="color: #000000; font-weight: bold;">&amp;&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #000000; font-weight: bold;">else</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Network is down, restarting the interface...&quot;</span>
  ifdown eth0 <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> ifup eth0
 <span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/TgaKqMU24Iw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2010/02/12/skript-netzwerkinterface-neustarten/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2010/02/12/skript-netzwerkinterface-neustarten/</feedburner:origLink></item>
		<item>
		<title>Howto: Mobile Webinterface</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/7owAtoRF1uQ/</link>
		<comments>http://blog.pregos.info/2010/01/04/howto-mobile-webinterface/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 14:48:25 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[zeugs]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[bremen]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[werder]]></category>
		<category><![CDATA[wurfl]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1811</guid>
		<description><![CDATA[Ich schrieb ja vor kurzem darueber, dass ich eine kleine Werder Bremen Newsuebersicht erstellt habe. Als ich nun fuer ein paar Tage im Kurzurlaub war und die Seite ueber mein Handy aufrief, fiel mir auf, dass sie ein mobiles Interface gebrauchen koennte. Das Bild war zu gross, und generell haette man wohl auch was bei [...]]]></description>
			<content:encoded><![CDATA[<p>Ich <a href="http://blog.pregos.info/2009/12/28/werder-bremen-newsubersicht/" target="_blank">schrieb ja vor kurzem</a> darueber, dass ich eine kleine <a href="http://werder.pregos.info/" target="_blank">Werder Bremen Newsuebersicht</a> erstellt habe. Als ich nun fuer ein paar Tage im Kurzurlaub war und die Seite ueber mein Handy aufrief, fiel mir auf, dass sie ein mobiles Interface gebrauchen koennte. Das Bild war zu gross, und generell haette man wohl auch was bei den Ladezeiten optimieren koennen. Wieder zurueck habe ich mich dann gleich an die Arbeit gemacht. Schnell bin ich auf zwei sehr nette Loesungen gestossen und habe kurzerhand beide miteinander Kombiniert. Die Loesungen findet Ihr auf den beiden Seiten:</p>
<ul>
<li><a href="http://www.mikeindustries.com/blog/archive/2005/07/make-your-site-mobile-friendly" target="_blank">Make Your Site Mobile-Friendly in Two Minutes</a></li>
<li><a href="http://www.idelfuschini.it/en/apache-mobile-filter-v2x.html" target="_blank">Apache Mobile Filter 2.x</a></li>
</ul>
<p>Der erste Blogeintrag beschreibt, worauf man achten muss wenn man ein mobile Webseite erstellt, und beinhaltet eine Anleitung um seine eigene Seite mobil-Freundlich mit einer Subdomain zu erstellen. Der Weg ist recht simpel: Man erstellt eine Subdomain, z.B. von www.pregos.info dann mobile.pregos.info und weist der Subdomain den gleichen DocumentRoot zu. Anschliessend erstellt man zwei PHP Dateien und legt diese in den DocumentRoot. Beide PHP-Dateien werden ueber eine .htaccess vor und nach jeder HTML-Seite aufgerufen. Dabei wird ueberprueft ob die mobile.pregos.info Subdomain aufgerufen wurde, und wenn ja der HTML-Quelltext durch verschiedene Filter gejagt, die dann die Seite entsprechend anpassen.</p>
<p>Dieser Weg ist sehr schnell eingerichtet und funktioniert wunderbar. Ich finde ihn aber nicht schoen, denn das Szenario was mir vorschwebt ist eine mobile Seite von http://werder.pregos.info unter der gleichen Domain, da  jetzt noch ne Subdomain ranzuhaengen http://m.werder.pregos.info, nee, zuviel. Ich moechte, dass die Seite je nachdem von welchem Geraet sie aufgerufen wird, entweder als mobile Version oder als normale zu sehen ist.</p>
<p>Ein simpler Weg dieses zu erreichen waere z.B. mittels JavaScript festzustellen wie gross die Bildschirmaufloesung des anzeigenden Browsers ist und dementsprechend die Seite mittels CSS zu layouten. Das bedeutet aber gleichzeitig, dass ich mit JavaScript arbeiten muss und alle Browser das unterstuetzen muessen und Rechenleistung auf dem mobilen Geraet und und und&#8230; Ich will <strong>EINE</strong> Domain, <strong>EINE</strong> URL und <strong>SELBSTERKENNUNG</strong> des Servers.</p>
<p>Ueber <a href="http://wurfl.sourceforge.net/" target="_blank">WURFL</a> (Wireless Universal Ressource File) bin ich dann irgendwie zu dem Projekt <a href="http://www.idelfuschini.it/en/apache-mobile-filter-v2x.html" target="_blank">Apache Mobile Filter</a> gestossen. Apache Mobile Filter ist eine Apache-Plugin, dass die Funktionen von WURFL direkt in Apache zur Verfuegung stellt. WURFL kennt z.B. alle UserAgents (z.Zt. 8661 verschiedene) und kann auf dieser Basis sagen, ob das gerade aufrufende Geraet ein mobiles Geraet ist oder nicht. Ueberpruefen und sehen was AMF alles so an Variablen zur Verfuegung stellt koennt Ihr unter der Adresse: <a href="http://apachemobilefilter.nogoogle.it/php_test.php" target="_blank">http://apachemobilefilter.nogoogle.it/php_test.php</a></p>
<p>Das schoene ist, dass AMF diese Variablen in PHP unter Apache als dessen Server Enviroment Variablen zur Verfuegung stellt. Ich kann also in PHP z.B. mit der Variable $_SERVER['AMF_IS_WIRELESS_DEVICE'] arbeiten. Mit dieser Loesung kann ich nun serverseitig ueberpruefen ob es sich um ein mobiles Endgeraet handelt oder nicht, und dementsprechend die mobile Version der Seite anzeigen lassen oder nicht.</p>
<p>Nur der Weg dahin brauchte noch etwas, der Support von Apache Mobile Filter war aber allererste Sahne, echt super, kann man nicht anders sagen, und fuer die Nachwelt hier nochmal ein Auszug aus meiner .bash_history:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> foo
<span style="color: #7a0874; font-weight: bold;">cd</span> foo
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>downloads.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>project<span style="color: #000000; font-weight: bold;">/</span>mobilefilter<span style="color: #000000; font-weight: bold;">/</span>ApacheMobileFilter<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2.21</span><span style="color: #000000; font-weight: bold;">/</span>Apache2-WURFLFilter-2.21.tar.gz?<span style="color: #007800;">use_mirror</span>=dfn
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xzvf</span> Apache2-WURFLFilter-2.21.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> Apache2-WURFLFilter-<span style="color: #000000;">2.21</span><span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">perl</span> Makefile.PL
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libapache2-mod-perl2 libgd-gd2-perl libgd-tools
a2enmod <span style="color: #c20cb9; font-weight: bold;">perl</span>
cpan Apache2::WURFLFilter Apache2::Filter Apache2::RequestRec Apache2::RequestUtil Apache2::Connection Apache2::SubRequest Apache2::Log CGI::Cookie APR::Table CGI::Cookie LWP::Simple Image::Resize IO::Uncompress::Unzip Cache::FileBackend
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>MobileFilter
<span style="color: #c20cb9; font-weight: bold;">chown</span> www-data:www-data <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>MobileFilter</pre></div></div>

<p>Dazu habe ich noch in die <em>/etc/apache2/httpd.conf</em> die folgenden Eintraege hineingeschrieben:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">PerlSetEnv MOBILE_HOME /var/www/MobileFilter
PerlSetEnv CacheDirectoryStore /tmp
PerlSetEnv WurflNetDownload true
PerlSetEnv DownloadWurflURL  http://downloads.sourceforge.net/wurfl/wurfl-latest.zip
PerlSetEnv LoadWebPatch true
PerlSetEnv PatchWurflNetDownload true
PerlSetEnv PatchWurflUrl http://wurfl.sourceforge.net/web_browsers_patch.xml
PerlSetEnv CookieCacheSystem true
PerlSetEnv CapabilityList <span style="color: #00007f;">all</span>
PerlModule Apache2::WURFLFilter
PerlTransHandler +Apache2::WURFLFilter
<span style="color: #adadad; font-style: italic;">#PerlOutputFilterHandler Apache2::AMFDeviceMonitor</span></pre></div></div>

<p>Anschliessend muss der Apache Webserver mit einem <strong>/etc/init.d/apache2 restart</strong> neu gestartet werden.</p>
<p>Welche Variablen euch dann zur Verfuegung stehen und ob alles funktioniert kann man mit der Test-PHP Seite ueberpruefen die ich oben bereits einmal verlinkt habe. Diese koennt Ihr euch ganz einfach auf euren eigenen Server schmeissen, gibts <a href="http://mobilefilter.cvs.sourceforge.net/viewvc/mobilefilter/ApacheMobileFilter/test_page/php/php_test.php?view=markup" target="_blank">hier zum Download</a>.</p>
<p>Wenn irgendwelche Fehler auftauchen oder (wie bei mir zu Anfang) die Variablen nicht zur Verfuegung stehen, einfach nochmal ein <strong>rm -rf /tmp/wurfl*</strong> machen und Apache neustarten.</p>
<p>Ach so&#8230; um die mobile Seite jetzt zu implementieren habe ich die bereits beschriebene Loesung mit den PHP-Files und der .htaccess genommen und einfach in der global_prepend.php und die Zeile:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SERVER_NAME'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'mobile.myawesomeblog.com'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></pre></div></div>

<p>ersetzt durch</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'AMF_IS_WIRELESS_DEVICE'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'true'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></pre></div></div>

<p>sowie die nachfolgende Zeile mit der URL-Ersetzung von normaler zu mobile-URL einfach weggelassen.</p>
<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/7owAtoRF1uQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2010/01/04/howto-mobile-webinterface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2010/01/04/howto-mobile-webinterface/</feedburner:origLink></item>
		<item>
		<title>Werder Bremen Newsübersicht</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/so8B3QXJKG0/</link>
		<comments>http://blog.pregos.info/2009/12/28/werder-bremen-newsubersicht/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 22:11:24 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[fussball]]></category>
		<category><![CDATA[netz]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[zeugs]]></category>
		<category><![CDATA[bremen]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[nachrichten]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[svw]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[ueberblick]]></category>
		<category><![CDATA[werder]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1806</guid>
		<description><![CDATA[Ich hatte die Schnauze voll von dem doofen Zusammensuchen aller Werder Bremen News am Morgen und dann ueber den Tag verteilt. Mir fehlte eine zentrale Anlaufstelle dafuer. Die Werder Bremen Presseschau ist irgendwie zu klein 
Deswegen habe ich angefangen und mir kurzerhand eine kleine Seite selbergeschrieben, die div. Werder Bremen spezifische RSS-Feeds abruft und die [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.pregos.info/wp-content/uploads/2009/12/werder.png"><img src="http://blog.pregos.info/wp-content/uploads/2009/12/werder.png" alt="" title="werder" width="200" height="200" class="alignright size-full wp-image-1807" /></a>Ich hatte die Schnauze voll von dem doofen Zusammensuchen aller Werder Bremen News am Morgen und dann ueber den Tag verteilt. Mir fehlte eine zentrale Anlaufstelle dafuer. Die <a href="http://www.werder.de/aktuelles/presseschau/presseschau.php">Werder Bremen Presseschau</a> ist irgendwie zu klein <img src='http://blog.pregos.info/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
Deswegen habe ich angefangen und mir kurzerhand eine kleine Seite selbergeschrieben, die div. Werder Bremen spezifische RSS-Feeds abruft und die jeweils fuenf neusten Artikel anzeigt. Weiter werden alle Artikel ebenfalls als eigener neuer RSS-Feed exportiert und dank Twitterfeed wird sogar gezwitschert.</p>
<p>Die Seite incl. Quelltext ist unter:<br />
  <a href="http://werder.pregos.info">http://werder.pregos.info</a></p>
<p>zu finden. Sport1 und Fussballtransfer habe ich bereits angeschrieben da deren Feeds defekt sind, einer wird nicht aktualisiert und bei einem anderen ist die Domain der Links zu den Artikeln falsch. Beim Weser-Kurier hab ich ein komisches Problem mit Simplepie, aber das bekomme ich auch noch geloest. Bis dahin hab ich erstmal eine schoene Uebersichtsseite die ich von ueberall und den ganzen Tag lang immer aufrufen kann und immer viele Werdernews im Ueberblick habe. </p>
<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/so8B3QXJKG0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2009/12/28/werder-bremen-newsubersicht/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2009/12/28/werder-bremen-newsubersicht/</feedburner:origLink></item>
		<item>
		<title>Zum festhalten: parted, LVM, virsh</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/T4esfAkZm-c/</link>
		<comments>http://blog.pregos.info/2009/12/14/zum-festhalten-parted-lvm-virsh/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 21:23:58 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[parted]]></category>
		<category><![CDATA[virsh]]></category>
		<category><![CDATA[virtualisierung]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1803</guid>
		<description><![CDATA[Um Partitionen groesser als 2TB zu erstellen muss man GPT labels benutzen. fdisk und Konsorten koennen damit nicht umgehen, deswegen nimmt man dafuer parted. Mit den folgenden Befehlen stellt man den Partitionstabellentyp auf gpt um, und erstellt eine Partition ueber die komplette Platte und formatiert diese mit xfs:

parted /dev/sdX -&#62; mklabel gpt -&#62; quit
parted -s [...]]]></description>
			<content:encoded><![CDATA[<p>Um Partitionen groesser als 2TB zu erstellen muss man GPT labels benutzen. <strong>fdisk</strong> und Konsorten koennen damit nicht umgehen, deswegen nimmt man dafuer <strong>parted</strong>. Mit den folgenden Befehlen stellt man den Partitionstabellentyp auf <em>gpt</em> um, und erstellt eine Partition ueber die komplette Platte und formatiert diese mit xfs:</p>
<ul>
<li><em>parted /dev/sdX -&gt; mklabel gpt -&gt; quit</em></li>
<li><em>parted -s &#8212; /dev/sdX mkpart primary 0 -1</em></li>
<li><em>mkfs.xfs /dev/sdX</em></li>
</ul>
<p><br/><br />
<br />
Noch kurz die grundlegenden wichtigsten Befehle zum erstellen eines LVM:</p>
<ul>
<li>/dev/sdX als physikalisches Volume initialisieren:<strong> pvcreate /dev/sdX</strong></li>
<li>erstellen eine Volume Group mit dem Namen VG-NAME: <strong>vgcreate VG-NAME /dev/sdX</strong></li>
<li>Ansehen kann man sich das dann mit <strong>vgscan</strong> oder <strong>vgs</strong></li>
<li>Erstellen eines neuen Volumes mit dem Namen VOLNAME: <strong>lvcreate -n VOLNAME &#8211;size 10GB VG-NAME</strong></li>
<li>Formatieren, mounten, angucken: <strong><br />
mkfs.ext3 /dev/VG-NAME/VOLNAME<br />
mkdir /mnt/VOLNAME<br />
mount /dev/VG-NAME/VOLNAME /mnt/VOLNAME</strong></li>
<li>Anzeigen von Logischen Volumes:<strong> lvdisplay</strong></li>
<li>Vergroessern/Verkleinern eines Volumes:<br />
<strong>lvextend -L+10G /dev/VG-NAME/VOLNAME<br />
lvreduce -L-10GB /dev/VG-NAME/VOLNAME<br />
e2fsck -f /dev/VG-NAME/VOLNAME<br />
resize2fs /dev/VG-NAME/VOLNAME</strong></li>
<li>Loeschen von Volumes:<strong> lvremove /dev/VG-NAME/VOLNAME<br />
</strong></li>
</ul>
<p>Abschliessend sei noch gesagt, dass <strong>virsh</strong> echt cool ist. Dabei ist eben festzuhalten, dass das Speichern u Wiederherstellen aller vms (z.B. vor oder nach einem reboot) einfach geht z.B. mit:</p>
<ul>
<li><em>for i in `virsh list | grep running | awk {&#8216;print $2&#8242;}` ; do virsh save $i /vms/$i ; done</em></li>
<li><em>for i in `ls /vms` ; do virsh restore /vms/$i ; done</em></li>
</ul>
<p>Wenn man mit <strong>virsh console VM</strong> auf eine Maschine moechte, duerfen dafuer auf dem Gast in der<em> /etc/inittab </em>die Zeilen mit T0 und T1 nicht auskommentiert sein.</p>
<p>Die Infos hier sind von <a href="http://sakafi.wordpress.com/2008/08/23/how-to-use-parted-for-creating-patition-larger-that-2-tb/" target="_blank">da</a> und <a href="http://www.debian-administration.org/articles/410">da</a> und <a href="http://exdc.net/" target="_blank">dem</a>.</p>
<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/T4esfAkZm-c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2009/12/14/zum-festhalten-parted-lvm-virsh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2009/12/14/zum-festhalten-parted-lvm-virsh/</feedburner:origLink></item>
		<item>
		<title>Firefox startup fix multiple master password dialogs</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/HFWRX60pAPs/</link>
		<comments>http://blog.pregos.info/2009/11/27/firefox-startup-fix-multiple-master-passwort-dialogs/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 08:38:31 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[Sideblog]]></category>
		<category><![CDATA[dialog]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[multiple]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[startup]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1798</guid>
		<description><![CDATA[&#8230;using this great plugin: StartupMaster 1.1
]]></description>
			<content:encoded><![CDATA[<p>&#8230;using this great plugin: <a href="https://addons.mozilla.org/en-US/firefox/addon/9808" target="_blank">StartupMaster 1.1</a></p>
<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/HFWRX60pAPs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2009/11/27/firefox-startup-fix-multiple-master-passwort-dialogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2009/11/27/firefox-startup-fix-multiple-master-passwort-dialogs/</feedburner:origLink></item>
		<item>
		<title>Samba/LDAP: Benutzeraccount auf Rechner beschraenken</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/bwlnCwM-hlw/</link>
		<comments>http://blog.pregos.info/2009/11/26/sambaldap-benutzeraccount-auf-rechner-beschraenken/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 15:34:46 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[arbeit]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pdc]]></category>
		<category><![CDATA[phpldapadmin]]></category>
		<category><![CDATA[rights]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1796</guid>
		<description><![CDATA[Wie Ihr merkt beschaeftige ich mich in der letzten Zeit vermehrt mit dem Thema, hier nochmal eben festgehalten wie man einen Benutzeraccount so beschraenkt, dass er sich nur an bestimmten Rechnern anmelden darf:

phpLDAPadmin oeffnen und den entsprechenden Benutzeraccount auswaehlen
Klick auf &#8220;Add new attribute&#8220;
Im Dropdown Menue des Punkts &#8220;Add new attribute&#8221; den Punkt &#8220;sambaUserWorkstations&#8221; auswaehlen und [...]]]></description>
			<content:encoded><![CDATA[<p>Wie Ihr merkt beschaeftige ich mich in der letzten Zeit vermehrt mit dem Thema, hier nochmal eben festgehalten wie man einen Benutzeraccount so beschraenkt, dass er sich nur an bestimmten Rechnern anmelden darf:</p>
<ul>
<li>phpLDAPadmin oeffnen und den entsprechenden Benutzeraccount auswaehlen</li>
<li>Klick auf &#8220;<em>Add new attribute</em>&#8220;</li>
<li>Im Dropdown Menue des Punkts &#8220;Add new attribute&#8221; den Punkt <em>&#8220;sambaUserWorkstations</em>&#8221; auswaehlen und als Parameter die Rechnernamen angeben an denen der User sich anmelden darf, Bsp: dnpw-ab-123$</li>
<li>Speichern, fertig</li>
</ul>
<p>Loeschen kann man das ganze indem man einfach alle Attributparameter loescht und speichert. Mehrere Rechnernamen werden mit Komma getrennt hintereinander angegeben.</p>
<p>Evtl. ist noch interessant unter Windows in den Gruppenrichtlinien (Windows+R -&gt; gpedit.msc) den Punkt &#8220;<em>Computerkonfiguration -&gt; Administrative Vorlagen -&gt; System -&gt; Benutzerprofile -&gt;  Benutzer bei Fehlschlag des servergespeicherteten Profils abmelden</em>&#8221; zu aktivieren. Ansonsten bekommt der User eine Fehlermeldung das er sich nicht an der Domaene anmelden darf u wird temporaer mit einer lokalen Kopie angemeldet.</p>
<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/bwlnCwM-hlw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2009/11/26/sambaldap-benutzeraccount-auf-rechner-beschraenken/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2009/11/26/sambaldap-benutzeraccount-auf-rechner-beschraenken/</feedburner:origLink></item>
		<item>
		<title>Samba Interdomain Trust</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/fkxTR0DNVIo/</link>
		<comments>http://blog.pregos.info/2009/11/26/samba-interdomain-trust/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 13:32:44 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[arbeit]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[domaene]]></category>
		<category><![CDATA[interdomain]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[pdc]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[trust]]></category>
		<category><![CDATA[winbind]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1794</guid>
		<description><![CDATA[Wer Samba PDC-Server betreut, der weiss wovon ich nun rede: Man richtet einen entsprechenden PDC-Server ein, hebt die Clients in die Domaene. Nun kommt eine weitere Abteilung hinzu, es kommt ein weiterer PDC und beides laeuft friedlich nebeneinander her. Nun fangen die beiden Abteilungen an staerker zusammenzuarbeiten, User wechseln hin und her, Raeumlichkeiten werden gemeinsam [...]]]></description>
			<content:encoded><![CDATA[<p>Wer Samba PDC-Server betreut, der weiss wovon ich nun rede: Man richtet einen entsprechenden PDC-Server ein, hebt die Clients in die Domaene. Nun kommt eine weitere Abteilung hinzu, es kommt ein weiterer PDC und beides laeuft friedlich nebeneinander her. Nun fangen die beiden Abteilungen an staerker zusammenzuarbeiten, User wechseln hin und her, Raeumlichkeiten werden gemeinsam genutzt, aber im Anmeldebildschirm von Windows erscheint neben dem lokalen Computer immer nur die Domaene in die der Client gehoben wurde.</p>
<p>Abhilfe schafft dort das einrichten eines entsprechenden Interdomain Trust. Dafuer muessen auf den PDC Servern jeweils vertraute Domaenenkontos (mit [I]-Flag) erstellt und anschliessend der Trust hergestellt werden. Dafuer (wenn Samba mit LDAP)</p>
<ul>
<li><strong>smbldap-useradd -i DOMAENENNAME</strong></li>
<li><strong>net rpc trustdom establish DOMAENENNAME</strong></li>
</ul>
<p>Wichtig ist noch, dass winbind laufen muss. Unter Debian muss das mit <strong>aptitude install winbind</strong> nachinstalliert werden. Ob dann alles funktioniert hat und ob die Benutzerkonten abfragbar sind kann man mit dem Befehl<strong> wbinfo -u</strong> nachpruefen. Es sollte dann eine Liste angezeigt werden nach dem Schema &#8220;DOMAENENNAME\USERNAME&#8221;</p>
<p>Zum Nachlesen in der Samba Doku:</p>
<ul>
<li><a href="http://gertranssmb3.berlios.de/output/InterdomainTrusts.html" target="_blank">Kapitel 16: Interdomain Vertrauensstellungen</a></li>
<li><a href="http://gertranssmb3.berlios.de/output/winbind.html" target="_blank">Kapitel 21: Winbind: Benutzung von Domaenenkonten</a></li>
</ul>
<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/fkxTR0DNVIo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2009/11/26/samba-interdomain-trust/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2009/11/26/samba-interdomain-trust/</feedburner:origLink></item>
		<item>
		<title>Mein Blog ist nun gruen!</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/oA629LMQKWU/</link>
		<comments>http://blog.pregos.info/2009/11/26/mein-blog-ist-nun-gruen/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 08:20:27 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[Sideblog]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[zeugs]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1791</guid>
		<description><![CDATA[http://www.onlineleaf.com/
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.onlineleaf.com/" target="_blank">http://www.onlineleaf.com/</a></p>
<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/oA629LMQKWU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2009/11/26/mein-blog-ist-nun-gruen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2009/11/26/mein-blog-ist-nun-gruen/</feedburner:origLink></item>
		<item>
		<title>Schnitzeljagd 2.0</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/_dGoAeVX97U/</link>
		<comments>http://blog.pregos.info/2009/11/23/schnitzeljagd-2-0/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 14:06:46 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1786</guid>
		<description><![CDATA[Es bietet koerperliche Betaetigung in Form von Spaziergaengen, macht Spass beim Loesen von Raetseln und finden von Verstecken: die Schnitzeljagd. Seit einiger Zeit gibt es die Schnitzeljagd 2.0, auch Geocaching genannt.
Kurz erklaert: Es versteckt jemand einen Cache, indem sich mind. ein Zettel zum Eintragen befindet, und veroeffentlicht die GPS-Koordinaten anschliessend im Internet. Ziel ist es, [...]]]></description>
			<content:encoded><![CDATA[<p>Es bietet koerperliche Betaetigung in Form von Spaziergaengen, macht Spass beim Loesen von Raetseln und finden von Verstecken: die Schnitzeljagd. Seit einiger Zeit gibt es die Schnitzeljagd 2.0, auch <a href="http://de.wikipedia.org/wiki/Geocaching" target="_blank">Geocaching</a> genannt.</p>
<p>Kurz erklaert: Es versteckt jemand einen Cache, indem sich mind. ein Zettel zum Eintragen befindet, und veroeffentlicht die GPS-Koordinaten anschliessend im Internet. Ziel ist es, dann von anderen diesen Cache zu finden.</p>
<p>Wer mehr darueber erfahren will liest am besten den oben verlinkten Wikipedia Artikel oder guckt sich bei <a href="http://www.geocaching.de" target="_blank">www.geocaching.de</a> oder <a href="http://www.geocaching.com" target="_blank">www.geocaching.com</a> einmal um.</p>
<p>Anja und ich haben den Punkt bereits seit laengerem auf unserer Liste stehen, und ich habe mich in den letzten Tagen mal rangemacht u mich ein bisschen mit dem Thema auseinandergesetzt. Mein Handy, ein Sony Ericsson C702, besitzt ein eingebautes GPS und ist deswegen fuer Dinge wie Geocaching praedestiniert. Als Software habe ich mich fuer <a href="http://vlkgps.bielyvlk.sk/" target="_blank">vlkGPS</a> entschieden. Da die Homepage zur Zeit nicht erreichbar ist, die Version die ich einsetze an dieser Stelle zum Download: <a href="http://blog.pregos.info/wp-content/uploads/2009/11/vlkGPS-20080912-0.8.1+svn24.jar" target="_blank">vlkGPS-20080912-0.8.1+svn24.jar</a></p>
<p>Dann habe mich dann auf geocaching.com angemeldet und mir einige Caches hier fuer Hamburg heruntergeladen, und aufs Handy gepackt. Der Import von *.loc Dateien in vlkGPS funktioniert einwandfrei. Nur einmal hatte ich ein Problem mit Sonderzeichen in der Beschreibung, was sich aber durch ein schnelles editieren der Textdatei beheben lies. Das interne GPS wird erkannt und die Bedienung ist sehr einfach. Toll finde ich, dass es auch keine Karten dazu anzeigt, sondern das man nur seine aktuelle Position, den zurueckgelegten Weg und den Ort des Caches angezeigt bekommt.</p>
<p>Alles in allem eine Supersache, wir haben bereits drei Caches &#8220;geloggt&#8221; und es hat trotz des typisch Hamburger Wetters echt superviel Spass gemacht! <img src='http://blog.pregos.info/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/_dGoAeVX97U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2009/11/23/schnitzeljagd-2-0/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2009/11/23/schnitzeljagd-2-0/</feedburner:origLink></item>
		<item>
		<title>Nagios und EventHandler via NRPE</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/-1RISV8zx0w/</link>
		<comments>http://blog.pregos.info/2009/11/23/nagios-und-eventhandler-via-nrpe/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 11:25:28 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[zeugs]]></category>
		<category><![CDATA[event handler]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[nrpe]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1778</guid>
		<description><![CDATA[Bei meiner VM auf der dieser Blog laeuft ist in den letzten Tage oefter mal MySQL abgestuerzt. Das ist ziemlich aergerlich da dann der Blog und einige andere Dinge auch nicht mehr funktionieren. Da ich nur eingeschraenkt vor dem Rechner sitze und es ueber mein Handy sehr umstaendlich ist mittels MidpSSH sich einzuloggen und den [...]]]></description>
			<content:encoded><![CDATA[<p>Bei meiner VM auf der dieser Blog laeuft ist in den letzten Tage oefter mal MySQL abgestuerzt. Das ist ziemlich aergerlich da dann der Blog und einige andere Dinge auch nicht mehr funktionieren. Da ich nur eingeschraenkt vor dem Rechner sitze und es ueber mein Handy sehr umstaendlich ist mittels <a href="http://www.xk72.com/midpssh/" target="_blank">MidpSSH</a> sich einzuloggen und den Dienst neuzustarten, hab ich mich kurz mit den EventHandlern bei Nagios auseinandergesetzt und im folgenden eine kurze Anleitung was ich gemacht habe:</p>
<p><strong>Lesen</strong>: <a href="http://nagios.sourceforge.net/download/contrib/documentation/german/1_0/eventhandlers.html" target="_blank">das</a> und <a href="http://www.nagios-wiki.de/nagios/doku3/eventhandlers" target="_blank">das</a> und viele andere Dinge bis ich schliesslich bei dem Artikel &#8220;<a href="http://www.nagios-portal.org/wbb/index.php?page=Thread&amp;postID=59347" target="_blank">Event Handlers heute mal dynamisch</a>&#8221; (<a href="http://blog.pregos.info/wp-content/uploads/2009/11/Event-Handlers-heute-mal-dynamisch.pdf">PDF</a>) von RomanK im Nagios-Portal Forum gelandet bin.</p>
<p>Alle im folgenden hier genannten Skripte sind nicht mein Werk, sondern stammen aus besagtem Artikel und wurden von mir auf die Debian-Verhaeltnisse meines Servers und auf meine Problematik angepasst.</p>
<p>Definition des Befehls in der <em>/etc/nagios3/commands.cfg</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">define command{
	command_name	do_event
	command_line	/usr/lib/nagios/libexec/event/run_command  $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $HOSTADDRESS$ $ARG1$
	}</pre></div></div>

<p>Das Skript <em>run_command</em> in dem Ordner<em> /usr/lib/nagios/libexec/event/</em> ablegen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
&nbsp;
OK<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	<span style="color: #000000; font-weight: bold;">;;</span>
&nbsp;
WARNING<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	<span style="color: #000000; font-weight: bold;">;;</span>
&nbsp;
UNKNOWN<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	<span style="color: #000000; font-weight: bold;">;;</span>
&nbsp;
CRITICAL<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$2&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
	SOFT<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$3&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
&nbsp;
		<span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Restarting Service (3rd soft critical state)...&quot;</span>
		<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>nagios<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>check_nrpe <span style="color: #660033;">-H</span> <span style="color: #ff0000;">&quot;$4&quot;</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;$5&quot;</span>
			<span style="color: #000000; font-weight: bold;">;;</span>
			<span style="color: #000000; font-weight: bold;">esac</span>
		<span style="color: #000000; font-weight: bold;">;;</span>
	HARD<span style="color: #7a0874; font-weight: bold;">&#41;</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Restarting Service...&quot;</span>
		<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>nagios<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>check_nrpe <span style="color: #660033;">-H</span> <span style="color: #ff0000;">&quot;$4&quot;</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;$5&quot;</span>
		<span style="color: #000000; font-weight: bold;">;;</span>
	<span style="color: #000000; font-weight: bold;">esac</span>
	<span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">esac</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p>Auf dieser VM habe ich dann zwei neue NRPE-Checks in der <em>/etc/nagios/nrpe_local.cfg</em> eingerichtet, einen zum ueberpruefen ob MySQL laeuft, und einen der als Event Handler ausgefuehrt wird:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">command[check_mysql]=sudo /usr/lib/nagios/plugins/check_mysql
command[restart_mysqld]=sudo /etc/init.d/mysql restart</pre></div></div>

<p>und die dafuer erforderlichen Eintraege in der <em>/etc/sudoers</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">nagios     pregos =  NOPASSWD: /usr/lib/nagios/plugins/check_mysql
nagios     pregos =  NOPASSWD: /etc/init.d/mysql</pre></div></div>

<p>Nun auf dem Nagios-Server den Servicecheck mit entsprechendem Event Handler definieren:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">define service{
        use                             jan-service
        host_name                       pregos.info
        service_description             MySQL
        max_check_attempts              4
        event_handler                   do_event!restart_mysqld
        check_command                   check_nrpe_1arg!check_mysql
        }
}</pre></div></div>

<p>Nun kann man noch ueberpruefen ob das ganze funktioniert, indem man einfach den MySQL-Dienst beendet und per Webinterface einige male hintereinander den Servicecheck manuell anstoesst.<br />
Wenn man an der max_check_attempts in der config was aendern will, muessen natuerlich auch evtl. Aenderungen in der run_command bei der case-Anweisung gemacht werden.</p>
<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/-1RISV8zx0w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2009/11/23/nagios-und-eventhandler-via-nrpe/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2009/11/23/nagios-und-eventhandler-via-nrpe/</feedburner:origLink></item>
		<item>
		<title>Wann is noch der naechste routinemaessige fsck?</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/eQHx63UA4Lk/</link>
		<comments>http://blog.pregos.info/2009/11/08/wann-is-noch-der-naechste-routinemaessige-fsck/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 19:14:51 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[zeugs]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[dateisystem]]></category>
		<category><![CDATA[fsck]]></category>
		<category><![CDATA[skript]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1769</guid>
		<description><![CDATA[Einige von euch kennen sicherlich das Problem: Ein wichtiges Kernelupdate zwingt zum Reboot der Serverinfrastruktur. Per SSH wird das Update eingespielt und ein Reboot abgesetzt, aber nicht alle Server koennen ueber DRAC-Karten oder Web-KVM ueberwacht werden. Von Zeit zu Zeit bleibt einem das Herz dann stehen wenn ein Server nicht wiederkommt, die Pings kommen zurueck [...]]]></description>
			<content:encoded><![CDATA[<p>Einige von euch kennen sicherlich das Problem: Ein wichtiges Kernelupdate zwingt zum Reboot der Serverinfrastruktur. Per SSH wird das Update eingespielt und ein Reboot abgesetzt, aber nicht alle Server koennen ueber DRAC-Karten oder Web-KVM ueberwacht werden. Von Zeit zu Zeit bleibt einem das Herz dann stehen wenn ein Server nicht wiederkommt, die Pings kommen zurueck mit einem &#8220;Destiniation or Host unreachable&#8221; oder vergleichbar&#8230;<br />
Waerend man seine Jacke anzieht, Schuhe zubindet und parallel dazu fieberhaft ueberlegt was das Problem sein koennte und was da schiefgelaufen ist, schweift auf dem Weg zur Wohnungstuer noch ein letzter Blick zum Monitor und genau in dem Moment geht dann doch gerade der so herbeigesehnte erste Ping durch. Man rennt an den Rechner zurueck, loggt sich per SSH ein, ueberprueft das alles laeuft und waerend der Adrenalinspiegel sinkt kommt einem in den Sinn, dass das nur ein routinemaessiger Dateisystemcheck gewesen sein wird&#8230;</p>
<p>Wann der naechste check ausgefuehrt wird, kann man leicht mit<strong> dumpe2fs</strong> herausfinden. Bin ich aber ehrlich gesagt zu faul zu und vergesse ich auch jedes mal. Darum habe ich mir (nach einem entsprechenden Herzstillstand) ein kleines Skript geschrieben mit dem Namen nextfscheck, was ich unter /usr/local/sbin/ abgelegt habe und das ich vor einem Reboot aufrufen kann um zu wissen ob es einen fsck geben wird oder nicht. Das Skript ist simpel, das Skript ist billig. Als Parameter wird ein gueltiges gemountetes Device angegeben und dann bekomme ich die Info wieviele remounts noch zum naechsten fsck sind, bzw. an welchem Datum der naechste routinemaessige Dateisystemcheck durchgefuehrt wird. Fuer alle die die ebenfalls Interesse an dem Skript haben, hier:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Give information about the next filesystem check </span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># 2009-11-08:	initial Version   / Jan Toenjes &lt;mail@jan-toenjes.de&gt;</span>
<span style="color: #666666; font-style: italic;"># 2009-11-09:    changed dumpe2fs to &quot;tune2fs -l&quot; as suggested by kero / Jan Toenjes &lt;mail@jan-toenjes.de&gt;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;"># check if skript is run as root for tune2fs </span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">id</span> -u<span style="color: #000000; font-weight: bold;">`</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span> 
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;     Usage: $0 /dev/disk&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;     Error: You need to be root to run this skript&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">3</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;"># check if needed programs are installed</span>
<span style="color: #c20cb9; font-weight: bold;">which</span> <span style="color: #c20cb9; font-weight: bold;">bc</span> <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null 
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;    ERROR: Cant find bc&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">3</span>        
<span style="color: #000000; font-weight: bold;">fi</span>        
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;"># check if we got a parameter </span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$1&quot;</span> == <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;     Usage: $0 /dev/disk&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;     Error: You need to give a valid mounted device as parameter i.e. /dev/sda1&quot;</span> 
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">3</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;"># check if the device given as a parameter exists</span>
<span style="color: #007800;">DEVEXIST</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-ir</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;/dev/&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">wc</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #ff0000;">'print $1'</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DEVEXIST</span>&quot;</span> == <span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;     Usage: $0 /dev/disk/&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;     Error: The given parameter  <span style="color: #000099; font-weight: bold;">\&quot;</span>$1<span style="color: #000099; font-weight: bold;">\&quot;</span>  is not a valid mounted device.&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">3</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;"># get remaining mounts</span>
<span style="color: #007800;">MOUNTCOUNT</span>=<span style="color: #000000; font-weight: bold;">`</span>tune2fs <span style="color: #660033;">-l</span> $<span style="color: #000000;">1</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;Mount count:&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #ff0000;">'print $3'</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">MAXIMUMMOUNTCOUNT</span>=<span style="color: #000000; font-weight: bold;">`</span> tune2fs <span style="color: #660033;">-l</span> $<span style="color: #000000;">1</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;Maximum mount count:&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #ff0000;">'print $4'</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">REMAININGMOUNTS</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$MAXIMUMMOUNTCOUNT</span>-<span style="color: #007800;">$MOUNTCOUNT</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">bc</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;"># check if we have a fsck after a specific time value and give wanted information</span>
<span style="color: #007800;">TIMECHECK</span>=<span style="color: #000000; font-weight: bold;">`</span>tune2fs <span style="color: #660033;">-l</span> $<span style="color: #000000;">1</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;Check interval:&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #ff0000;">'print $3'</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TIMECHECK</span>&quot;</span> == <span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;The next filesystem check of $1 will be after another <span style="color: #007800;">$REMAININGMOUNTS</span> mounts.&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">else</span>
  <span style="color: #007800;">NEXTCHECKAFTER</span>=<span style="color: #000000; font-weight: bold;">`</span>tune2fs <span style="color: #660033;">-l</span> $<span style="color: #000000;">1</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;Next check after:&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/Next check after:[ \t]*$//g'</span><span style="color: #000000; font-weight: bold;">`</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;The next filesystem check of $1 will be on <span style="color: #007800;">$NEXTCHECKAFTER</span> or after another <span style="color: #007800;">$REMAININGMOUNTS</span> mounts.&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/eQHx63UA4Lk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2009/11/08/wann-is-noch-der-naechste-routinemaessige-fsck/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2009/11/08/wann-is-noch-der-naechste-routinemaessige-fsck/</feedburner:origLink></item>
		<item>
		<title>DRAC-Karte Passwort via SSH aendern</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/DKjdqkzK22M/</link>
		<comments>http://blog.pregos.info/2009/11/06/drac-karte-passwort-via-ssh-aendern/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 11:27:52 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[Sideblog]]></category>
		<category><![CDATA[DRAC]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1767</guid>
		<description><![CDATA[grad rausgesucht und gemacht und in der GWDG-Wiki dokumentiert.
]]></description>
			<content:encoded><![CDATA[<p>grad rausgesucht und gemacht und in der <a href="http://wiki.gwdg.de/index.php?title=DRAC_Passwort_%C3%A4ndern" target="_blank">GWDG-Wiki dokumentiert</a>.</p>
<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/DKjdqkzK22M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2009/11/06/drac-karte-passwort-via-ssh-aendern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2009/11/06/drac-karte-passwort-via-ssh-aendern/</feedburner:origLink></item>
		<item>
		<title>#ubuntu #mozilla #libnotify</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/uz-T2wDC7XA/</link>
		<comments>http://blog.pregos.info/2009/11/05/ubuntu-mozilla-libnotify/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 10:48:30 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[Sideblog]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zeugs]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1765</guid>
		<description><![CDATA[
firefox: sudo aptitude install firefox-notify
thunderbird: download

]]></description>
			<content:encoded><![CDATA[<ul>
<li>firefox: sudo aptitude install firefox-notify</li>
<li>thunderbird: <a href="https://addons.mozilla.org/en-US/thunderbird/downloads/file/55791/libnotify_popups-0.1.2-fx+tb-linux.xpi" target="_blank">download</a></li>
</ul>
<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/uz-T2wDC7XA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2009/11/05/ubuntu-mozilla-libnotify/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2009/11/05/ubuntu-mozilla-libnotify/</feedburner:origLink></item>
		<item>
		<title>Zeugs: Rythmbox autoaudiosink, NullPointer Luecke</title>
		<link>http://feedproxy.google.com/~r/PregosBlog/~3/JWwyM58j4bA/</link>
		<comments>http://blog.pregos.info/2009/11/04/zeugs-rythmbox-autoaudiosink-nullpointer-luecke/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 19:32:59 +0000</pubDate>
		<dc:creator>prego</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[aktuelles]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[zeugs]]></category>

		<guid isPermaLink="false">http://blog.pregos.info/?p=1763</guid>
		<description><![CDATA[Soundprobleme in Ubuntu 9.10 gehabt. Nach dem Update von 9.04 funktionierte Rythmbox nicht mehr. Fehlermeldung sagte, dass autoaudiosink fehle. Eine automatisch durchgefuehrte Suche brachte keinen Erfolg. Google angerissen und siehe da, Problem bekannt, Problem gebannt:

gconf-editor oeffnen
/system/gstreamer/0.10/default/
audiosink = autoaudiosink
musicaudiosink = autoaudiosink
autoaudiosink  = halaudiosink uid=/org/freedesktop/Hal/devices/pci_8086_27d8_sound_card_0_alsa_playback_0

Ausserdem is heute (mal wieder) eine Null-Pointer Sicherheitsluecke im Kernel aufgetaucht. Fuer [...]]]></description>
			<content:encoded><![CDATA[<p>Soundprobleme in Ubuntu 9.10 gehabt. Nach dem Update von 9.04 funktionierte Rythmbox nicht mehr. Fehlermeldung sagte, dass autoaudiosink fehle. Eine automatisch durchgefuehrte Suche brachte keinen Erfolg. Google angerissen und siehe da, <a href="https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/442157" target="_blank">Problem bekannt</a>, Problem gebannt:</p>
<ul>
<li><em>gconf-editor oeffnen</em></li>
<li><em>/system/gstreamer/0.10/default/</em></li>
<li><em>audiosink = autoaudiosink<br />
musicaudiosink = autoaudiosink<br />
autoaudiosink  = halaudiosink uid=/org/freedesktop/Hal/devices/pci_8086_27d8_sound_card_0_alsa_playback_0</em></li>
</ul>
<p>Ausserdem is heute (mal wieder) eine <a href="http://www.heise.de/newsticker/meldung/Luecke-im-Linux-Kernel-erlaubt-Root-Zugriff-Update-849799.html" target="_blank">Null-Pointer Sicherheitsluecke im Kernel</a> aufgetaucht. Fuer alle von Euch die Mehrbenutzer Debian-Servcr betreuen hier nochmal der bereits bekannte Workaround:</p>
<ul>
<li><em>Pruefen ob verwundbar: <em>cat /proc/sys/vm/mmap_min_add</em>r</em></li>
<li><em>Wenn == 0, dann: </em><em>sysctl -w vm.mmap_min_addr=&#8221;4096&#8243;</em></li>
</ul>
<p>Wenn der Wert &gt; 0 ist, dann is schon alles ok. Weiteres auch beim <a href="http://www.linux-magazin.de/NEWS/Luecke-im-Linux-Kernel-erlaubt-Rechteausweitung" target="_blank">Linux-Magazin</a>&#8230;</p>
<img src="http://feeds.feedburner.com/~r/PregosBlog/~4/JWwyM58j4bA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.pregos.info/2009/11/04/zeugs-rythmbox-autoaudiosink-nullpointer-luecke/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.pregos.info/2009/11/04/zeugs-rythmbox-autoaudiosink-nullpointer-luecke/</feedburner:origLink></item>
	</channel>
</rss>
