<?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>Linux für alle &#187; CLI</title>
	<atom:link href="http://www.simplylinux.ch/category/command-line-interface/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simplylinux.ch</link>
	<description>Jeder kann Linux beherrschen lernen...</description>
	<lastBuildDate>Sat, 19 Nov 2011 17:37:37 +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>rTorrent SVN mit Colour Patch und ruTorrent kompilieren unter Ubuntu 10.10 Maverick Meerkat / Debian 6 Squeeze</title>
		<link>http://www.simplylinux.ch/rtorrent-svn-mit-colour-patch-und-rutorrent-kompilieren-unter-ubuntu-10-10-maverick-meerkat-debian-6-squeeze</link>
		<comments>http://www.simplylinux.ch/rtorrent-svn-mit-colour-patch-und-rutorrent-kompilieren-unter-ubuntu-10-10-maverick-meerkat-debian-6-squeeze#comments</comments>
		<pubDate>Sun, 27 Feb 2011 19:39:05 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[Benutzer]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Debian 6]]></category>
		<category><![CDATA[Maverick Meerkat]]></category>
		<category><![CDATA[rtorrent]]></category>
		<category><![CDATA[rutorrent]]></category>
		<category><![CDATA[Squeeze]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[Ubuntu 10.10]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/?p=384</guid>
		<description><![CDATA[rTorrent ist ein genialer Bittorrent Client. Es basiert auf ncurses und wird normalerweise über die Command Line aus gesteuert. Gegenüber anderen Clients wie Vuze ist er auch wenig speicherintensiv. Es gibt zwar verschiedene Web Interfaces, aber ich benutze keine davon. rTorrent in Screen mit SSH Zugriff ist alles was ich brauche. Zusätzlich zu den vorherigen [...]]]></description>
			<content:encoded><![CDATA[<p>rTorrent ist ein genialer Bittorrent Client. Es basiert auf ncurses und wird normalerweise über die Command Line aus gesteuert. Gegenüber anderen Clients wie Vuze ist er auch wenig speicherintensiv. Es gibt zwar verschiedene Web Interfaces, aber ich benutze keine davon. rTorrent in Screen mit SSH Zugriff ist alles was ich brauche.</p>
<p>Zusätzlich zu den vorherigen Howtos zeige ich nun auch auf, wie man zu rTorrent auch noch das ruTorrent Webinterface via Apache SSL zum laufen bringt &#8211; natürlich geschützt mit einem Passwort.</p>
<p>Diese Howto gilt sowohl für Ubuntu Lucid 10.10 Maverick Meerkat wie auch Debian 6 Squeeze. Der einzige Unterschied liegt darin, dass Ubuntu <em>sudo</em> benutzt und alles was mit <em>sudo</em> bezeichnet wird, muss unter Debian als <em>root</em> ausgeführt werden.</p>
<p>Zusätzlich gehe ich davon aus, dass der Sourcecode in folgendes Verzeichnis heruntergeladen wird: <em>>~/svn/rtorrent</em></p>
<p><span id="more-384"></span></p>
<h2>1. Bisherige rTorrent Version entfernen</h2>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> remove rtorrent libtorrent<span class="sy0">*</span></pre></div></div>
<h2>2. Notwendige Pakete installieren</h2>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> build-essential <span class="kw2">autoconf</span> apache2 <span class="kw2">automake</span> libtool libncurses5-dev libncursesw5-dev libcurl4-openssl-dev <span class="kw2">screen</span> openssl php5 php5-cli libapache2-mod-php5 curl libcppunit-dev libsigc++-<span class="nu0">2.0</span>-dev subversion php5-cgi libapache2-mod-scgi</pre></div></div>
<h2>3. SVN Verzeichnis erstellen</h2>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">mkdir</span> ~<span class="sy0">/</span><span class="kw2">svn</span></pre></div></div>
<h2>4. Ins SVN Verzeichnis wechseln</h2>
<p><div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> ~<span class="sy0">/</span><span class="kw2">svn</span></pre></div></div><br />
<em>Pfad: /home/USER/svn</em></p>
<h2>5. Den Sourcecode für xmlrpc herunterladen</h2>
<p><div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdt_5" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_5"></a><a id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">svn</span> <span class="kw2">co</span> https:<span class="sy0">//</span>xmlrpc-c.svn.sourceforge.net<span class="sy0">/</span>svnroot<span class="sy0">/</span>xmlrpc-c<span class="sy0">/</span>advanced<span class="sy0">/</span> xmlrpc-c</pre></div></div><br />
Aktuelle xmlrcp Revision: 2090</p>
<h2>6. Ins xmlrpc-c Verzeichnis wechseln</h2>
<p><div id="wpshdo_6" class="wp-synhighlighter-outer"><div id="wpshdt_6" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_6"></a><a id="wpshat_6" class="wp-synhighlighter-title" href="#codesyntax_6"  onClick="javascript:wpsh_toggleBlock(6)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_6" onClick="javascript:wpsh_code(6)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_6" onClick="javascript:wpsh_print(6)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_6" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> xmlrpc-c</pre></div></div><br />
<em>Pfad: /home/USER/svn/xmlrpc-c</em></p>
<h2>7. xmlrpc-c konfigurieren</h2>
<div id="wpshdo_7" class="wp-synhighlighter-outer"><div id="wpshdt_7" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_7"></a><a id="wpshat_7" class="wp-synhighlighter-title" href="#codesyntax_7"  onClick="javascript:wpsh_toggleBlock(7)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_7" onClick="javascript:wpsh_code(7)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_7" onClick="javascript:wpsh_print(7)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_7" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>configure <span class="re5">--disable-cplusplus</span></pre></div></div>
<h2>8. xmlrpc-c kompilieren</h2>
<div id="wpshdo_8" class="wp-synhighlighter-outer"><div id="wpshdt_8" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_8"></a><a id="wpshat_8" class="wp-synhighlighter-title" href="#codesyntax_8"  onClick="javascript:wpsh_toggleBlock(8)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_8" onClick="javascript:wpsh_code(8)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_8" onClick="javascript:wpsh_print(8)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_8" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">make</span></pre></div></div>
<h2>9. xmlrpc-c installieren</h2>
<div id="wpshdo_9" class="wp-synhighlighter-outer"><div id="wpshdt_9" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_9"></a><a id="wpshat_9" class="wp-synhighlighter-title" href="#codesyntax_9"  onClick="javascript:wpsh_toggleBlock(9)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_9" onClick="javascript:wpsh_code(9)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_9" onClick="javascript:wpsh_print(9)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_9" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">make</span> <span class="kw2">install</span></pre></div></div>
<h2>10. rTorrent Verzeichnis erstellen</h2>
<div id="wpshdo_10" class="wp-synhighlighter-outer"><div id="wpshdt_10" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_10"></a><a id="wpshat_10" class="wp-synhighlighter-title" href="#codesyntax_10"  onClick="javascript:wpsh_toggleBlock(10)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_10" onClick="javascript:wpsh_code(10)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_10" onClick="javascript:wpsh_print(10)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_10" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">mkdir</span> ~<span class="sy0">/</span>svn<span class="sy0">/</span>rtorrent</pre></div></div>
<h2>11. Ins rTorrent Verzeichnis wechseln</h2>
<p><div id="wpshdo_11" class="wp-synhighlighter-outer"><div id="wpshdt_11" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_11"></a><a id="wpshat_11" class="wp-synhighlighter-title" href="#codesyntax_11"  onClick="javascript:wpsh_toggleBlock(11)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_11" onClick="javascript:wpsh_code(11)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_11" onClick="javascript:wpsh_print(11)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_11" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> ~<span class="sy0">/</span>svn<span class="sy0">/</span>rtorrent</pre></div></div><br />
<em>Pfad: /home/USER/svn/rtorrent</em></p>
<h2>12. rTorrent Sourcecode herunterladen</h2>
<p><div id="wpshdo_12" class="wp-synhighlighter-outer"><div id="wpshdt_12" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_12"></a><a id="wpshat_12" class="wp-synhighlighter-title" href="#codesyntax_12"  onClick="javascript:wpsh_toggleBlock(12)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_12" onClick="javascript:wpsh_code(12)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_12" onClick="javascript:wpsh_print(12)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_12" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">svn</span> <span class="kw2">co</span> <span class="kw2">svn</span>:<span class="sy0">//</span>rakshasa.no<span class="sy0">/</span>libtorrent<span class="sy0">/</span>trunk</pre></div></div><br />
Aktuelle rTorrent Revision: 1191</p>
<h2>13. Ins trunk Verzeichnis wechseln</h2>
<p><div id="wpshdo_13" class="wp-synhighlighter-outer"><div id="wpshdt_13" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_13"></a><a id="wpshat_13" class="wp-synhighlighter-title" href="#codesyntax_13"  onClick="javascript:wpsh_toggleBlock(13)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_13" onClick="javascript:wpsh_code(13)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_13" onClick="javascript:wpsh_print(13)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_13" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> trunk</pre></div></div><br />
<em>Pfad: /home/USER/svn/rtorrent/trunk</em></p>
<h2>14. Patche herunterladen</h2>
<p>Colour Patch:<br />
<div id="wpshdo_14" class="wp-synhighlighter-outer"><div id="wpshdt_14" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_14"></a><a id="wpshat_14" class="wp-synhighlighter-title" href="#codesyntax_14"  onClick="javascript:wpsh_toggleBlock(14)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_14" onClick="javascript:wpsh_code(14)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_14" onClick="javascript:wpsh_print(14)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_14" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">wget</span> http:<span class="sy0">//</span>www.simplylinux.ch<span class="sy0">/</span>rtorrent<span class="sy0">/</span>canvas-color_1191.patch</pre></div></div><br />
Dieser Patch färbt die Torrent Files je nach deren Status (unvollständig, komplett, aktiv, inaktiv). Der Patch kam ursprünglich von <a target="_blank" href="http://libtorrent.rakshasa.no/ticket/1382">hier</a>, ich habe ihn aber an die aktuelle rTorrent Version angepasst.<br />
Torrent Tracker Stats:<br />
<div id="wpshdo_15" class="wp-synhighlighter-outer"><div id="wpshdt_15" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_15"></a><a id="wpshat_15" class="wp-synhighlighter-title" href="#codesyntax_15"  onClick="javascript:wpsh_toggleBlock(15)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_15" onClick="javascript:wpsh_code(15)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_15" onClick="javascript:wpsh_print(15)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_15" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">wget</span> http:<span class="sy0">//</span>www.simplylinux.ch<span class="sy0">/</span>rtorrent<span class="sy0">/</span>trackerinfo.patch</pre></div></div><br />
Dieser Patch zeigt in der Tracker View an, wieviele Leute diesen Torrent ziehen. Allerdings sind die Stats sehr unzuverlässig aber es gibt doch eine gewisse Idee. Ich benutz es hauptsächlich um zu sehen welcher Tracker hat überhaupt irgendwelche Peers.</p>
<h2>15. Patches hinzufügen</h2>
<p>Colour Patch:<br />
<div id="wpshdo_16" class="wp-synhighlighter-outer"><div id="wpshdt_16" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_16"></a><a id="wpshat_16" class="wp-synhighlighter-title" href="#codesyntax_16"  onClick="javascript:wpsh_toggleBlock(16)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_16" onClick="javascript:wpsh_code(16)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_16" onClick="javascript:wpsh_print(16)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_16" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">patch</span> <span class="re5">-p0</span> <span class="sy0">&lt;</span> canvas-color_1191.patch</pre></div></div></p>
<p>Torrent Tracker Stats Patch:<br />
<div id="wpshdo_17" class="wp-synhighlighter-outer"><div id="wpshdt_17" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_17"></a><a id="wpshat_17" class="wp-synhighlighter-title" href="#codesyntax_17"  onClick="javascript:wpsh_toggleBlock(17)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_17" onClick="javascript:wpsh_code(17)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_17" onClick="javascript:wpsh_print(17)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_17" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">patch</span> <span class="re5">-p0</span> <span class="sy0">&lt;</span> trackerinfo.patch</pre></div></div></p>
<h2>16. Ins libtorrent Verzeichnis wechseln</h2>
<p><div id="wpshdo_18" class="wp-synhighlighter-outer"><div id="wpshdt_18" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_18"></a><a id="wpshat_18" class="wp-synhighlighter-title" href="#codesyntax_18"  onClick="javascript:wpsh_toggleBlock(18)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_18" onClick="javascript:wpsh_code(18)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_18" onClick="javascript:wpsh_print(18)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_18" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> libtorrent</pre></div></div><br />
<em>Pfad: /home/USER/svn/rtorrent/trunk/libtorrent</em></p>
<h2>17. autogen.sh Script laufen lassen</h2>
<div id="wpshdo_19" class="wp-synhighlighter-outer"><div id="wpshdt_19" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_19"></a><a id="wpshat_19" class="wp-synhighlighter-title" href="#codesyntax_19"  onClick="javascript:wpsh_toggleBlock(19)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_19" onClick="javascript:wpsh_code(19)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_19" onClick="javascript:wpsh_print(19)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_19" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>autogen.sh</pre></div></div>
<h2>18. libtorrent konfigurieren</h2>
<div id="wpshdo_20" class="wp-synhighlighter-outer"><div id="wpshdt_20" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_20"></a><a id="wpshat_20" class="wp-synhighlighter-title" href="#codesyntax_20"  onClick="javascript:wpsh_toggleBlock(20)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_20" onClick="javascript:wpsh_code(20)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_20" onClick="javascript:wpsh_print(20)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_20" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>configure</pre></div></div>
<h2>19. libtorrent kompilieren</h2>
<div id="wpshdo_21" class="wp-synhighlighter-outer"><div id="wpshdt_21" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_21"></a><a id="wpshat_21" class="wp-synhighlighter-title" href="#codesyntax_21"  onClick="javascript:wpsh_toggleBlock(21)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_21" onClick="javascript:wpsh_code(21)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_21" onClick="javascript:wpsh_print(21)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_21" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">make</span></pre></div></div>
<h2>20. libtorrent installieren</h2>
<div id="wpshdo_22" class="wp-synhighlighter-outer"><div id="wpshdt_22" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_22"></a><a id="wpshat_22" class="wp-synhighlighter-title" href="#codesyntax_22"  onClick="javascript:wpsh_toggleBlock(22)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_22" onClick="javascript:wpsh_code(22)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_22" onClick="javascript:wpsh_print(22)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_22" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">make</span> <span class="kw2">install</span></pre></div></div>
<h2>21. /etc/ld.so.conf erweitern</h2>
<div id="wpshdo_23" class="wp-synhighlighter-outer"><div id="wpshdt_23" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_23"></a><a id="wpshat_23" class="wp-synhighlighter-title" href="#codesyntax_23"  onClick="javascript:wpsh_toggleBlock(23)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_23" onClick="javascript:wpsh_code(23)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_23" onClick="javascript:wpsh_print(23)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_23" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">echo</span> <span class="st0">&quot;include /usr/local/lib&quot;</span> <span class="sy0">|</span> <span class="kw2">sudo</span> <span class="kw2">tee</span> <span class="re5">-a</span> <span class="sy0">/</span>etc<span class="sy0">/</span>ld.so.conf</pre></div></div>
<h2>22. ld.so cache updaten</h2>
<div id="wpshdo_24" class="wp-synhighlighter-outer"><div id="wpshdt_24" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_24"></a><a id="wpshat_24" class="wp-synhighlighter-title" href="#codesyntax_24"  onClick="javascript:wpsh_toggleBlock(24)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_24" onClick="javascript:wpsh_code(24)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_24" onClick="javascript:wpsh_print(24)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_24" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> ldconfig</pre></div></div>
<h2>23. Ins rTorrent Verzeichnis wechseln</h2>
<p><div id="wpshdo_25" class="wp-synhighlighter-outer"><div id="wpshdt_25" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_25"></a><a id="wpshat_25" class="wp-synhighlighter-title" href="#codesyntax_25"  onClick="javascript:wpsh_toggleBlock(25)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_25" onClick="javascript:wpsh_code(25)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_25" onClick="javascript:wpsh_print(25)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_25" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> ..<span class="sy0">/</span>rtorrent</pre></div></div><br />
<em>Pfad: /home/USER/svn/rtorrent/trunk/rtorrent</em></p>
<h2>24. autogen.sh Script laufen lassen</h2>
<div id="wpshdo_26" class="wp-synhighlighter-outer"><div id="wpshdt_26" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_26"></a><a id="wpshat_26" class="wp-synhighlighter-title" href="#codesyntax_26"  onClick="javascript:wpsh_toggleBlock(26)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_26" onClick="javascript:wpsh_code(26)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_26" onClick="javascript:wpsh_print(26)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_26" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>autogen.sh</pre></div></div>
<h2>25. rTorrent konfigurieren</h2>
<div id="wpshdo_27" class="wp-synhighlighter-outer"><div id="wpshdt_27" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_27"></a><a id="wpshat_27" class="wp-synhighlighter-title" href="#codesyntax_27"  onClick="javascript:wpsh_toggleBlock(27)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_27" onClick="javascript:wpsh_code(27)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_27" onClick="javascript:wpsh_print(27)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_27" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>configure <span class="re5">--with-xmlrpc-c</span></pre></div></div>
<h2>26. rTorrent kompilieren</h2>
<div id="wpshdo_28" class="wp-synhighlighter-outer"><div id="wpshdt_28" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_28"></a><a id="wpshat_28" class="wp-synhighlighter-title" href="#codesyntax_28"  onClick="javascript:wpsh_toggleBlock(28)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_28" onClick="javascript:wpsh_code(28)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_28" onClick="javascript:wpsh_print(28)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_28" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">make</span></pre></div></div>
<h2>27. rTorrent installieren</h2>
<div id="wpshdo_29" class="wp-synhighlighter-outer"><div id="wpshdt_29" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_29"></a><a id="wpshat_29" class="wp-synhighlighter-title" href="#codesyntax_29"  onClick="javascript:wpsh_toggleBlock(29)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_29" onClick="javascript:wpsh_code(29)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_29" onClick="javascript:wpsh_print(29)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_29" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">make</span> <span class="kw2">install</span></pre></div></div>
<h2>28. rTorrent config Datei kopieren und erweitern</h2>
<p>Falls noch keine .rtorrent.rc Datei im Homeverzeichnis vorhanden, dann zuerst die Standard config Datei kopieren:<br />
<div id="wpshdo_30" class="wp-synhighlighter-outer"><div id="wpshdt_30" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_30"></a><a id="wpshat_30" class="wp-synhighlighter-title" href="#codesyntax_30"  onClick="javascript:wpsh_toggleBlock(30)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_30" onClick="javascript:wpsh_code(30)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_30" onClick="javascript:wpsh_print(30)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_30" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">cp</span> ~<span class="sy0">/</span>subversion<span class="sy0">/</span>rtorrent<span class="sy0">/</span>trunk<span class="sy0">/</span>rtorrent<span class="sy0">/</span>doc<span class="sy0">/</span>rtorrent.rc ~<span class="sy0">/</span>.rtorrent.rc</pre></div></div><br />
Damit ruTorrent und und der Colour Patch funktionieren, müssen in paar Optionen zur rTorrent config (am Ende) hinzugefügt werden:<br />
<div id="wpshdo_31" class="wp-synhighlighter-outer"><div id="wpshdt_31" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_31"></a><a id="wpshat_31" class="wp-synhighlighter-title" href="#codesyntax_31"  onClick="javascript:wpsh_toggleBlock(31)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_31" onClick="javascript:wpsh_code(31)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_31" onClick="javascript:wpsh_print(31)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_31" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="re2">http_capath</span>=<span class="sy0">/</span>etc<span class="sy0">/</span>ssl<span class="sy0">/</span>certs
scgi_port = 127.0.0.1:<span class="nu0">5000</span>
encoding_list = UTF-<span class="nu0">8</span>
<span class="co0"># Color / Canvas patch</span>
done_fg_color = <span class="nu0">2</span>
<span class="co0">#done_bg_color = 2</span>
active_fg_color = <span class="nu0">1</span>
<span class="co0">#active_bg_color = 4</span></pre></div></div><br />
Zusätzlich empfehle ich noch folgendes hinzu zufügen<br />
<div id="wpshdo_32" class="wp-synhighlighter-outer"><div id="wpshdt_32" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_32"></a><a id="wpshat_32" class="wp-synhighlighter-title" href="#codesyntax_32"  onClick="javascript:wpsh_toggleBlock(32)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_32" onClick="javascript:wpsh_code(32)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_32" onClick="javascript:wpsh_print(32)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_32" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">schedule = filter_active,<span class="nu0">10</span>,<span class="nu0">10</span>,<span class="st0">&quot;view_filter = active,<span class="es1">\&quot;</span>or={d.get_up_rate=,d.get_down_rate=}<span class="es1">\&quot;</span>&quot;</span>
view_sort_new = seeding,<span class="kw2">less</span>=d.get_message=
schedule = filter_seeding,<span class="nu0">30</span>,<span class="nu0">30</span>,<span class="st0">&quot;view_filter = seeding,d.get_message=; view_sort = seeding&quot;</span></pre></div></div><br />
Der erste Befehal ändert Ansicht 9 so, dass nur noch aktive Torrents (also Torrents wo es gerade up/download gibt) angezeigt werden. view_sort und der zweite schedule Befehl ändert die Ansicht 8 in solch einem Ausmass, dass nur noch Torrents mit &#8220;ungewöhnlichen&#8221; Trackermeldungen erscheinen. Dies vereinfacht es Torrents aufzuspüren, die z.B. gelöscht worden sind.</p>
<p>Ebenfalls ist es wichtig, dass ein Download und Session Verzeichnis angelegt wird. In der Standard Config einfach die Optionen aktivieren, den Pfad setzen und die Verzeichnisse lokal kreieren.</p>
<p>Weitere nützliche Infos und Möglichkeiten können auf der <a target="http://libtorrent.rakshasa.no/wiki/RTorrentCommonTasks">Common Tasks</a> Seite abgerufen werden. Vorallem die Sektion bezüglich Watch Directories and Move on Completion sind interessant.</p>
<h2>29. rTorrent starten</h2>
<p>Nun kann rTorrent gestartet werden &#8211; am beesten in einer Screen Session:<br />
<div id="wpshdo_33" class="wp-synhighlighter-outer"><div id="wpshdt_33" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_33"></a><a id="wpshat_33" class="wp-synhighlighter-title" href="#codesyntax_33"  onClick="javascript:wpsh_toggleBlock(33)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_33" onClick="javascript:wpsh_code(33)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_33" onClick="javascript:wpsh_print(33)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_33" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">screen</span> rtorrent</pre></div></div></p>
<h2>30. SSL Zertifikat kreieren</h2>
<div id="wpshdo_34" class="wp-synhighlighter-outer"><div id="wpshdt_34" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_34"></a><a id="wpshat_34" class="wp-synhighlighter-title" href="#codesyntax_34"  onClick="javascript:wpsh_toggleBlock(34)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_34" onClick="javascript:wpsh_code(34)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_34" onClick="javascript:wpsh_print(34)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_34" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> openssl req $<span class="sy0">@</span> <span class="re5">-new</span> <span class="re5">-x509</span> <span class="re5">-days</span> 365 <span class="re5">-nodes</span> <span class="re5">-out</span> <span class="sy0">/</span>etc<span class="sy0">/</span>apache2<span class="sy0">/</span>apache.pem <span class="re5">-keyout</span> <span class="sy0">/</span>etc<span class="sy0">/</span>apache2<span class="sy0">/</span>apache.pem</pre></div></div>
<h2>31. Ins Webverzeichnis wechseln</h2>
<p><div id="wpshdo_35" class="wp-synhighlighter-outer"><div id="wpshdt_35" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_35"></a><a id="wpshat_35" class="wp-synhighlighter-title" href="#codesyntax_35"  onClick="javascript:wpsh_toggleBlock(35)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_35" onClick="javascript:wpsh_code(35)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_35" onClick="javascript:wpsh_print(35)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_35" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> <span class="sy0">/</span>var<span class="sy0">/</span>www</pre></div></div><br />
<em>Pfad: /var/www</em></p>
<h2>32. ruTorrent herunterladen</h2>
<div id="wpshdo_36" class="wp-synhighlighter-outer"><div id="wpshdt_36" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_36"></a><a id="wpshat_36" class="wp-synhighlighter-title" href="#codesyntax_36"  onClick="javascript:wpsh_toggleBlock(36)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_36" onClick="javascript:wpsh_code(36)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_36" onClick="javascript:wpsh_print(36)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_36" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">wget</span> http:<span class="sy0">//</span>rutorrent.googlecode.com<span class="sy0">/</span>files<span class="sy0">/</span>rutorrent-3.2.tar.gz</pre></div></div>
<h2>33. ruTorrent entpacken</h2>
<div id="wpshdo_37" class="wp-synhighlighter-outer"><div id="wpshdt_37" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_37"></a><a id="wpshat_37" class="wp-synhighlighter-title" href="#codesyntax_37"  onClick="javascript:wpsh_toggleBlock(37)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_37" onClick="javascript:wpsh_code(37)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_37" onClick="javascript:wpsh_print(37)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_37" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">tar</span> xvzf rutorrent-3.2.tar.gz</pre></div></div>
<h2>34. Ins ruTorrent Verzeichnis wechseln</h2>
<p><div id="wpshdo_38" class="wp-synhighlighter-outer"><div id="wpshdt_38" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_38"></a><a id="wpshat_38" class="wp-synhighlighter-title" href="#codesyntax_38"  onClick="javascript:wpsh_toggleBlock(38)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_38" onClick="javascript:wpsh_code(38)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_38" onClick="javascript:wpsh_print(38)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_38" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> rutorrent</pre></div></div><br />
<em>Pfad: /var/www/rutorrent</em></p>
<h2>35. .htaccess Datei kreieren</h2>
<div id="wpshdo_39" class="wp-synhighlighter-outer"><div id="wpshdt_39" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_39"></a><a id="wpshat_39" class="wp-synhighlighter-title" href="#codesyntax_39"  onClick="javascript:wpsh_toggleBlock(39)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_39" onClick="javascript:wpsh_code(39)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_39" onClick="javascript:wpsh_print(39)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_39" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">touch</span> .htaccess</pre></div></div>
<h2>36. .htaccess chmodden</h2>
<div id="wpshdo_40" class="wp-synhighlighter-outer"><div id="wpshdt_40" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_40"></a><a id="wpshat_40" class="wp-synhighlighter-title" href="#codesyntax_40"  onClick="javascript:wpsh_toggleBlock(40)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_40" onClick="javascript:wpsh_code(40)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_40" onClick="javascript:wpsh_print(40)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_40" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">chmod</span> 0755 .htaccess</pre></div></div>
<h2>36. .htaccess editieren</h2>
<p>Das folgende in die .htaccess einfügen:<br />
<div id="wpshdo_41" class="wp-synhighlighter-outer"><div id="wpshdt_41" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_41"></a><a id="wpshat_41" class="wp-synhighlighter-title" href="#codesyntax_41"  onClick="javascript:wpsh_toggleBlock(41)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_41" onClick="javascript:wpsh_code(41)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_41" onClick="javascript:wpsh_print(41)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_41" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">RewriteEngine On
RewriteCond <span class="sy0">%</span><span class="br0">&#123;</span>HTTPS<span class="br0">&#125;</span> off
RewriteRule <span class="br0">&#40;</span>.<span class="sy0">*</span><span class="br0">&#41;</span> https:<span class="sy0">//%</span><span class="br0">&#123;</span>HTTP_HOST<span class="br0">&#125;</span><span class="sy0">%</span><span class="br0">&#123;</span>REQUEST_URI<span class="br0">&#125;</span></pre></div></div></p>
<h2>34. in ruTorrent Konfigurationsverzeichnis wechseln</h2>
<p><div id="wpshdo_42" class="wp-synhighlighter-outer"><div id="wpshdt_42" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_42"></a><a id="wpshat_42" class="wp-synhighlighter-title" href="#codesyntax_42"  onClick="javascript:wpsh_toggleBlock(42)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_42" onClick="javascript:wpsh_code(42)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_42" onClick="javascript:wpsh_print(42)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_42" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> conf</pre></div></div><br />
<em>Pfad: /var/www/rutorrent/conf</em></p>
<h2>35. config.php editieren</h2>
<p>Folgendes:<br />
<div id="wpshdo_43" class="wp-synhighlighter-outer"><div id="wpshdt_43" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_43"></a><a id="wpshat_43" class="wp-synhighlighter-title" href="#codesyntax_43"  onClick="javascript:wpsh_toggleBlock(43)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_43" onClick="javascript:wpsh_code(43)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_43" onClick="javascript:wpsh_print(43)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_43" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="re1">$XMLRPCMountPoint</span> = <span class="st0">&quot;/RPC2&quot;</span>;</pre></div></div></p>
<p>mit dem ersetzen:<br />
<div id="wpshdo_44" class="wp-synhighlighter-outer"><div id="wpshdt_44" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_44"></a><a id="wpshat_44" class="wp-synhighlighter-title" href="#codesyntax_44"  onClick="javascript:wpsh_toggleBlock(44)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_44" onClick="javascript:wpsh_code(44)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_44" onClick="javascript:wpsh_print(44)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_44" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="re1">$XMLRPCMountPoint</span> = <span class="st0">&quot;/rutorrent/RPC2&quot;</span>;</pre></div></div></p>
<h2>36. ruTorrent chownen</h2>
<div id="wpshdo_45" class="wp-synhighlighter-outer"><div id="wpshdt_45" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_45"></a><a id="wpshat_45" class="wp-synhighlighter-title" href="#codesyntax_45"  onClick="javascript:wpsh_toggleBlock(45)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_45" onClick="javascript:wpsh_code(45)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_45" onClick="javascript:wpsh_print(45)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_45" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">chown</span> <span class="re5">-R</span> www-data:www-data <span class="sy0">/</span>var<span class="sy0">/</span>www<span class="sy0">/</span>rutorrent</pre></div></div>
<h2>37. Apache Module aktivieren</h2>
<div id="wpshdo_46" class="wp-synhighlighter-outer"><div id="wpshdt_46" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_46"></a><a id="wpshat_46" class="wp-synhighlighter-title" href="#codesyntax_46"  onClick="javascript:wpsh_toggleBlock(46)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_46" onClick="javascript:wpsh_code(46)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_46" onClick="javascript:wpsh_print(46)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_46" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> a2enmod ssl auth_digest scgi rewrite</pre></div></div>
<h2>38. apache2.conf erweitern</h2>
<div id="wpshdo_47" class="wp-synhighlighter-outer"><div id="wpshdt_47" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_47"></a><a id="wpshat_47" class="wp-synhighlighter-title" href="#codesyntax_47"  onClick="javascript:wpsh_toggleBlock(47)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_47" onClick="javascript:wpsh_code(47)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_47" onClick="javascript:wpsh_print(47)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_47" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">echo</span> <span class="st0">&quot;SCGIMount /rutorrent/RPC2 127.0.0.1:5000&quot;</span> <span class="sy0">|</span> <span class="kw2">sudo</span> <span class="kw2">tee</span> <span class="re5">-a</span> <span class="sy0">/</span>etc<span class="sy0">/</span>apache2<span class="sy0">/</span>apache2.conf
<span class="kw3">echo</span> <span class="st0">&quot;servername localhost&quot;</span> <span class="sy0">|</span> <span class="kw2">sudo</span> <span class="kw2">tee</span> <span class="re5">-a</span> <span class="sy0">/</span>etc<span class="sy0">/</span>apache2<span class="sy0">/</span>apache2.conf</pre></div></div>
<h2>39. Ins sites-enabled Apache Verzeichnis wechseln</h2>
<p><div id="wpshdo_48" class="wp-synhighlighter-outer"><div id="wpshdt_48" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_48"></a><a id="wpshat_48" class="wp-synhighlighter-title" href="#codesyntax_48"  onClick="javascript:wpsh_toggleBlock(48)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_48" onClick="javascript:wpsh_code(48)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_48" onClick="javascript:wpsh_print(48)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_48" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> <span class="sy0">/</span>etc<span class="sy0">/</span>apache2<span class="sy0">/</span>sites-enabled</pre></div></div><br />
<em>Pfad: /etc/apache2/sites-enabled</em></p>
<h2>40. 000-default editieren</h2>
<p>Nach folgendem</p>
<p><div id="wpshdo_49" class="wp-synhighlighter-outer"><div id="wpshdt_49" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_49"></a><a id="wpshat_49" class="wp-synhighlighter-title" href="#codesyntax_49"  onClick="javascript:wpsh_toggleBlock(49)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_49" onClick="javascript:wpsh_code(49)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_49" onClick="javascript:wpsh_print(49)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_49" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="sy0">&lt;</span>Directory <span class="sy0">/</span>var<span class="sy0">/</span>www<span class="sy0">/&gt;</span>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        <span class="sy0">&lt;/</span>Directory<span class="sy0">&gt;</span></pre></div></div><br />
das hier einfügen:<br />
<div id="wpshdo_50" class="wp-synhighlighter-outer"><div id="wpshdt_50" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_50"></a><a id="wpshat_50" class="wp-synhighlighter-title" href="#codesyntax_50"  onClick="javascript:wpsh_toggleBlock(50)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_50" onClick="javascript:wpsh_code(50)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_50" onClick="javascript:wpsh_print(50)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_50" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="sy0">&lt;</span>Directory <span class="sy0">/</span>var<span class="sy0">/</span>www<span class="sy0">/</span>rutorrent<span class="sy0">/&gt;</span>
                AllowOverride All
                Order allow,deny
                allow from all
        <span class="sy0">&lt;/</span>Directory<span class="sy0">&gt;</span></pre></div></div><br />
Dies stellt sicher, dass die .htaccess beachtet wird und somit eine Umleitung auf HTTPS/SSL erfolgt, wenn dies nicht so eingegeben wurde.</p>
<h2>41. 000-default editieren</h2>
<p>Immer noch die 000-default Datei editieren und folgendes am Schluss einfügen:<br />
<div id="wpshdo_51" class="wp-synhighlighter-outer"><div id="wpshdt_51" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_51"></a><a id="wpshat_51" class="wp-synhighlighter-title" href="#codesyntax_51"  onClick="javascript:wpsh_toggleBlock(51)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_51" onClick="javascript:wpsh_code(51)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_51" onClick="javascript:wpsh_print(51)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_51" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="sy0">&lt;</span>VirtualHost <span class="sy0">*</span>:<span class="nu0">443</span><span class="sy0">&gt;</span>
        ServerAdmin webmaster<span class="sy0">@</span>localhost
        SSLEngine on
        SSLCertificateFile <span class="sy0">/</span>etc<span class="sy0">/</span>apache2<span class="sy0">/</span>apache.pem
        DocumentRoot <span class="sy0">/</span>var<span class="sy0">/</span>www<span class="sy0">/</span>
        <span class="sy0">&lt;</span>Directory <span class="sy0">/&gt;</span>
                Options FollowSymLinks
                AllowOverride None
        <span class="sy0">&lt;/</span>Directory<span class="sy0">&gt;</span>
        <span class="sy0">&lt;</span>Directory <span class="sy0">/</span>var<span class="sy0">/</span>www<span class="sy0">/&gt;</span>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        <span class="sy0">&lt;/</span>Directory<span class="sy0">&gt;</span>
        ScriptAlias <span class="sy0">/</span>cgi-bin<span class="sy0">/</span> <span class="sy0">/</span>usr<span class="sy0">/</span>lib<span class="sy0">/</span>cgi-bin<span class="sy0">/</span>
        <span class="sy0">&lt;</span>Directory <span class="st0">&quot;/usr/lib/cgi-bin&quot;</span><span class="sy0">&gt;</span>
                AllowOverride None
                Options +ExecCGI <span class="re5">-MultiViews</span> +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        <span class="sy0">&lt;/</span>Directory<span class="sy0">&gt;</span>
        ErrorLog <span class="sy0">/</span>var<span class="sy0">/</span>log<span class="sy0">/</span>apache2<span class="sy0">/</span>error.log
        <span class="co0"># Possible values include: debug, info, notice, warn, error, crit,</span>
        <span class="co0"># alert, emerg.</span>
        LogLevel warn
        CustomLog <span class="sy0">/</span>var<span class="sy0">/</span>log<span class="sy0">/</span>apache2<span class="sy0">/</span>access.log combined
    Alias <span class="sy0">/</span>doc<span class="sy0">/</span> <span class="st0">&quot;/usr/share/doc/&quot;</span>
    <span class="sy0">&lt;</span>Directory <span class="st0">&quot;/usr/share/doc/&quot;</span><span class="sy0">&gt;</span>
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0<span class="sy0">/</span>255.0.0.0 ::<span class="nu0">1</span><span class="sy0">/</span><span class="nu0">128</span>
    <span class="sy0">&lt;/</span>Directory<span class="sy0">&gt;</span>
    <span class="sy0">&lt;</span>Location <span class="sy0">/</span>rutorrent<span class="sy0">&gt;</span>
        AuthType Digest
        AuthName <span class="st0">&quot;rtorrent&quot;</span>
        AuthDigestDomain <span class="sy0">/</span>var<span class="sy0">/</span>www<span class="sy0">/</span>rutorrent<span class="sy0">/</span> http:<span class="sy0">//</span>SERVER_IP<span class="sy0">/</span>rutorrent
        AuthDigestProvider <span class="kw2">file</span>
        AuthUserFile <span class="sy0">/</span>etc<span class="sy0">/</span>apache2<span class="sy0">/</span>passwords
        Require valid-user
        SetEnv R_ENV <span class="st0">&quot;/var/www/rutorrent&quot;</span>
     <span class="sy0">&lt;/</span>Location<span class="sy0">&gt;</span>
<span class="sy0">&lt;/</span>VirtualHost<span class="sy0">&gt;</span></pre></div></div><br />
SERVER_IP mit der korrekten IP Adresse des Servers ersetzen.</p>
<h2>42. Benutzer zu authdigest hinzufügen</h2>
<p><div id="wpshdo_52" class="wp-synhighlighter-outer"><div id="wpshdt_52" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_52"></a><a id="wpshat_52" class="wp-synhighlighter-title" href="#codesyntax_52"  onClick="javascript:wpsh_toggleBlock(52)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_52" onClick="javascript:wpsh_code(52)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_52" onClick="javascript:wpsh_print(52)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_52" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> htdigest <span class="re5">-c</span> <span class="sy0">/</span>etc<span class="sy0">/</span>apache2<span class="sy0">/</span>passwords rtorrent USER</pre></div></div><br />
Anstelle von USER den gewünschten Benutzernamen eingeben, danach erfolgt die Aufforderung zur Eingabe eines Passwortes sowie der Bestätigung des Passworts.</p>
<h2>43. Apache neustarten</h2>
<p><div id="wpshdo_53" class="wp-synhighlighter-outer"><div id="wpshdt_53" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_53"></a><a id="wpshat_53" class="wp-synhighlighter-title" href="#codesyntax_53"  onClick="javascript:wpsh_toggleBlock(53)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_53" onClick="javascript:wpsh_code(53)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_53" onClick="javascript:wpsh_print(53)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_53" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> service apache2 restart</pre></div></div><br />
Debian Benutzer müssen wie folgt Apache neustarten:<br />
<div id="wpshdo_54" class="wp-synhighlighter-outer"><div id="wpshdt_54" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_54"></a><a id="wpshat_54" class="wp-synhighlighter-title" href="#codesyntax_54"  onClick="javascript:wpsh_toggleBlock(54)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_54" onClick="javascript:wpsh_code(54)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_54" onClick="javascript:wpsh_print(54)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_54" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="sy0">/</span>etc<span class="sy0">/</span>init.d<span class="sy0">/</span>apache2 restart</pre></div></div></p>
<h2>44. Ausprobieren</h2>
<p>rTorrent müsste bereits laufen &#8211; falls nicht, rTorrent starten. Danach auf dem Server das ruTorrent Verzeichnis aufrufen.<br />
<div id="wpshdo_55" class="wp-synhighlighter-outer"><div id="wpshdt_55" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_55"></a><a id="wpshat_55" class="wp-synhighlighter-title" href="#codesyntax_55"  onClick="javascript:wpsh_toggleBlock(55)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_55" onClick="javascript:wpsh_code(55)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_55" onClick="javascript:wpsh_print(55)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_55" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">http:<span class="sy0">//</span>SERVER_IP<span class="sy0">/</span>rutorrent</pre></div></div><br />
Es wird automatisch von HTTP auf HTTPS umgeleitet und es erfolgt eine Warnung wegen dem selbst-generierten SSL-Zertifikat. Das Zertifikat akzeptieren und dann mit dem erstellten Benutzer einloggen.</p>
<h2>Enjoy</h2>
<div id="attachment_391" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.simplylinux.ch/wp-content/uploads/rtorrent_rutorrent.png"><img src="http://www.simplylinux.ch/wp-content/uploads/rtorrent_rutorrent-300x232.png" alt="rTorrent mit Farbinterface und ruTorrent" title="rTorrent mit Farbinterface und ruTorrent" width="300" height="232" class="size-medium wp-image-391" /></a><p class="wp-caption-text">rTorrent mit Farbinterface und ruTorrent</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/rtorrent-svn-mit-colour-patch-und-rutorrent-kompilieren-unter-ubuntu-10-10-maverick-meerkat-debian-6-squeeze/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PDF Passwort Management unter Linux &#8211; wie entferne ich das Passwort</title>
		<link>http://www.simplylinux.ch/pdf-passwort-management-unter-linux-wie-entferne-ich-das-passwort</link>
		<comments>http://www.simplylinux.ch/pdf-passwort-management-unter-linux-wie-entferne-ich-das-passwort#comments</comments>
		<pubDate>Thu, 24 Jun 2010 07:31:27 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[password removal]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[pdf password]]></category>
		<category><![CDATA[pdftk]]></category>
		<category><![CDATA[qpds]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/?p=360</guid>
		<description><![CDATA[Ich habe beim Ausländeramt St. Gallen Akteneinsicht in einen Fall beantragt. Vorbildlich haben die die ganzen Akten online. Nur das dumme es, es braucht drei verschiedene Passwörter. Ein Passwort um sich zuerst auf der Plattform authentifizieren zu können. Dann ein zweites Passwort um die PDFs herunter zu laden und schlussendlich noch ein drittes Passwort um [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe beim Ausländeramt St. Gallen Akteneinsicht in einen Fall beantragt. Vorbildlich haben die die ganzen Akten online. Nur das dumme es, es braucht drei verschiedene Passwörter. Ein Passwort um sich zuerst auf der Plattform authentifizieren zu können. Dann ein zweites Passwort um die PDFs herunter zu laden und schlussendlich noch ein drittes Passwort um das PDF überhaupt öffnen zu können. Aus der Perspektive &#8220;Sicherheit&#8221; ist das sicherlich interessant. Allerdings finde ich die drei Passwörter ein bisschen Overkill.</p>
<p>Da es mir zu lästig ist, jedesmal das Passwort einzugeben wenn ich das PDF öffnen will, habe ich mich mal umgeschaut wie man diese Problem beseitigt. Gut, ich könnte natürlich in Okular das Passwort speichern lassen, aber das ist nicht wirklich mein gewünschtes Ziel.</p>
<p>Ich bin dabei auf zwei Tools gestossen, die dabei behilflich sind.</p>
<p><span id="more-360"></span></p>
<h2>pdftk</h2>
<p>pdftk hat mir schon <a href="http://www.simplylinux.ch/pdfs-zusammenfuegen-splitten-via-command-line">hier</a> gute Dienste erwiesen und bietet ausser das Passwort Remove Funktion noch vieles andere an.</p>
<p>Nachfolgend der Code wie man das Passwort entfernen kann:</p>
<div id="wpshdo_56" class="wp-synhighlighter-outer"><div id="wpshdt_56" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_56"></a><a id="wpshat_56" class="wp-synhighlighter-title" href="#codesyntax_56"  onClick="javascript:wpsh_toggleBlock(56)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_56" onClick="javascript:wpsh_code(56)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_56" onClick="javascript:wpsh_print(56)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_56" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">pdftk INPUT.pdf input_pw PASSWORD output OUTPUT.pdf</pre></div></div>
<p>Hiermit wird das INPUT.pdf eingelesen und kann mit dem PASSWORT geöffnet werden und wird sodann als OUTPUT.pdf gespeichert. Allerdings wird dazu das Owner Passwort gebraucht und nicht nur das Benutzer Passwort. Das Ausländeramt St. Gallen gibt freundlicherweise das Owner Passwort bekannt und somit funktioniert pdftk gut.</p>
<h2>QPDF</h2>
<p>QPDF ist ein anderes PDF Tool welches auch Passwörter entfernen kann. Der Vorteil davon ist, dass es kein Java benötigt und eigentlich auch alle anderen PDF Attribute beibehält. Auch hier ist das Passwort entfernen denkbar einfach:</p>
<div id="wpshdo_57" class="wp-synhighlighter-outer"><div id="wpshdt_57" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_57"></a><a id="wpshat_57" class="wp-synhighlighter-title" href="#codesyntax_57"  onClick="javascript:wpsh_toggleBlock(57)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_57" onClick="javascript:wpsh_code(57)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_57" onClick="javascript:wpsh_print(57)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_57" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">qpdf <span class="re5">--password</span>=PASSWORD <span class="re5">--decrypt</span> INPUT.pdf OUTPUT.pdf</pre></div></div>
<p>Die Syntax dürfte auch leicht verständlich sein.</p>
<h2>Fazit</h2>
<p>Ich habe mit qpdf nicht so grosse Erfahrung, soweit ich es aber gebraucht habe scheint es zuverlässig zu sein. Dennoch bevorzuge ich pdftk, da ich das Programm einfach besser kenne.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/pdf-passwort-management-unter-linux-wie-entferne-ich-das-passwort/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PDFs zusammenfügen / splitten via Command Line</title>
		<link>http://www.simplylinux.ch/pdfs-zusammenfuegen-splitten-via-command-line</link>
		<comments>http://www.simplylinux.ch/pdfs-zusammenfuegen-splitten-via-command-line#comments</comments>
		<pubDate>Tue, 04 May 2010 07:46:14 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[combine]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[pdf combine]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/?p=334</guid>
		<description><![CDATA[Ab und zu muss ich verschiedene PDFs in ein Dokument zusammen fügen oder auch wieder teilen. Allerdings gibt es, nach meinem Wissensstand, keine guten OpenSource Gui Tools. Wer hingegen von der Command Line nicht abgeschreckt wird, kann dies mit einfachen Mitteln bewerkstelligen. Ghostscript Mit Ghostscript kann man einfach mehrere PDFs zusammen fügen. Dies dazu einfach [...]]]></description>
			<content:encoded><![CDATA[<p>Ab und zu muss ich verschiedene PDFs in ein Dokument zusammen fügen oder auch wieder teilen. Allerdings gibt es, nach meinem Wissensstand, keine guten OpenSource Gui Tools. Wer hingegen von der Command Line nicht abgeschreckt wird, kann dies mit einfachen Mitteln bewerkstelligen.</p>
<p><span id="more-334"></span></p>
<h2>Ghostscript</h2>
<p>Mit Ghostscript kann man einfach mehrere PDFs zusammen fügen. Dies dazu einfach folgenden Befehl eingeben:<br />
<div id="wpshdo_58" class="wp-synhighlighter-outer"><div id="wpshdt_58" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_58"></a><a id="wpshat_58" class="wp-synhighlighter-title" href="#codesyntax_58"  onClick="javascript:wpsh_toggleBlock(58)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_58" onClick="javascript:wpsh_code(58)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_58" onClick="javascript:wpsh_print(58)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_58" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">gs</span> <span class="re5">-dNOPAUSE</span> <span class="re5">-sDEVICE</span>=pdfwrite <span class="re5">-sOUTPUTFILE</span>=combined.pdf <span class="re5">-dBATCH</span> 1.pdf 2.pdf 3.pdf</pre></div></div><br />
Dies würde die Dateien 1.pdf 2.pdf 3.pdf zusammenführen und neu combined.pdf erschaffen.<br />
Allerdings muss dazu zuerst Ghostscript installiert werden:<br />
<div id="wpshdo_59" class="wp-synhighlighter-outer"><div id="wpshdt_59" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_59"></a><a id="wpshat_59" class="wp-synhighlighter-title" href="#codesyntax_59"  onClick="javascript:wpsh_toggleBlock(59)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_59" onClick="javascript:wpsh_code(59)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_59" onClick="javascript:wpsh_print(59)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_59" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> <span class="kw2">gs</span></pre></div></div></p>
<p>Wenn man das häufiger gebrauchen möchte, dann kann man auch ein Shell Script errichten:<br />
<div id="wpshdo_60" class="wp-synhighlighter-outer"><div id="wpshdt_60" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_60"></a><a id="wpshat_60" class="wp-synhighlighter-title" href="#codesyntax_60"  onClick="javascript:wpsh_toggleBlock(60)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_60" onClick="javascript:wpsh_code(60)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_60" onClick="javascript:wpsh_print(60)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_60" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">touch</span> <span class="sy0">/</span>usr<span class="sy0">/</span>local<span class="sy0">/</span>bin<span class="sy0">/</span>combinepdf
<span class="kw2">sudo</span> <span class="kw2">chmod</span> 0755 <span class="sy0">/</span>usr<span class="sy0">/</span>local<span class="sy0">/</span>bin<span class="sy0">/</span>combinepdf
<span class="kw2">sudo</span> <span class="kw2">nano</span> <span class="sy0">/</span>usr<span class="sy0">/</span>local<span class="sy0">/</span>bin<span class="sy0">/</span>combinepdf</pre></div></div><br />
Und dann folgenden Inhalt einfügen:<br />
<div id="wpshdo_61" class="wp-synhighlighter-outer"><div id="wpshdt_61" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_61"></a><a id="wpshat_61" class="wp-synhighlighter-title" href="#codesyntax_61"  onClick="javascript:wpsh_toggleBlock(61)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_61" onClick="javascript:wpsh_code(61)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_61" onClick="javascript:wpsh_print(61)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_61" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="co0">#!/bin/bash</span>
<span class="kw2">gs</span> <span class="re5">-dNOPAUSE</span> <span class="re5">-sDEVICE</span>=pdfwrite <span class="re5">-sOUTPUTFILE</span>=combined.pdf <span class="re5">-dBATCH</span> $<span class="sy0">@</span></pre></div></div><br />
Die Ausgabedatei heisst hierbei wiederum combined.pdf und es können beliebig viele Dateien hinzugefügt werden.</p>
<p>Aufgerufen wird das dann folgendermassen:<br />
<div id="wpshdo_62" class="wp-synhighlighter-outer"><div id="wpshdt_62" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_62"></a><a id="wpshat_62" class="wp-synhighlighter-title" href="#codesyntax_62"  onClick="javascript:wpsh_toggleBlock(62)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_62" onClick="javascript:wpsh_code(62)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_62" onClick="javascript:wpsh_print(62)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_62" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">combinepdf 1.pdf 2.pdf 3.pdf</pre></div></div></p>
<p>Ich musste allerdings feststellen, dass Ghostscript bei eingescannten Bildern via XSane ein paar Schwierigkeiten hatte, aber ansonsten läuft es gut.</p>
<h2>pdftk</h2>
<p>pdftk beschreibt sich eigentlich als Schweizer Offiziersmesser für den Umgang mit PDF Dokumenten. <a href='http://www.accesspdf.com/pdftk/' target='_blank'>Hier</a> sind entsprechende Infos vorhanden.</p>
<p>Auch pdftk muss zuerst installiert werden:<br />
<div id="wpshdo_63" class="wp-synhighlighter-outer"><div id="wpshdt_63" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_63"></a><a id="wpshat_63" class="wp-synhighlighter-title" href="#codesyntax_63"  onClick="javascript:wpsh_toggleBlock(63)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_63" onClick="javascript:wpsh_code(63)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_63" onClick="javascript:wpsh_print(63)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_63" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> pdftk</pre></div></div></p>
<p>Danach eröffnet es eine ganze Fülle an Möglichkeiten mit dem Umgang mit PDFs. Ich habe nachfolgend ein paar Beispiele aufgelistet:</p>
<p>Will man mehrere PDFs in eines zusammenführen, gibt man folgenden Befehl ein:<br />
<div id="wpshdo_64" class="wp-synhighlighter-outer"><div id="wpshdt_64" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_64"></a><a id="wpshat_64" class="wp-synhighlighter-title" href="#codesyntax_64"  onClick="javascript:wpsh_toggleBlock(64)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_64" onClick="javascript:wpsh_code(64)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_64" onClick="javascript:wpsh_print(64)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_64" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">pdftk 1.pdf 2.pdf 3.pdf <span class="kw2">cat</span> output 123.pdf</pre></div></div></p>
<p>Ebenfalls kann man auch Wildcards verwenden (praktisch wenn man alle PDFs in einem Verzeichnis in ein neues zusammenführen will):<br />
<div id="wpshdo_65" class="wp-synhighlighter-outer"><div id="wpshdt_65" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_65"></a><a id="wpshat_65" class="wp-synhighlighter-title" href="#codesyntax_65"  onClick="javascript:wpsh_toggleBlock(65)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_65" onClick="javascript:wpsh_code(65)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_65" onClick="javascript:wpsh_print(65)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_65" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">pdftk <span class="sy0">*</span>.pdf <span class="kw2">cat</span> output combined.pdf</pre></div></div></p>
<p>Anstelle der Dokumentennamen kann man auch Handlers verwenden:<br />
<div id="wpshdo_66" class="wp-synhighlighter-outer"><div id="wpshdt_66" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_66"></a><a id="wpshat_66" class="wp-synhighlighter-title" href="#codesyntax_66"  onClick="javascript:wpsh_toggleBlock(66)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_66" onClick="javascript:wpsh_code(66)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_66" onClick="javascript:wpsh_print(66)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_66" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">pdftk <span class="re2">A</span>=1.pdf <span class="re2">B</span>=2.pdf <span class="kw2">cat</span> A B output 12.pdf</pre></div></div></p>
<p>Die Handlers werden dann praktisch, wenn man verschiedene Seiten eines PDFs oder aus verschiedene Seiten aus mehreren PDFs in ein neues zusammenführen will:<br />
<div id="wpshdo_67" class="wp-synhighlighter-outer"><div id="wpshdt_67" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_67"></a><a id="wpshat_67" class="wp-synhighlighter-title" href="#codesyntax_67"  onClick="javascript:wpsh_toggleBlock(67)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_67" onClick="javascript:wpsh_code(67)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_67" onClick="javascript:wpsh_print(67)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_67" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">pdftk <span class="re2">A</span>=one.pdf <span class="re2">B</span>=two.pdf <span class="kw2">cat</span> A1-<span class="nu0">7</span> B1-<span class="nu0">5</span> A8 output combined.pdf</pre></div></div></p>
<h2>Schlussbemerkung</h2>
<p>Während Ghostscript von der Syntax her nicht einfach zu gebrauchen ist, ist es aber dennoch praktisch wenn man sich ein entsprechendes Shell Script erstellt. pdftk hingegen ist von Haus aus einfach zu gebrauchen und bietet auch viel mehr Möglichkeiten als die Ghostscript Variante.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/pdfs-zusammenfuegen-splitten-via-command-line/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rTorrent (SVN) mit Farbinterface unter Ubuntu Lucid 10.04 / Debian 5 kompilieren</title>
		<link>http://www.simplylinux.ch/rtorrent-svn-mit-farbinterface-unter-ubuntu-lucid-10-04-debian-5-kompilieren</link>
		<comments>http://www.simplylinux.ch/rtorrent-svn-mit-farbinterface-unter-ubuntu-lucid-10-04-debian-5-kompilieren#comments</comments>
		<pubDate>Sun, 02 May 2010 11:49:16 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[Benutzer]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[Lucid]]></category>
		<category><![CDATA[rtorrent]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/?p=321</guid>
		<description><![CDATA[rTorrent ist ein genialer Bittorrent Client. Es basiert auf ncurses und wird normalerweise über die Command Line aus gesteuert. Gegenüber anderen Clients wie Vuze ist er auch wenig speicherintensiv. Es gibt zwar verschiedene Web Interfaces, aber ich benutze keine davon. rTorrent in Screen mit SSH Zugriff ist alles was ich brauche. Im letzten Howto diesbezüglich [...]]]></description>
			<content:encoded><![CDATA[<p>rTorrent ist ein genialer Bittorrent Client. Es basiert auf ncurses und wird normalerweise über die Command Line aus gesteuert. Gegenüber anderen Clients wie Vuze ist er auch wenig speicherintensiv. Es gibt zwar verschiedene Web Interfaces, aber ich benutze keine davon. rTorrent in Screen mit SSH Zugriff ist alles was ich brauche.</p>
<p>Im letzten Howto diesbezüglich habe ich noch Patches für das hinzufügen von Magnet Links bereitgestellt resp. aufgezeigt, wie rTorrent mit Magnet Links kompiliert werden können. Bei der aktuellen Revision ist der Magnet Link Support schon enthalten. Jedoch musste der Colour Patch angepasst werden.</p>
<p>Diese Howto gilt sowohl für Ubuntu Lucid 10.04 wie auch Debian 5 Etch. Der einzige Unterschied liegt darin, dass Ubuntu <em>sudo</em> benutzt und alles was mit <em>sudo</em> bezeichnet wird, muss unter Debian als <em>root</em> ausgeführt werden.</p>
<p><span id="more-321"></span></p>
<p>Ich gehe in diesem Howto davon aus, dass die SVN Quellen unter ~/rtorrent gespeichert werden resp. in ~/rtorrent/trunk</p>
<h2>1: Bisherige rTorrent Installation entfernen</h2>
<div id="wpshdo_68" class="wp-synhighlighter-outer"><div id="wpshdt_68" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_68"></a><a id="wpshat_68" class="wp-synhighlighter-title" href="#codesyntax_68"  onClick="javascript:wpsh_toggleBlock(68)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_68" onClick="javascript:wpsh_code(68)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_68" onClick="javascript:wpsh_print(68)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_68" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> remove rtorrent libtorrent<span class="sy0">*</span></pre></div></div>
<h2>2: Notwendige Pakete installieren</h2>
<div id="wpshdo_69" class="wp-synhighlighter-outer"><div id="wpshdt_69" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_69"></a><a id="wpshat_69" class="wp-synhighlighter-title" href="#codesyntax_69"  onClick="javascript:wpsh_toggleBlock(69)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_69" onClick="javascript:wpsh_code(69)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_69" onClick="javascript:wpsh_print(69)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_69" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> subversion build-essential libtool <span class="kw2">automake</span> openssl libsigc++-<span class="nu0">2.0</span>-dev libncurses5-dev libncursesw5-dev libcurl4-openssl-dev libcppunit-dev</pre></div></div>
<h2>3. rtorrent Verzeichnis kreieren</h2>
<div id="wpshdo_70" class="wp-synhighlighter-outer"><div id="wpshdt_70" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_70"></a><a id="wpshat_70" class="wp-synhighlighter-title" href="#codesyntax_70"  onClick="javascript:wpsh_toggleBlock(70)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_70" onClick="javascript:wpsh_code(70)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_70" onClick="javascript:wpsh_print(70)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_70" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">mkdir</span> ~<span class="sy0">/</span>rtorrent</pre></div></div>
<h2>4. Ins rtorrent Verzeichnis wechseln</h2>
<p><div id="wpshdo_71" class="wp-synhighlighter-outer"><div id="wpshdt_71" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_71"></a><a id="wpshat_71" class="wp-synhighlighter-title" href="#codesyntax_71"  onClick="javascript:wpsh_toggleBlock(71)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_71" onClick="javascript:wpsh_code(71)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_71" onClick="javascript:wpsh_print(71)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_71" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> ~<span class="sy0">/</span>rtorrent</pre></div></div><br />
<em>Pfad: /home/USER/rtorrent</em></p>
<h2>5. SVN Daten holen</h2>
<p><div id="wpshdo_72" class="wp-synhighlighter-outer"><div id="wpshdt_72" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_72"></a><a id="wpshat_72" class="wp-synhighlighter-title" href="#codesyntax_72"  onClick="javascript:wpsh_toggleBlock(72)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_72" onClick="javascript:wpsh_code(72)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_72" onClick="javascript:wpsh_print(72)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_72" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">svn</span> <span class="kw2">co</span> <span class="kw2">svn</span>:<span class="sy0">//</span>rakshasa.no<span class="sy0">/</span>libtorrent<span class="sy0">/</span>trunk</pre></div></div><br />
Derzeit ist die aktuelle Version rev. 1169.</p>
<h2>6. Ins trunk Verzeichnis wechseln</h2>
<p><div id="wpshdo_73" class="wp-synhighlighter-outer"><div id="wpshdt_73" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_73"></a><a id="wpshat_73" class="wp-synhighlighter-title" href="#codesyntax_73"  onClick="javascript:wpsh_toggleBlock(73)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_73" onClick="javascript:wpsh_code(73)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_73" onClick="javascript:wpsh_print(73)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_73" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> trunk</pre></div></div><br />
<em>Pfad: /home/USER/rtorrent/trunk</em></p>
<h2>7. Patches herunter laden</h2>
<p>Farbsupport für rTorrent nCurses:<br />
<div id="wpshdo_74" class="wp-synhighlighter-outer"><div id="wpshdt_74" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_74"></a><a id="wpshat_74" class="wp-synhighlighter-title" href="#codesyntax_74"  onClick="javascript:wpsh_toggleBlock(74)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_74" onClick="javascript:wpsh_code(74)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_74" onClick="javascript:wpsh_print(74)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_74" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">wget</span> http:<span class="sy0">//</span>www.simplylinux.ch<span class="sy0">/</span>rtorrent<span class="sy0">/</span>canvas-color_1169.patch</pre></div></div><br />
Damit kann im rTorrent Interface farblich zwischen fertigen/unfertigen sowie aktive/inaktive Torrents unterschieden werden. Ich musste mich zuerst auch daran gewöhnen, aber zwischenzeitlich finde ich das ganz praktisch. Der Patch kommt von hier: <a href="http://libtorrent.rakshasa.no/ticket/1382">http://libtorrent.rakshasa.no/ticket/1382</a>. Allerdings funktioniert der Patch mit rev. 1169 nicht mehr, ich müsste eine Änderung vornehmen.</p>
<p>Torrent Tracker Stats:<br />
<div id="wpshdo_75" class="wp-synhighlighter-outer"><div id="wpshdt_75" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_75"></a><a id="wpshat_75" class="wp-synhighlighter-title" href="#codesyntax_75"  onClick="javascript:wpsh_toggleBlock(75)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_75" onClick="javascript:wpsh_code(75)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_75" onClick="javascript:wpsh_print(75)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_75" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">wget</span> http:<span class="sy0">//</span>www.simplylinux.ch<span class="sy0">/</span>rtorrent<span class="sy0">/</span>trackerinfo.patch</pre></div></div><br />
Dieser Patch zeigt in der Tracker View an, wieviele Leute diesen Torrent ziehen. Allerdings sind die Stats sehr unzuverlässig aber es gibt doch eine gewisse Idee. Ich benutz es hauptsächlich um zu sehen welcher Tracker hat überhaupt irgendwelche Peers.</p>
<h2>8. Patches anwenden</h2>
<p>Farbsupport für rTorrent nCurses:<br />
<div id="wpshdo_76" class="wp-synhighlighter-outer"><div id="wpshdt_76" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_76"></a><a id="wpshat_76" class="wp-synhighlighter-title" href="#codesyntax_76"  onClick="javascript:wpsh_toggleBlock(76)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_76" onClick="javascript:wpsh_code(76)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_76" onClick="javascript:wpsh_print(76)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_76" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">patch</span> <span class="re5">-p0</span> <span class="sy0">&lt;</span> canvas-color_1169.patch</pre></div></div></p>
<p>Torrent Tracker Stats:<br />
<div id="wpshdo_77" class="wp-synhighlighter-outer"><div id="wpshdt_77" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_77"></a><a id="wpshat_77" class="wp-synhighlighter-title" href="#codesyntax_77"  onClick="javascript:wpsh_toggleBlock(77)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_77" onClick="javascript:wpsh_code(77)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_77" onClick="javascript:wpsh_print(77)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_77" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">patch</span> <span class="re5">-p0</span> <span class="sy0">&lt;</span> trackerinfo.patch</pre></div></div></p>
<h2>9. Ins libtorrent Verzeichnis wechseln</h2>
<p><div id="wpshdo_78" class="wp-synhighlighter-outer"><div id="wpshdt_78" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_78"></a><a id="wpshat_78" class="wp-synhighlighter-title" href="#codesyntax_78"  onClick="javascript:wpsh_toggleBlock(78)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_78" onClick="javascript:wpsh_code(78)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_78" onClick="javascript:wpsh_print(78)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_78" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> libtorrent</pre></div></div><br />
Pfad: /home/USER/rtorrent/trunk/libtorrent</p>
<h2>10. Autogen laufen lassen</h2>
<div id="wpshdo_79" class="wp-synhighlighter-outer"><div id="wpshdt_79" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_79"></a><a id="wpshat_79" class="wp-synhighlighter-title" href="#codesyntax_79"  onClick="javascript:wpsh_toggleBlock(79)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_79" onClick="javascript:wpsh_code(79)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_79" onClick="javascript:wpsh_print(79)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_79" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>autogen.sh</pre></div></div>
<h2>11. libtorrent konfigurieren</h2>
<div id="wpshdo_80" class="wp-synhighlighter-outer"><div id="wpshdt_80" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_80"></a><a id="wpshat_80" class="wp-synhighlighter-title" href="#codesyntax_80"  onClick="javascript:wpsh_toggleBlock(80)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_80" onClick="javascript:wpsh_code(80)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_80" onClick="javascript:wpsh_print(80)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_80" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>configure</pre></div></div>
<h2>12. libtorrent kompilieren</h2>
<div id="wpshdo_81" class="wp-synhighlighter-outer"><div id="wpshdt_81" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_81"></a><a id="wpshat_81" class="wp-synhighlighter-title" href="#codesyntax_81"  onClick="javascript:wpsh_toggleBlock(81)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_81" onClick="javascript:wpsh_code(81)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_81" onClick="javascript:wpsh_print(81)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_81" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">make</span></pre></div></div>
<h2>13. libtorrent installieren</h2>
<div id="wpshdo_82" class="wp-synhighlighter-outer"><div id="wpshdt_82" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_82"></a><a id="wpshat_82" class="wp-synhighlighter-title" href="#codesyntax_82"  onClick="javascript:wpsh_toggleBlock(82)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_82" onClick="javascript:wpsh_code(82)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_82" onClick="javascript:wpsh_print(82)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_82" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">make</span> <span class="kw2">install</span></pre></div></div>
<h2>14. /etc/ld.so.conf erweitern</h2>
<div id="wpshdo_83" class="wp-synhighlighter-outer"><div id="wpshdt_83" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_83"></a><a id="wpshat_83" class="wp-synhighlighter-title" href="#codesyntax_83"  onClick="javascript:wpsh_toggleBlock(83)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_83" onClick="javascript:wpsh_code(83)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_83" onClick="javascript:wpsh_print(83)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_83" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">echo</span> <span class="st0">&quot;include /usr/local/lib&quot;</span> <span class="sy0">|</span> <span class="kw2">sudo</span> <span class="kw2">tee</span> <span class="re5">-a</span> <span class="sy0">/</span>etc<span class="sy0">/</span>ld.so.conf</pre></div></div>
<h2>15. ld.so Cache neu laden</h2>
<div id="wpshdo_84" class="wp-synhighlighter-outer"><div id="wpshdt_84" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_84"></a><a id="wpshat_84" class="wp-synhighlighter-title" href="#codesyntax_84"  onClick="javascript:wpsh_toggleBlock(84)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_84" onClick="javascript:wpsh_code(84)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_84" onClick="javascript:wpsh_print(84)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_84" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> ldconfig</pre></div></div>
<h2>16. Ins rtorrent Verzeichnis wechseln</h2>
<p><div id="wpshdo_85" class="wp-synhighlighter-outer"><div id="wpshdt_85" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_85"></a><a id="wpshat_85" class="wp-synhighlighter-title" href="#codesyntax_85"  onClick="javascript:wpsh_toggleBlock(85)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_85" onClick="javascript:wpsh_code(85)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_85" onClick="javascript:wpsh_print(85)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_85" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> ..<span class="sy0">/</span>rtorrent</pre></div></div><br />
Pfad: /home/USER/rtorrent/trunk/rtorrent</p>
<h2>17. Autogen laufen lassen</h2>
<div id="wpshdo_86" class="wp-synhighlighter-outer"><div id="wpshdt_86" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_86"></a><a id="wpshat_86" class="wp-synhighlighter-title" href="#codesyntax_86"  onClick="javascript:wpsh_toggleBlock(86)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_86" onClick="javascript:wpsh_code(86)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_86" onClick="javascript:wpsh_print(86)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_86" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>autogen.sh</pre></div></div>
<h2>18. rtorrent konfigurieren</h2>
<div id="wpshdo_87" class="wp-synhighlighter-outer"><div id="wpshdt_87" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_87"></a><a id="wpshat_87" class="wp-synhighlighter-title" href="#codesyntax_87"  onClick="javascript:wpsh_toggleBlock(87)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_87" onClick="javascript:wpsh_code(87)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_87" onClick="javascript:wpsh_print(87)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_87" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>configure</pre></div></div>
<h2>19. rtorrent kompilieren</h2>
<div id="wpshdo_88" class="wp-synhighlighter-outer"><div id="wpshdt_88" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_88"></a><a id="wpshat_88" class="wp-synhighlighter-title" href="#codesyntax_88"  onClick="javascript:wpsh_toggleBlock(88)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_88" onClick="javascript:wpsh_code(88)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_88" onClick="javascript:wpsh_print(88)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_88" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">make</span></pre></div></div>
<h2>20. rtorrent installieren</h2>
<div id="wpshdo_89" class="wp-synhighlighter-outer"><div id="wpshdt_89" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_89"></a><a id="wpshat_89" class="wp-synhighlighter-title" href="#codesyntax_89"  onClick="javascript:wpsh_toggleBlock(89)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_89" onClick="javascript:wpsh_code(89)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_89" onClick="javascript:wpsh_print(89)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_89" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">make</span> <span class="kw2">install</span></pre></div></div>
<h2>21. rTorrent Konfiguration erweitern</h2>
<p>Um von den Farben gebrauch zu machen, müssen diese auch noch hinzugefügt werden. Bei mir sieht das derzeiten so aus:<br />
<div id="wpshdo_90" class="wp-synhighlighter-outer"><div id="wpshdt_90" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_90"></a><a id="wpshat_90" class="wp-synhighlighter-title" href="#codesyntax_90"  onClick="javascript:wpsh_toggleBlock(90)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_90" onClick="javascript:wpsh_code(90)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_90" onClick="javascript:wpsh_print(90)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_90" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="co0"># Color / Canvas patch</span>
done_fg_color = <span class="nu0">2</span>
<span class="co0">#done_bg_color = 2</span>
active_fg_color = <span class="nu0">1</span>
<span class="co0">#active_bg_color = 4</span></pre></div></div><br />
Dadurch werden inaktive fertige Torrent dunkelgrün, aktive fertige Torrents hellgrün, inaktive unvollständigen Torrents dunkelrot und aktive unvollständige Torrents hellrot. Mit den Farben kann herumgespielt werden. Die verwendbaren Farben sind: 0 = schwarz; 1 = rot; 2 = grün; 3 = gelb; 4 = blau; 5 = magenta; 6 = cyan; 7 = weiss.</p>
<p>Sollte noch keine .rtorrent.rc Config File im Benutzer Verzeichnis vorhanden sein, so kann ein Exemplar (welches aber noch stark modifizierter werden sollte) mit folgendem Befehl heruntergeladen werden:<br />
<div id="wpshdo_91" class="wp-synhighlighter-outer"><div id="wpshdt_91" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_91"></a><a id="wpshat_91" class="wp-synhighlighter-title" href="#codesyntax_91"  onClick="javascript:wpsh_toggleBlock(91)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_91" onClick="javascript:wpsh_code(91)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_91" onClick="javascript:wpsh_print(91)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_91" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">wget</span> http:<span class="sy0">//</span>libtorrent.rakshasa.no<span class="sy0">/</span>export<span class="sy0">/</span>1169<span class="sy0">/</span>trunk<span class="sy0">/</span>rtorrent<span class="sy0">/</span>doc<span class="sy0">/</span>rtorrent.rc <span class="re5">-O</span> ~<span class="sy0">/</span>.rtorrent.rc</pre></div></div></p>
<h2>22. rTorrent kann nun gestartet werden</h2>
<div id="wpshdo_92" class="wp-synhighlighter-outer"><div id="wpshdt_92" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_92"></a><a id="wpshat_92" class="wp-synhighlighter-title" href="#codesyntax_92"  onClick="javascript:wpsh_toggleBlock(92)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_92" onClick="javascript:wpsh_code(92)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_92" onClick="javascript:wpsh_print(92)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_92" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">rtorrent</pre></div></div>
<p><a href="http://www.simplylinux.ch/wp-content/uploads/rtorrent_coloured2.png"><img src="http://www.simplylinux.ch/wp-content/uploads/rtorrent_coloured2.png" alt="" title="rtorrent_coloured" width="764" height="244" class="aligncenter size-full wp-image-339" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/rtorrent-svn-mit-farbinterface-unter-ubuntu-lucid-10-04-debian-5-kompilieren/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>rTorrent unter Ubuntu Karmic 9.10 / Debian 5 Lenny kompilieren mit Magnet Link Support (und weiterem&#8230;)</title>
		<link>http://www.simplylinux.ch/rtorrent-unter-ubuntu-karmic-9-10-debian-5-lenny-kompilieren-mit-magnet-link-support-und-weiterem</link>
		<comments>http://www.simplylinux.ch/rtorrent-unter-ubuntu-karmic-9-10-debian-5-lenny-kompilieren-mit-magnet-link-support-und-weiterem#comments</comments>
		<pubDate>Sun, 29 Nov 2009 18:28:21 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[Karmic]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[magnet]]></category>
		<category><![CDATA[magnet link]]></category>
		<category><![CDATA[rtorrent]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/?p=271</guid>
		<description><![CDATA[rTorrent ist ein genialer Bittorrent Client. Es basiert auf ncurses und wird normalerweise über die Command Line aus gesteuert. Gegenüber anderen Clients wie Vuze ist er auch wenig speicherintensiv. Es gibt zwar verschieden Web Interfaces, aber ich benutze keine davon. rTorrent in Screen mit SSH Zugriff ist alles was ich brauche. Kürzlich wurde auch von [...]]]></description>
			<content:encoded><![CDATA[<p>rTorrent ist ein genialer Bittorrent Client. Es basiert auf ncurses und wird normalerweise über die Command Line aus gesteuert. Gegenüber anderen Clients wie Vuze ist er auch wenig speicherintensiv. Es gibt zwar verschieden Web Interfaces, aber ich benutze keine davon. rTorrent in Screen mit SSH Zugriff ist alles was ich brauche.</p>
<p>Kürzlich wurde auch von The Pirate Bay angekündigt, dass in Zukunft dort kein Tracker mehr betrieben wird und alle Torrents als Magnet Links angeboten werden. rTorrent hat von Hause aus zu diesem Zeitpunkt noch keinen Magnet Link Support. Allerdings gibt es &#8220;einen&#8221; Patch, der Magnet Link Support integriert. Nachfolgendes HowTo ist eine Schritt-für-Schritt Anleitung um rTorrent mit Magnet Link Support zu kompilieren. Zudem werde ich auch noch ein paar weitere Erweiterungen einspielen (und diese jeweils markieren).</p>
<p>Diese Howto gilt sowohl für Ubuntu Karmic 9.10 wie auch Debian 5 Etch. Der einzige Unterschied liegt darin, dass Ubuntu <em>sudo</em> benutzt und alles was mit <em>sudo</em> bezeichnet wird, muss unter Debian als <em>root</em> ausgeführt werden.</p>
<p><span id="more-271"></span></p>
<p>Ich gehe in diesem Howto davon aus, dass die SVN Quellen unter ~/rtorrent gespeichert werden resp. in ~/rtorrent/trunk</p>
<p>&nbsp;</p>
<h2>1: Bisherige rTorrent Installation entfernen</h2>
<div id="wpshdo_93" class="wp-synhighlighter-outer"><div id="wpshdt_93" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_93"></a><a id="wpshat_93" class="wp-synhighlighter-title" href="#codesyntax_93"  onClick="javascript:wpsh_toggleBlock(93)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_93" onClick="javascript:wpsh_code(93)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_93" onClick="javascript:wpsh_print(93)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_93" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> remove rtorrent libtorrent<span class="sy0">*</span></pre></div></div>
<p>&nbsp;</p>
<h2>2: Notwendige Pakete installieren</h2>
<div id="wpshdo_94" class="wp-synhighlighter-outer"><div id="wpshdt_94" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_94"></a><a id="wpshat_94" class="wp-synhighlighter-title" href="#codesyntax_94"  onClick="javascript:wpsh_toggleBlock(94)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_94" onClick="javascript:wpsh_code(94)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_94" onClick="javascript:wpsh_print(94)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_94" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> subversion build-essential libtool <span class="kw2">automake</span> openssl libsigc++-<span class="nu0">2.0</span>-dev libncurses5-dev libcurl4-openssl-dev</pre></div></div>
<p>&nbsp;</p>
<h2>3. rtorrent Verzeichnis kreieren</h2>
<div id="wpshdo_95" class="wp-synhighlighter-outer"><div id="wpshdt_95" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_95"></a><a id="wpshat_95" class="wp-synhighlighter-title" href="#codesyntax_95"  onClick="javascript:wpsh_toggleBlock(95)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_95" onClick="javascript:wpsh_code(95)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_95" onClick="javascript:wpsh_print(95)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_95" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">mkdir</span> ~<span class="sy0">/</span>rtorrent</pre></div></div>
<p>&nbsp;</p>
<h2>4. Ins rtorrent Verzeichnis wechseln</h2>
<p><div id="wpshdo_96" class="wp-synhighlighter-outer"><div id="wpshdt_96" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_96"></a><a id="wpshat_96" class="wp-synhighlighter-title" href="#codesyntax_96"  onClick="javascript:wpsh_toggleBlock(96)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_96" onClick="javascript:wpsh_code(96)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_96" onClick="javascript:wpsh_print(96)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_96" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> ~<span class="sy0">/</span>rtorrent</pre></div></div><br />
<em>Pfad: /home/USER/rtorrent</em></p>
<p>&nbsp;</p>
<h2>5. SVN Daten holen</h2>
<p><div id="wpshdo_97" class="wp-synhighlighter-outer"><div id="wpshdt_97" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_97"></a><a id="wpshat_97" class="wp-synhighlighter-title" href="#codesyntax_97"  onClick="javascript:wpsh_toggleBlock(97)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_97" onClick="javascript:wpsh_code(97)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_97" onClick="javascript:wpsh_print(97)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_97" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">svn</span> <span class="kw2">co</span> <span class="kw2">svn</span>:<span class="sy0">//</span>rakshasa.no<span class="sy0">/</span>libtorrent<span class="sy0">/</span>trunk</pre></div></div><br />
Derzeit ist die aktuelle Version rev. 1105. </p>
<p>&nbsp;</p>
<h2>6. Ins trunk Verzeichnis wechseln</h2>
<p><div id="wpshdo_98" class="wp-synhighlighter-outer"><div id="wpshdt_98" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_98"></a><a id="wpshat_98" class="wp-synhighlighter-title" href="#codesyntax_98"  onClick="javascript:wpsh_toggleBlock(98)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_98" onClick="javascript:wpsh_code(98)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_98" onClick="javascript:wpsh_print(98)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_98" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> trunk</pre></div></div><br />
<em>Pfad: /home/USER/rtorrent/trunk</em></p>
<p>&nbsp;</p>
<h2>7. Patches herunter laden</h2>
<p>Für Magnet Link Support:<br />
<div id="wpshdo_99" class="wp-synhighlighter-outer"><div id="wpshdt_99" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_99"></a><a id="wpshat_99" class="wp-synhighlighter-title" href="#codesyntax_99"  onClick="javascript:wpsh_toggleBlock(99)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_99" onClick="javascript:wpsh_code(99)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_99" onClick="javascript:wpsh_print(99)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_99" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">wget</span> http:<span class="sy0">//</span>ovh.ttdpatch.net<span class="sy0">/</span>~jdrexler<span class="sy0">/</span>rt<span class="sy0">/</span>experimental<span class="sy0">/</span>dht-pex-static_map.diff
<span class="kw2">wget</span> http:<span class="sy0">//</span>ovh.ttdpatch.net<span class="sy0">/</span>~jdrexler<span class="sy0">/</span>rt<span class="sy0">/</span>experimental<span class="sy0">/</span>magnet-uri.diff
<span class="kw2">wget</span> http:<span class="sy0">//</span>ovh.ttdpatch.net<span class="sy0">/</span>~jdrexler<span class="sy0">/</span>rt<span class="sy0">/</span>experimental<span class="sy0">/</span>object-sstr.diff</pre></div></div><br />
Der Magent Link Support Patch wurde von Josef geschrieben. Ich verweise hierbei auf <a href="http://libtorrent.rakshasa.no/ticket/955">http://libtorrent.rakshasa.no/ticket/955</a>.</p>
<p>Farbsupport für rTorrent nCurses:<br />
<div id="wpshdo_100" class="wp-synhighlighter-outer"><div id="wpshdt_100" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_100"></a><a id="wpshat_100" class="wp-synhighlighter-title" href="#codesyntax_100"  onClick="javascript:wpsh_toggleBlock(100)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_100" onClick="javascript:wpsh_code(100)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_100" onClick="javascript:wpsh_print(100)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_100" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">wget</span> http:<span class="sy0">//</span>www.simplylinux.ch<span class="sy0">/</span>rtorrent<span class="sy0">/</span>canvas-color.patch</pre></div></div><br />
Solltest du Rev. 1131 oder neuer benutzen, dann muss dieser Patch hier verwendet werden (Danke an Italian_Plumber für den Patch):<br />
<div id="wpshdo_101" class="wp-synhighlighter-outer"><div id="wpshdt_101" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_101"></a><a id="wpshat_101" class="wp-synhighlighter-title" href="#codesyntax_101"  onClick="javascript:wpsh_toggleBlock(101)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_101" onClick="javascript:wpsh_code(101)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_101" onClick="javascript:wpsh_print(101)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_101" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">wget</span> http:<span class="sy0">//</span>www.simplylinux.ch<span class="sy0">/</span>rtorrent<span class="sy0">/</span>canvas-color_1131.patch</pre></div></div><br />
Damit kann im rTorrent Interface farblich zwischen fertigen/unfertigen sowie aktive/inaktive Torrents unterschieden werden. Ich musste mich zuerst auch daran gewöhnen, aber zwischenzeitlich finde ich das ganz praktisch. Der Patch kommt von hier: <a href="http://libtorrent.rakshasa.no/ticket/1382">http://libtorrent.rakshasa.no/ticket/1382</a>. Allerdings funktioniert der Patch mit rev. 1105 nicht mehr, ich müsste eine Änderung vornehmen und der Original-Patch hat noch nie vom Trunk Verzeichnis aus funktioniert. Auch das habe ich behoben.</p>
<p>Torrent Tracker Stats:<br />
<div id="wpshdo_102" class="wp-synhighlighter-outer"><div id="wpshdt_102" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_102"></a><a id="wpshat_102" class="wp-synhighlighter-title" href="#codesyntax_102"  onClick="javascript:wpsh_toggleBlock(102)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_102" onClick="javascript:wpsh_code(102)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_102" onClick="javascript:wpsh_print(102)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_102" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">wget</span> http:<span class="sy0">//</span>www.simplylinux.ch<span class="sy0">/</span>rtorrent<span class="sy0">/</span>trackerinfo.patch</pre></div></div><br />
Dieser Patch zeigt in der Tracker View an, wieviele Leute diesen Torrent ziehen. Allerdings sind die Stats sehr unzuverlässig aber es gibt doch eine gewisse Idee. Ich benutz es hauptsächlich um zu sehen welcher Tracker hat überhaupt irgendwelche Peers.</p>
<p>&nbsp;</p>
<h2>8. Patches anwenden</h2>
<p>Für Magnet Link Support:<br />
<div id="wpshdo_103" class="wp-synhighlighter-outer"><div id="wpshdt_103" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_103"></a><a id="wpshat_103" class="wp-synhighlighter-title" href="#codesyntax_103"  onClick="javascript:wpsh_toggleBlock(103)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_103" onClick="javascript:wpsh_code(103)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_103" onClick="javascript:wpsh_print(103)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_103" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">patch</span> <span class="re5">-p0</span> <span class="sy0">&lt;</span> dht-pex-static_map.diff
<span class="kw2">patch</span> <span class="re5">-p0</span> <span class="sy0">&lt;</span> magnet-uri.diff
<span class="kw2">patch</span> <span class="re5">-p0</span> <span class="sy0">&lt;</span> object-sstr.diff</pre></div></div></p>
<p>Sollte der erste Patch oben folgenden Fehler verursachen:<br />
<div id="wpshdo_104" class="wp-synhighlighter-outer"><div id="wpshdt_104" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_104"></a><a id="wpshat_104" class="wp-synhighlighter-title" href="#codesyntax_104"  onClick="javascript:wpsh_toggleBlock(104)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_104" onClick="javascript:wpsh_code(104)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_104" onClick="javascript:wpsh_print(104)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_104" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">patching <span class="kw2">file</span> libtorrent<span class="sy0">/</span>src<span class="sy0">/</span>torrent<span class="sy0">/</span>Makefile.am
Hunk <span class="co0">#1 FAILED at 41.</span>
Hunk <span class="co0">#2 FAILED at 77.</span>
2 out of 2 hunks FAILED <span class="re5">--</span> saving rejects to <span class="kw2">file</span> libtorrent<span class="sy0">/</span>src<span class="sy0">/</span>torrent<span class="sy0">/</span>Makefile.am.rej</pre></div></div><br />
Dann ist die rTorrent Version zu neu und der Patch wurde noch nicht geupdated. Aus diesem Grunde habe ich einen eigenen weiteren Patch kreiert um das zu beheben. Einfach folgendes ausführen:<br />
<div id="wpshdo_105" class="wp-synhighlighter-outer"><div id="wpshdt_105" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_105"></a><a id="wpshat_105" class="wp-synhighlighter-title" href="#codesyntax_105"  onClick="javascript:wpsh_toggleBlock(105)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_105" onClick="javascript:wpsh_code(105)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_105" onClick="javascript:wpsh_print(105)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_105" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">wget</span> http:<span class="sy0">//</span>www.simplylinux.ch<span class="sy0">/</span>rtorrent<span class="sy0">/</span>dht-pex-static_map_rev1117.diff
<span class="kw2">patch</span> <span class="re5">-p0</span> <span class="sy0">&lt;</span> dht-pex-static_map_rev1117.diff</pre></div></div></p>
<p>Farbsupport für rTorrent nCurses:<br />
<div id="wpshdo_106" class="wp-synhighlighter-outer"><div id="wpshdt_106" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_106"></a><a id="wpshat_106" class="wp-synhighlighter-title" href="#codesyntax_106"  onClick="javascript:wpsh_toggleBlock(106)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_106" onClick="javascript:wpsh_code(106)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_106" onClick="javascript:wpsh_print(106)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_106" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">patch</span> <span class="re5">-p0</span> <span class="sy0">&lt;</span> canvas-color.patch</pre></div></div></p>
<p>Torrent Tracker Stats:<br />
<div id="wpshdo_107" class="wp-synhighlighter-outer"><div id="wpshdt_107" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_107"></a><a id="wpshat_107" class="wp-synhighlighter-title" href="#codesyntax_107"  onClick="javascript:wpsh_toggleBlock(107)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_107" onClick="javascript:wpsh_code(107)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_107" onClick="javascript:wpsh_print(107)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_107" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">patch</span> <span class="re5">-p0</span> <span class="sy0">&lt;</span> trackerinfo.patch</pre></div></div></p>
<p>&nbsp;</p>
<h2>9. Ins libtorrent Verzeichnis wechseln</h2>
<p><div id="wpshdo_108" class="wp-synhighlighter-outer"><div id="wpshdt_108" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_108"></a><a id="wpshat_108" class="wp-synhighlighter-title" href="#codesyntax_108"  onClick="javascript:wpsh_toggleBlock(108)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_108" onClick="javascript:wpsh_code(108)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_108" onClick="javascript:wpsh_print(108)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_108" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> libtorrent</pre></div></div><br />
Pfad: /home/USER/rtorrent/trunk/libtorrent</p>
<p>&nbsp;</p>
<h2>10. Autogen laufen lassen</h2>
<div id="wpshdo_109" class="wp-synhighlighter-outer"><div id="wpshdt_109" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_109"></a><a id="wpshat_109" class="wp-synhighlighter-title" href="#codesyntax_109"  onClick="javascript:wpsh_toggleBlock(109)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_109" onClick="javascript:wpsh_code(109)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_109" onClick="javascript:wpsh_print(109)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_109" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>autogen.sh</pre></div></div>
<p>&nbsp;</p>
<h2>11. libtorrent konfigurieren</h2>
<div id="wpshdo_110" class="wp-synhighlighter-outer"><div id="wpshdt_110" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_110"></a><a id="wpshat_110" class="wp-synhighlighter-title" href="#codesyntax_110"  onClick="javascript:wpsh_toggleBlock(110)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_110" onClick="javascript:wpsh_code(110)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_110" onClick="javascript:wpsh_print(110)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_110" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>configure</pre></div></div>
<p>&nbsp;</p>
<h2>12. libtorrent kompilieren</h2>
<div id="wpshdo_111" class="wp-synhighlighter-outer"><div id="wpshdt_111" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_111"></a><a id="wpshat_111" class="wp-synhighlighter-title" href="#codesyntax_111"  onClick="javascript:wpsh_toggleBlock(111)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_111" onClick="javascript:wpsh_code(111)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_111" onClick="javascript:wpsh_print(111)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_111" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">make</span></pre></div></div>
<p>&nbsp;</p>
<h2>13. libtorrent installieren</h2>
<div id="wpshdo_112" class="wp-synhighlighter-outer"><div id="wpshdt_112" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_112"></a><a id="wpshat_112" class="wp-synhighlighter-title" href="#codesyntax_112"  onClick="javascript:wpsh_toggleBlock(112)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_112" onClick="javascript:wpsh_code(112)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_112" onClick="javascript:wpsh_print(112)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_112" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">make</span> <span class="kw2">install</span></pre></div></div>
<p>&nbsp;</p>
<h2>14. /etc/ld.so.conf erweitern</h2>
<div id="wpshdo_113" class="wp-synhighlighter-outer"><div id="wpshdt_113" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_113"></a><a id="wpshat_113" class="wp-synhighlighter-title" href="#codesyntax_113"  onClick="javascript:wpsh_toggleBlock(113)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_113" onClick="javascript:wpsh_code(113)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_113" onClick="javascript:wpsh_print(113)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_113" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">echo</span> <span class="st0">&quot;include /usr/local/lib&quot;</span> <span class="sy0">|</span> <span class="kw2">sudo</span> <span class="kw2">tee</span> <span class="re5">-a</span> <span class="sy0">/</span>etc<span class="sy0">/</span>ld.so.conf</pre></div></div>
<p>&nbsp;</p>
<h2>15. ld.so Cache neu laden</h2>
<div id="wpshdo_114" class="wp-synhighlighter-outer"><div id="wpshdt_114" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_114"></a><a id="wpshat_114" class="wp-synhighlighter-title" href="#codesyntax_114"  onClick="javascript:wpsh_toggleBlock(114)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_114" onClick="javascript:wpsh_code(114)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_114" onClick="javascript:wpsh_print(114)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_114" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> ldconfig</pre></div></div>
<p>&nbsp;</p>
<h2>16. Ins rtorrent Verzeichnis wechseln</h2>
<p><div id="wpshdo_115" class="wp-synhighlighter-outer"><div id="wpshdt_115" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_115"></a><a id="wpshat_115" class="wp-synhighlighter-title" href="#codesyntax_115"  onClick="javascript:wpsh_toggleBlock(115)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_115" onClick="javascript:wpsh_code(115)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_115" onClick="javascript:wpsh_print(115)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_115" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> ..<span class="sy0">/</span>rtorrent</pre></div></div><br />
Pfad: /home/USER/rtorrent/trunk/rtorrent</p>
<p>&nbsp;</p>
<h2>17. Autogen laufen lassen</h2>
<div id="wpshdo_116" class="wp-synhighlighter-outer"><div id="wpshdt_116" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_116"></a><a id="wpshat_116" class="wp-synhighlighter-title" href="#codesyntax_116"  onClick="javascript:wpsh_toggleBlock(116)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_116" onClick="javascript:wpsh_code(116)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_116" onClick="javascript:wpsh_print(116)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_116" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>autogen.sh</pre></div></div>
<p>&nbsp;</p>
<h2>18. rtorrent konfigurieren</h2>
<div id="wpshdo_117" class="wp-synhighlighter-outer"><div id="wpshdt_117" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_117"></a><a id="wpshat_117" class="wp-synhighlighter-title" href="#codesyntax_117"  onClick="javascript:wpsh_toggleBlock(117)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_117" onClick="javascript:wpsh_code(117)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_117" onClick="javascript:wpsh_print(117)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_117" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>configure</pre></div></div>
<p>&nbsp;</p>
<h2>19. rtorrent kompilieren</h2>
<div id="wpshdo_118" class="wp-synhighlighter-outer"><div id="wpshdt_118" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_118"></a><a id="wpshat_118" class="wp-synhighlighter-title" href="#codesyntax_118"  onClick="javascript:wpsh_toggleBlock(118)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_118" onClick="javascript:wpsh_code(118)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_118" onClick="javascript:wpsh_print(118)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_118" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">make</span></pre></div></div>
<p>&nbsp;</p>
<h2>20. rtorrent installieren</h2>
<div id="wpshdo_119" class="wp-synhighlighter-outer"><div id="wpshdt_119" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_119"></a><a id="wpshat_119" class="wp-synhighlighter-title" href="#codesyntax_119"  onClick="javascript:wpsh_toggleBlock(119)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_119" onClick="javascript:wpsh_code(119)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_119" onClick="javascript:wpsh_print(119)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_119" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">make</span> <span class="kw2">install</span></pre></div></div>
<p>&nbsp;</p>
<h2>21. rTorrent Konfiguration erweitern</h2>
<p>Der Magnet Link Support setzt zwingend ein Session Verzeichnis voraus. Falls noch kein Session Verzeichnis oder noch gar keine rTorrent Config Datei vorhande ist, dann das noch hinzufügen. Eine Beispiel rTorrent Config Datei findet sich hier: <a href="http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc#latest">http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc#latest</a> oder man kann sie einfach aus dem Trunk kopieren (und danach anpassen):<br />
<div id="wpshdo_120" class="wp-synhighlighter-outer"><div id="wpshdt_120" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_120"></a><a id="wpshat_120" class="wp-synhighlighter-title" href="#codesyntax_120"  onClick="javascript:wpsh_toggleBlock(120)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_120" onClick="javascript:wpsh_code(120)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_120" onClick="javascript:wpsh_print(120)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_120" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">cp</span> ~<span class="sy0">/</span>rtorrent<span class="sy0">/</span>trunk<span class="sy0">/</span>rtorrent<span class="sy0">/</span>doc<span class="sy0">/</span>rtorrent.rc ~<span class="sy0">/</span>.rtorrent.rc</pre></div></div><br />
Ebenfalls würde ich noch DHT auf ON setzen in der Config.<br />
<em>Danke Xo für den Hinweis fürs Kopieren</em></p>
<p>Um von den Farben gebrauch zu machen, müssen diese auch noch hinzugefügt werden. Bei mir sieht das derzeiten so aus:<br />
<div id="wpshdo_121" class="wp-synhighlighter-outer"><div id="wpshdt_121" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_121"></a><a id="wpshat_121" class="wp-synhighlighter-title" href="#codesyntax_121"  onClick="javascript:wpsh_toggleBlock(121)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_121" onClick="javascript:wpsh_code(121)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_121" onClick="javascript:wpsh_print(121)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_121" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="co0"># Color / Canvas patch</span>
done_fg_color = <span class="nu0">2</span>
<span class="co0">#done_bg_color = 2</span>
active_fg_color = <span class="nu0">1</span>
<span class="co0">#active_bg_color = 4</span></pre></div></div><br />
Dadurch werden inaktive fertige Torrent dunkelgrün, aktive fertige Torrents hellgrün, inaktive unvollständigen Torrents dunkelrot und aktive unvollständige Torrents hellrot. Mit den Farben kann herumgespielt werden. Die verwendbaren Farben sind: 0 = schwarz; 1 = rot; 2 = grün; 3 = gelb; 4 = blau; 5 = magenta; 6 = cyan; 7 = weiss; </p>
<p>&nbsp;</p>
<h2>22. rTorrent kann nun gestartet werden</h2>
<div id="wpshdo_122" class="wp-synhighlighter-outer"><div id="wpshdt_122" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_122"></a><a id="wpshat_122" class="wp-synhighlighter-title" href="#codesyntax_122"  onClick="javascript:wpsh_toggleBlock(122)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_122" onClick="javascript:wpsh_code(122)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_122" onClick="javascript:wpsh_print(122)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_122" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">rtorrent</pre></div></div>
<p>&nbsp;</p>
<h2>Wie gebrauchen?</h2>
<p>Der Gebrauch ist eigentlich ganz einfach. In rTorrent entweder die Backspace oder Enter Taste drücken und dann die URL des Magnet Links reinkopieren und mit Enter bestätigen. Der Unterschied zwichen Enter und Backspace liegt darin, dass Enter nur den Link hinzufügt, Backspace aber den Link auch gleich startet.</p>
<p>Ebenfalls gibts die Möglichkeit, dass die Magnet Links direkt beim draufklicken in einem Browser an rTorrent übergeben werden:<br />
<div id="wpshdo_123" class="wp-synhighlighter-outer"><div id="wpshdt_123" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_123"></a><a id="wpshat_123" class="wp-synhighlighter-title" href="#codesyntax_123"  onClick="javascript:wpsh_toggleBlock(123)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_123" onClick="javascript:wpsh_code(123)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_123" onClick="javascript:wpsh_print(123)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_123" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="co0">#!/bin/bash</span>
&nbsp;
<span class="kw3">cd</span> ~<span class="sy0">/</span>watch    <span class="co0"># set your watch directory here</span>
<span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="st0">&quot;$1&quot;</span> =~ <span class="re2">xt</span>=urn:btih:<span class="br0">&#40;</span><span class="br0">&#91;</span>^<span class="sy0">&amp;/</span><span class="br0">&#93;</span>+<span class="br0">&#41;</span> <span class="br0">&#93;</span><span class="br0">&#93;</span> <span class="sy0">||</span> <span class="kw3">exit</span>;
<span class="kw3">echo</span> <span class="st0">&quot;d10:magnet-uri<span class="es3">${#1}</span>:<span class="es3">${1}</span>e&quot;</span> <span class="sy0">&gt;</span> <span class="st0">&quot;meta-<span class="es3">${BASH_REMATCH[1]}</span>.torrent&quot;</span></pre></div></div><br />
Einfach dieses Bashscript im System speichern, z.B. unter ~/rtorrent_magnet.sh und ausführbar machen. Dann den Browser so konfigurieren, dass beim Klick auf einen Magnet Link dieses Bashscript ausgeführt wird (also Magnet Links mit diesem Bashscript öffnen). Ich habs zwar bisher nicht selbst ausprobiert, aber da Josef auch den Magnet Link Patch zur kreiert hat, habe ich vertrauen in seine Fähigkeiten.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/rtorrent-unter-ubuntu-karmic-9-10-debian-5-lenny-kompilieren-mit-magnet-link-support-und-weiterem/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SSHFS &#8211; einfach gemacht</title>
		<link>http://www.simplylinux.ch/sshfs-einfach-gemacht</link>
		<comments>http://www.simplylinux.ch/sshfs-einfach-gemacht#comments</comments>
		<pubDate>Fri, 13 Nov 2009 10:41:14 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[Allgemeines]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[fuse]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshfs]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/?p=219</guid>
		<description><![CDATA[Ich hatte lange für meinen Heimserver einfach nur Samba resp. Cifs gebraucht. Allerdings hatte ich damit ein kleines Problem. Vorallem wenn ich .torrent Dateien runtergeladen habe und die in ein Verzeichnis auf meinem Desktop gespeichert hatte, welches an sich nur ein Symlink zu einem via cifs gemounteten Verzeichnis war, dann hatte rtorrent die Datei nicht [...]]]></description>
			<content:encoded><![CDATA[<p>Ich hatte lange für meinen Heimserver einfach nur Samba resp. Cifs gebraucht. Allerdings hatte ich damit ein kleines Problem. Vorallem wenn ich .torrent Dateien runtergeladen habe und die in ein Verzeichnis auf meinem Desktop gespeichert hatte, welches an sich nur ein Symlink zu einem via cifs gemounteten Verzeichnis war, dann hatte rtorrent die Datei nicht akzeptiert, weil sie korrupt sei.<br />
<span id="more-219"></span><br />
Der Grund wieso ich immer cifs und nicht sshfs genommen habe war,  das ich mir ein kleines &#8220;start.sh&#8221; Script gebastelt habe, welches ein paar Dinge erledigt (e.g. Networkshare mounten, Programme starten, &#8230;). Ich wollte dies also ohne Probleme einfach ausführen lassen.</p>
<p>Das Ganze ist aber auch möglich über SSHFS:</p>
<p>(1) Keybased Login einrichten.<br />
Zuerst muss ein Keybased Login eingereichtet werden, ansonsten gibt es immer die Aufforderung. Ein kleines Howto diesbezüglich gibt es hier: http://www.simplylinux.ch/ssh-login-ohne-passwort-key-based<br />
Natürlich muss auf dem Server zuerst ein SSH Server installiert werden:<br />
<div id="wpshdo_124" class="wp-synhighlighter-outer"><div id="wpshdt_124" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_124"></a><a id="wpshat_124" class="wp-synhighlighter-title" href="#codesyntax_124"  onClick="javascript:wpsh_toggleBlock(124)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_124" onClick="javascript:wpsh_code(124)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_124" onClick="javascript:wpsh_print(124)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_124" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> openssh-server</pre></div></div></p>
<p>(2) SSHFS installieren<br />
Damit ich dann via SSHFS mounten kann, muss ich auf dem lokalen Client das entsprechende Paket installiert haben:<br />
<div id="wpshdo_125" class="wp-synhighlighter-outer"><div id="wpshdt_125" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_125"></a><a id="wpshat_125" class="wp-synhighlighter-title" href="#codesyntax_125"  onClick="javascript:wpsh_toggleBlock(125)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_125" onClick="javascript:wpsh_code(125)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_125" onClick="javascript:wpsh_print(125)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_125" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> sshfs</pre></div></div></p>
<p>(3) Manuel mounten<br />
Jetzt kann einfach ein Serververzeichnis in den lokalen Client mounten mit folgendem Befehl:<br />
<div id="wpshdo_126" class="wp-synhighlighter-outer"><div id="wpshdt_126" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_126"></a><a id="wpshat_126" class="wp-synhighlighter-title" href="#codesyntax_126"  onClick="javascript:wpsh_toggleBlock(126)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_126" onClick="javascript:wpsh_code(126)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_126" onClick="javascript:wpsh_print(126)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_126" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">sshfs user<span class="sy0">@</span>host:directory mountpoint</pre></div></div><br />
Wird kein (Server) Verzeichnis (=directory) angegeben, dann wird einfach das Home-Verzeichnis des Benutzers geladen. Wichtig ist hierbei, dass der (lokale) Mountpoint auch existieren muss und dass der entsprechende Benutzer auch Lese-/Schreibrecht hat. Bin mir nicht sicher ob auch Ausführrechte vorhanden sein müssen. Bei mir sind sowohl Benutzer- und Gruppenowner jeweils ich und die Permissions liegen be 0755.</p>
<p>Hier ein &#8220;echtes&#8221; Beispiel:<br />
<div id="wpshdo_127" class="wp-synhighlighter-outer"><div id="wpshdt_127" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_127"></a><a id="wpshat_127" class="wp-synhighlighter-title" href="#codesyntax_127"  onClick="javascript:wpsh_toggleBlock(127)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_127" onClick="javascript:wpsh_code(127)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_127" onClick="javascript:wpsh_print(127)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_127" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">sshfs charly<span class="sy0">@</span>charly11111.dyndns.org:<span class="sy0">/</span>media<span class="sy0">/</span>Audio <span class="sy0">/</span>media<span class="sy0">/</span>Audio</pre></div></div></p>
<p>Jetzt kann man sich damit entsprechend ein Bash Script anlegen wo dann alles gemountet wird.</p>
<p>(4) Unmounten<br />
Um die gemounteten Verzeichnis wieder loszuwerden, kann einfach folgender Befehl ausgeführt werden:<br />
<div id="wpshdo_128" class="wp-synhighlighter-outer"><div id="wpshdt_128" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_128"></a><a id="wpshat_128" class="wp-synhighlighter-title" href="#codesyntax_128"  onClick="javascript:wpsh_toggleBlock(128)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_128" onClick="javascript:wpsh_code(128)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_128" onClick="javascript:wpsh_print(128)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_128" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">fusermount <span class="re5">-u</span> <span class="sy0">/</span>path<span class="sy0">/</span>to<span class="sy0">/</span>mountpoint</pre></div></div></p>
<p>(5) fstab einrichten<br />
Natürlich können auch Einträge in der fstab gemacht werden. Diese sehen dann so aus:<br />
<div id="wpshdo_129" class="wp-synhighlighter-outer"><div id="wpshdt_129" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_129"></a><a id="wpshat_129" class="wp-synhighlighter-title" href="#codesyntax_129"  onClick="javascript:wpsh_toggleBlock(129)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_129" onClick="javascript:wpsh_code(129)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_129" onClick="javascript:wpsh_print(129)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_129" class="wp-synhighlighter-inner" style="display: block;"><pre class="java" style="font-family:monospace;">sshfs#user@host<span class="sy0">:</span>directory mountpoint fuse user <span class="nu0">0</span> <span class="nu0">0</span></pre></div></div><br />
Um danach ein Eintrag zu mounten muss nur noch folgendes ausgeführt werden:<br />
<div id="wpshdo_130" class="wp-synhighlighter-outer"><div id="wpshdt_130" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_130"></a><a id="wpshat_130" class="wp-synhighlighter-title" href="#codesyntax_130"  onClick="javascript:wpsh_toggleBlock(130)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_130" onClick="javascript:wpsh_code(130)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_130" onClick="javascript:wpsh_print(130)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_130" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">mount</span> <span class="sy0">/</span>path<span class="sy0">/</span>to<span class="sy0">/</span>mountpoint</pre></div></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/sshfs-einfach-gemacht/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenVPN einrichten</title>
		<link>http://www.simplylinux.ch/openvpn-einrichten</link>
		<comments>http://www.simplylinux.ch/openvpn-einrichten#comments</comments>
		<pubDate>Sat, 22 Aug 2009 10:38:26 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[tomato]]></category>
		<category><![CDATA[wrt54]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/?p=157</guid>
		<description><![CDATA[Ich habe inzwischen auch mal ein bisschen mit OpenVPN herumgespielt und bin auf einige Probleme gestoosen. Ich werde diese nachfolgend erläutern und auch darlegen wie ich das gelöst habe. Mein Ziel war, dass grundsätzlich alles von meinem Lan Server über OpenVPN läuft (also auch rTorrent) aber ich wollte noch weiterhin Zugriff über die public ip [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe inzwischen auch mal ein bisschen mit OpenVPN herumgespielt und bin auf einige Probleme gestoosen. Ich werde diese nachfolgend erläutern und auch darlegen wie ich das gelöst habe. Mein Ziel war, dass grundsätzlich alles von meinem Lan Server über OpenVPN läuft (also auch rTorrent) aber ich wollte noch weiterhin Zugriff über die public ip haben.</p>
<p><span id="more-157"></span></p>
<h3>1. OpenVPN installieren und konfigurieren</h3>
<p>Hier werde ich nicht selbst was reinfügen sondern auf die bekannten Howtos verweisen. Grundsätzlich kann diesem Howto hier gefolgt werden: <a href="http://wiki.openvpn.eu/index.php/Konfiguration_eines_Internetgateways" target="_blank">http://wiki.openvpn.eu/index.php/Konfiguration_eines_Internetgateways</a></p>
<p>Was die Zertifikate angeht, vorallem wenn man komplexere Setups machen will, hat mir dieser Artikel geholfen: <a href="http://openvpn.net/index.php/open-source/documentation/howto.html#pki" target="_blank">http://openvpn.net/index.php/open-source/documentation/howto.html#pki</a></p>
<p>Damit sollte sich schnell ein VPN einrichten lassen.</p>
<h3>2. Troubleshooting</h3>
<p>Sollten Probleme auftauchen und die beiden Seite nicht weiterhelfen, kann entweder auf dem Forum <a href="http://www.ovpnforum.com" target="_blank">http://www.ovpnforum.com</a> oder im IRC (##openvpn auf irc.freenode.org:6667) um Hilfe ersucht werden (wobei IRC nach meiner kleinen Erfahrung besser ist).</p>
<p>Wichtig ist vorallem auch, dass man sich die Konfigurationsdateien ansieht und allenfalls diese schon per Pastebin zur Verfügung hat. Um die Konfiguration einfach und bequem angezeigt zu bekommen, kann dieser kleine reguläre Ausdruck verwendet werden:</p>
<div id="wpshdo_131" class="wp-synhighlighter-outer"><div id="wpshdt_131" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_131"></a><a id="wpshat_131" class="wp-synhighlighter-title" href="#codesyntax_131"  onClick="javascript:wpsh_toggleBlock(131)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_131" onClick="javascript:wpsh_code(131)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_131" onClick="javascript:wpsh_print(131)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_131" class="wp-synhighlighter-inner" style="display: block;"><pre class="pascal" style="font-family:monospace;">grep <span class="sy0">-</span>vE <span class="st_h">'^#|^;|^$'</span> server.<span class="me1">conf</span></pre></div></div>
<p>Dies im /etc/openvpn Verzeichnis ausführen lassen. Je nachdem allenfalls server.conf mit client.conf ersetzen. Meine Configs sehen derzeit so aus:</p>
<div id="wpshdo_132" class="wp-synhighlighter-outer"><div id="wpshdt_132" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_132"></a><a id="wpshat_132" class="wp-synhighlighter-title" href="#codesyntax_132"  onClick="javascript:wpsh_toggleBlock(132)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_132" onClick="javascript:wpsh_code(132)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_132" onClick="javascript:wpsh_print(132)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_132" class="wp-synhighlighter-inner" style="display: block;"><pre class="pascal" style="font-family:monospace;">hyper@........<span class="sy0">:/</span>etc<span class="sy0">/</span>openvpn$ sudo grep <span class="sy0">-</span>vE <span class="st_h">'^#|^;|^$'</span> server.<span class="me1">conf</span>
port <span class="nu0">1194</span>
proto udp
dev tun
ca .<span class="sy0">/</span>easy<span class="sy0">-</span>rsa2<span class="sy0">/</span>keys<span class="sy0">/</span>ca.<span class="me1">crt</span>
cert .<span class="sy0">/</span>easy<span class="sy0">-</span>rsa2<span class="sy0">/</span>keys<span class="sy0">/</span>server.<span class="me1">crt</span>
key .<span class="sy0">/</span>easy<span class="sy0">-</span>rsa2<span class="sy0">/</span>keys<span class="sy0">/</span>server.<span class="me1">key</span>    # Diese Datei geheim halten.
<span class="me1">dh</span> .<span class="sy0">/</span>easy<span class="sy0">-</span>rsa2<span class="sy0">/</span>keys<span class="sy0">/</span>dh1024.<span class="me1">pem</span>     # Diffie<span class="sy0">-</span>Hellman<span class="sy0">-</span>Parameter
server 10.8.0.0 255.255.255.0
ifconfig<span class="sy0">-</span>pool<span class="sy0">-</span>persist ipp.<span class="me1">txt</span>
push <span class="st0">&quot;redirect-gateway def1&quot;</span> # leitet den Internettraffic am Client zum Server um
push <span class="st0">&quot;dhcp-option DNS 208.67.222.222&quot;</span> # DNS<span class="sy0">-</span>Server <span class="nu0">1</span>
push <span class="st0">&quot;dhcp-option DNS 208.67.220.220&quot;</span> # DNS<span class="sy0">-</span>Server <span class="nu0">2</span> <span class="br0">&#40;</span>falls vorhanden<span class="br0">&#41;</span>
ping<span class="sy0">-</span>timer<span class="sy0">-</span>rem
keepalive <span class="nu0">20</span> <span class="nu0">180</span>
comp<span class="sy0">-</span>lzo
user openvpn
group openvpn
persist<span class="sy0">-</span>key
persist<span class="sy0">-</span>tun
status openvpn<span class="sy0">-</span>status.<span class="me1">log</span>
verb <span class="nu0">6</span>
mute <span class="nu0">50</span>
log     openvpn.<span class="me1">log</span></pre></div></div>
<div id="wpshdo_133" class="wp-synhighlighter-outer"><div id="wpshdt_133" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_133"></a><a id="wpshat_133" class="wp-synhighlighter-title" href="#codesyntax_133"  onClick="javascript:wpsh_toggleBlock(133)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_133" onClick="javascript:wpsh_code(133)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_133" onClick="javascript:wpsh_print(133)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_133" class="wp-synhighlighter-inner" style="display: block;"><pre class="pascal" style="font-family:monospace;">hyper@xubi<span class="sy0">:/</span>etc<span class="sy0">/</span>openvpn$ sudo grep <span class="sy0">-</span>vE <span class="st_h">'^#|^;|^$'</span> client.<span class="me1">conf</span>
client
dev tun
proto udp
remote ........ # Domain <span class="kw1">Name</span> oder IP
resolv<span class="sy0">-</span>retry infinite
nobind
persist<span class="sy0">-</span>key
persist<span class="sy0">-</span>tun
ca ca.<span class="me1">crt</span>
cert rubi.<span class="me1">crt</span>
key rubi.<span class="me1">key</span>
ns<span class="sy0">-</span>cert<span class="sy0">-</span><span class="kw1">type</span> server
comp<span class="sy0">-</span>lzo
verb <span class="nu0">6</span>
mute <span class="nu0">50</span>
log     openvpn.<span class="me1">log</span></pre></div></div>
<h3>3. Public IP SSH</h3>
<p>Mit dem da oben läuft alles wunderbar. rTorrent und sämtlicher andere Traffic läuft nun über das OpenVPN. Allerdings hatte ich noch ein Problem. Ich konnte nicht mehr vom Internet mit ssh auf den Client mit meiner Public IP zugreifen, sondern nur noch über den VPN Server.</p>
<p>Hilfe habe ich im ##openvpn Forum bekommen. Dort wurde mir gesagt, dass das Routing noch nicht stimme und ich müsste auf meinem Router noch ein entsprechender Eintrag machen. Da ich Tomato WRT benutz auf meinem Linksys WRT4GL musst ich dort unter Administration &#8211;> Scripts und dann im Firewall Tab nur folgendes einfügen:<br />
<div id="wpshdo_134" class="wp-synhighlighter-outer"><div id="wpshdt_134" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_134"></a><a id="wpshat_134" class="wp-synhighlighter-title" href="#codesyntax_134"  onClick="javascript:wpsh_toggleBlock(134)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_134" onClick="javascript:wpsh_code(134)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_134" onClick="javascript:wpsh_print(134)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_134" class="wp-synhighlighter-inner" style="display: block;"><pre class="pascal" style="font-family:monospace;">iptables <span class="sy0">-</span>t nat <span class="sy0">-</span>I POSTROUTING <span class="sy0">-</span>o br0 <span class="sy0">-</span>p tcp <span class="sy0">--</span>dport <span class="nu0">22</span> <span class="sy0">-</span>j MASQUERADE</pre></div></div></p>
<p>Nach dem Reboot des Routers funktioniert nun alles so wie es sollte.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/openvpn-einrichten/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Relay Email von einem Postfix Server</title>
		<link>http://www.simplylinux.ch/relay-email-von-einem-postfix-server</link>
		<comments>http://www.simplylinux.ch/relay-email-von-einem-postfix-server#comments</comments>
		<pubDate>Sat, 22 Aug 2009 06:32:35 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[relay email]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/?p=149</guid>
		<description><![CDATA[Ich habe vor einiger Zeit bei mir auf der Arbeit einen kompletten Mailserver aufgesetzt. Grund war, dass die Mails verschlüsselt bei uns lagern sollen und nicht bei nem ISP der jederzeit Zugriff nehmen kann oder dies bereits aus Marketing gründen tut. Da ich die Kosten möglichst klein halten wollte, habe ich auch weiter die dynamische [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe vor einiger Zeit bei mir auf der Arbeit einen kompletten Mailserver aufgesetzt. Grund war, dass die Mails verschlüsselt bei uns lagern sollen und nicht bei nem ISP der jederzeit Zugriff nehmen kann oder dies bereits aus Marketing gründen tut. Da ich die Kosten möglichst klein halten wollte, habe ich auch weiter die dynamische IP verwendet die Bluewin zur Verfügung stellt. Dank <a href="http://www.everydns.net" target="_blank">everydns.net</a> und einem kleinen Script welches die DNS bei EveryDNS auf dem laufenden hält, hat sich das bewährt. Die einzig grössere Schwierigkeit die ich an sich hatte war der Mail Versand. Viele Mailserver akzeptieren keine Mails von dynamischen IPs, also musste ich die Emails über den ISP (im vorliegenden Fall Bluewin) relayen. Nachfolgend gibts das kleine Howto:</p>
<p><span id="more-149"></span></p>
<h3>1. main.cf anpassen</h3>
<p>Zuerst muss die main.cf geöffnet werden:</p>
<div id="wpshdo_135" class="wp-synhighlighter-outer"><div id="wpshdt_135" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_135"></a><a id="wpshat_135" class="wp-synhighlighter-title" href="#codesyntax_135"  onClick="javascript:wpsh_toggleBlock(135)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_135" onClick="javascript:wpsh_code(135)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_135" onClick="javascript:wpsh_print(135)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_135" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">nano</span> <span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>main.cf</pre></div></div>
<p>Und folgendes (am Schluss) einfügen:</p>
<div id="wpshdo_136" class="wp-synhighlighter-outer"><div id="wpshdt_136" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_136"></a><a id="wpshat_136" class="wp-synhighlighter-title" href="#codesyntax_136"  onClick="javascript:wpsh_toggleBlock(136)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_136" onClick="javascript:wpsh_code(136)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_136" onClick="javascript:wpsh_print(136)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_136" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">smtp_sasl_auth_enable = <span class="kw2">yes</span>
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = <span class="kw3">hash</span>:<span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>saslpasswd
smtp_always_send_ehlo = <span class="kw2">yes</span>
relayhost = smtp.yourisp.com</pre></div></div>
<p>SASL muss natürlich funktionieren (falls nicht, schaut mal die Howtos bei <a href="http://www.howtoforge.com" target=_blank">http://www.howtoforge.com</a> an, im Speziellen die &#8220;Perfect Howtos&#8221; von falko) und bei realyhost muss natürlich der gewünschte ISP gesetzt werden. Ist für den SMTP Versand noch eine bestimmte Portangabe notwendig, so muss folgendes Format verwendet werden:</p>
<div id="wpshdo_137" class="wp-synhighlighter-outer"><div id="wpshdt_137" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_137"></a><a id="wpshat_137" class="wp-synhighlighter-title" href="#codesyntax_137"  onClick="javascript:wpsh_toggleBlock(137)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_137" onClick="javascript:wpsh_code(137)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_137" onClick="javascript:wpsh_print(137)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_137" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">relayhost = <span class="br0">&#91;</span>smtp.yourisp.com<span class="br0">&#93;</span>:PORT</pre></div></div>
<p>Im Konkreten sieht das bei Bluewin folgendermassen aus:</p>
<div id="wpshdo_138" class="wp-synhighlighter-outer"><div id="wpshdt_138" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_138"></a><a id="wpshat_138" class="wp-synhighlighter-title" href="#codesyntax_138"  onClick="javascript:wpsh_toggleBlock(138)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_138" onClick="javascript:wpsh_code(138)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_138" onClick="javascript:wpsh_print(138)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_138" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">relayhost = <span class="br0">&#91;</span>smtpauth.bluewin.ch<span class="br0">&#93;</span>:<span class="nu0">587</span></pre></div></div>
<p>Dann kann die main.cf gespeichert und geschlossen werden.</p>
<h3>2. Die Datei saslpasswd anlegen und editieren</h3>
<p>Anstelle von saslpasswd kann der Datei auch einen anderen Namen gegeben werden. Dann muss dies aber in der main.cf entsprechend angepasst werden (siehe Schritt 1). Angelegt wird die Datei indem wir sie gleich editieren und dann speichern:</p>
<div id="wpshdo_139" class="wp-synhighlighter-outer"><div id="wpshdt_139" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_139"></a><a id="wpshat_139" class="wp-synhighlighter-title" href="#codesyntax_139"  onClick="javascript:wpsh_toggleBlock(139)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_139" onClick="javascript:wpsh_code(139)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_139" onClick="javascript:wpsh_print(139)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_139" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">nano</span> <span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>saslpasswd</pre></div></div>
<p>In der Datei dann folgendes einfügen:</p>
<div id="wpshdo_140" class="wp-synhighlighter-outer"><div id="wpshdt_140" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_140"></a><a id="wpshat_140" class="wp-synhighlighter-title" href="#codesyntax_140"  onClick="javascript:wpsh_toggleBlock(140)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_140" onClick="javascript:wpsh_code(140)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_140" onClick="javascript:wpsh_print(140)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_140" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">smtp.yourisp.com     yourlogin:yourpassword</pre></div></div>
<p>Bei der Angabe des SMTP Servers ist der Port nicht anzugeben. Der Loginname und das Passwort müssen von einem Konto bei diesem ISP sein, das existiert um Emails durch diesen ISP zu senden. Dann kann die Datei gespeichert und geschlossen werden.</p>
<h3>3. Hashen der saslpasswd Datei</h3>
<p>Die Datei muss jetzt noch gehashed werden mit postmap:</p>
<div id="wpshdo_141" class="wp-synhighlighter-outer"><div id="wpshdt_141" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_141"></a><a id="wpshat_141" class="wp-synhighlighter-title" href="#codesyntax_141"  onClick="javascript:wpsh_toggleBlock(141)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_141" onClick="javascript:wpsh_code(141)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_141" onClick="javascript:wpsh_print(141)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_141" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">postmap <span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>saslpasswd</pre></div></div>
<h3>4. Postfix neu starten</h3>
<p>Zu guter letzt muss noch Postfix neu gestartet werden:</p>
<div id="wpshdo_142" class="wp-synhighlighter-outer"><div id="wpshdt_142" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_142"></a><a id="wpshat_142" class="wp-synhighlighter-title" href="#codesyntax_142"  onClick="javascript:wpsh_toggleBlock(142)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_142" onClick="javascript:wpsh_code(142)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_142" onClick="javascript:wpsh_print(142)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_142" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="sy0">/</span>etc<span class="sy0">/</span>init.d<span class="sy0">/</span>postfix restart</pre></div></div>
<p>Jetzt schickt Postfix alle ausgehenden Emails über den ISP und Postfix kann jetzt vollumfänglich genutzt werden.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/relay-email-von-einem-postfix-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash Completion für Debian</title>
		<link>http://www.simplylinux.ch/bash-completion-fuer-debian</link>
		<comments>http://www.simplylinux.ch/bash-completion-fuer-debian#comments</comments>
		<pubDate>Sun, 26 Apr 2009 11:46:02 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/?p=140</guid>
		<description><![CDATA[Bash Completion ist nützlich um Pfade, Befehlet etc. automatisch zu vervollständigen. Standardmässig hat Debian dies nicht integriert, Ubuntu jedoch schon. Mit zwei kleinen Schritten kann das Bash Completion auch unter Debian eingreichtet werden. 1. Installiere das bash-completion Paket Zuerst muss das bash-completion Paket installiert werden: 2. Bash Completion im Bash Profil hinzufügen Um nur einzelnen [...]]]></description>
			<content:encoded><![CDATA[<p>Bash Completion ist nützlich um Pfade, Befehlet etc. automatisch zu vervollständigen. Standardmässig hat Debian dies nicht integriert, Ubuntu jedoch schon. Mit zwei kleinen Schritten kann das Bash Completion auch unter Debian eingreichtet werden.</p>
<p><span id="more-140"></span></p>
<h3>1. Installiere das bash-completion Paket</h3>
<p>Zuerst muss das bash-completion Paket installiert werden:</p>
<div id="wpshdo_143" class="wp-synhighlighter-outer"><div id="wpshdt_143" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_143"></a><a id="wpshat_143" class="wp-synhighlighter-title" href="#codesyntax_143"  onClick="javascript:wpsh_toggleBlock(143)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_143" onClick="javascript:wpsh_code(143)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_143" onClick="javascript:wpsh_print(143)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_143" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">apt-get</span> <span class="kw2">install</span> bash-completion</pre></div></div>
<h3>2. Bash Completion im Bash Profil hinzufügen</h3>
<p>Um nur einzelnen Benutzer Bash Completion zur Verfügung zu stellen muss deren <i>~/.bash_profile</i> Datei angepasst werden oder aber um es auf dem ganzen System zu Aktivieren muss die <i>/etc/profile</i> Datei editiert und folgendes hinzugefügt werden:</p>
<div id="wpshdo_144" class="wp-synhighlighter-outer"><div id="wpshdt_144" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_144"></a><a id="wpshat_144" class="wp-synhighlighter-title" href="#codesyntax_144"  onClick="javascript:wpsh_toggleBlock(144)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_144" onClick="javascript:wpsh_code(144)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_144" onClick="javascript:wpsh_print(144)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_144" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw1">if</span> <span class="br0">&#91;</span> <span class="re5">-f</span> <span class="sy0">/</span>etc<span class="sy0">/</span>bash_completion <span class="br0">&#93;</span>; <span class="kw1">then</span>
 . <span class="sy0">/</span>etc<span class="sy0">/</span>bash_completion
<span class="kw1">fi</span></pre></div></div>
<h3>3. Testen</h3>
<p>Nachdem die entsprechende Datei(en) angepasst wurde, muss man sich aus- und wieder neu einloggen und man kann es nun folgendermassen gebrauchen:</p>
<div id="wpshdo_145" class="wp-synhighlighter-outer"><div id="wpshdt_145" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_145"></a><a id="wpshat_145" class="wp-synhighlighter-title" href="#codesyntax_145"  onClick="javascript:wpsh_toggleBlock(145)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_145" onClick="javascript:wpsh_code(145)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_145" onClick="javascript:wpsh_print(145)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_145" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">apt-g</pre></div></div>
<p>im Terminal eingeben und dann einmal die TAB Taste drücken. Das <i>apt-g</i> wird nun vervollständigt zu <i>apt-get</i>. Oder gib folgendes ein:</p>
<div id="wpshdo_146" class="wp-synhighlighter-outer"><div id="wpshdt_146" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_146"></a><a id="wpshat_146" class="wp-synhighlighter-title" href="#codesyntax_146"  onClick="javascript:wpsh_toggleBlock(146)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_146" onClick="javascript:wpsh_code(146)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_146" onClick="javascript:wpsh_print(146)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_146" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">apt</pre></div></div>
<p>und dann zweimal TAB drücken und dir werden dann alle möglichen Optionen aufgezeigt. Probiere auch noch folgendes aus:</p>
<div id="wpshdo_147" class="wp-synhighlighter-outer"><div id="wpshdt_147" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_147"></a><a id="wpshat_147" class="wp-synhighlighter-title" href="#codesyntax_147"  onClick="javascript:wpsh_toggleBlock(147)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_147" onClick="javascript:wpsh_code(147)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_147" onClick="javascript:wpsh_print(147)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_147" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">apt-get</span> <span class="kw2">install</span> apa</pre></div></div>
<p>und dann einmal TAB drücken um zu vervollständigen (soweit als möglich) und dann ein zweites Mal TAB drücken um die weiteren Möglichkeiten aufzulisten.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/bash-completion-fuer-debian/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MySQL Backup</title>
		<link>http://www.simplylinux.ch/mysql-backup</link>
		<comments>http://www.simplylinux.ch/mysql-backup#comments</comments>
		<pubDate>Wed, 01 Apr 2009 10:52:22 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/?p=82</guid>
		<description><![CDATA[Backups sind das A und O wenn es um Computer geht. Man kann versehentlich Dinge löschen oder ein Gerät hört auf zu funktionieren oder auch in letzter Zeit ist die Beschlagnahme von Computern Mode geworden (hier sollte man noch zusätzliche Verschlüsselung anwenden&#8230;). Damit sich der Datenverlust in Grenzen hält, sollte man also regelmässig Backups machen. [...]]]></description>
			<content:encoded><![CDATA[<p>Backups sind das A und O wenn es um Computer geht. Man kann versehentlich Dinge löschen oder ein Gerät hört auf zu funktionieren oder auch in letzter Zeit ist die Beschlagnahme von Computern Mode geworden (hier sollte man noch zusätzliche Verschlüsselung anwenden&#8230;). Damit sich der Datenverlust in Grenzen hält, sollte man also regelmässig Backups machen. Ein besonderes Problem hierbei stellen Daten in einer Datenbank.</p>
<p>Eine der populärsten Datenbanken unter Linux ist MySQL. Die Daten werden auf Debian/Ubuntu jeweils in /var/lib/mysql gespeichert. Man könnte einfach die ganzen binären Datenbanken kopieren. Das Problem ist jedoch, wenn sich während dem Kopieren der Datenbestand ändert. Dies kann dazu führen, dass die entsprechende Datenbank korrumpiert wird.<br />
<span id="more-82"></span><br />
Aus diesem Grunde gibts entweder die Möglichkeit, dass man MySQL während dem Backup ausschaltet oder dass man nicht die binären Datenbanken kopiert sondern einen Dump der Struktur und Inhalte erstellt. Die nachfolgenden Scripte machen solch einen Dump:</p>
<p>Alle Datenbanken in je eine eigene .sql Datei:</p>
<div id="wpshdo_148" class="wp-synhighlighter-outer"><div id="wpshdt_148" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_148"></a><a id="wpshat_148" class="wp-synhighlighter-title" href="#codesyntax_148"  onClick="javascript:wpsh_toggleBlock(148)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_148" onClick="javascript:wpsh_code(148)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_148" onClick="javascript:wpsh_print(148)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_148" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="co0">#!/bin/bash</span>
&nbsp;
<span class="co0"># Set variables</span>
<span class="re2">USER</span>=root
<span class="re2">PASSWORD</span>=<span class="sy0">************</span>
<span class="re2">HOST</span>=localhost
&nbsp;
<span class="co0"># Remove old backup files</span>
<span class="kw2">mkdir</span> <span class="sy0">/</span>mysql_backup
<span class="kw2">rm</span> <span class="re5">-f</span> <span class="sy0">/</span>mysql_backup<span class="sy0">/*</span>
&nbsp;
<span class="co0">#Dump new files</span>
&nbsp;
<span class="kw1">for</span> i <span class="kw1">in</span> $<span class="br0">&#40;</span><span class="kw3">echo</span> <span class="st_h">'SHOW DATABASES;'</span> <span class="sy0">|</span> mysql -u<span class="re1">$USER</span> -p<span class="re1">$PASSWORD</span> -h<span class="re1">$HOST</span><span class="sy0">|</span><span class="kw2">grep</span> <span class="re5">-v</span> <span class="st_h">'^Database$'</span><span class="br0">&#41;</span>; <span class="kw1">do</span>
  mysqldump                                                     \
  -u<span class="re1">$USER</span> -p<span class="re1">$PASSWORD</span> -h<span class="re1">$HOST</span>                                   \
  <span class="re5">-Q</span> <span class="re5">-e</span> <span class="re5">-C</span> <span class="re5">--add-drop-table</span> <span class="re5">--add-locks</span> <span class="re5">--quick</span> <span class="re5">--lock-tables</span>   \
  <span class="re5">-B</span> <span class="re1">$i</span>                                                         \
  <span class="re1">$i</span> <span class="sy0">&gt;</span> <span class="sy0">/</span>mysql_backup<span class="sy0">/</span><span class="re1">$i</span>.sql;
<span class="kw1">done</span>;</pre></div></div>
<p>Das nachfolgende Script wurde von dergringo weiter entwickelt und macht nicht nur separate .sql Files für jede Datenbank, sondern auch noch für jede einzelne Tabelle.</p>
<p><strong>WICHTIG: TARGET muss wohl überlegt gesetzt werden, da alle Dateien dort drinnen jeweils gelöscht werde. Das Standardverzeichnis /mysql_backup/ ist eine gute Lösung, muss aber unter Umständen angepasst werden.</strong></p>
<div id="wpshdo_149" class="wp-synhighlighter-outer"><div id="wpshdt_149" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_149"></a><a id="wpshat_149" class="wp-synhighlighter-title" href="#codesyntax_149"  onClick="javascript:wpsh_toggleBlock(149)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_149" onClick="javascript:wpsh_code(149)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_149" onClick="javascript:wpsh_print(149)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_149" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="co0">#!/bin/bash</span>
&nbsp;
<span class="co0">###############</span>
<span class="co0"># CONFIG</span>
<span class="co0">###############</span>
&nbsp;
<span class="re2">TARGET</span>=<span class="sy0">/</span>mysql_backup<span class="sy0">/</span>
<span class="re2">USER</span>=root
<span class="re2">PASSWORD</span>=<span class="sy0">*********</span>
<span class="re2">HOST</span>=localhost
&nbsp;
<span class="co0">###############</span>
<span class="co0"># SCRIPT</span>
<span class="co0">###############</span>
&nbsp;
<span class="co0"># Remove old files</span>
<span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re1">$TARGET</span> <span class="br0">&#93;</span><span class="br0">&#93;</span> <span class="sy0">&amp;&amp;</span> <span class="kw3">cd</span> <span class="st0">&quot;<span class="es2">$TARGET</span>&quot;</span> <span class="sy0">&amp;&amp;</span> <span class="kw2">rm</span> <span class="re5">-r</span> .<span class="sy0">/*</span>
&nbsp;
<span class="co0">#Dump new files</span>
<span class="kw1">for</span> DB <span class="kw1">in</span> $<span class="br0">&#40;</span><span class="kw3">echo</span> <span class="st_h">'SHOW DATABASES;'</span> <span class="sy0">|</span> mysql -u<span class="re1">$USER</span> -p<span class="re1">$PASSWORD</span> -h<span class="re1">$HOST</span><span class="sy0">|</span><span class="kw2">grep</span> <span class="re5">-v</span> <span class="st_h">'^Database$'</span><span class="br0">&#41;</span>; <span class="kw1">do</span>
        <span class="re2">FOLDER</span>=<span class="re1">$TARGET</span><span class="re1">$DB</span>
        <span class="kw2">mkdir</span> <span class="re1">$FOLDER</span> <span class="sy0">&gt;</span> <span class="sy0">/</span>dev<span class="sy0">/</span>null 2<span class="sy0">&gt;&amp;</span>1
        <span class="kw1">for</span> TABLE <span class="kw1">in</span> $<span class="br0">&#40;</span><span class="kw3">echo</span> SHOW TABLES FROM <span class="re1">$DB</span> <span class="sy0">|</span> mysql -u<span class="re1">$USER</span> -p<span class="re1">$PASSWORD</span> -h<span class="re1">$HOST</span> <span class="sy0">|</span> <span class="kw2">tail</span> <span class="re5">-n</span> +2<span class="br0">&#41;</span>; <span class="kw1">do</span>
                mysqldump -u<span class="re1">$USER</span> -p<span class="re1">$PASSWORD</span> -h<span class="re1">$HOST</span> <span class="re1">$DB</span> <span class="re1">$TABLE</span> <span class="sy0">&gt;</span> <span class="re1">$FOLDER</span><span class="sy0">/</span><span class="re1">$TABLE</span>.sql
        <span class="kw1">done</span>;
<span class="kw1">done</span>;</pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/mysql-backup/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Speicherbedarf ermitteln</title>
		<link>http://www.simplylinux.ch/speicherbedarf-ermitteln</link>
		<comments>http://www.simplylinux.ch/speicherbedarf-ermitteln#comments</comments>
		<pubDate>Mon, 23 Feb 2009 10:30:04 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[disk usage]]></category>
		<category><![CDATA[filesize]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/?p=52</guid>
		<description><![CDATA[Ich wollte heute mal wissen, wie gross den meine Musiksammlung ist &#8211; getrennt nach Dateitypen, da ich vor einiger Zeit angefangen habe alles auf .flac umzustellen. Speicherplatz ist ja kein grosses Problem. Eine 1 TB Platte bekommt man ja für ca. CHF 100.00 (oder ein bisschen mehr, weiss nicht wie die Preise jetzt sind) und [...]]]></description>
			<content:encoded><![CDATA[<p>Ich wollte heute mal wissen, wie gross den meine Musiksammlung ist &#8211; getrennt nach Dateitypen, da  ich vor einiger Zeit angefangen habe alles auf .flac umzustellen. Speicherplatz ist ja kein grosses Problem. Eine 1 TB Platte bekommt man ja für ca. CHF 100.00 (oder ein bisschen mehr, weiss nicht wie die Preise jetzt sind) und darauf passen ca. 2300 CDs die in Flac aufgenommen wurden mit maximaler Kompression. Als gibts keinen wirklichen Grund nicht-verlustfrei die Musik zu speichern, auch wenn die Dateien gegenüber .mp3/.ogg 4-5x grösser sind.<br />
<span id="more-52"></span><br />
Den Speicherbedarf kann man also mit einem Einzeiler ausfindig machen:</p>
<div id="wpshdo_150" class="wp-synhighlighter-outer"><div id="wpshdt_150" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_150"></a><a id="wpshat_150" class="wp-synhighlighter-title" href="#codesyntax_150"  onClick="javascript:wpsh_toggleBlock(150)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_150" onClick="javascript:wpsh_code(150)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_150" onClick="javascript:wpsh_print(150)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_150" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">find</span> <span class="sy0">/</span>home<span class="sy0">/</span>hyper<span class="sy0">/</span>Music <span class="re5">-type</span> f <span class="re5">-name</span> <span class="st0">&quot;*.flac&quot;</span> <span class="re5">-ls</span> <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st_h">'{ sum += $7 } END { print &quot;total size: &quot; sum}'</span></pre></div></div>
<p>Einfach den Pfad setzen (hier /home/hyper/Music), dann noch den Dateityp bestimmen (*.flac) und schon kriegt man das Resultat in Bytes zurück.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/speicherbedarf-ermitteln/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ändern des Standard-/home Verzeichnisses</title>
		<link>http://www.simplylinux.ch/aendern-des-standard-home-verzeichnisses</link>
		<comments>http://www.simplylinux.ch/aendern-des-standard-home-verzeichnisses#comments</comments>
		<pubDate>Sat, 06 Dec 2008 19:25:28 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[change home folder]]></category>
		<category><![CDATA[home]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/?p=31</guid>
		<description><![CDATA[Ich habe mich in letzter Zeit ein bisschen mit Raid1 / LVM / Verschlüsselung befasst. Ich habe entsprechend auch ein Howto auf howtoforge.com diesbezüglich veröffentlicht. Nun habe ich für unsere kleine Kanzlei einen neuen Server zusammengebastelt. Besten Dank noch an Chris beim Zusammenbauen &#8211; bei dir geht das viel schneller als bei mir *g*. Ziel [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe mich in letzter Zeit ein bisschen mit Raid1 / LVM / Verschlüsselung befasst. Ich habe entsprechend auch ein Howto auf <a href="http://www.howtoforge.com/set-up-a-fully-encrypted-raid1-lvm-system">howtoforge.com</a> diesbezüglich veröffentlicht.</p>
<p>Nun habe ich für unsere kleine Kanzlei einen neuen Server zusammengebastelt. Besten Dank noch an Chris beim Zusammenbauen &#8211; bei dir geht das viel schneller als bei mir *g*. Ziel auf des Servers ist folgendes Schema:<br />
<span id="more-31"></span><br />
- Alles wird mit einem Raid1 gespiegelt<br />
- Die /boot Partition ist Ext3 und unverschlüsselt (1 GB)<br />
- Swap ist verschlüsselt (2GB)<br />
- Die root &#8220;/&#8221; Partition ist auch Ext3 und verschlüsselt (15GB)<br />
- Der Rest der 1 TB Platte ist auch verschlüsselt und dann innerhalb von LUKS/dm-crypt ein LVM. Gemounted will ich das ganze als /daten haben und benutze XFS als Dateisystem</p>
<p>Die Gründe dafür sind:</p>
<p>- Sollte eine der beiden Platten den Geist aufgeben, läuft das System trotzdem noch weiter<br />
- Mit Raid1 kann einfach eine neue Platte eingehängt werden und die dann als Spiegel verwendet werden<br />
- 1 GB für /boot ist mehr als genug<br />
- 2 GB reicht für Swap (die Kiste hat auch 2 GB Ram) und in der Kanzlei sind meist 5 oder weniger Leute die darauf gleichzeitig zugreifen und zudem dient die Kiste eigentlich nur als Mail- und Hordeserver<br />
- 15 GB für root &#8220;/&#8221; ist grosszügig bemessen. Da allenfalls auch ab und wann mal eine DVD gebrannt werden könnte, sollte doch ein bisschen Platz übrig sein.<br />
- Die ganzen &#8220;Benutzerdaten&#8221; sollten alle am selben Ort sein. Das macht Backups einfacher finde ich. Also will ich das /home als /daten/home haben, dasselbe gilt für /var/www &#8211;&gt; /daten/www und auch die MySQL DB soll dort gespeichert werden. So dass im root Verzeichnis wirklich nur die &#8220;wichtigen&#8221; Systemdinge sind.</p>
<p>Das ändern des Homeverzeichnisses geht ganz einfach.</p>
<p>Zuerst die Datei /etc/default/useradd editieren:</p>
<div id="wpshdo_151" class="wp-synhighlighter-outer"><div id="wpshdt_151" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_151"></a><a id="wpshat_151" class="wp-synhighlighter-title" href="#codesyntax_151"  onClick="javascript:wpsh_toggleBlock(151)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_151" onClick="javascript:wpsh_code(151)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_151" onClick="javascript:wpsh_print(151)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_151" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">nano</span> <span class="sy0">/</span>etc<span class="sy0">/</span>default<span class="sy0">/</span>useradd</pre></div></div>
<p>Dort die &#8220;HOME&#8221; Variable finden und diese ändern zu:</p>
<div id="wpshdo_152" class="wp-synhighlighter-outer"><div id="wpshdt_152" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_152"></a><a id="wpshat_152" class="wp-synhighlighter-title" href="#codesyntax_152"  onClick="javascript:wpsh_toggleBlock(152)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_152" onClick="javascript:wpsh_code(152)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_152" onClick="javascript:wpsh_print(152)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_152" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="re2">HOME</span>=<span class="sy0">/</span>daten<span class="sy0">/</span>home</pre></div></div>
<p>Allenfalls kann dort auch die default shell geändert werden. Da ich für die weiteren Mail Benutzer keine virtuellen Konten anlege, muss ich Systemkonten anlegen. Die sollen aber keinen Shellzugriff kriegen. Deswegen die Shellvariable noch zu dem hier ändern:</p>
<div id="wpshdo_153" class="wp-synhighlighter-outer"><div id="wpshdt_153" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_153"></a><a id="wpshat_153" class="wp-synhighlighter-title" href="#codesyntax_153"  onClick="javascript:wpsh_toggleBlock(153)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_153" onClick="javascript:wpsh_code(153)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_153" onClick="javascript:wpsh_print(153)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_153" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="re2">SHELL</span>=<span class="sy0">/</span>bin<span class="sy0">/</span><span class="kw2">false</span></pre></div></div>
<p>Nano kann dann mit ctrl-x, &#8216;y&#8217;, enter verlassen werden.</p>
<p>Jetzt haben wir zwar das Homeverzeichnis geändert, aber wir müssen auch die bestehenden Benutzer übertragen:</p>
<div id="wpshdo_154" class="wp-synhighlighter-outer"><div id="wpshdt_154" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_154"></a><a id="wpshat_154" class="wp-synhighlighter-title" href="#codesyntax_154"  onClick="javascript:wpsh_toggleBlock(154)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_154" onClick="javascript:wpsh_code(154)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_154" onClick="javascript:wpsh_print(154)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_154" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">mv</span> <span class="sy0">/</span>home <span class="sy0">/</span>daten<span class="sy0">/</span></pre></div></div>
<p>Und dann, nur zur Sicherheit, noch einen Symlink erstellen:</p>
<div id="wpshdo_155" class="wp-synhighlighter-outer"><div id="wpshdt_155" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_155"></a><a id="wpshat_155" class="wp-synhighlighter-title" href="#codesyntax_155"  onClick="javascript:wpsh_toggleBlock(155)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_155" onClick="javascript:wpsh_code(155)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_155" onClick="javascript:wpsh_print(155)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_155" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">ln</span> <span class="re5">-s</span> <span class="sy0">/</span>daten<span class="sy0">/</span>home <span class="sy0">/</span>home</pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/aendern-des-standard-home-verzeichnisses/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SSH Login ohne Passwort (Key-Based)</title>
		<link>http://www.simplylinux.ch/ssh-login-ohne-passwort-key-based</link>
		<comments>http://www.simplylinux.ch/ssh-login-ohne-passwort-key-based#comments</comments>
		<pubDate>Mon, 03 Nov 2008 19:15:17 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[Allgemeines]]></category>
		<category><![CDATA[Benutzer]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[key-based login]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/?p=19</guid>
		<description><![CDATA[Die Verbindungsaufnahme mit SSH ohne Passwortabfrage ist denkbar einfach. Diese Methode kann dazu benutzt werden um unbedarfte Benutzer kein Passwort mitteilen zu müssen, dass die sich eh nicht merken können oder um sich selber das Leben einfacher zu machen oder um Services zu automatisieren, wie z.B. rsync über SSH. In vier einfach Schritten kann dies [...]]]></description>
			<content:encoded><![CDATA[<p>Die Verbindungsaufnahme mit SSH ohne Passwortabfrage ist denkbar einfach. Diese Methode kann dazu benutzt werden um unbedarfte Benutzer kein Passwort mitteilen zu müssen, dass die sich eh nicht merken können oder um sich selber das Leben einfacher zu machen oder um Services zu automatisieren, wie z.B. rsync über SSH.</p>
<p>In vier einfach Schritten kann dies erreicht werden!<br />
<span id="more-19"></span><br />
<strong>1. Schritt &#8211; Einführung</strong></p>
<p>Nachfolgend wird als &#8220;Client&#8221; der Computer bezeichnet, an dem ein Benutzer sitzt. &#8220;Server&#8221; ist der Computer, in den eingeloggt werden soll ohne Passwort über SSH und &#8220;User&#8221; ist der Benutzer mit dem man sich am Server anmeldet. Ohne key-based SSH würde das folgendermassen aussehen:</p>
<div id="wpshdo_156" class="wp-synhighlighter-outer"><div id="wpshdt_156" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_156"></a><a id="wpshat_156" class="wp-synhighlighter-title" href="#codesyntax_156"  onClick="javascript:wpsh_toggleBlock(156)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_156" onClick="javascript:wpsh_code(156)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_156" onClick="javascript:wpsh_print(156)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_156" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">ssh</span> user<span class="sy0">@</span>server</pre></div></div>
<p>Dann kommt die Passwort Aufforderung.</p>
<p><strong>2. Kreieren des Public Key</strong></p>
<p>Auf dem Client muss folgender Befehl ausgeführt werden:</p>
<div id="wpshdo_157" class="wp-synhighlighter-outer"><div id="wpshdt_157" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_157"></a><a id="wpshat_157" class="wp-synhighlighter-title" href="#codesyntax_157"  onClick="javascript:wpsh_toggleBlock(157)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_157" onClick="javascript:wpsh_code(157)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_157" onClick="javascript:wpsh_print(157)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_157" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> ~<span class="sy0">/</span>.ssh
<span class="kw2">ssh-keygen</span> <span class="re5">-t</span> dsa</pre></div></div>
<p>Es kommt dann die Aufforderung, wo die Datei gespeichert werden soll und wie die Datei benannt werden soll. Es schlägt vor, die Datei als <em>~/.ssh/id_dsa</em> zu speichern. Sollte man das ändern, muss das natürlich in den nachfolgenden Schritten auch bedacht werden &#8211; insbesondere wird beim Aufbau der Verbindung standardmässig nur nach der id_dsa gesucht.</p>
<p><strong>3. Den Public Key auf dem Server hinzufügen</strong></p>
<p>Mit folgendem Befehl wird dann der Public Key auf den Server geladen. Dabei muss das Passwort des Users auf dem Server angegeben werden.</p>
<div id="wpshdo_158" class="wp-synhighlighter-outer"><div id="wpshdt_158" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_158"></a><a id="wpshat_158" class="wp-synhighlighter-title" href="#codesyntax_158"  onClick="javascript:wpsh_toggleBlock(158)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_158" onClick="javascript:wpsh_code(158)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_158" onClick="javascript:wpsh_print(158)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_158" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">ssh-copy-id <span class="re5">-i</span> .ssh<span class="sy0">/</span>id_dsa.pub user<span class="sy0">@</span>server</pre></div></div>
<p><strong>4. Zugriff auf den Server nehmen</strong></p>
<p>Nun kann ausprobiert werden, ob es geklappt hat:</p>
<div id="wpshdo_159" class="wp-synhighlighter-outer"><div id="wpshdt_159" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_159"></a><a id="wpshat_159" class="wp-synhighlighter-title" href="#codesyntax_159"  onClick="javascript:wpsh_toggleBlock(159)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_159" onClick="javascript:wpsh_code(159)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_159" onClick="javascript:wpsh_print(159)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_159" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">ssh</span> user<span class="sy0">@</span>server</pre></div></div>
<p>Hier dürfte jetzt keine Passwortabfrage mehr erscheinen. Falls dem so ist und sonst keine Fehlermeldung kommt, dann hat es geklappt.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/ssh-login-ohne-passwort-key-based/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Einfaches Backup &amp; Restore der installierten Packete (Ubuntu/Debian)</title>
		<link>http://www.simplylinux.ch/einfaches-backup-restore-der-installierten-packete-ubuntudebian</link>
		<comments>http://www.simplylinux.ch/einfaches-backup-restore-der-installierten-packete-ubuntudebian#comments</comments>
		<pubDate>Sun, 14 Sep 2008 07:05:47 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[packages list]]></category>
		<category><![CDATA[restore]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/einfaches-backup-restore-der-installierten-packete-ubuntudebian</guid>
		<description><![CDATA[Bisher habe ich immer ein Backup Script verwendet um meine &#8220;Lieblingspackete&#8221; wieder zu installieren. Dieses Script sieht etwa so aus: Das konnte ich dann einfach mit &#8220;sudo install.sh&#8221; starten resp. auf Debian ist kein &#8220;sudo&#8221; notwendig. Der -y switch hat dafür gesorgt, dass automatisch installiert wird und nicht zuerst noch alles bestätigt werden musste. Zusätzlich [...]]]></description>
			<content:encoded><![CDATA[<p>Bisher habe ich immer ein Backup Script verwendet um meine &#8220;Lieblingspackete&#8221; wieder zu installieren. Dieses Script sieht etwa so aus:<br />
<span id="more-15"></span><br />
<div id="wpshdo_160" class="wp-synhighlighter-outer"><div id="wpshdt_160" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_160"></a><a id="wpshat_160" class="wp-synhighlighter-title" href="#codesyntax_160"  onClick="javascript:wpsh_toggleBlock(160)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_160" onClick="javascript:wpsh_code(160)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_160" onClick="javascript:wpsh_print(160)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_160" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="co0">#!/bin/bash</span>
<span class="co0">################ RESTORE SOURCES.LIST ###############</span>
<span class="co0">#cp -f backup_files/sources.list /etc/apt/sources.list</span>
<span class="co0">#cp -f backup_files/secring.gpg /etc/apt/secring.gpg</span>
<span class="co0">#cp -f backup_files/trustdb.gpg /etc/apt/trustdb.gpg</span>
<span class="co0">#cp -f backup_files/trusted.gpg /etc/apt/trusted.gpg</span>
<span class="co0">#####################################################</span>
<span class="co0"># Add Medibuntu</span>
<span class="co0"># wget -q http://medibuntu.sos-sts.com/repo/medibuntu-key.gpg -O- | sudo apt-key add -</span>
<span class="co0"># wget http://medibuntu.sos-sts.com/sources.list.d/feisty.list -O /etc/apt/sources.list.d/medibuntu.list</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> remove mozilla-thunderbird
<span class="kw2">apt-get</span> update
<span class="kw2">apt-get</span> <span class="re5">-y</span> upgrade
<span class="co0"># Skype</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> skype
<span class="co0"># Java</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> sun-java6-jre sun-java5-jre
<span class="co0"># Postfix</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> postfix
<span class="co0">#KDE Appz</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> kopete konversation konqueror k3b amarok krfb ktorrent
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> kftpgrabber kate kontact kdepim-kio-plugins kgpg
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> akregator <span class="kw2">gdb</span>
<span class="co0"># Burn Programs</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> gnomebaker
<span class="co0"># GnuPGP Key Management</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> seahorse file-roller
<span class="co0"># aMSN</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> amsn
<span class="co0"># IRSSI / OpenSSH</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> irssi openssh-server
<span class="co0"># GnuMP3d</span>
<span class="co0"># apt-get -y install gnump3d</span>
<span class="co0"># OTR</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> python-glade-<span class="nu0">1.2</span> python-gtk-<span class="nu0">1.2</span>
<span class="co0"># VmWare</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> linux-headers-<span class="sy0">`</span><span class="kw2">uname</span> -r<span class="sy0">`</span> build-essential xinetd
<span class="co0"># Browsers</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> kazehakase opera flashplugin-nonfree
<span class="co0"># Codecs</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> libdvdcss2 gstreamer0.10-ffmpeg gstreamer0.10-pitfdll gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gxine libxine-main1 libxine-extracodecs ogle ogle-gui w32codecs <span class="kw2">mplayer</span>
<span class="co0"># VLC</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> vlc
<span class="co0"># Samba</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> samba
<span class="co0"># Midnight Commander</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> mc
<span class="co0"># UNRAR</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> unrar
<span class="co0"># GParted</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> gparted
<span class="co0"># CheckRootKit</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> chkrootkit
<span class="co0"># OpenOffice</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> openoffice.org openoffice.org-gtk
<span class="co0"># ImageMagic</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> imagemagick
<span class="co0"># Numlock &amp; fonts</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> numlockx msttcorefonts
<span class="co0"># Timeserver</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> ntp ntpdate
<span class="co0"># various</span>
<span class="kw2">apt-get</span> <span class="re5">-y</span> <span class="kw2">install</span> whois phpmyadmin mysql-server mysql-client libmysqlclient15-dev adesklets d4x googleearth htop traceroute libjack0.100.0-dev
<span class="co0"># Restore other files</span>
<span class="kw2">cp</span> <span class="re5">-f</span> backup_files<span class="sy0">/</span>sysinfo <span class="sy0">/</span>usr<span class="sy0">/</span>share<span class="sy0">/</span>apps<span class="sy0">/</span>konversation<span class="sy0">/</span>scripts<span class="sy0">/</span>sysinfo
<span class="kw2">cp</span> <span class="re5">-f</span> backup_files<span class="sy0">/</span>screenshot <span class="sy0">/</span>usr<span class="sy0">/</span>bin<span class="sy0">/</span>screenshot</pre></div></div></p>
<p>Das konnte ich dann einfach mit &#8220;sudo install.sh&#8221; starten resp. auf Debian ist kein &#8220;sudo&#8221; notwendig. Der -y switch hat dafür gesorgt, dass automatisch installiert wird und nicht zuerst noch alles bestätigt werden musste.</p>
<p>Zusätzlich habe ich mir dazu noch ein paar Kategorien gemacht, so dass die Manipulation der Packete einfacher ist. Auch die Reihenfolge spielt eine Rolle, so verlange Skype, Java und Postfix noch ein paar Benutzereingaben, also habe ich das ziemlich am Anfang hingestellt.</p>
<p>Damit erreiche ich eine fast automatische Installation aller von mir gewollten Packete.</p>
<p><strong>Problem</strong>:</p>
<p>Das Problem liegt allerdings darin, dass ich entsprechend auch immer die Liste aktuell halten muss. D.h. wenn ich was neues installiere, dann muss ich das entsprechend auch wieder hinzufügen und &#8211; ich gebs ja zu &#8211; ich bin zwischendurch einfach zu faul dafür. Vorallem dann, wenn ich nur was ziehe um es mal zu testen, aber später dann doch länger beibehalte.</p>
<p><strong>Lösung:</strong></p>
<p>Mit folgendem kleinen Regex kann man sich bequem eine Liste aller installierten Pakete holen und in eine Textdatei speichern:</p>
<div id="wpshdo_161" class="wp-synhighlighter-outer"><div id="wpshdt_161" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_161"></a><a id="wpshat_161" class="wp-synhighlighter-title" href="#codesyntax_161"  onClick="javascript:wpsh_toggleBlock(161)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_161" onClick="javascript:wpsh_code(161)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_161" onClick="javascript:wpsh_print(161)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_161" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">dpkg</span> <span class="re5">-l</span> <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st_h">'/^ii/ { print $2 }'</span> <span class="sy0">&gt;</span> packages.txt</pre></div></div>
<p>Damit werden als alle installierten Packe in der packages.txt aufgelistet und es sieht dann so aus:</p>
<div id="wpshdo_162" class="wp-synhighlighter-outer"><div id="wpshdt_162" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_162"></a><a id="wpshat_162" class="wp-synhighlighter-title" href="#codesyntax_162"  onClick="javascript:wpsh_toggleBlock(162)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_162" onClick="javascript:wpsh_code(162)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_162" onClick="javascript:wpsh_print(162)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_162" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">acl
acpi
acpi-support
acpid
adduser
adept
adept-batch
adept-common
adept-installer
adept-manager
adept-notifier
adept-updater
aircrack-ng
akonadi-kde-kde4
akonadi-server
akregator
akregator-kde4
alsa-base
alsa-utils
amarok
amarok-kde4
amarok-xine
amsn
anacron
anon-proxy
apmd
app-install-data
apparmor
apparmor-utils
apport
apport-qt
apt
<span class="br0">&#91;</span>...<span class="br0">&#93;</span></pre></div></div>
<p>Vor einer Neuinstallation kann man also kurz mal die ganze Liste ziehen und es sich so anzeigen lassen, dann kann man sein Backupscript eventuell noch mit fehlenden Programmen ergänzen.</p>
<p>Wer allerdings sämtliche Pakete wieder installiet haben muss, der kann auch diesen Befehl hier verwenden:<br />
<div id="wpshdo_163" class="wp-synhighlighter-outer"><div id="wpshdt_163" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_163"></a><a id="wpshat_163" class="wp-synhighlighter-title" href="#codesyntax_163"  onClick="javascript:wpsh_toggleBlock(163)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_163" onClick="javascript:wpsh_code(163)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_163" onClick="javascript:wpsh_print(163)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_163" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">dpkg</span> <span class="re5">-l</span> <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st_h">'/^ii/ { print $2 }'</span> <span class="sy0">|</span> <span class="kw2">tr</span> <span class="st_h">'\n'</span> <span class="st_h">' '</span> <span class="sy0">&gt;</span> packages.txt</pre></div></div></p>
<p>Damit wird der Zeilenumbruch nach jedem Packet aufgehoben. Jetzt nun auch noch die packages.txt sichern (vor der Neuinstallation). Nachher können dann entsprechend alle Packete wieder installiert werden mit folgendem Befehl:<br />
<div id="wpshdo_164" class="wp-synhighlighter-outer"><div id="wpshdt_164" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_164"></a><a id="wpshat_164" class="wp-synhighlighter-title" href="#codesyntax_164"  onClick="javascript:wpsh_toggleBlock(164)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_164" onClick="javascript:wpsh_code(164)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_164" onClick="javascript:wpsh_print(164)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_164" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> <span class="sy0">`</span><span class="kw2">cat</span> packages.txt<span class="sy0">`</span></pre></div></div></p>
<p>Allerding müssen zuerst die entsprechenden Repos wieder hergestellt und upgedatet werden. Sonst gibts Fehlermeldungen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/einfaches-backup-restore-der-installierten-packete-ubuntudebian/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>USB Blockiert</title>
		<link>http://www.simplylinux.ch/usb-blockiert</link>
		<comments>http://www.simplylinux.ch/usb-blockiert#comments</comments>
		<pubDate>Mon, 07 Jul 2008 17:35:22 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[usb block]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/usb-blockiert</guid>
		<description><![CDATA[Heute habe ich mal versucht gleichzeitig x-verschiedene Sachen von meinem verschlüsselten KDE (luks/dm_crypt) auf meinen TrueCrypt verschlüsselten Stick&#8230; allerdings mochte der Stick das nicht und hat sich verabschiedet. Hinausziehen und Wiedereinstecken half nichts. Er hat sich nicht mehr initialisiert. Ich hab dann mal gegooglet wie ich das wieder beheben könnte und bin auf folgendes gestossen: [...]]]></description>
			<content:encoded><![CDATA[<p>Heute habe ich mal versucht gleichzeitig x-verschiedene Sachen von meinem verschlüsselten KDE (luks/dm_crypt) auf meinen TrueCrypt verschlüsselten Stick&#8230; allerdings mochte der Stick das nicht und hat sich verabschiedet. Hinausziehen und Wiedereinstecken half nichts. Er hat sich nicht mehr initialisiert.</p>
<p>Ich hab dann mal gegooglet wie ich das wieder beheben könnte und bin auf folgendes gestossen:<br />
<span id="more-14"></span><br />
(1) Zuerst das hier:</p>
<div id="wpshdo_165" class="wp-synhighlighter-outer"><div id="wpshdt_165" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_165"></a><a id="wpshat_165" class="wp-synhighlighter-title" href="#codesyntax_165"  onClick="javascript:wpsh_toggleBlock(165)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_165" onClick="javascript:wpsh_code(165)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_165" onClick="javascript:wpsh_print(165)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_165" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> rmmod usbhid
<span class="kw2">sudo</span> modprobe usbhid</pre></div></div>
<p>Das brachte aber nicht den gewünschten Erfolg.</p>
<p>(2) Dann habe ich das hier probiert:</p>
<div id="wpshdo_166" class="wp-synhighlighter-outer"><div id="wpshdt_166" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_166"></a><a id="wpshat_166" class="wp-synhighlighter-title" href="#codesyntax_166"  onClick="javascript:wpsh_toggleBlock(166)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_166" onClick="javascript:wpsh_code(166)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_166" onClick="javascript:wpsh_print(166)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_166" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="sy0">/</span>etc<span class="sy0">/</span>init.d<span class="sy0">/</span>udev restart</pre></div></div>
<p>Auch das hat nicht geholfen.</p>
<p>(3) Zuletzt noch das hier:</p>
<div id="wpshdo_167" class="wp-synhighlighter-outer"><div id="wpshdt_167" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_167"></a><a id="wpshat_167" class="wp-synhighlighter-title" href="#codesyntax_167"  onClick="javascript:wpsh_toggleBlock(167)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_167" onClick="javascript:wpsh_code(167)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_167" onClick="javascript:wpsh_print(167)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_167" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> rmmod ehci_hcd
<span class="kw2">sudo</span> modprobe ehci_hcd</pre></div></div>
<p>Dann hats geklappt. Ich weiss jetzt nicht, allerdings weiss ich nicht, ob (3) alleine gereicht hätte&#8230; falls es mal wieder passiert, kann ich es ja dann ausprobieren.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/usb-blockiert/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rTorrent: Erst-Seeding</title>
		<link>http://www.simplylinux.ch/rtorrent-erst-seeding</link>
		<comments>http://www.simplylinux.ch/rtorrent-erst-seeding#comments</comments>
		<pubDate>Sun, 04 May 2008 10:05:31 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[erst seeding]]></category>
		<category><![CDATA[first seeding]]></category>
		<category><![CDATA[rtorrent]]></category>
		<category><![CDATA[torrent]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/rtorrent-erst-seeding</guid>
		<description><![CDATA[UPDATE Das Erst-Seeding ist in der aktuellen SVN-Version (revision 1060) enthalten. Das Tutorial hier ist also veraltet. Erst-Seeding Kreiert man einen neuen Torrent, der doch relativ gross ist, und lädt man ihn hoch, dann möchte ich zumindesta aus Effizienzegründen zuerst alle Chunkgs einmal seeden bevor rTorrent dann entsprechend den Anfragen der anderen Clients Chunks hochlädt. [...]]]></description>
			<content:encoded><![CDATA[<h3>UPDATE</h3>
<h3>Das Erst-Seeding ist in der aktuellen SVN-Version (revision 1060) enthalten. Das Tutorial hier ist also veraltet.</h3>
<h3>Erst-Seeding</h3>
<p>Kreiert man einen neuen Torrent, der doch relativ gross ist, und lädt man ihn hoch, dann möchte ich zumindesta aus Effizienzegründen zuerst alle Chunkgs einmal seeden bevor rTorrent dann entsprechend den Anfragen der anderen Clients Chunks hochlädt. Standardmässig kann rTorrent das nicht, aber Josef (von irc.worldforge.net #libtorrent) hat dazu einen Patch geschrieben.<br />
<span id="more-12"></span></p>
<h3>1. Erst-Seeding Patch herunterladen</h3>
<p>Der aktuelle Patch kann von <a href="http://ovh.ttdpatch.net/~jdrexler/rt/initial-seed.diff" target="_blank">http://ovh.ttdpatch.net/~jdrexler/rt/initial-seed.diff</a> heruntergeladen werden. Da ich nicht weiss, wie lange da zur Verfügung steht, werde ich die aktuelle Version noch anhängen. Der Patch muss im trunk Verzeichnis von rtorrent gespeichert werden.</p>
<h3>2. Source Code patchen</h3>
<p>Das Patchen des Source Code geht eigentlich ganz einfach. Einfach ins Trunk Verzeichnis gehen und dort folgenden Befehl ausführen:</p>
<p><em> patch -p0 &lt; initial-seed.diff</em></p>
<h3>3. Neu kompilieren</h3>
<p>Gemäss dem Tutorial <a href="http://www.simplylinux.ch/rtorrent-kompilieren-von-svn-in-ubuntu-804-hardy-heron">hier</a>muss einfach libtorrent und rtorrent nochmals kompiliert und installiert werden. Das Ausführen von autogen und configure ist nicht notwendig.</p>
<h3>4. Anwenden</h3>
<p>Wurde rTorrent gepatcht und installiert, dann kann das Erst-Seeding folgendermassen vorgenommen werden.</p>
<ol>
<li>Den gewünschten Torrent stoppen mit <em>ctrl-k</em></li>
<li>Dann als Erst-Seeding markieren mit <em>ctrl-b</em></li>
<li>Torrent wieder starten mit <em>ctrl-s</em></li>
</ol>
<p>In der Torrent-Info müsste dann als Connection Type nun auch &#8220;initial_seed&#8221; stehen.</p>
<p>Gemäss Josef wird auch noch empfohlen, die max/min Geschwindigkeiten und Slots anzupassen.</p>
<h3>5. Erst-Seeding aufheben</h3>
<p>Um das Erst-Seeding aufzuheben, also bevor der Schwar min. 2 komplette Kopien anzeigt, muss der Torrent</p>
<ol>
<li>geschlossen werden: <span style="font-style: italic">ctrl-k</span></li>
<li>dann mit <span style="font-style: italic">ctrl-x</span> folgender Befehl eingegeben werden: <tt style="font-style: italic">d.set_connection_seed=seed</tt></li>
<li><tt>und dan</tt><tt>n den Torrent wieder starten: </tt><tt style="font-style: italic">ctrl-s </tt></li>
</ol>
<h3>5. Aktuelle Erst-Seed</h3>
<p>Für Revision 1057 (möglicherweise dann auch spätere):</p>
<pre># =================================================================
#
# Using initial seeding
#
# Initial seeding is useful only when you are the very first seed on
# a torrent, and helps it get seeded faster by uploading each chunk
# only once. See http://bittorrent.org/beps/bep_0016.html for
# technical details. It is less useful if your upload bandwidth is
# much higher than the average peer's upload however.
#
# To enable it on a download, first make sure the download is complete
# and that it is stopped, then press Ctrl-B or send it the command
# d.set_connection_seed=initial_seed
# It will probably not show the proper connection type in the download
# info until you actually start it afterwards. If it shows "leech" or
# "seed" even after you start it, it is NOT initial seeding. This may
# be because it found other seeds in the swarm or all chunks are
# already sufficiently distributed.
#
# In addition to the algorithm described in BEP 0016, rtorrent's
# initial seeding includes a fast-startup mode to allow full upload
# bandwidth even when there are very few peers. Normally initial seeding
# waits for chunks to appear elsewhere in the swarm before allowing a
# peer to download more. But when the total number of interested peers
# is less than 90% of the max uploads for the download, the peer may
# download more right away since we don't have any better use for
# the upload bandwidth of the download.
#
# This means that to tune initial seeding, set the download's max uploads
# to about your global upload slot limit, and the download's max peers to
# about 50%-100% higher. For example, if you have 20 global slots, set the
# download's max uploads to 20 as well, and the max peers to 30-40.
# This assumes the download is the only active download. Adjust accordingly
# if there are others.
#
# When initial seeding completes, all connections are closed, and the
# non-seeders re-connected as normal seeding connection. This is another
# reason why initial seeding should not be enabled unless you really are
# the very first seed. The connection type in the download info will also
# change to "seed" so you may know that initial seeding is complete.
#
# TESTING
#
# This patch is experimental and has not been test much "in the wild". Please
# do test it, at worst it will probably stall near the end of initial seeding.
# Monitor the chunk statistics to see if it is getting close to being completely
# seeded, if the upload speed drops sharply at that point and does not recover
# after several minutes, please stop the download and start it again (still in
# initial seeding mode). This should let it recover and complete initial seeding
# normally. If it still does not recover, stop it and manually set it to normal
# seeding with Ctrl-X "d.set_connection_seed=seed" and start it again.
#
# Please report all your finding to josef on IRC (#libtorrent@irc.worldforge.org)
# or email josef.at.ttdpatch.net so I know what (if anything) needs improving.
#
# =================================================================
Index: rtorrent/src/core/download_list.cc
===================================================================
--- rtorrent/src/core/download_list.cc	(revision 1045)
+++ rtorrent/src/core/download_list.cc	(working copy)
@@ -454,6 +454,10 @@
     rpc::call_command("d.set_state_changed", cachedTime.seconds(), rpc::make_target(download));
     rpc::call_command("d.set_state_counter", rpc::call_command_value("d.get_state_counter", rpc::make_target(download)), rpc::make_target(download));

+    // If initial seeding is complete, don't try it again when restarting.
+    if (download-&gt;is_done())
+      rpc::call_command("d.set_connection_seed", rpc::call_command_void("d.get_connection_current", rpc::make_target(download)), rpc::make_target(download));
+
     // Save the state after all the slots, etc have been called so we
     // include the modifications they may make.
     //control-&gt;core()-&gt;download_store()-&gt;save(download);
Index: rtorrent/src/core/download_factory.cc
===================================================================
--- rtorrent/src/core/download_factory.cc	(revision 1045)
+++ rtorrent/src/core/download_factory.cc	(working copy)
@@ -195,10 +195,6 @@
   if (!rtorrent-&gt;has_key_string("custom4")) rtorrent-&gt;insert_key("custom4", std::string());
   if (!rtorrent-&gt;has_key_string("custom5")) rtorrent-&gt;insert_key("custom5", std::string());

-  // Move to 'rtorrent'.
-  rpc::call_command("d.set_connection_leech", m_variables["connection_leech"], rpc::make_target(download));
-  rpc::call_command("d.set_connection_seed",  m_variables["connection_seed"], rpc::make_target(download));
-
   rpc::call_command("d.set_uploads_max",      rpc::call_command_void("get_max_uploads"), rpc::make_target(download));
   rpc::call_command("d.set_peers_min",        rpc::call_command_void("get_min_peers"), rpc::make_target(download));
   rpc::call_command("d.set_peers_max",        rpc::call_command_void("get_max_peers"), rpc::make_target(download));
@@ -354,6 +350,9 @@
                                                              download-&gt;download()-&gt;file_list()-&gt;size_chunks()));

   rtorrent-&gt;insert_preserve_copy("ignore_commands", (int64_t)0);
+
+  rtorrent-&gt;insert_preserve_type("connection_leech", m_variables["connection_leech"]);
+  rtorrent-&gt;insert_preserve_type("connection_seed", m_variables["connection_seed"]);
 }

 }
Index: rtorrent/src/command_download.cc
===================================================================
--- rtorrent/src/command_download.cc	(revision 1045)
+++ rtorrent/src/command_download.cc	(working copy)
@@ -169,6 +169,8 @@
     connType = torrent::Download::CONNECTION_LEECH;
   else if (name == "seed")
     connType = torrent::Download::CONNECTION_SEED;
+  else if (name == "initial_seed")
+    connType = torrent::Download::CONNECTION_INITIAL_SEED;
   else
     throw torrent::input_error("Unknown peer connection type selected.");

@@ -192,6 +194,8 @@
     return "leech";
   case torrent::Download::CONNECTION_SEED:
     return "seed";
+  case torrent::Download::CONNECTION_INITIAL_SEED:
+    return "initial_seed";
   default:
     return "unknown";
   }
@@ -473,16 +477,13 @@
   ADD_CD_VARIABLE_VALUE_PUBLIC("ignore_commands", "rtorrent", "ignore_commands");

   ADD_CD_STRING_BI("connection_current", std::ptr_fun(&amp;apply_d_connection_type), std::ptr_fun(&amp;retrieve_d_connection_type));
+  ADD_CD_VARIABLE_STRING("connection_leech",      "rtorrent", "connection_leech");
+  ADD_CD_VARIABLE_STRING("connection_seed",       "rtorrent", "connection_seed");

   // This command really needs to be improved, so we have proper
   // logging support.
   ADD_CD_STRING_BI("message",            std::mem_fun(&amp;core::Download::set_message), std::mem_fun(&amp;core::Download::message));

-  add_copy_to_download("get_connection_leech", "d.get_connection_leech");
-  add_copy_to_download("set_connection_leech", "d.set_connection_leech");
-  add_copy_to_download("get_connection_seed", "d.get_connection_seed");
-  add_copy_to_download("set_connection_seed", "d.set_connection_seed");
-
   ADD_CD_VALUE_MEM_BI("max_file_size", &amp;core::Download::file_list, &amp;torrent::FileList::set_max_file_size, &amp;torrent::FileList::max_file_size);

   ADD_CD_VALUE_MEM_BI("peers_min",        &amp;core::Download::connection_list, &amp;torrent::ConnectionList::set_min_size, &amp;torrent::ConnectionList::min_size);
Index: rtorrent/src/ui/element_download_list.cc
===================================================================
--- rtorrent/src/ui/element_download_list.cc	(revision 1045)
+++ rtorrent/src/ui/element_download_list.cc	(working copy)
@@ -76,6 +76,10 @@
                                   "branch=d.get_ignore_commands=,"
                                   "{d.set_ignore_commands=0, print=\"Torrent set to heed commands.\"},"
                                   "{d.set_ignore_commands=1, print=\"Torrent set to ignore commands.\"}");
+  m_bindings['B'-'@']= sigc::bind(sigc::mem_fun(*this, &amp;ElementDownloadList::receive_command),
+                                  "branch=d.is_active=,"
+                                  "{print=\"Cannot enable initial seeding on an active download.\"},"
+                                  "{d.set_connection_seed=initial_seed, print=\"Enabled initial seeding for the selected download.\"}");

   m_bindings['U']    = sigc::bind(sigc::mem_fun(*this, &amp;ElementDownloadList::receive_command), "d.delete_tied=; print=\"Cleared tied to file association for the selected download.\"");

Index: libtorrent/src/torrent/peer/peer_info.cc
===================================================================
--- libtorrent/src/torrent/peer/peer_info.cc	(revision 1045)
+++ libtorrent/src/torrent/peer/peer_info.cc	(working copy)
@@ -69,6 +69,9 @@
   if (m_transferCounter != 0)
     throw internal_error("PeerInfo::~PeerInfo() m_transferCounter != 0.");

+  if (is_blocked())
+    throw internal_error("PeerInfo::~PeerInfo() peer is blocked.");
+
   delete rak::socket_address::cast_from(m_address);
 }

Index: libtorrent/src/torrent/peer/peer_list.cc
===================================================================
--- libtorrent/src/torrent/peer/peer_list.cc	(revision 1045)
+++ libtorrent/src/torrent/peer/peer_list.cc	(working copy)
@@ -306,7 +306,8 @@
         itr-&gt;second-&gt;transfer_counter() != 0 ||
         itr-&gt;second-&gt;last_connection() &gt;= timer ||

-        (flags &amp; cull_keep_interesting &amp;&amp; itr-&gt;second-&gt;failed_counter() != 0)) {
+        (flags &amp; cull_keep_interesting &amp;&amp;
+         (itr-&gt;second-&gt;failed_counter() != 0 || itr-&gt;second-&gt;is_blocked()))) {
       itr++;
       continue;
     }
Index: libtorrent/src/torrent/peer/peer_info.h
===================================================================
--- libtorrent/src/torrent/peer/peer_info.h	(revision 1045)
+++ libtorrent/src/torrent/peer/peer_info.h	(working copy)
@@ -47,12 +47,15 @@
   friend class ConnectionList;
   friend class Handshake;
   friend class HandshakeManager;
+  friend class InitialSeeding;
   friend class PeerList;
   friend class ProtocolExtension;

   static const int flag_connected = (1 &lt;&lt; 0);
   static const int flag_incoming  = (1 &lt;&lt; 1);
   static const int flag_handshake = (1 &lt;&lt; 2);
+  static const int flag_blocked   = (1 &lt;&lt; 3);   // For initial seeding.
+  static const int flag_restart   = (1 &lt;&lt; 4);

   PeerInfo(const sockaddr* address);
   ~PeerInfo();
@@ -60,6 +63,8 @@
   bool                is_connected() const                  { return m_flags &amp; flag_connected; }
   bool                is_incoming() const                   { return m_flags &amp; flag_incoming; }
   bool                is_handshake() const                  { return m_flags &amp; flag_handshake; }
+  bool                is_blocked() const                    { return m_flags &amp; flag_blocked; }
+  bool                is_restart() const                    { return m_flags &amp; flag_restart; }

   int                 flags() const                         { return m_flags; }

Index: libtorrent/src/torrent/download.cc
===================================================================
--- libtorrent/src/torrent/download.cc	(revision 1045)
+++ libtorrent/src/torrent/download.cc	(working copy)
@@ -106,6 +106,11 @@
 //   file_list()-&gt;open(flags);
   file_list()-&gt;open(flags &amp; ~FileList::open_no_create);

+  if (m_ptr-&gt;connection_type() == CONNECTION_INITIAL_SEED) {
+    if (!m_ptr-&gt;main()-&gt;start_initial_seeding())
+      set_connection_type(CONNECTION_SEED);
+  }
+
   m_ptr-&gt;main()-&gt;start();
   m_ptr-&gt;main()-&gt;tracker_manager()-&gt;set_active(true);

@@ -501,6 +506,11 @@
   case CONNECTION_SEED:
     m_ptr-&gt;main()-&gt;connection_list()-&gt;slot_new_connection(&amp;createPeerConnectionSeed);
     break;
+  case CONNECTION_INITIAL_SEED:
+    if (is_active() &amp;&amp; m_ptr-&gt;main()-&gt;initial_seeding() == NULL)
+      throw input_error("Can't switch to initial seeding: download is active.");
+    m_ptr-&gt;main()-&gt;connection_list()-&gt;slot_new_connection(&amp;createPeerConnectionInitialSeed);
+    break;
   default:
     throw input_error("torrent::Download::set_connection_type(...) received an unknown type.");
   };
Index: libtorrent/src/torrent/download.h
===================================================================
--- libtorrent/src/torrent/download.h	(revision 1045)
+++ libtorrent/src/torrent/download.h	(working copy)
@@ -180,7 +180,8 @@

   typedef enum {
     CONNECTION_LEECH,
-    CONNECTION_SEED
+    CONNECTION_SEED,
+    CONNECTION_INITIAL_SEED,
   } ConnectionType;

   ConnectionType      connection_type() const;
Index: libtorrent/src/protocol/initial_seed.h
===================================================================
--- libtorrent/src/protocol/initial_seed.h	(revision 0)
+++ libtorrent/src/protocol/initial_seed.h	(revision 0)
@@ -0,0 +1,85 @@
+// libTorrent - BitTorrent library
+// Copyright (C) 2005-2007, Jari Sundell
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+//
+// In addition, as a special exception, the copyright holders give
+// permission to link the code of portions of this program with the
+// OpenSSL library under certain conditions as described in each
+// individual source file, and distribute linked combinations
+// including the two.
+//
+// You must obey the GNU General Public License in all respects for
+// all of the code used other than OpenSSL.  If you modify file(s)
+// with this exception, you may extend this exception to your version
+// of the file(s), but you are not obligated to do so.  If you do not
+// wish to do so, delete this exception statement from your version.
+// If you delete this exception statement from all source files in the
+// program, then also delete it here.
+//
+// Contact:  Jari Sundell &lt;jaris@ifi.uio.no&gt;
+//
+//           Skomakerveien 33
+//           3185 Skoppum, NORWAY
+
+#ifndef LIBTORRENT_PROTOCOL_INITIAL_SEED_H
+#define LIBTORRENT_PROTOCOL_INITIAL_SEED_H
+
+#include "download/download_main.h"
+
+namespace torrent {
+
+class InitialSeeding {
+public:
+  InitialSeeding(DownloadMain* download);
+  ~InitialSeeding();
+
+  static const uint32_t no_offer = ~uint32_t();
+
+  void                new_peer(PeerConnectionBase* pcb);
+
+  // Chunk was seen distributed to a peer in the swarm.
+  void                chunk_seen(uint32_t index, PeerConnectionBase* pcb);
+
+  // Returns chunk we may offer the peer or no_offer if none.
+  uint32_t            chunk_offer(PeerConnectionBase* pcb, uint32_t indexDone);
+
+  // During the second stage (seeding rare chunks), return
+  // false if given chunk is already well-seeded now. True otherwise.
+  bool                should_upload(uint32_t index);
+
+private:
+  static PeerInfo* const chunk_unsent;  // Chunk never sent to anyone.
+  static PeerInfo* const chunk_unknown; // Peer has chunk, we don't know who we sent it to.
+  static PeerInfo* const chunk_done;    // Chunk properly distributed by peer.
+
+  uint32_t            find_next(bool secondary, PeerConnectionBase* pcb);
+
+  bool                valid_peer(PeerInfo* peer);
+  void                clear_peer(PeerInfo* peer);
+  void                chunk_complete(uint32_t index, PeerConnectionBase* pcb);
+
+  void                complete(PeerConnectionBase* pcb);
+  void                unblock_all();
+
+  uint32_t            m_nextChunk;
+  uint32_t            m_chunksLeft;
+  DownloadMain*       m_download;
+  PeerInfo**          m_peerChunks;
+};
+
+}
+
+#endif
Index: libtorrent/src/protocol/peer_connection_base.h
===================================================================
--- libtorrent/src/protocol/peer_connection_base.h	(revision 1045)
+++ libtorrent/src/protocol/peer_connection_base.h	(working copy)
@@ -136,6 +136,10 @@

   void                cancel_transfer(BlockTransfer* transfer);

+  // Insert into the poll unless we're blocking for throttling etc.
+  void                read_insert_poll_safe();
+  void                write_insert_poll_safe();
+
 protected:
   static const uint32_t extension_must_encrypt = ~uint32_t();

@@ -176,10 +180,6 @@

   bool                send_pex_message();

-  // Insert into the poll unless we're blocking for throttling etc.
-  void                read_insert_poll_safe();
-  void                write_insert_poll_safe();
-
   DownloadMain*       m_download;

   ProtocolRead*       m_down;
Index: libtorrent/src/protocol/peer_connection_leech.cc
===================================================================
--- libtorrent/src/protocol/peer_connection_leech.cc	(revision 1045)
+++ libtorrent/src/protocol/peer_connection_leech.cc	(working copy)
@@ -50,6 +50,7 @@
 #include "torrent/peer/peer_info.h"

 #include "extensions.h"
+#include "initial_seed.h"
 #include "peer_connection_leech.h"

 namespace torrent {
@@ -65,6 +66,16 @@
 template&lt;Download::ConnectionType type&gt;
 void
 PeerConnection&lt;type&gt;::initialize_custom() {
+  if (type == Download::CONNECTION_INITIAL_SEED) {
+    if (m_download-&gt;initial_seeding() == NULL) {
+      // Can't throw close_connection or network_error here, we're still
+      // initializing. So close the socket and let that kill it later.
+      get_fd().close();
+      return;
+    }
+
+    m_download-&gt;initial_seeding()-&gt;new_peer(this);
+  }
 //   if (m_download-&gt;content()-&gt;chunks_completed() != 0) {
 //     m_up-&gt;write_bitfield(m_download-&gt;file_list()-&gt;bitfield()-&gt;size_bytes());

@@ -77,7 +88,7 @@
 template&lt;Download::ConnectionType type&gt;
 void
 PeerConnection&lt;type&gt;::update_interested() {
-  if (type == Download::CONNECTION_SEED)
+  if (type != Download::CONNECTION_LEECH)
     return;

   m_peerChunks.download_cache()-&gt;clear();
@@ -117,7 +128,7 @@
       m_encryption.encrypt(old_end, m_up-&gt;buffer()-&gt;end() - old_end);
   }

-  if (type == Download::CONNECTION_SEED)
+  if (type != Download::CONNECTION_LEECH)
     return true;

   m_tryRequest = true;
@@ -192,7 +203,7 @@

   switch (buf-&gt;read_8()) {
   case ProtocolBase::CHOKE:
-    if (type == Download::CONNECTION_SEED)
+    if (type != Download::CONNECTION_LEECH)
       return true;

     // Cancel before dequeueing so receive_download_choke knows if it
@@ -212,7 +223,7 @@
     return true;

   case ProtocolBase::UNCHOKE:
-    if (type == Download::CONNECTION_SEED)
+    if (type != Download::CONNECTION_LEECH)
       return true;

     m_downUnchoked = true;
@@ -258,7 +269,7 @@
     return true;

   case ProtocolBase::PIECE:
-    if (type == Download::CONNECTION_SEED)
+    if (type != Download::CONNECTION_LEECH)
       throw communication_error("Received a piece but the connection is strictly for seeding.");

     if (!m_down-&gt;can_read_piece_body())
@@ -381,7 +392,7 @@
         }

       case ProtocolRead::READ_PIECE:
-        if (type == Download::CONNECTION_SEED)
+        if (type != Download::CONNECTION_LEECH)
           return;

         if (!download_queue()-&gt;is_downloading())
@@ -401,7 +412,7 @@
         break;

       case ProtocolRead::READ_SKIP_PIECE:
-        if (type == Download::CONNECTION_SEED)
+        if (type != Download::CONNECTION_LEECH)
           return;

         if (download_queue()-&gt;transfer()-&gt;is_leader()) {
@@ -489,12 +500,12 @@
   // e.g. BitTornado 0.7.14 and uTorrent 0.3.0, disconnect if a
   // request has been received while uninterested. The problem arises
   // as they send unchoke before receiving interested.
-  if (type != Download::CONNECTION_SEED &amp;&amp; m_sendInterested &amp;&amp; m_up-&gt;can_write_interested()) {
+  if (type == Download::CONNECTION_LEECH &amp;&amp; m_sendInterested &amp;&amp; m_up-&gt;can_write_interested()) {
     m_up-&gt;write_interested(m_downInterested);
     m_sendInterested = false;
   }

-  if (type != Download::CONNECTION_SEED &amp;&amp; m_tryRequest) {
+  if (type == Download::CONNECTION_LEECH &amp;&amp; m_tryRequest) {
     if (!(m_tryRequest = !should_request()) &amp;&amp;
         !(m_tryRequest = try_request_pieces()) &amp;&amp;

@@ -508,7 +519,7 @@

   DownloadMain::have_queue_type* haveQueue = m_download-&gt;have_queue();

-  if (type != Download::CONNECTION_SEED &amp;&amp;
+  if (type == Download::CONNECTION_LEECH &amp;&amp;
       !haveQueue-&gt;empty() &amp;&amp;
       m_peerChunks.have_timer() &lt;= haveQueue-&gt;front().first &amp;&amp;
       m_up-&gt;can_write_have()) {
@@ -522,7 +533,10 @@
     m_peerChunks.set_have_timer(last-&gt;first + 1);
   }

-  while (type != Download::CONNECTION_SEED &amp;&amp; !m_peerChunks.cancel_queue()-&gt;empty() &amp;&amp; m_up-&gt;can_write_cancel()) {
+  if (type == Download::CONNECTION_INITIAL_SEED &amp;&amp; m_up-&gt;can_write_have())
+    offer_chunk();
+
+  while (type == Download::CONNECTION_LEECH &amp;&amp; !m_peerChunks.cancel_queue()-&gt;empty() &amp;&amp; m_up-&gt;can_write_cancel()) {
     m_up-&gt;write_cancel(m_peerChunks.cancel_queue()-&gt;front());
     m_peerChunks.cancel_queue()-&gt;pop_front();
   }
@@ -533,7 +547,8 @@

   } else if (!m_upChoke.choked() &amp;&amp;
              !m_peerChunks.upload_queue()-&gt;empty() &amp;&amp;
-             m_up-&gt;can_write_piece()) {
+             m_up-&gt;can_write_piece() &amp;&amp;
+             (type != Download::CONNECTION_INITIAL_SEED || should_upload())) {
     write_prepare_piece();
   }

@@ -638,14 +653,20 @@

   m_download-&gt;chunk_statistics()-&gt;received_have_chunk(&amp;m_peerChunks, index, m_download-&gt;file_list()-&gt;chunk_size());

+  if (type == Download::CONNECTION_INITIAL_SEED)
+    m_download-&gt;initial_seeding()-&gt;chunk_seen(index, this);
+
+  // Disconnect seeds when we are seeding (but not for initial seeding
+  // so that we keep accurate chunk statistics until that is done).
   if (m_peerChunks.bitfield()-&gt;is_all_set()) {
-    if (type == Download::CONNECTION_SEED || m_download-&gt;file_list()-&gt;is_done())
+    if (type == Download::CONNECTION_SEED ||
+        (type != Download::CONNECTION_INITIAL_SEED &amp;&amp; m_download-&gt;file_list()-&gt;is_done()))
       throw close_connection();

     m_download-&gt;upload_choke_manager()-&gt;set_not_queued(this, &amp;m_upChoke);
   }

-  if (type == Download::CONNECTION_SEED || m_download-&gt;file_list()-&gt;is_done())
+  if (type != Download::CONNECTION_LEECH || m_download-&gt;file_list()-&gt;is_done())
     return;

   if (is_down_interested()) {
@@ -676,8 +697,58 @@
   }
 }

+template&lt;&gt;
+void
+PeerConnection&lt;Download::CONNECTION_INITIAL_SEED&gt;::offer_chunk() {
+  // If bytes left to send in this chunk minus bytes about to be sent is zero,
+  // assume the peer will have got the chunk completely. In that case we may
+  // get another one to offer if not enough other peers are interested even
+  // if the peer would otherwise still be blocked.
+  uint32_t bytesLeft = m_data.bytesLeft;
+  if (!m_peerChunks.upload_queue()-&gt;empty() &amp;&amp; m_peerChunks.upload_queue()-&gt;front().index() == m_data.lastIndex)
+    bytesLeft -= m_peerChunks.upload_queue()-&gt;front().length();
+
+  uint32_t index = m_download-&gt;initial_seeding()-&gt;chunk_offer(this, bytesLeft == 0 ? m_data.lastIndex : InitialSeeding::no_offer);
+
+  if (index == InitialSeeding::no_offer || index == m_data.lastIndex)
+    return;
+
+  m_up-&gt;write_have(index);
+  m_data.lastIndex = index;
+  m_data.bytesLeft = m_download-&gt;file_list()-&gt;chunk_index_size(index);
+}
+
+// For initial seeding, check if chunk is well seeded now, and if so
+// remove it from the queue to better use our bandwidth on rare chunks.
+// If queue ends up empty, choke peer to let it know that it shouldn't
+// wait for pieces to be sent.
+template&lt;&gt;
+bool
+PeerConnection&lt;Download::CONNECTION_INITIAL_SEED&gt;::should_upload() {
+  while (!m_peerChunks.upload_queue()-&gt;empty() &amp;&amp;
+         !m_download-&gt;initial_seeding()-&gt;should_upload(m_peerChunks.upload_queue()-&gt;front().index()))
+    m_peerChunks.upload_queue()-&gt;pop_front();
+
+  if (!m_peerChunks.upload_queue()-&gt;empty()) {
+    if (m_peerChunks.upload_queue()-&gt;front().index() == m_data.lastIndex) {
+      m_data.bytesLeft -= m_peerChunks.upload_queue()-&gt;front().length();
+
+      if (!m_data.bytesLeft)
+        m_data.lastIndex = InitialSeeding::no_offer;
+    }
+
+    return true;
+  }
+
+  m_download-&gt;upload_choke_manager()-&gt;set_not_queued(this, &amp;m_upChoke);
+  m_download-&gt;upload_choke_manager()-&gt;set_queued(this, &amp;m_upChoke);
+
+ return false;
+}
+
 // Explicit instatiation of the member functions and vtable.
 template class PeerConnection&lt;Download::CONNECTION_LEECH&gt;;
 template class PeerConnection&lt;Download::CONNECTION_SEED&gt;;
+template class PeerConnection&lt;Download::CONNECTION_INITIAL_SEED&gt;;

 }
Index: libtorrent/src/protocol/peer_connection_leech.h
===================================================================
--- libtorrent/src/protocol/peer_connection_leech.h	(revision 1045)
+++ libtorrent/src/protocol/peer_connection_leech.h	(working copy)
@@ -43,6 +43,19 @@

 namespace torrent {

+// Type-specific data.
+template&lt;Download::ConnectionType type&gt; struct PeerConnectionData;
+
+template&lt;&gt; struct PeerConnectionData&lt;Download::CONNECTION_LEECH&gt; { };
+
+template&lt;&gt; struct PeerConnectionData&lt;Download::CONNECTION_SEED&gt; { };
+
+template&lt;&gt; struct PeerConnectionData&lt;Download::CONNECTION_INITIAL_SEED&gt; {
+  PeerConnectionData() : lastIndex(~uint32_t()) { }
+  uint32_t lastIndex;
+  uint32_t bytesLeft;
+};
+
 template&lt;Download::ConnectionType type&gt;
 class PeerConnection : public PeerConnectionBase {
 public:
@@ -59,7 +72,12 @@
   inline bool         read_message();
   void                read_have_chunk(uint32_t index);

+  void                offer_chunk();
+  bool                should_upload();
+
   inline void         fill_write_buffer();
+
+  PeerConnectionData&lt;type&gt; m_data;
 };

 }
Index: libtorrent/src/protocol/handshake_manager.cc
===================================================================
--- libtorrent/src/protocol/handshake_manager.cc	(revision 1045)
+++ libtorrent/src/protocol/handshake_manager.cc	(working copy)
@@ -194,7 +194,7 @@

       // We need to make libtorrent more selective in the clients it
       // connects to, and to move this somewhere else.
-      (!download-&gt;file_list()-&gt;is_done() || !handshake-&gt;bitfield()-&gt;is_all_set()) &amp;&amp;
+      (!download-&gt;file_list()-&gt;is_done() || !handshake-&gt;bitfield()-&gt;is_all_set() || download-&gt;initial_seeding() != NULL) &amp;&amp;

       (pcb = download-&gt;connection_list()-&gt;insert(handshake-&gt;peer_info(),
                                                  handshake-&gt;get_fd(),
Index: libtorrent/src/protocol/peer_factory.cc
===================================================================
--- libtorrent/src/protocol/peer_factory.cc	(revision 1045)
+++ libtorrent/src/protocol/peer_factory.cc	(working copy)
@@ -55,4 +55,11 @@
   return pc;
 }

+PeerConnectionBase*
+createPeerConnectionInitialSeed(bool encrypted) {
+  PeerConnectionBase* pc = new PeerConnection&lt;Download::CONNECTION_INITIAL_SEED&gt;;
+
+  return pc;
 }
+
+}
Index: libtorrent/src/protocol/peer_factory.h
===================================================================
--- libtorrent/src/protocol/peer_factory.h	(revision 1045)
+++ libtorrent/src/protocol/peer_factory.h	(working copy)
@@ -43,6 +43,7 @@

 PeerConnectionBase* createPeerConnectionDefault(bool encrypted);
 PeerConnectionBase* createPeerConnectionSeed(bool encrypted);
+PeerConnectionBase* createPeerConnectionInitialSeed(bool encrypted);

 }

Index: libtorrent/src/protocol/Makefile.am
===================================================================
--- libtorrent/src/protocol/Makefile.am	(revision 1045)
+++ libtorrent/src/protocol/Makefile.am	(working copy)
@@ -10,6 +10,8 @@
 	handshake_encryption.h
         handshake_manager.cc
         handshake_manager.h
+	initial_seed.cc
+	initial_seed.h
 	peer_chunks.h
 	peer_connection_base.cc
 	peer_connection_base.h
Index: libtorrent/src/protocol/handshake.cc
===================================================================
--- libtorrent/src/protocol/handshake.cc	(revision 1045)
+++ libtorrent/src/protocol/handshake.cc	(working copy)
@@ -526,10 +526,16 @@

   // The download is just starting so we're not sending any
   // bitfield. Pretend we wrote it already.
-  if (m_download-&gt;file_list()-&gt;bitfield()-&gt;is_all_unset())
+  if (m_download-&gt;file_list()-&gt;bitfield()-&gt;is_all_unset() || m_download-&gt;initial_seeding() != NULL) {
     m_writePos = m_download-&gt;file_list()-&gt;bitfield()-&gt;size_bytes();
-  else
+    m_writeBuffer.write_32(0);
+
+    if (m_encryption.info()-&gt;is_encrypted())
+      m_encryption.info()-&gt;encrypt(m_writeBuffer.end() - 4, 4);
+
+  } else {
     prepare_bitfield();
+  }

   m_state = READ_MESSAGE;
   manager-&gt;poll()-&gt;insert_write(this);
@@ -621,7 +627,7 @@
   // still reading the bitfield/extension and postponed it. If we had no
   // bitfield to send, we need to send a keep-alive now.
   if (m_writePos == m_download-&gt;file_list()-&gt;bitfield()-&gt;size_bytes())
-    prepare_post_handshake(m_download-&gt;file_list()-&gt;bitfield()-&gt;is_all_unset());
+    prepare_post_handshake(m_download-&gt;file_list()-&gt;bitfield()-&gt;is_all_unset() || m_download-&gt;initial_seeding() != NULL);

   if (m_writeDone)
     throw handshake_succeeded();
Index: libtorrent/src/protocol/initial_seed.cc
===================================================================
--- libtorrent/src/protocol/initial_seed.cc	(revision 0)
+++ libtorrent/src/protocol/initial_seed.cc	(revision 0)
@@ -0,0 +1,289 @@
+// libTorrent - BitTorrent library
+// Copyright (C) 2005-2007, Jari Sundell
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+//
+// In addition, as a special exception, the copyright holders give
+// permission to link the code of portions of this program with the
+// OpenSSL library under certain conditions as described in each
+// individual source file, and distribute linked combinations
+// including the two.
+//
+// You must obey the GNU General Public License in all respects for
+// all of the code used other than OpenSSL.  If you modify file(s)
+// with this exception, you may extend this exception to your version
+// of the file(s), but you are not obligated to do so.  If you do not
+// wish to do so, delete this exception statement from your version.
+// If you delete this exception statement from all source files in the
+// program, then also delete it here.
+//
+// Contact:  Jari Sundell &lt;jaris@ifi.uio.no&gt;
+//
+//           Skomakerveien 33
+//           3185 Skoppum, NORWAY
+
+#include "config.h"
+
+#include "download/choke_manager.h"
+#include "download/chunk_statistics.h"
+
+#include "initial_seed.h"
+#include "peer_connection_leech.h"
+
+namespace torrent {
+
+PeerInfo* const InitialSeeding::chunk_unsent  = (PeerInfo*) 0;
+PeerInfo* const InitialSeeding::chunk_unknown = (PeerInfo*) 1;
+PeerInfo* const InitialSeeding::chunk_done    = (PeerInfo*) 2;
+
+InitialSeeding::InitialSeeding(DownloadMain* download) :
+  m_nextChunk(0),
+  m_chunksLeft(download-&gt;file_list()-&gt;size_chunks()),
+  m_download(download),
+  m_peerChunks(new PeerInfo*[m_chunksLeft]) {
+
+  bzero(m_peerChunks, m_chunksLeft * sizeof(m_peerChunks[0]));
+}
+
+InitialSeeding::~InitialSeeding() {
+  unblock_all();
+  delete[] m_peerChunks;
+}
+
+inline bool
+InitialSeeding::valid_peer(PeerInfo* peer) {
+  return peer &gt; chunk_done;
+}
+
+void
+InitialSeeding::clear_peer(PeerInfo* peer) {
+  if (!valid_peer(peer))
+    return;
+
+  peer-&gt;unset_flags(PeerInfo::flag_blocked);
+
+  // If peer is still connected, offer new piece right away.
+  if (peer-&gt;connection() != NULL)
+    peer-&gt;connection()-&gt;write_insert_poll_safe();
+}
+
+void
+InitialSeeding::chunk_seen(uint32_t index, PeerConnectionBase* pcb) {
+  // When we have two other seeds, trust that the download will
+  // be sufficiently seeded and switch to normal seeding. This is
+  // mainly for when the user accidentally enables initial seeding.
+  if (m_download-&gt;chunk_statistics()-&gt;complete() &gt; 1)
+    complete(pcb);
+
+  PeerInfo* peer = pcb-&gt;mutable_peer_info();
+  PeerInfo* old = m_peerChunks[index];
+
+  // We didn't send this chunk. Is someone else initial seeding too?
+  // Or maybe we restarted and the peer got this chunk from someone
+  // we did send it to. Either way, we don't know who it belongs to.
+  // Don't mark it done until we see it from someone else, though.
+  if (old == chunk_unsent) {
+    m_peerChunks[index] = chunk_unknown;
+    return;
+  }
+
+  if (old == peer || old == chunk_done)
+    return;
+
+  // We've seen two peers on the swarm receive this chunk.
+  m_peerChunks[index] = chunk_done;
+  if (--m_chunksLeft == 0)
+    complete(pcb);
+
+  // The peer we sent it to originally may now receive another chunk.
+  clear_peer(old);
+}
+
+void
+InitialSeeding::chunk_complete(uint32_t index, PeerConnectionBase* pcb) {
+  clear_peer(m_peerChunks[index]);
+  m_peerChunks[index] = chunk_unknown;
+  chunk_seen(index, pcb);
+}
+
+void
+InitialSeeding::new_peer(PeerConnectionBase* pcb) {
+  PeerInfo* peer = pcb-&gt;mutable_peer_info();
+  if (peer-&gt;is_blocked())
+    peer-&gt;set_flags(PeerInfo::flag_restart);
+
+  // We don't go through the peer's entire bitfield here. This eliminates
+  // cheating by sending a bogus bitfield if it figures out we are initial
+  // seeding, to drop us out of it. We should see HAVE messages for pieces
+  // it has that we were waiting for anyway. We will check individual chunks
+  // as we are about to offer them, to avoid the overhead of checking each
+  // peer's bitfield as well. If it really was cheating, the pieces it isn't
+  // sharing will be sent during the second round of initial seeding.
+
+  // If we're on the second round, don't check
+  // it until we're about to offer a chunk.
+  if (m_peerChunks[m_nextChunk] != chunk_unsent)
+    return;
+
+  // But during primary initial seeding (some chunks not sent at all),
+  // check that nobody already has the next chunk we were going to send.
+  while (m_peerChunks[m_nextChunk] == chunk_unsent &amp;&amp; (*m_download-&gt;chunk_statistics())[m_nextChunk]) {
+    // Could set to chunk_done if enough peers have it, but if that was the
+    // last one it could cause initial seeding to end and all connections to
+    // be closed, and now is a bad time for that (still being set up). Plus
+    // this gives us the opportunity to wait for HAVE messages and resend
+    // the chunk if it's not being shared.
+    m_peerChunks[m_nextChunk] = chunk_unknown;
+    find_next(false, pcb);
+  }
+}
+
+uint32_t
+InitialSeeding::chunk_offer(PeerConnectionBase* pcb, uint32_t chunkDone) {
+  PeerInfo* peer = pcb-&gt;mutable_peer_info();
+
+  // If this peer completely downloaded the chunk we offered and we have too
+  // many unused upload slots, give it another chunk to download for free.
+  if (peer-&gt;is_blocked() &amp;&amp; chunkDone != no_offer &amp;&amp; m_peerChunks[chunkDone] == peer &amp;&amp;
+      m_download-&gt;upload_choke_manager()-&gt;size_total() * 10 &lt; 9 * m_download-&gt;upload_choke_manager()-&gt;max_unchoked()) {
+    m_peerChunks[chunkDone] = chunk_unknown;
+    peer-&gt;unset_flags(PeerInfo::flag_blocked);
+
+  // Otherwise check if we can offer a chunk normally.
+  } else if (peer-&gt;is_blocked()) {
+    if (!peer-&gt;is_restart())
+      return no_offer;
+
+    peer-&gt;unset_flags(PeerInfo::flag_restart);
+
+    // Re-connection of a peer we already sent a chunk.
+    // Offer the same chunk again.
+    PeerInfo** peerChunksEnd = m_peerChunks + m_download-&gt;file_list()-&gt;size_chunks();
+    PeerInfo** itr = std::find_if(m_peerChunks, peerChunksEnd,
+                                  std::bind2nd(std::equal_to&lt;PeerInfo*&gt;(), peer));
+    if (itr != peerChunksEnd)
+      return itr - m_peerChunks;
+
+    // Couldn't find the chunk, we probably sent it to someone
+    // else since the disconnection. So offer a new one.
+  }
+
+  uint32_t index = m_nextChunk;
+  bool secondary = false;
+
+  // If we already sent this chunk to someone else, we're on the second
+  // (or more) round. We might have already found this chunk elsewhere on
+  // the swarm since then and need to find a different one if so.
+  if (m_peerChunks[index] != chunk_unsent) {
+    secondary = true;
+
+    // Accounting for peers whose bitfield we didn't check when connecting.
+    // If the chunk stats say there are enough peers who have it, believe that.
+    if (m_peerChunks[index] != chunk_done &amp;&amp; (*m_download-&gt;chunk_statistics())[index] &gt; 1)
+      chunk_complete(index, pcb);
+
+    if (m_peerChunks[index] == chunk_done)
+      index = find_next(true, pcb);
+  }
+
+  // When we only have one chunk left and we already offered it
+  // to someone who hasn't shared it yet, offer it to everyone
+  // else. We do not override the peer we sent it to, so they
+  // cannot be unblocked, but when initial seeding completes
+  // everyone is unblocked anyway.
+  if (m_chunksLeft == 1 &amp;&amp; valid_peer(m_peerChunks[index])) {
+    peer-&gt;set_flags(PeerInfo::flag_blocked);
+    return index;
+  }
+
+  // Make sure we don't accidentally offer a chunk it has
+  // already, or it would never even request it from us.
+  // We'll just offer it to the next peer instead.
+  if (pcb-&gt;bitfield()-&gt;get(index))
+    return no_offer;
+
+  m_peerChunks[index] = peer;
+  peer-&gt;set_flags(PeerInfo::flag_blocked);
+  find_next(secondary, pcb);
+  return index;
+}
+
+bool
+InitialSeeding::should_upload(uint32_t index) {
+  return m_peerChunks[index] != chunk_done;
+}
+
+uint32_t
+InitialSeeding::find_next(bool secondary, PeerConnectionBase* pcb) {
+  if (!secondary) {
+    // Primary seeding: find next chunk not sent yet.
+    while (++m_nextChunk &lt; m_download-&gt;file_list()-&gt;size_chunks()) {
+      if (m_peerChunks[m_nextChunk] == chunk_unsent) {
+        if (!(*m_download-&gt;chunk_statistics())[m_nextChunk])
+          return m_nextChunk;
+
+        // Someone has this one already. We don't know if we sent it or not.
+        m_peerChunks[m_nextChunk] = chunk_unknown;
+      }
+    }
+
+    // Went through all chunks. Continue with secondary seeding.
+    m_nextChunk--;
+  }
+
+  // Secondary seeding: find next chunk that's not done yet.
+  do {
+    if (++m_nextChunk == m_download-&gt;file_list()-&gt;size_chunks())
+      m_nextChunk = 0;
+
+    if (m_peerChunks[m_nextChunk] != chunk_done &amp;&amp; (*m_download-&gt;chunk_statistics())[m_nextChunk] &gt; 1)
+      chunk_complete(m_nextChunk, pcb);
+
+  } while (m_peerChunks[m_nextChunk] == chunk_done);
+
+  return m_nextChunk;
+}
+
+void
+InitialSeeding::complete(PeerConnectionBase* pcb) {
+  unblock_all();
+  m_chunksLeft = 0;
+  m_nextChunk = no_offer;
+
+  // We think all chunks should be well seeded now. Check to make sure.
+  for (uint32_t i = 0; i &lt; m_download-&gt;file_list()-&gt;size_chunks(); i++) {
+    if (m_download-&gt;chunk_statistics()-&gt;complete() + (*m_download-&gt;chunk_statistics())[i] &lt; 2) {
+      // Chunk too rare, send it again before switching to normal seeding.
+      m_chunksLeft++;
+      m_peerChunks[i] = chunk_unsent;
+      if (m_nextChunk == no_offer)
+        m_nextChunk = i;
+    }
+  }
+
+  if (m_chunksLeft)
+    return;
+
+  m_download-&gt;initial_seeding_done(pcb);
+}
+
+void
+InitialSeeding::unblock_all() {
+  for (PeerList::const_iterator itr = m_download-&gt;peer_list()-&gt;begin(); itr != m_download-&gt;peer_list()-&gt;end(); ++itr)
+    if (itr-&gt;second-&gt;is_blocked())
+      itr-&gt;second-&gt;unset_flags(PeerInfo::flag_blocked);
+}
+
+}
Index: libtorrent/src/download/download_main.cc
===================================================================
--- libtorrent/src/download/download_main.cc	(revision 1045)
+++ libtorrent/src/download/download_main.cc	(working copy)
@@ -42,8 +42,11 @@
 #include "data/chunk_list.h"
 #include "protocol/extensions.h"
 #include "protocol/handshake_manager.h"
+#include "protocol/initial_seed.h"
 #include "protocol/peer_connection_base.h"
+#include "protocol/peer_factory.h"
 #include "tracker/tracker_manager.h"
+#include "torrent/download.h"
 #include "torrent/exceptions.h"
 #include "torrent/data/file_list.h"
 #include "torrent/peer/connection_list.h"
@@ -56,6 +59,8 @@
 #include "chunk_statistics.h"
 #include "download_info.h"
 #include "download_main.h"
+#include "download_manager.h"
+#include "download_wrapper.h"

 namespace torrent {

@@ -67,6 +72,7 @@
   m_chunkSelector(new ChunkSelector),
   m_chunkStatistics(new ChunkStatistics),

+  m_initialSeeding(NULL),
   m_uploadThrottle(NULL),
   m_downloadThrottle(NULL) {

@@ -194,10 +200,49 @@

   connection_list()-&gt;erase_remaining(connection_list()-&gt;begin(), ConnectionList::disconnect_available);

+  if (m_initialSeeding != NULL)
+    delete m_initialSeeding;
+
   priority_queue_erase(&amp;taskScheduler, &amp;m_taskTrackerRequest);
 }

+bool
+DownloadMain::start_initial_seeding() {
+  if (!file_list()-&gt;is_done())
+    return false;
+
+  m_initialSeeding = new InitialSeeding(this);
+  return true;
+}
+
 void
+DownloadMain::initial_seeding_done(PeerConnectionBase* pcb) {
+  if (m_initialSeeding == NULL)
+    throw internal_error("DownloadMain::initial_seeding_done called when not initial seeding.");
+
+  // Close all connections but the currently active one (pcb).
+  // That one will be closed by throw close_connection() later.
+  if (m_connectionList-&gt;size() &gt; 1) {
+    ConnectionList::iterator itr = std::find(m_connectionList-&gt;begin(), m_connectionList-&gt;end(), pcb);
+    if (itr == m_connectionList-&gt;end())
+      throw internal_error("DownloadMain::initial_seeding_done could not find current connection.");
+
+    std::iter_swap(m_connectionList-&gt;begin(), itr);
+    m_connectionList-&gt;erase_remaining(m_connectionList-&gt;begin() + 1, ConnectionList::disconnect_available);
+  }
+
+  // Switch to normal seeding.
+  DownloadManager::iterator itr = manager-&gt;download_manager()-&gt;find(m_info);
+  (*itr)-&gt;set_connection_type(Download::CONNECTION_SEED);
+  m_connectionList-&gt;slot_new_connection(&amp;createPeerConnectionSeed);
+  delete m_initialSeeding;
+  m_initialSeeding = NULL;
+
+  // And close the current connection.
+  throw close_connection();
+}
+
+void
 DownloadMain::update_endgame() {
   if (!m_delegator.get_aggressive() &amp;&amp;
       file_list()-&gt;completed_chunks() + m_delegator.transfer_list()-&gt;size() + 5 &gt;= file_list()-&gt;size_chunks())
Index: libtorrent/src/download/download_main.h
===================================================================
--- libtorrent/src/download/download_main.h	(revision 1045)
+++ libtorrent/src/download/download_main.h	(working copy)
@@ -65,6 +65,7 @@
 class TrackerManager;
 class DownloadInfo;
 class ThrottleList;
+class InitialSeeding;

 class DownloadMain {
 public:
@@ -95,6 +96,10 @@

   have_queue_type*    have_queue()                               { return &amp;m_haveQueue; }

+  InitialSeeding*     initial_seeding()                          { return m_initialSeeding; }
+  bool                start_initial_seeding();
+  void                initial_seeding_done(PeerConnectionBase* pcb);
+
   ConnectionList*     connection_list()                          { return m_connectionList; }
   FileList*           file_list()                                { return &amp;m_fileList; }
   PeerList*           peer_list()                                { return &amp;m_peerList; }
@@ -157,6 +162,7 @@

   Delegator           m_delegator;
   have_queue_type     m_haveQueue;
+  InitialSeeding*     m_initialSeeding;

   ConnectionList*     m_connectionList;
   FileList            m_fileList;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/rtorrent-erst-seeding/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>rTorrent kompilieren von SVN in Ubuntu 8.04 Hardy Heron</title>
		<link>http://www.simplylinux.ch/rtorrent-kompilieren-von-svn-in-ubuntu-804-hardy-heron</link>
		<comments>http://www.simplylinux.ch/rtorrent-kompilieren-von-svn-in-ubuntu-804-hardy-heron#comments</comments>
		<pubDate>Sun, 04 May 2008 09:42:37 +0000</pubDate>
		<dc:creator>hyper_ch</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[hyper_ch]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[rtorrent]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[ubuntu 8.04]]></category>

		<guid isPermaLink="false">http://www.simplylinux.ch/rtorrent-kompilieren-von-svn-in-ubuntu-804-hardy-heron</guid>
		<description><![CDATA[Einführung Bittorrent ist ein ausgezeichnets Protokoll zum effizienten Transfer grosser Datenmengen an eine unbekannte Anzahl von Klienten. Die meisten Torrent Programme sind aber GUI basiert und haben zum Teil starke Auswirkungen auf das System (z.B. Azureus). rTorrent ist Torrent Klient der nCurses (also Kommandozeile) benutzt. Zusammen mit dem Programm &#8220;screen&#8221; ist rTorrent hervorragend geeignet auf [...]]]></description>
			<content:encoded><![CDATA[<h3>Einführung</h3>
<p>Bittorrent ist ein ausgezeichnets Protokoll zum effizienten Transfer grosser Datenmengen an eine unbekannte Anzahl von Klienten. Die meisten Torrent Programme sind aber GUI basiert und haben zum Teil starke Auswirkungen auf das System (z.B. Azureus). rTorrent ist Torrent Klient der nCurses (also Kommandozeile) benutzt. Zusammen mit dem Programm &#8220;screen&#8221; ist rTorrent hervorragend geeignet auf dem eigenen Rechnr oder auf einem Server laufen zu lassen, ohne das System zu stark zu belasten. Die gepackten Versionen hinken allerdings stets hinterher und es gibt zahlreiche Addons dafür.</p>
<p>Auf dem Server hier habe ich während 25 1/2h mit rTorrent Hardy Heron geseeded. Hier ist ein Bild davon:<br />
<span id="more-10"></span><br />
<a href="http://www.simplylinux.ch/wp-content/uploads/rtorrent_hardy.png" title="rTorrent Ubuntu 8.04 Hardy Seeding"><img src="http://www.simplylinux.ch/wp-content/uploads/rtorrent_hardy.thumbnail.png" alt="rTorrent Ubuntu 8.04 Hardy Seeding" /></a></p>
<h3>Homepage, Basic Howto, Support</h3>
<p>The rTorrent Homepage ist  <a href="http://libtorrent.rakshasa.no/" title="here" target="_blank">hier</a>.<br />
Eine einfache Guide wie man rTorrent benutzt ist <a href="http://kmandla.wordpress.com/2007/05/02/howto-use-rtorrent-like-a-pro/" title="here" target="_blank">hier</a>.<br />
Und es gibt IRC Support Channels auf irc.freenode.org #rtorrent und den offiziellen Channel auf irc.worldforgenet.org #libtorrent</p>
<h3>Annahmen</h3>
<p>In diesem Tutorial nehme ich an, dass ~/rtorrent als Basis Verzeichnis für die SVN Version verwendet wird. Weiter gehe ich davon aus, dass alle Schritte als normaler Benutzer ausgeführt werden.</p>
<h3>1. Notwendige Pakete installieren</h3>
<p>Folgenden Befehl ausführen lassen um die notwendigen Pakete für die rTorrent Kompilierung zu installieren:<br />
<div id="wpshdo_168" class="wp-synhighlighter-outer"><div id="wpshdt_168" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_168"></a><a id="wpshat_168" class="wp-synhighlighter-title" href="#codesyntax_168"  onClick="javascript:wpsh_toggleBlock(168)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_168" onClick="javascript:wpsh_code(168)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_168" onClick="javascript:wpsh_print(168)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_168" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> subversion build-essential libtool automake1.9 openssl libcurl3 libcurl3-dev libsigc++-<span class="nu0">2.0</span>-0c2a libsigc++-<span class="nu0">2.0</span>-dev libncurses5 libncurses5-dev</pre></div></div><br />
Note: Automake muss aktueller als 1.4 sein. Es gibt verschiedene Versionen in den Repos, aber ich benutze hier einfach die aktuelleste (1.9).</p>
<h3>2. rTorrent Verzeichnis erschaffen</h3>
<div id="wpshdo_169" class="wp-synhighlighter-outer"><div id="wpshdt_169" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_169"></a><a id="wpshat_169" class="wp-synhighlighter-title" href="#codesyntax_169"  onClick="javascript:wpsh_toggleBlock(169)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_169" onClick="javascript:wpsh_code(169)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_169" onClick="javascript:wpsh_print(169)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_169" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">mkdir</span> ~<span class="sy0">/</span>rtorrent</pre></div></div>
<h3>3. Ins rTorrent Verzeichnis gehen</h3>
<p><div id="wpshdo_170" class="wp-synhighlighter-outer"><div id="wpshdt_170" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_170"></a><a id="wpshat_170" class="wp-synhighlighter-title" href="#codesyntax_170"  onClick="javascript:wpsh_toggleBlock(170)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_170" onClick="javascript:wpsh_code(170)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_170" onClick="javascript:wpsh_print(170)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_170" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> ~<span class="sy0">/</span>rtorrent</pre></div></div><br />
Derzeitiges Verzeichnis: <span class="system">/home/USER/rtorrent</span></p>
<h3>4. Letzte SVN Version herunterladen</h3>
<div id="wpshdo_171" class="wp-synhighlighter-outer"><div id="wpshdt_171" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_171"></a><a id="wpshat_171" class="wp-synhighlighter-title" href="#codesyntax_171"  onClick="javascript:wpsh_toggleBlock(171)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_171" onClick="javascript:wpsh_code(171)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_171" onClick="javascript:wpsh_print(171)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_171" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">svn</span> <span class="kw2">co</span> <span class="kw2">svn</span>:<span class="sy0">//</span>rakshasa.no<span class="sy0">/</span>libtorrent<span class="sy0">/</span>trunk</pre></div></div>
<h3>5. Ins Trunk Verzeichnis wechseln</h3>
<p><div id="wpshdo_172" class="wp-synhighlighter-outer"><div id="wpshdt_172" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_172"></a><a id="wpshat_172" class="wp-synhighlighter-title" href="#codesyntax_172"  onClick="javascript:wpsh_toggleBlock(172)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_172" onClick="javascript:wpsh_code(172)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_172" onClick="javascript:wpsh_print(172)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_172" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> trunk</pre></div></div><br />
Derzeitiges Verzeichnis: <span class="system">/home/USER/rtorrent/trunk</span></p>
<h3>6. Auf letzte rTorrent Version updaten</h3>
<div id="wpshdo_173" class="wp-synhighlighter-outer"><div id="wpshdt_173" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_173"></a><a id="wpshat_173" class="wp-synhighlighter-title" href="#codesyntax_173"  onClick="javascript:wpsh_toggleBlock(173)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_173" onClick="javascript:wpsh_code(173)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_173" onClick="javascript:wpsh_print(173)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_173" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">svn</span> up</pre></div></div>
<h3></h3>
<h3>7. Ins libtorrent Verzeichnis gehen</h3>
<p><div id="wpshdo_174" class="wp-synhighlighter-outer"><div id="wpshdt_174" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_174"></a><a id="wpshat_174" class="wp-synhighlighter-title" href="#codesyntax_174"  onClick="javascript:wpsh_toggleBlock(174)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_174" onClick="javascript:wpsh_code(174)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_174" onClick="javascript:wpsh_print(174)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_174" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> libtorrent</pre></div></div><br />
Derzeitiges Verzeichnis: <span class="system">/home/USER/rtorrent/trunk/libtorrent</span></p>
<h3>8. Das autogen Script ausführen</h3>
<div id="wpshdo_175" class="wp-synhighlighter-outer"><div id="wpshdt_175" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_175"></a><a id="wpshat_175" class="wp-synhighlighter-title" href="#codesyntax_175"  onClick="javascript:wpsh_toggleBlock(175)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_175" onClick="javascript:wpsh_code(175)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_175" onClick="javascript:wpsh_print(175)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_175" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>autogen.sh</pre></div></div>
<h3></h3>
<h3>9. libtorrent konfigurieren</h3>
<div id="wpshdo_176" class="wp-synhighlighter-outer"><div id="wpshdt_176" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_176"></a><a id="wpshat_176" class="wp-synhighlighter-title" href="#codesyntax_176"  onClick="javascript:wpsh_toggleBlock(176)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_176" onClick="javascript:wpsh_code(176)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_176" onClick="javascript:wpsh_print(176)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_176" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>configure</pre></div></div>
<h3>10. libtorrent kompilieren</h3>
<div id="wpshdo_177" class="wp-synhighlighter-outer"><div id="wpshdt_177" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_177"></a><a id="wpshat_177" class="wp-synhighlighter-title" href="#codesyntax_177"  onClick="javascript:wpsh_toggleBlock(177)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_177" onClick="javascript:wpsh_code(177)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_177" onClick="javascript:wpsh_print(177)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_177" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">make</span></pre></div></div>
<h3>11. libtorrent im System installieren</h3>
<div id="wpshdo_178" class="wp-synhighlighter-outer"><div id="wpshdt_178" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_178"></a><a id="wpshat_178" class="wp-synhighlighter-title" href="#codesyntax_178"  onClick="javascript:wpsh_toggleBlock(178)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_178" onClick="javascript:wpsh_code(178)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_178" onClick="javascript:wpsh_print(178)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_178" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">make</span> <span class="kw2">install</span></pre></div></div>
<h3>12. /etc/ld.so.conf anpassen</h3>
<div id="wpshdo_179" class="wp-synhighlighter-outer"><div id="wpshdt_179" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_179"></a><a id="wpshat_179" class="wp-synhighlighter-title" href="#codesyntax_179"  onClick="javascript:wpsh_toggleBlock(179)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_179" onClick="javascript:wpsh_code(179)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_179" onClick="javascript:wpsh_print(179)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_179" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">echo</span> <span class="st0">&quot;include /usr/local/lib&quot;</span> <span class="sy0">|</span> <span class="kw2">sudo</span> <span class="kw2">tee</span> <span class="re5">-a</span> <span class="sy0">/</span>etc<span class="sy0">/</span>ld.so.conf</pre></div></div>
<h3>13. ld.so cache neu aufbauen</h3>
<div id="wpshdo_180" class="wp-synhighlighter-outer"><div id="wpshdt_180" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_180"></a><a id="wpshat_180" class="wp-synhighlighter-title" href="#codesyntax_180"  onClick="javascript:wpsh_toggleBlock(180)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_180" onClick="javascript:wpsh_code(180)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_180" onClick="javascript:wpsh_print(180)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_180" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> ldconfig</pre></div></div>
<h3>14. ins rtorrent Verzeichnis wechseln</h3>
<p><div id="wpshdo_181" class="wp-synhighlighter-outer"><div id="wpshdt_181" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_181"></a><a id="wpshat_181" class="wp-synhighlighter-title" href="#codesyntax_181"  onClick="javascript:wpsh_toggleBlock(181)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_181" onClick="javascript:wpsh_code(181)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_181" onClick="javascript:wpsh_print(181)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_181" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">cd</span> ..<span class="sy0">/</span>rtorrent</pre></div></div><br />
Derzeitiges Verzeichnis: <span class="system">/home/USER/rtorrent/trunk/rtorrent</span></p>
<h3>15. autogen Script lauen lassen</h3>
<div id="wpshdo_182" class="wp-synhighlighter-outer"><div id="wpshdt_182" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_182"></a><a id="wpshat_182" class="wp-synhighlighter-title" href="#codesyntax_182"  onClick="javascript:wpsh_toggleBlock(182)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_182" onClick="javascript:wpsh_code(182)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_182" onClick="javascript:wpsh_print(182)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_182" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>autogen.sh</pre></div></div>
<h3> 16. rtorrent konfigurieren</h3>
<div id="wpshdo_183" class="wp-synhighlighter-outer"><div id="wpshdt_183" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_183"></a><a id="wpshat_183" class="wp-synhighlighter-title" href="#codesyntax_183"  onClick="javascript:wpsh_toggleBlock(183)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_183" onClick="javascript:wpsh_code(183)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_183" onClick="javascript:wpsh_print(183)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_183" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">.<span class="sy0">/</span>configure</pre></div></div>
<h3>17. rtorrent kompilieren</h3>
<div id="wpshdo_184" class="wp-synhighlighter-outer"><div id="wpshdt_184" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_184"></a><a id="wpshat_184" class="wp-synhighlighter-title" href="#codesyntax_184"  onClick="javascript:wpsh_toggleBlock(184)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_184" onClick="javascript:wpsh_code(184)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_184" onClick="javascript:wpsh_print(184)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_184" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">make</span></pre></div></div>
<h3>18. rtorrent im System installieren</h3>
<div id="wpshdo_185" class="wp-synhighlighter-outer"><div id="wpshdt_185" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_185"></a><a id="wpshat_185" class="wp-synhighlighter-title" href="#codesyntax_185"  onClick="javascript:wpsh_toggleBlock(185)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_185" onClick="javascript:wpsh_code(185)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_185" onClick="javascript:wpsh_print(185)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_185" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">make</span> <span class="kw2">install</span></pre></div></div>
<h3>19. rTorrent starten</h3>
<p><div id="wpshdo_186" class="wp-synhighlighter-outer"><div id="wpshdt_186" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_186"></a><a id="wpshat_186" class="wp-synhighlighter-title" href="#codesyntax_186"  onClick="javascript:wpsh_toggleBlock(186)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_186" onClick="javascript:wpsh_code(186)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_186" onClick="javascript:wpsh_print(186)" title="Print code"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.simplylinux.ch/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_186" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">rtorrent</pre></div></div><br />
Das ist es schon. Es sollte allerdings noch eine .rtorrent.rc Datei erstellt werden resp. die SVN Version übernommen und als ~/.rtorrent.rc gespeichert und angepasst werden. Vorallem ein Session Verzeichnis soll erstellt werden.</p>
<h3>Auf neuste Version updaten</h3>
<p>Soll rTorrent auf die neuste Version geupdated werden, einfach von Schritt 6 alles wiederholen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simplylinux.ch/rtorrent-kompilieren-von-svn-in-ubuntu-804-hardy-heron/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

