<?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>brainknows.de &#187; Ubuntu Archives  :: Blog about My Life, My World and My Universe :: brainknows.de</title>
	<atom:link href="http://www.brainknows.de/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://www.brainknows.de</link>
	<description>Blog about My Life :: My World :: My Universe</description>
	<lastBuildDate>Thu, 12 Jan 2012 07:42:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Avant-Window-Navigator, Mail-Applet und Googlemail-Account</title>
		<link>http://www.brainknows.de/linux/ubuntu/avant-window-navigator-mail-applet-und-googlemail-account-933.html</link>
		<comments>http://www.brainknows.de/linux/ubuntu/avant-window-navigator-mail-applet-und-googlemail-account-933.html#comments</comments>
		<pubDate>Tue, 03 May 2011 14:28:00 +0000</pubDate>
		<dc:creator>brain</dc:creator>
				<category><![CDATA[Tipps]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[11.04]]></category>
		<category><![CDATA[Avant-Window-Navigator]]></category>
		<category><![CDATA[AWN]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[Google Mail]]></category>
		<category><![CDATA[Mail Applet]]></category>
		<category><![CDATA[Natty Narwhal]]></category>

		<guid isPermaLink="false">http://www.brainknows.de/?p=933</guid>
		<description><![CDATA[Hier mal wieder in kurzer Blogeintrag von mir. Ich habe in der vergangenen Woche erfolgreich das Update auf bzw. eher die Neuinstallation von Natty Narwhal hinter mich gebracht. Zunächst muss ich sagen, dass ich mit Unity leider gar nichts anfangen kann. M. E. ist die Oberfläche wirklich weit davon entfernt schön oder praktisch zu sein.&#8230;]]></description>
			<content:encoded><![CDATA[<p>Hier mal wieder in kurzer Blogeintrag von mir.<br />
Ich habe in der vergangenen Woche erfolgreich das Update auf bzw. eher die Neuinstallation von Natty Narwhal hinter mich gebracht. Zunächst muss ich sagen, dass ich mit Unity leider gar nichts anfangen kann. M. E. ist die Oberfläche wirklich weit davon entfernt schön oder praktisch zu sein. Aus diesem Grunde benutze ich weiterhin das normale Gnome, das im Login-Screen per Session-Auswahl als Ubuntu Classic ausgewählt werden kann. </p>
<p>Um mir dennoch ein kleines Feeling von &#8220;Neu&#8221; zu verschaffen, hab ich mir ein neues Icon-Theme und ein neues Gtk-Theme gegönnt. Darüber hinaus habe ich den Avant-Window-Navigator (kurz: AWN) installiert. Hier gibt es nur verschiedene Applets, die man im Dock unterbringen kann. Eines davon ist ein Mail-Applet, das über den Eingang neuer Emails benachrichtigt. Insoweit kann man eine Abfrage per POP vornehmen lassen oder sich mit den Google-Zugangsdaten direkt eine Abfrage bei Google-Mail veranlassen. Jedenfalls sollte das gehen. Leider jedoch, funktionierte die Anmeldung nicht wie erwartet. Sobald ich nach dem Eingeben meiner Zugangsdaten mit Enter bestätigt hatte, erschien erneut das Login-Fenster und forderte zum Eingeben der Zugangsdaten auf.<br />
Nach ein wenig Recherche bin ich auf die Lösung des Problems gestoßen. Das Problem resultiert daraus, dass das Mail-Applet versucht, die Mails per Domain gmail abzuholen. Da dies offensichtlich wegen rechtlicher Hürden aus Deutschland nicht möglich ist, ist die für das Abrufen der Mails verantwortliche Datei wie folgt abzuändern, um meinen Anforderungen (und auch denen anderer)  zu genügen.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>avant-window-navigator<span style="color: #000000; font-weight: bold;">/</span>applets<span style="color: #000000; font-weight: bold;">/</span>mail<span style="color: #000000; font-weight: bold;">/</span>mail.py</div></div>
<p>Dann sucht man nach der Zeile mit folgendem Inhalt</p>
<div class="codecolorer-container python vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">https://%s%%<span style="color: #ff4500;">40</span>%s:%s<span style="color: #66cc66;">@</span>gmail.<span style="color: black;">google</span>.<span style="color: black;">com</span>/a/%s/feed/atom</div></div>
<p>und ändert sie in</p>
<div class="codecolorer-container python vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">https://%s%%<span style="color: #ff4500;">40</span>%s:%s<span style="color: #66cc66;">@</span>mail.<span style="color: black;">google</span>.<span style="color: black;">com</span>/a/%s/feed/atom</div></div>
<p>ab (bei mir Zeile 659). Man entfernt also lediglich ein &#8220;g&#8221; und macht aus &#8220;gmail&#8221; in der URL &#8220;mail&#8221; <img src='http://www.brainknows.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Zum Schluss noch zwei Bildchen, wie das Ergebnis derzeit bei mir ausschaut: </p>
<p>  <div id="attachment_935" class="wp-caption aligncenter" style="width: 310px"><a href="http://cdn5.brainknows.de/2011/05/Bildschirmfoto.png"><img src="http://cdn5.brainknows.de/2011/05/Bildschirmfoto-300x168.png" alt="Ubuntu Natty with AWN" title="Ubuntu Natty with AWN" width="300" height="168" class="size-medium wp-image-935" /></a><p class="wp-caption-text">Ubuntu Natty with AWN</p></div><br />
<div id="attachment_936" class="wp-caption aligncenter" style="width: 310px"><a href="http://cdn5.brainknows.de/2011/05/Bildschirmfoto-1.png"><img src="http://cdn5.brainknows.de/2011/05/Bildschirmfoto-1-300x167.png" alt="Ubuntu Natty with AWN and Mail-Applet" title="Ubuntu Natty with AWN and Mail-Applet" width="300" height="167" class="size-medium wp-image-936" /></a><p class="wp-caption-text">Ubuntu Natty with AWN and Mail-Applet</p></div></p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://www.brainknows.de/howto/integration-von-facebook-twitter-und-studivz-in-bitlbee-783.html" rel="bookmark" title="Permanent Link: Integration von Facebook, Twitter und StudiVZ in Bitlbee">Integration von Facebook, Twitter und StudiVZ in Bitlbee</a></li><li><a href="http://www.brainknows.de/allgemein/tel-domain-137.html" rel="bookmark" title="Permanent Link: Tel-Domain">Tel-Domain</a></li></ul><hr /><small>Copyright &copy; 2008-2010<br />
Die Nutzung dieses Feeds ist zur ausschließlichen privaten, nichtkommerziellen Nutzung gestattet.<br />
Die Nutzung auf anderen Webseiten als des Autors Webseite in Teilen oder ganz stellt eine Verletzung geltenden Urheberrechts dar und wird u. U. zivilrechtlich und/oder strafrechtlich verfolgt werden.<br />(Digital Fingerprint:  59591af35c5dc48841f5603d1d269293 (38.107.179.218) )</small>]]></content:encoded>
			<wfw:commentRss>http://www.brainknows.de/linux/ubuntu/avant-window-navigator-mail-applet-und-googlemail-account-933.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flv2mp3 &#8211; Flv-Videos in Mp3 umwandeln</title>
		<link>http://www.brainknows.de/linux/flv2mp3-flv-videos-in-mp3-umwandeln-892.html</link>
		<comments>http://www.brainknows.de/linux/flv2mp3-flv-videos-in-mp3-umwandeln-892.html#comments</comments>
		<pubDate>Fri, 10 Dec 2010 09:16:03 +0000</pubDate>
		<dc:creator>brain</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bash script]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[flv2mp3]]></category>
		<category><![CDATA[konsole]]></category>
		<category><![CDATA[lame]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[Musik]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Youtube]]></category>

		<guid isPermaLink="false">http://www.brainknows.de/?p=892</guid>
		<description><![CDATA[Mal wieder etwas von mir. Der letzte Eintrag ist ja nun doch schon etwas her. Ich hab (mal wieder) meinen Rechner neu aufgesetzt. Und jedes mal, wenn ich das tue, kommt früher oder später der Zeitpunkt, an dem ich Flv-Videos in mp3s umwandeln möchte. Und zu diesem Zeitpunkt ist regelmäßig auch der Zeitpunkt gekommen, zu&#8230;]]></description>
			<content:encoded><![CDATA[<p>Mal wieder etwas von mir. Der letzte Eintrag ist ja nun doch schon etwas her. </p>
<p>Ich hab (mal wieder) meinen Rechner neu aufgesetzt. Und jedes mal, wenn ich das tue, kommt früher oder später der Zeitpunkt, an dem ich Flv-Videos in mp3s umwandeln möchte. Und zu diesem Zeitpunkt ist regelmäßig auch der Zeitpunkt gekommen, zu welchem ich mich fragen muss: &#8220;wie macht man das denn gleich nochmal?&#8221;. Da ich den Befehl dafür im Terminal nicht so oft verwende, bin ich gezwungen, mich auf die Suche im Internet zu begeben. Diese Suche dauert mal länger, mal weniger länger. Um sie nun gänzlich abzukürzen, hier nun in aller Kürze (mit Würze) das vorgehen: </p>
<p>Zunächst ffmpeg, lame und libavcodec-unstripped-52 installiern:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> libavcodec-unstripped-<span style="color: #000000;">52</span> <span style="color: #c20cb9; font-weight: bold;">lame</span></div></div>
<p>(Bei lame weiß ich nicht genau, ob es installiert sein muss &#8211; schaden tut es jedenfalls nicht).</p>
<p>Fortan kann man aus flv-Videos mp3-Dateien mit folgendem Befehl erstellen :</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-i</span> video.flv <span style="color: #660033;">-ab</span> 192k musik.mp3</div></div>
<p>Hierbei wird eine mp3-Datei mit der Bitrate 192kb/s erzeugt. Andere Bitraten sind natürlich auch möglich. Lässt man den Parameter -b [bitrate] weg, wird eine Datei mit 200 kb/s erstellt. </p>
<p>Damit das Ganze jetzt NOCH einfacher ist, hab ich noch ein entsprechendes Bash-Script gesucht (und gefunden), das ich euch hier auch nicht vorenthalten möchte: </p>
<p><span id="more-892"></span></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<span style="color: #666666; font-style: italic;">#####################</span><br />
<span style="color: #666666; font-style: italic;">## flv2mp3</span><br />
<span style="color: #666666; font-style: italic;">#####################</span><br />
<br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;No input file&quot;</span><br />
&nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Help: $0 -h&quot;</span><br />
&nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span><br />
<span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">in</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">*</span>.flv<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">input</span>=<span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">;;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; -h<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: $0 {inputfile.flv} {outputfile.mp3} {optional-bit-rate}&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;ex: $0 test.flv test.mp3 192&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span><span style="color: #000000; font-weight: bold;">;;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Input file is not flv&quot;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Help: $0 -h&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #7a0874; font-weight: bold;">exit</span><span style="color: #000000; font-weight: bold;">;;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">esac</span><br />
&nbsp; &nbsp; <br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;$2&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;No output file&quot;</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Help: $0 -h&quot;</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span><br />
<span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$2</span> <span style="color: #000000; font-weight: bold;">in</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">*</span>.mp3<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">output</span>=<span style="color: #007800;">$2</span> <span style="color: #000000; font-weight: bold;">;;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">output</span>=<span style="color: #007800;">$2</span><span style="color: #ff0000;">&quot;.mp3&quot;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">esac</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;$3&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #007800;">btr</span>=<span style="color: #ff0000;">&quot;&quot;</span><br />
<span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$3</span> <span style="color: #000000; font-weight: bold;">in</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">!</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">*|</span><span style="color: #ff0000;">&quot;&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Not acceptable Bit Rate&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Help: $0 -h&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #7a0874; font-weight: bold;">exit</span><span style="color: #000000; font-weight: bold;">;;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #007800;">btr</span>=<span style="color: #ff0000;">&quot;-ab $3&quot;</span><span style="color: #ff0000;">&quot;k&quot;</span><span style="color: #000000; font-weight: bold;">;;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">esac</span><br />
<br />
<br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$input</span> <span style="color: #007800;">$btr</span> <span style="color: #007800;">$output</span><br />
<span style="color: #666666; font-style: italic;">#end</span></div></div>
<p>Ich hatte auch andere Scripte gefunden, die haben aber leider nicht bei mir funktioniert.</p>
<p>Einfach eine Datei mit obigem Inhalt (die von mir erstellte Datei heißt sinnigerweise flv2mp3) erstellen und mit chmod +x [datei] ausführbar machen. </p>
<p>Die Anwendung ist dann denkbar einfach:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">.<span style="color: #000000; font-weight: bold;">/</span>flv2mp3 video.flv audio.mp3 <span style="color: #000000;">192</span></div></div>
<p>Der letzte Parameter (die Zahl) gibt dabei die zu verwendende Bitrate an. </p>
<p>Wer das ganze jetzt auch noch systemweit und ohne vorangestelltes ./ ausführen können möchte, muss die Datei in ein Verzeichnis kopieren, das in $PATH enthalten ist. Beispielsweise, wie bei mir, /usr/sbin/:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">cp</span> flv2mp3 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span></div></div>
<p>Beim nächsten Einloggen auf der Konsole, steht das Script dann systemweit zur Verfügung. </p>
<p>Vielen Dank an slapfish<sup><a href="http://www.brainknows.de/linux/flv2mp3-flv-videos-in-mp3-umwandeln-892.html#footnote_0_892" id="identifier_0_892" class="footnote-link footnote-identifier-link" title="http://crunchbanglinux.org/forums/topic/6086/i-just-made-a-silly-script-to-convert-flv-files-to-mp3-using-ffmpeg/ ">1</a></sup>, der dieses Script ursprünglich veröffentlicht hat. </p>
<hr /><small>Copyright &copy; 2008-2010<br />
Die Nutzung dieses Feeds ist zur ausschließlichen privaten, nichtkommerziellen Nutzung gestattet.<br />
Die Nutzung auf anderen Webseiten als des Autors Webseite in Teilen oder ganz stellt eine Verletzung geltenden Urheberrechts dar und wird u. U. zivilrechtlich und/oder strafrechtlich verfolgt werden.<br />(Digital Fingerprint:  59591af35c5dc48841f5603d1d269293 (38.107.179.218) )</small>Quellen:<ol class="footnotes"><li id="footnote_0_892" class="footnote"><a href="http://crunchbanglinux.org/forums/topic/6086/i-just-made-a-silly-script-to-convert-flv-files-to-mp3-using-ffmpeg/">http://crunchbanglinux.org/forums/topic/6086/i-just-made-a-silly-script-to-convert-flv-files-to-mp3-using-ffmpeg/ </a></li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.brainknows.de/linux/flv2mp3-flv-videos-in-mp3-umwandeln-892.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fernbedienung OR23E X10 mit lirc und Ubuntu</title>
		<link>http://www.brainknows.de/allgemein/fernbedienung-or23e-x10-mit-lirc-und-ubuntu-392.html</link>
		<comments>http://www.brainknows.de/allgemein/fernbedienung-or23e-x10-mit-lirc-und-ubuntu-392.html#comments</comments>
		<pubDate>Sun, 21 Mar 2010 14:44:15 +0000</pubDate>
		<dc:creator>brain</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Control]]></category>
		<category><![CDATA[Fernbedienung]]></category>
		<category><![CDATA[LIRC]]></category>
		<category><![CDATA[MCE]]></category>
		<category><![CDATA[Remote]]></category>
		<category><![CDATA[Steuerung]]></category>
		<category><![CDATA[Tool]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VLC]]></category>
		<category><![CDATA[X10]]></category>

		<guid isPermaLink="false">http://www.brainknows.de/?p=392</guid>
		<description><![CDATA[Ich habe hier noch aus Windows-Zeiten eine RF Fernbedienung mit USB-Empfänger rumliegen, die RF MCE Remote Control, Model OR23E von X10. Ich habe mir die Frage gestellt, ob es eventuell möglich ist, diese Fernbedienung auch unter Linux zu nutzen. Wichtig waren mir die Funktionen Lauter/Leiser, Stop, Play und Pause und vor allem die Bedienung von&#8230;]]></description>
			<content:encoded><![CDATA[<p>Ich habe hier noch aus Windows-Zeiten eine RF Fernbedienung mit USB-Empfänger rumliegen, die RF MCE Remote Control, Model OR23E von X10. Ich habe mir die Frage gestellt, ob es eventuell möglich ist, diese Fernbedienung auch unter Linux zu nutzen. Wichtig waren mir die Funktionen Lauter/Leiser, Stop, Play und Pause und vor allem die Bedienung von VLC, wobei ich bei VLC auch in den Vollbildmodus wechseln wollte und das Seitenverhältnis ändern können wollte. Vorweg: das ist mir glücklicherweise gelungen! <img src='http://www.brainknows.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Darüber hinaus ist es möglich, den Computer mit der Fernbedienung runterfahren oder neu starten zu lassen.<br />
Also, was wird benötigt?<br />
Zunächst einmal die o. g. Fernbedienung. </p>
<p><a href="http://cdn5.brainknows.de/2010/03/IMAG0139.jpg"><img src="http://cdn5.brainknows.de/2010/03/IMAG0139-179x300.jpg" alt="" title="IMAG0139" width="179" height="300" class="aligncenter size-medium wp-image-427" /></a><br />
<br class="clear" /></p>
<h3>Model der Fernbedienung in Erfahrung bringen</h3>
<p>Ob es sich insoweit um die gleiche handelt, bringt man wie folgt in Erfahrung:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">ronny@ubuntu:~$ </span>lsusb<br />
Bus 002 Device 002: ID 0bc7:0006 X10 Wireless Technology, Inc. Wireless Transceiver <span style="color: #7a0874; font-weight: bold;">&#40;</span>ACPI-compliant<span style="color: #7a0874; font-weight: bold;">&#41;</span></div></div>
<p>Meine Fernbedigung hat also die ID 0bc7:0006 und die folgenden Ausführungen beziehen sich somit nur auf dieses Model. </p>
<p><br class="clear" /></p>
<h3>Benötigte Pakete</h3>
<p>Benötigt werden die Pakete lirc, lirc-x und xmacro:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> lirc lirc-x xmacro</div></div>
<p>Im darauffolgenden Dialog wählt man ATI/NVidia/X10 RF Remote (userspace) aus und bestätigt mit <strong>Ok</strong>. </p>
<p><a href="http://cdn5.brainknows.de/2010/03/lirc.png"><img src="http://cdn5.brainknows.de/2010/03/lirc.png" alt="" title="lirc" width="475" height="330" class="aligncenter size-full wp-image-398" /></a></p>
<p>Anschließend wird &#8220;None&#8221; ausgewählt und ebenfalls mit <strong>Ok</strong> bestätigt. </p>
<p>Sollte euch ein Fehler unterlaufen sein: Keine Panik! Mit</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> dpkg-reconfigure lirc</div></div>
<p>kann alles neu konfiguriert werden.</p>
<p>Sofern man den RF-USB-Empfänger bereits angeschlossen hatte, muss das dabei geladene Kernelmodul wieder entladen werden, damit es nicht zu Diskrepanzen zwischen diesem und lirc kommt, und danach lirc neugestartet werden:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> rmmod ati_remote<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <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>lirc restart</div></div>
<p>Findet man in älteren Anleitungen noch den Hinweis, man müsse das sooeben entladene Modul in /etc/modprobe.d/blacklist eintragen, so erübrigt sich das ganze nunmehr, weil lirc selbst das Modul unter <strong>/etc/modprobe.d/blacklist-lirc</strong> blacklistet und es somit nicht mehr geladen wird.<br />
<br class="clear" /></p>
<h3>Tasten der Fernbedienung konfigurieren</h3>
<p>Als nächstes müssen die Tasten der Fernbedienung konfiguriert werden. Ich habe für dieses Fernbedieungsmodel vergeblich diverse Konfigurationsdateien ausprobiert. Einige Tasten wurden erkannt, viele aber auch nicht, sodass ich eine eigene Konfigurationsdatei erstellen musste. Dies geschieht wie folgt:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <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>lirc stop<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> irrecord <span style="color: #660033;">-H</span> atilibusb ~<span style="color: #000000; font-weight: bold;">/</span>lircd.conf</div></div>
<p>gegebenenfalls muss noch das Kernelmodul von lirc händisch entladen werden:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> rmmod lirc_atiusb</div></div>
<p>Danach werdet ihr aufgefordert, zunächst irgendeine Taste gedrückt zu halten, was ihr dann natürlich auch tut. Im nächsten Schritt werden die einzelnen Tasten zugewiesen. Zu beachten ist, dass die Tastenbenennung in dieser Konfigurationi nicht frei erfolgen kann. Für die rote Taste auf der Fernbedienung ist es z.B. nicht möglich, sie &#8220;Rote_Taste&#8221; zu nennen.<br />
Stattdessen gibt es einige Vorgaben für die Benennung der Tasten, die mit folgendem Befehl, evtl. in einem weiteren Terminal, aufgerufen werden können:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span>irrecord <span style="color: #660033;">--list-namespace</span></div></div>
<p>So hat in meinem Beispiel zwingend als Benennung für die rote Taste <strong>KEY_RED</strong> zu erfolgen. Für die blaue entsprechend K<strong>EY_BLUE</strong>, für Play <strong>KEY_PLAY</strong> etc.<br />
Solltet ihr eigene Bezeichnungen vornehmen wollen, so muss der Befehl<strong> irrecord</strong> mit dem Parameter <strong>&#8211;disable-namespace</strong> aufgerufen werden:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> irrecord <span style="color: #660033;">-H</span> atilibusb <span style="color: #660033;">--disable-namespace</span> ~<span style="color: #000000; font-weight: bold;">/</span>lircd.conf</div></div>
<p>Nachdem alle Tasten benannt sind, ist die soeben generierte lircd.conf in das richtige Verzeichnis zu kopieren, damit sie von lirc gefunden und auch benutzt wird:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>lirc<span style="color: #000000; font-weight: bold;">/</span>lircd.conf <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>lirc<span style="color: #000000; font-weight: bold;">/</span>lircd.conf.original<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> ~<span style="color: #000000; font-weight: bold;">/</span>lircd.conf <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>lirc<span style="color: #000000; font-weight: bold;">/</span>lircd.conf<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <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>lirc start</div></div>
<p>Wer nunmehr die gleiche Fernbedienung hat wie ich, der könnte theoretisch die von mir bereits erzeugte <a href="http://www.brainknows.de/download/6/">lircd.conf</a> benutzen können.<br />
Datei einfach in einen beliebigen Ordner herunterladen und danach an die richtige Stelle kopieren:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>lirc<span style="color: #000000; font-weight: bold;">/</span>lircd.conf <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>lirc<span style="color: #000000; font-weight: bold;">/</span>lircd.conf.original<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>pfad<span style="color: #000000; font-weight: bold;">/</span>zur<span style="color: #000000; font-weight: bold;">/</span>heruntergeladenen<span style="color: #000000; font-weight: bold;">/</span>lircd.conf <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>lirc<span style="color: #000000; font-weight: bold;">/</span>lircd.conf<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <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>lirc restart</div></div>
<p>Wer nicht meine lircd.conf benutzt, muss darauf achten, dass der Fernbedieungsname in der lircd.conf auch in den weiter unten aufgeführten Dateien wieder auftaucht (bei mir x10_or23e). </p>
<p>Ob die Fernbedienung nun Ordnungsgemäß funktioniert könnt ihr mit dem Befehl <strong>irw</strong> überprüfen.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">ronny@ubuntu:~$ </span>irw<br />
00000014d7020000 03 KEY_POWER x10_or23e<br />
00000014d7020000 04 KEY_POWER x10_or23e<br />
0000001487b20000 03 KEY_RED x10_or23e<br />
0000001487b20000 04 KEY_RED x10_or23e<br />
0000001409340000 03 KEY_YELLOW x10_or23e<br />
0000001409340000 04 KEY_YELLOW x10_or23e<br />
0000001488b30000 03 KEY_GREEN x10_or23e<br />
0000001488b30000 04 KEY_GREEN x10_or23e</div></div>
<p>Jeder Tastendruck sollte dabei eine entsprechende Ausgabe zur Folge haben. </p>
<p><br class="clear" /></p>
<h3>Programme für Lirc konfigurieren </h3>
<p>Lirc ist nun imstande, die Signale der Fernbedienung zu empfangen, weiß diese aber noch nicht zu interpretieren. Es ist nun also geboten, den Tastendrücken auch entsprechende Aktionen zuzuweisen. Diese Zuweisungen erfolgen in der Datei ~/.lircrc.<br />
Im folgenden findet ihr meine Konfigurationen, mit der die Medientasten, vlc und das Herunterfahren des Rechners per Fernbedienung gesteuert werden können. Nähere Informationen zur Tastenbelegung und zur Verwendung von Lirc kann man z.B. im <a href="http://wiki.ubuntuusers.de/Lirc/Tasten_mit_Funktionen_belegen">Ubuntu-Wiki</a> finden, wobei einige Einträge offensichtlich nicht mehr ganz up-to-date sind.<br />
Es sind folgende Dateien zu erstellen:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">~<span style="color: #000000; font-weight: bold;">/</span>.lircrc<br />
~<span style="color: #000000; font-weight: bold;">/</span>.lirc<span style="color: #000000; font-weight: bold;">/</span>mediakeys<br />
~<span style="color: #000000; font-weight: bold;">/</span>.lirc<span style="color: #000000; font-weight: bold;">/</span>vlc<br />
~<span style="color: #000000; font-weight: bold;">/</span>.lirc<span style="color: #000000; font-weight: bold;">/</span>gnome-session-save</div></div>
<p>Wobei deren Inhalte wie folgt aussehen:</p>
<p>a) <strong>~/.lircrc</strong></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#All application specific lircrc files are within ~/.lirc</span><br />
include ~<span style="color: #000000; font-weight: bold;">/</span>.lirc<span style="color: #000000; font-weight: bold;">/</span>mediakeys<br />
include ~<span style="color: #000000; font-weight: bold;">/</span>.lirc<span style="color: #000000; font-weight: bold;">/</span>vlc<br />
<span style="color: #666666; font-style: italic;">### Session</span><br />
begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; prog = irexec<br />
&nbsp; &nbsp; &nbsp; &nbsp; button = KEY_POWER<br />
&nbsp; &nbsp; &nbsp; &nbsp; config = gnome-session-save <span style="color: #660033;">--shutdown-dialog</span> <span style="color: #660033;">--gui</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; mode = gnome-session-save<br />
end<br />
include ~<span style="color: #000000; font-weight: bold;">/</span>.lirc<span style="color: #000000; font-weight: bold;">/</span>gnome-session-save</div></div>
<p>b) <strong>.lirc/mediakeys</strong></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">### MediaKeys</span><br />
begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; prog = irexec<br />
&nbsp; &nbsp; &nbsp; &nbsp; button = KEY_MEDIA<br />
&nbsp; &nbsp; &nbsp; &nbsp; repeat = <span style="color: #000000;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; delay = <span style="color: #000000;">5</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; config = <span style="color: #7a0874; font-weight: bold;">echo</span> KeyStrPress XF86AudioMedia KeyStrRelease XF86AudioMedia <span style="color: #000000; font-weight: bold;">|</span> xmacroplay <span style="color: #007800;">$DISPLAY</span><br />
end<br />
begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; prog = irexec<br />
&nbsp; &nbsp; &nbsp; &nbsp; button = KEY_VOLUMEUP<br />
&nbsp; &nbsp; &nbsp; &nbsp; repeat = <span style="color: #000000;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; delay = <span style="color: #000000;">5</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; config = <span style="color: #7a0874; font-weight: bold;">echo</span> KeyStrPress XF86AudioRaiseVolume KeyStrRelease XF86AudioRaiseVolume <span style="color: #000000; font-weight: bold;">|</span> xmacroplay <span style="color: #007800;">$DISPLAY</span><br />
end<br />
begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; prog = irexec<br />
&nbsp; &nbsp; &nbsp; &nbsp; button = KEY_VOLUMEDOWN<br />
&nbsp; &nbsp; &nbsp; &nbsp; repeat = <span style="color: #000000;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; delay = <span style="color: #000000;">5</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; config = <span style="color: #7a0874; font-weight: bold;">echo</span> KeyStrPress XF86AudioLowerVolume KeyStrRelease XF86AudioLowerVolume <span style="color: #000000; font-weight: bold;">|</span> xmacroplay <span style="color: #007800;">$DISPLAY</span><br />
end<br />
begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; prog = irexec<br />
&nbsp; &nbsp; &nbsp; &nbsp; button = KEY_MUTE<br />
&nbsp; &nbsp; &nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; config = <span style="color: #7a0874; font-weight: bold;">echo</span> KeyStrPress XF86AudioMute KeyStrRelease XF86AudioMute <span style="color: #000000; font-weight: bold;">|</span> xmacroplay <span style="color: #007800;">$DISPLAY</span><br />
end<br />
begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; prog = irexec<br />
&nbsp; &nbsp; &nbsp; &nbsp; button = KEY_PLAY<br />
&nbsp; &nbsp; &nbsp; &nbsp; config = <span style="color: #7a0874; font-weight: bold;">echo</span> KeyStrPress XF86AudioPlay KeyStrRelease XF86AudioPlay <span style="color: #000000; font-weight: bold;">|</span> xmacroplay <span style="color: #007800;">$DISPLAY</span><br />
end<br />
begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; prog = irexec<br />
&nbsp; &nbsp; &nbsp; &nbsp; button = KEY_PAUSE<br />
&nbsp; &nbsp; &nbsp; &nbsp; config = <span style="color: #7a0874; font-weight: bold;">echo</span> KeyStrPress XF86AudioPause KeyStrRelease XF86AudioPause <span style="color: #000000; font-weight: bold;">|</span> xmacroplay <span style="color: #007800;">$DISPLAY</span><br />
end<br />
begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; prog = irexec<br />
&nbsp; &nbsp; &nbsp; &nbsp; button = KEY_NEXT<br />
&nbsp; &nbsp; &nbsp; &nbsp; config = <span style="color: #7a0874; font-weight: bold;">echo</span> KeyStrPress XF86AudioNext KeyStrRelease XF86AudioNext <span style="color: #000000; font-weight: bold;">|</span> xmacroplay <span style="color: #007800;">$DISPLAY</span><br />
end<br />
begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; prog = irexec<br />
&nbsp; &nbsp; &nbsp; &nbsp; button = KEY_PREVIOUS<br />
&nbsp; &nbsp; &nbsp; &nbsp; config = <span style="color: #7a0874; font-weight: bold;">echo</span> KeyStrPress XF86AudioPrev KeyStrRelease XF86AudioPrev <span style="color: #000000; font-weight: bold;">|</span> xmacroplay <span style="color: #007800;">$DISPLAY</span><br />
end<br />
begin<br />
end</div></div>
<p>c)<strong> ~/.lirc/gnome-session-save</strong></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">begin gnome-session-save<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; prog = irxevent<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; button = KEY_UP<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; config = Key Up CurrentWindow<br />
&nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; prog = irxevent<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; button = KEY_DOWN<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; config = Key Down CurrentWindow<br />
&nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; prog = irxevent<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; button = KEY_OK<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; config = Key Return CurrentWindow<br />
&nbsp; &nbsp; &nbsp; &nbsp; end<br />
end gnome-session-save</div></div>
<p>d) ~/.lirc/vlc</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_UP<br />
&nbsp; &nbsp; config = key-nav-up<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_LEFT<br />
&nbsp; &nbsp; config = key-nav-left<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_OK<br />
&nbsp; &nbsp; config = key-nav-activate<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_RIGHT<br />
&nbsp; &nbsp; config = key-nav-right<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_DVD<br />
&nbsp; &nbsp; config = key-disc-menu<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_VOLUMEUP<br />
&nbsp; &nbsp; config = key-vol-up<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_CHANNELUP<br />
&nbsp; &nbsp; config = key-next<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_VOLUMEDOWN<br />
&nbsp; &nbsp; config = key-vol-down<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_MUTE<br />
&nbsp; &nbsp; config = key-vol-mute<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_CHANNELDOWN<br />
&nbsp; &nbsp; config = key-prev<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_REWIND<br />
&nbsp; &nbsp; config = key-slower<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_PLAYPAUSE<br />
&nbsp; &nbsp; config = key-play-pause<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_FORWARD<br />
&nbsp; &nbsp; config = key-faster<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_STOP<br />
&nbsp; &nbsp; config = key-quit<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_PAUSE<br />
&nbsp; &nbsp; config = key-play-pause<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_ENTER<br />
&nbsp; &nbsp; config = key-nav-activate<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_RED<br />
&nbsp; &nbsp; config = key-toggle-fullscreen<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">32</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end<br />
<br />
begin<br />
&nbsp; &nbsp; remote = x10_or23e<br />
&nbsp; &nbsp; prog = vlc<br />
&nbsp; &nbsp; button = KEY_YELLOW <br />
&nbsp; &nbsp; config = key-aspect-ratio<br />
&nbsp; &nbsp; repeat = <span style="color: #000000;">32</span><br />
&nbsp; &nbsp; delay = <span style="color: #000000;">0</span><br />
end</div></div>
<p>Wer möchte, kann die drei Dateien auch einfach von <a href="http://www.brainknows.de/download/7/">hier</a> runterladen und diese benutzen.</p>
<p>Zum Testen der Konfiguration, nach dem Neustart von lirc, kann man</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span>irexec</div></div>
<p>und</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span>irxevent</div></div>
<p>eingeben und sehen, ob die jeweiligen Tasten erkannt werden. </p>
<p>Sollte alles zur vollen Zufriedenheit erkannt worden sein, sind die Daemons wie folgt zu starten:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ irexec <span style="color: #660033;">-d</span><br />
$ irxevent <span style="color: #660033;">-d</span></div></div>
<p><br class="clear" /></p>
<h3>Autostart</h3>
<p>Um die Programme bei jedem Gnome-Start zu starten, sind die Daemons noch zu den Autostartprogrammen unter <strong><em>System &#8212; Einstellungen &#8212; Startprogramme</em></strong> einzutragen. </p>
<p>Damit sollten nun VLC, die Medientasten und das Herunterfahren/Neustarten des Computers funktionieren.</p>
<p>#EOF.</p>
<p>Quellen:<br />
<a href="http://linuxundich.de/de/ubuntu/pc-funkfernbedienung-x10-unter-ubuntu-mit-lirc/">http://linuxundich.de</a></ br><br />
<a href="http://wiki.ubuntuusers.de/Lirc/Tasten_mit_Funktionen_belegen">http://wiki.ubuntuusers.de</a></p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://www.brainknows.de/linux/ubuntu-gpg-error-und-no-pubkey-316.html" rel="bookmark" title="Permanent Link: Ubuntu, GPG-Error und NO PUBKEY">Ubuntu, GPG-Error und NO PUBKEY</a></li><li><a href="http://www.brainknows.de/linux/ubuntu-paketquelle-fuer-opera-96.html" rel="bookmark" title="Permanent Link: Ubuntu Paketquelle fuer Opera">Ubuntu Paketquelle fuer Opera</a></li></ul><hr /><small>Copyright &copy; 2008-2010<br />
Die Nutzung dieses Feeds ist zur ausschließlichen privaten, nichtkommerziellen Nutzung gestattet.<br />
Die Nutzung auf anderen Webseiten als des Autors Webseite in Teilen oder ganz stellt eine Verletzung geltenden Urheberrechts dar und wird u. U. zivilrechtlich und/oder strafrechtlich verfolgt werden.<br />(Digital Fingerprint:  59591af35c5dc48841f5603d1d269293 (38.107.179.218) )</small>]]></content:encoded>
			<wfw:commentRss>http://www.brainknows.de/allgemein/fernbedienung-or23e-x10-mit-lirc-und-ubuntu-392.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ubuntu, GPG-Error und NO PUBKEY</title>
		<link>http://www.brainknows.de/linux/ubuntu-gpg-error-und-no-pubkey-316.html</link>
		<comments>http://www.brainknows.de/linux/ubuntu-gpg-error-und-no-pubkey-316.html#comments</comments>
		<pubDate>Tue, 24 Nov 2009 10:38:44 +0000</pubDate>
		<dc:creator>brain</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[gpg error]]></category>
		<category><![CDATA[no pubkey]]></category>
		<category><![CDATA[Signatur]]></category>
		<category><![CDATA[sources.list]]></category>

		<guid isPermaLink="false">http://www.brainknows.de/?p=316</guid>
		<description><![CDATA[Beim zufügen von fremden Paketquellen in die /etc/apt/sources.list kann es unter Ubuntu zu einem GPG-Fehler kommen, weil der öffentliche Schlüssel dem System noch nicht bekannt ist. Die Fehlermeldung sieht in etwa so aus: GPG error: http://ppa.launchpad.net karmic Release: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY EF4186FE247510BE Abhilfe&#8230;]]></description>
			<content:encoded><![CDATA[<p>Beim zufügen von fremden Paketquellen in die /etc/apt/sources.list kann es unter Ubuntu zu einem GPG-Fehler kommen, weil der öffentliche Schlüssel dem System noch nicht bekannt ist. Die Fehlermeldung sieht in etwa so aus:</p>
<p><em>GPG error: http://ppa.launchpad.net karmic Release: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY EF4186FE247510BE</em><br />
<br class="clear" /><br />
Abhilfe schafft folgendes:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ gpg <span style="color: #660033;">--keyserver</span> hkp:<span style="color: #000000; font-weight: bold;">//</span>subkeys.pgp.net <span style="color: #660033;">--recv-keys</span> KEY<br />
$ gpg <span style="color: #660033;">--export</span> <span style="color: #660033;">--armor</span> KEY <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-key add</span> -</div></div>
<p>Wobei KEY durch den monierten Key (in meinem Beispiel <em>EF4186FE247510BE</em>) ersetzt werden muss.<br />
danach ein</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get update</span></div></div>
<p>und der GPG-Fehler ist verschwunden.</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://www.brainknows.de/linux/ubuntu-paketquelle-fuer-opera-96.html" rel="bookmark" title="Permanent Link: Ubuntu Paketquelle fuer Opera">Ubuntu Paketquelle fuer Opera</a></li><li><a href="http://www.brainknows.de/linux/ubuntu/avant-window-navigator-mail-applet-und-googlemail-account-933.html" rel="bookmark" title="Permanent Link: Avant-Window-Navigator, Mail-Applet und Googlemail-Account">Avant-Window-Navigator, Mail-Applet und Googlemail-Account</a></li></ul><hr /><small>Copyright &copy; 2008-2010<br />
Die Nutzung dieses Feeds ist zur ausschließlichen privaten, nichtkommerziellen Nutzung gestattet.<br />
Die Nutzung auf anderen Webseiten als des Autors Webseite in Teilen oder ganz stellt eine Verletzung geltenden Urheberrechts dar und wird u. U. zivilrechtlich und/oder strafrechtlich verfolgt werden.<br />(Digital Fingerprint:  59591af35c5dc48841f5603d1d269293 (38.107.179.218) )</small>]]></content:encoded>
			<wfw:commentRss>http://www.brainknows.de/linux/ubuntu-gpg-error-und-no-pubkey-316.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Karmic, Networkmanager, Uni Bremen und VPN</title>
		<link>http://www.brainknows.de/allgemein/karmic-networkmanager-uni-bremen-und-vpn-312.html</link>
		<comments>http://www.brainknows.de/allgemein/karmic-networkmanager-uni-bremen-und-vpn-312.html#comments</comments>
		<pubDate>Tue, 17 Nov 2009 08:22:20 +0000</pubDate>
		<dc:creator>brain</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[Karmic]]></category>
		<category><![CDATA[Networkmanager]]></category>
		<category><![CDATA[Uni Bremen]]></category>
		<category><![CDATA[VPN-Geheimnisse]]></category>

		<guid isPermaLink="false">http://www.brainknows.de/2009/11/17/karmic-networkmanager-uni-bremen-und-vpn/</guid>
		<description><![CDATA[Ich sitz grad in der Uni und nach der Neuinstallation des Betriebssystems (jetzt Karmic), wollte ich mich das erste mal mit dem UNI-WLAN verbinden&#8230; Doch welch Ärgernis, der Networkmanager wollte natürlich mal wieder nicht so, wie ich wollte. Alle Daten waren korrekt eingegeben, die Anleitung der Uni-Bremen genauestens befolgt, aber der Networkmanger lieferte mir stets:&#8230;]]></description>
			<content:encoded><![CDATA[<p>Ich sitz grad in der Uni und nach der Neuinstallation des Betriebssystems (jetzt Karmic), wollte ich mich das erste mal mit dem UNI-WLAN verbinden&#8230; Doch welch Ärgernis, der Networkmanager wollte natürlich mal wieder nicht so, wie ich wollte. Alle Daten waren korrekt eingegeben, <a href="http://www.wlan.uni-bremen.de/wlan/pages/ubuntu_9_04_manual_de.php">die Anleitung der Uni-Bremen</a> genauestens befolgt, aber der Networkmanger lieferte mir stets: <br />
<em><br />
&#8220;Die VPN-Verbindung &#8220;Uni-Bremen VPN&#8221; konnte nicht hergestellt werden, weil keine gültigen VPN-Geheimnisse vorliegen.&#8221;</em></p>
<p><em></em>Da fragt man sich, welche Geheimnisse der Networkmanager denn offenbart haben möchter?! <img src='http://www.brainknows.de/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> </p>
<p>Naja, nach ein wenig googlen bin ich dann auf <a href="http://www.linuxlounge.net/index.php/2009/10/weil-keine-gultigen-vpn-geheimnisse-vorliegen/">eine Seite</a> gestoßen, auf der die Lösung präsentiert wurde. Die Lösung ist der Neustart des Networkmanagers:</p>
<p><strong>$ sudo restart network-manager</strong></p>
<p>.. und die VPN-Verbindung lässt sich aufbauen \o/<strong><br />
</strong></p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://www.brainknows.de/allgemein/ubuntu-karmic-koala-virtualbox-und-usb-298.html" rel="bookmark" title="Permanent Link: Ubuntu Karmic Koala, VirtualBox und USB">Ubuntu Karmic Koala, VirtualBox und USB</a></li><li><a href="http://www.brainknows.de/allgemein/ohne-worte-917.html" rel="bookmark" title="Permanent Link: Ohne Worte">Ohne Worte</a></li></ul><hr /><small>Copyright &copy; 2008-2010<br />
Die Nutzung dieses Feeds ist zur ausschließlichen privaten, nichtkommerziellen Nutzung gestattet.<br />
Die Nutzung auf anderen Webseiten als des Autors Webseite in Teilen oder ganz stellt eine Verletzung geltenden Urheberrechts dar und wird u. U. zivilrechtlich und/oder strafrechtlich verfolgt werden.<br />(Digital Fingerprint:  59591af35c5dc48841f5603d1d269293 (38.107.179.218) )</small>]]></content:encoded>
			<wfw:commentRss>http://www.brainknows.de/allgemein/karmic-networkmanager-uni-bremen-und-vpn-312.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

