<?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>treibsand.com &#187; Linux</title>
	<atom:link href="http://www.treibsand.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.treibsand.com</link>
	<description></description>
	<lastBuildDate>Tue, 27 Dec 2011 12:46:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>CentOS als VirtualBox Gast</title>
		<link>http://www.treibsand.com/2010/02/23/centos-als-virtualbox-gast/</link>
		<comments>http://www.treibsand.com/2010/02/23/centos-als-virtualbox-gast/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 11:41:32 +0000</pubDate>
		<dc:creator>Toast</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://www.treibsand.com/?p=465</guid>
		<description><![CDATA[Unter Mac OS X ist VirtualBox wirklich ein sehr gutes Programm. Jedes Betriebssystem lief bisher ohne Probleme als Gast&#8230;naja, bis vor kurzem, als ich CentOS 5.4 installiert habe&#8230; Nach der Installation merkte ich, dass meine CPU immer zwischen 80-90% ausgelastet war, obwohl die VM eine Load von 0 hatte und nichts machte. Es hat mich [...]]]></description>
			<content:encoded><![CDATA[<p style="clear: both;"><a class="image-link" href="http://www.treibsand.com/wp-content/uploads/2010/02/centos_logo_45.png" rel="lightbox[465]"><img class="linked-to-original" style="display: inline; float: right; margin: 0 0 10px 10px;" src="http://www.treibsand.com/wp-content/uploads/2010/02/centos_logo_45-thumb.png" alt="" width="208" height="45" align="right" /></a>Unter Mac OS X ist VirtualBox wirklich ein sehr gutes Programm. Jedes Betriebssystem lief bisher ohne Probleme als Gast&#8230;naja, bis vor kurzem, als ich CentOS 5.4 installiert habe&#8230;</p>
<p style="clear: both;"><!-- more --><span id="more-465"></span><br />
Nach der Installation merkte ich, dass meine CPU immer zwischen 80-90% ausgelastet war, obwohl die VM eine Load von 0 hatte und nichts machte.</p>
<p style="clear: both;">Es hat mich einige Zeit gekostet den Fehler zu finden. Grund hierfür war der Kernel von CentOS, dieser wurde nämlich mit einem internem &#8220;Takt&#8221; von 1000Hz kompiliert. Andere Distributionen verwenden hier noch 100Hz. Dies hatte zur Folge, dass VirtualBox sehr viel zu tun hatte und die CPU im Host-System nahezu ausgelastet war.</p>
<p style="clear: both;">Das Problem kann aber recht einfach gelöst werden, indem der Kernel mit der Option <strong>divider=10 </strong>gebootet wird. Einfach an die Kernel Zeile in der grub.conf hängen und alles läuft.</p>
<p><br class="final-break" style="clear: both;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.treibsand.com/2010/02/23/centos-als-virtualbox-gast/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Medienserver für Playstation 3</title>
		<link>http://www.treibsand.com/2009/02/09/medienserver-fur-playstation-3/</link>
		<comments>http://www.treibsand.com/2009/02/09/medienserver-fur-playstation-3/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 11:11:07 +0000</pubDate>
		<dc:creator>Toast</dc:creator>
				<category><![CDATA[Einfach cool]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MediaTomb]]></category>
		<category><![CDATA[Playstation 3]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[UPnP]]></category>
		<category><![CDATA[uShare]]></category>

		<guid isPermaLink="false">http://www.treibsand.com/?p=246</guid>
		<description><![CDATA[Kaum hab ich Full-HD auf der Xbox mit XBMC am laufen, kauf ich mir eine Playstation 3 und merke, dass die genauso gut als MediaCenter geeignet ist&#8230; Es gibt nur einige Unterschiede, bei XBMC ist es ja eigentlich gedacht, dass die Inhalt auf der XBox selber liegen, es geht aber auch anders. Die Playstation 3 [...]]]></description>
			<content:encoded><![CDATA[<p>Kaum hab ich Full-HD auf der Xbox mit XBMC am laufen, kauf ich mir eine Playstation 3 und merke, dass die genauso gut als MediaCenter geeignet ist&#8230;</p>
<p><span id="more-246"></span><br />
Es gibt nur einige Unterschiede, bei XBMC ist es ja eigentlich gedacht, dass die Inhalt auf der XBox selber liegen, es geht aber auch anders. Die Playstation 3 erwartet einen UPnP MediaServer. Unter Linux/Unix ist das kein großes Problem. In den FreeBSD Ports finden sich z.B. 2 Programme, <a href="http://ushare.geexbox.org">uShare</a> und <a href="http://mediatomb.cc">MediaTomb</a>. Beide Programme machen nichts anderes, als konfigurierte Dateien/Verzeichnisse auf der Festplatte per UPnP im Netzwerk bereitzustellen.</p>
<p>Ich hab mir beide angeschaut, und muss sagen, dass mir uShare mehr zusagt. Hier kann man einfach in der Konfigurationsdatei mehrere Verzeichnisse angeben, welchen dann rekursiv exportiert werden. Fertig. Bei MediaTomb muss man dies über ein Webinterface (welches wirklich hässlich ist) machen, ausserdem braucht MediaTomb noch eine Datenbank, entweder MySQL oder SQLite. Ein weitere Nachteil ist, dass bei MediaTomb nur die Dateien per UPnP bereitgestellt werden, d.h. die Ordnerstruktur ist dann auf der Playstation 3 nicht mehr sichtbar.</p>
<p>Alles ist aber nicht Gold was glänzt&#8230;das hab ich gemerkt, als ich auf der Playstation eine Matroska Datei anschauen wollte. Die Playstation kann das Format nämlich nicht. Hierfür hilft aber ein kleines Shell Script, mit welchem das Video z.B. in AVI umgewandelt werden kann:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/local/bin/bash</span>
&nbsp;
<span style="color: #007800;">INPUT</span>=<span style="color: #ff0000;">&quot;$1&quot;</span>
<span style="color: #007800;">OUTPUT</span>=<span style="color: #ff0000;">&quot;$2&quot;</span>
<span style="color: #007800;">VIDEO_CODEC</span>=<span style="color: #ff0000;">&quot;mpeg2video&quot;</span>
<span style="color: #007800;">VIDEO_FPS</span>=<span style="color: #000000; font-weight: bold;">`</span>mkvinfo <span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-A</span> <span style="color: #000000;">10</span> <span style="color: #ff0000;">'Codec ID: V_MPEG4'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-w</span> fps <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $6}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span><span style="color: #ff0000;">'('</span> -f2<span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
mkvinfo <span style="color: #007800;">$INPUT</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-qE</span> <span style="color: #ff0000;">'Codec ID.*DTS'</span>
&nbsp;
<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;">-eq</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: #007800;">AUDIO_CODEC</span>=<span style="color: #ff0000;">&quot;ac3&quot;</span>
  <span style="color: #007800;">AUDIO_BITRATE</span>=<span style="color: #ff0000;">&quot;-ab 640k&quot;</span>
  <span style="color: #007800;">AUDIO_FREQ</span>=<span style="color: #ff0000;">&quot;-ar 48000&quot;</span>
  <span style="color: #007800;">AUDIO_CHANNELS</span>=<span style="color: #ff0000;">&quot;-ac 6&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
  <span style="color: #007800;">AUDIO_CODEC</span>=<span style="color: #ff0000;">&quot;copy&quot;</span>
  <span style="color: #007800;">AUDIO_BITRATE</span>=<span style="color: #ff0000;">&quot;&quot;</span>
  <span style="color: #007800;">AUDIO_FREQ</span>=<span style="color: #ff0000;">&quot;&quot;</span>
  <span style="color: #007800;">AUDIO_CHANNELS</span>=<span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #007800;">FORMAT</span>=<span style="color: #ff0000;">&quot;dvd&quot;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-threads</span> <span style="color: #000000;">8</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${INPUT}</span>&quot;</span> <span style="color: #660033;">-vcodec</span> <span style="color: #800000;">${VIDEO_CODEC}</span> \
  <span style="color: #660033;">-r</span> <span style="color: #800000;">${VIDEO_FPS}</span> <span style="color: #660033;">-sameq</span> <span style="color: #660033;">-acodec</span> <span style="color: #007800;">$AUDIO_CODEC</span> <span style="color: #007800;">$AUDIO_BITRATE</span> <span style="color: #007800;">$AUDIO_FREQ</span> <span style="color: #007800;">$AUDIO_CHANNELS</span> \
  <span style="color: #660033;">-scodec</span> copy <span style="color: #660033;">-f</span> <span style="color: #800000;">${FORMAT}</span> - <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${OUTPUT}</span>&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null</pre></div></div>

<p>Hierfür braucht man mkvtoolnix und ffmpeg. Im Großen und Ganzen muss ich aber sagen, meine XBox wird bald entsorgt. Wieso soll ich auch 2 Konsolen rumstehen haben, wenn alles auch die Playstation kann?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.treibsand.com/2009/02/09/medienserver-fur-playstation-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ProFTP mit SQLite Backend</title>
		<link>http://www.treibsand.com/2006/08/03/proftp-mit-sqlite-backend/</link>
		<comments>http://www.treibsand.com/2006/08/03/proftp-mit-sqlite-backend/#comments</comments>
		<pubDate>Thu, 03 Aug 2006 21:28:38 +0000</pubDate>
		<dc:creator>Toast</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ProFTP]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://test.treibsand.com/2009/01/15/proftp-mit-sqlite-backend/</guid>
		<description><![CDATA[Was tun, wenn man einige User für einen FTP Server hat, allerdings keine Systembenutzer einrichten möchte? Der freie FTP Server ProFTP unterstützt zwar MySQL Und PostgreSQL Backends, aber die sind gar nicht nötig, wenn es nur um eine Handvoll von Benutzern geht. Da ProFTP selber über eine Modul Schnittstelle verfügt ist es kein Problem diese [...]]]></description>
			<content:encoded><![CDATA[<p>Was tun, wenn man einige User für einen FTP Server hat, allerdings keine Systembenutzer einrichten möchte? Der freie FTP Server ProFTP unterstützt zwar MySQL Und PostgreSQL Backends, aber die sind gar nicht nötig, wenn es nur um eine Handvoll von Benutzern geht.</p>
<p><span id="more-9"></span><br />
Da ProFTP selber über eine Modul Schnittstelle verfügt ist es kein Problem diese Funktionalität einzubauen. Unter http://www.castaglia.org/proftpd/modules/mod_sql_sqlite.html gibt es genau für diesen Fall ein passendes Modul <img src='http://www.treibsand.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Sobald das Modul mit einkompiliert ist, kann das Backend in der proftpd.conf wie folgt angesprochen werden:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>IfModule mod_sql_sqlite.c<span style="color: #000000; font-weight: bold;">&gt;</span>
  SQLConnectInfo <span style="color: #000000; font-weight: bold;">/</span>pfad<span style="color: #000000; font-weight: bold;">/</span>zu<span style="color: #000000; font-weight: bold;">/</span>ftpd.db
<span style="color: #000000; font-weight: bold;">&lt;/</span>IfModule<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Mehr ist für die Verbindung zur Datenbank nicht nötig. Da ProFTP selber schon eine Schnittstelle für SQL hat, kann die Abfrage der Benutzer mit mod_sql gemacht werden. Eine Anleitung hierfür ist unter http://www.castaglia.org/proftpd/modules/mod_sql.html zu finden.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.treibsand.com/2006/08/03/proftp-mit-sqlite-backend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mehrere Monitore mit Synergy</title>
		<link>http://www.treibsand.com/2006/04/02/mehrere-monitore-mit-synergy/</link>
		<comments>http://www.treibsand.com/2006/04/02/mehrere-monitore-mit-synergy/#comments</comments>
		<pubDate>Sun, 02 Apr 2006 20:13:39 +0000</pubDate>
		<dc:creator>Toast</dc:creator>
				<category><![CDATA[Einfach cool]]></category>
		<category><![CDATA[KVM]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Synergy]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://test.treibsand.com/?p=3</guid>
		<description><![CDATA[Wie kann man mehrere Rechner gleichzeitig betreiben, ohne mehrere Tastaturen und Mäuse? Teure KVM Hardware Lösungen habe auch ihre Grenzen, ausserdem muss man meistens irgendeinen Schalter auf der Box betätigen, um die Systeme umzuschalten. Und was ist, wenn man alle Systeme gleichzeitig sehen will?  Als ich mir vor einiger Zeit meinen ersten Mac kaufte, stand [...]]]></description>
			<content:encoded><![CDATA[<p>Wie kann man mehrere Rechner gleichzeitig betreiben, ohne mehrere Tastaturen und Mäuse? Teure KVM Hardware Lösungen habe auch ihre Grenzen, ausserdem muss man meistens irgendeinen Schalter auf der Box betätigen, um die Systeme umzuschalten. Und was ist, wenn man alle Systeme gleichzeitig sehen will? </p>
<p><span id="more-3"></span><br />
Als ich mir vor einiger Zeit meinen ersten Mac kaufte, stand ich vor einem kleinem Problem. Ich hatte bisher 2 Rechner und 2 TFTs. Ein Rechner war eine Unix Maschine, welche beide TFTs fuer Dual-Head benutzte. Der Zweite war Windows zum spielen. Beide Rechner haben sich den 1. TFT, Maus und Tastatur über einen KVM Switch geteilt. Nur der 2. TFT wir direkt in den Unix Rechner angeschlossen. Da der Mac mini keinen 2. Video Ausgang hatte, musste ich natürlich mein Dual-Head aufgeben. Der KVM Switch kam aber auch nicht mehr in Frage, da ich ja dann einen Monitor übrig hätte. Also begab ich mich auf die Suche <img src='http://www.treibsand.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<p>Schliesslich entdeckte ich das Programm <a href="http://synergy2.sourceforge.net/" target="_blank">Synergy</a>. Hierbei handelt es sich um eine Software KVM Lösung. Der Trick bei der Sache ist, dass es komplett übers Netzwerk funktioniert. Vorraussetzung ist, dass jeder Rechner einen eigenen Monitor hat. Ein Rechner dient als Server, zu welchem sich alle Clients verbinden und das Signal für Maus und Tastatur bekommen. Es ist absolut belanglos wieviel Rechner sich an den Server anmelden. Bei mir ist Synergy so konfiguriert, dass der linke TFT Mac OSX ist und der Rechte Windows. Ein Umschalten, wie bei herkömmlichen KVM Lösungen gibt es hier nicht. Wenn ich auf den Windows Rechner will, ziehe ich einfach die Maus im OSX ganz nach rechts, der Zeiger springt automatisch auf den Windows Desktop (!). Es ist, als ob Windows und OSX miteinander verschmälzen und ein System werden <img src='http://www.treibsand.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<p>Das ganze ist natürlich nicht nur auf Windows bzw. Mac OSX beschrängt. Synergy unterstützt ausserdem noch alle gängigen Unix und Linux Systeme. Was noch recht interessant ist, ist die Tatsache, dass man zwischen den Systemen sogar Cut-N-Paste machen kann. </p>
<p>Hier nun meine Konfiguration als Beispiel:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">section: screens
        mac:
        windows:
end
&nbsp;
section: links
        mac:
                right = windows
        windows:
                left = mac
end
&nbsp;
section: options
        keystroke<span style="color: #7a0874; font-weight: bold;">&#40;</span>control+left<span style="color: #7a0874; font-weight: bold;">&#41;</span> = switchInDirection<span style="color: #7a0874; font-weight: bold;">&#40;</span>left<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        keystroke<span style="color: #7a0874; font-weight: bold;">&#40;</span>control+right<span style="color: #7a0874; font-weight: bold;">&#41;</span> = switchInDirection<span style="color: #7a0874; font-weight: bold;">&#40;</span>right<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        keystroke<span style="color: #7a0874; font-weight: bold;">&#40;</span>control+f12,toggle<span style="color: #7a0874; font-weight: bold;">&#41;</span> = lockCursorToScreen
        relativeMouseMoves = <span style="color: #c20cb9; font-weight: bold;">true</span>
end</pre></div></div>

<p>Dies definiert 2 Computer, links der Mac mini, und rechts der Windows Rechner. Es gibt zusätzlich noch ein paar Shortcuts, CTRL-left, um per Tastatur auf den linken Rechner zu wechseln und CTRL-right für die andere Richtung. Ausserdem ist CTRL-F12 noch definiert, dies sperrt den aktuellen Bildschirm, damit die Maus nicht auf das andere System wechseln kann. Würde ich jedem empfehlen, der Spiele spielt <img src='http://www.treibsand.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.treibsand.com/2006/04/02/mehrere-monitore-mit-synergy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

