<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.llaumgui.com/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>Le blog de llaumgui - bittorrent</title>
  <link>http://www.llaumgui.com/</link>
  <description>Linux en général, Fedora en particulier...</description>
  <language>fr</language>
  <pubDate>Fri, 04 Jul 2008 15:07:50 +0200</pubDate>
  <copyright>http://creativecommons.org/licenses/by-nc-nd/2.5/</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Un serveur Bittorrent en 5 minutes sur Fedora et/ou CentOS</title>
    <link>http://www.llaumgui.com/post/Un-serveur-Bittorrent-en-5-minutes-sur-Fedora-ou-CentOS</link>
    <guid isPermaLink="false">urn:md5:11e7b261b044859b0cfde6f27424003d</guid>
    <pubDate>Tue, 11 Mar 2008 10:39:00 +0100</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>bittorrent</category><category>Borsalino</category><category>CentOS</category><category>Fedora</category><category>Remi</category><category>yum</category>    
    <description>&lt;p&gt;&lt;a href=&quot;http://www.llaumgui.com/post/Bittorrent-sur-Borsalino&quot; hreflang=&quot;fr&quot; title=&quot;Bittorrent sur Borsalino&quot;&gt;Il y a 1 an&lt;/a&gt;, &lt;a href=&quot;http://forums.fedora-fr.org/viewtopic.php?id=17228&quot; hreflang=&quot;fr&quot; title=&quot;Live CD en français !&quot;&gt;lors de la sortie du live CD Fedora Core 6 francisé&lt;/a&gt; par &lt;a href=&quot;http://odysseus.x-tnd.be/blog&quot; hreflang=&quot;fr&quot; title=&quot;The trashiest blog in the World...&quot;&gt;trasher&lt;/a&gt;, j'avais mis en place un serveur &lt;a href=&quot;http://fr.wikipedia.org/wiki/BitTorrent&quot; hreflang=&quot;fr&quot;&gt;Bittorrent&lt;/a&gt; sur &lt;a href=&quot;http://www.llaumgui.com/tag/Borsalino&quot;&gt;Borsalino&lt;/a&gt;. 1 an plus tard, trasher récidive avec le &lt;a href=&quot;http://forums.fedora-fr.org/viewtopic.php?pid=246570#p246570&quot; hreflang=&quot;fr&quot; title=&quot;Live CD français Fedora 8 !&quot;&gt;live CD de Fedora 8 francisé&lt;/a&gt;. Afin de partager cet ISO et &lt;a href=&quot;http://www.llaumgui.com/post/fedora-fr-%3A-Incidents-du-Week-end&quot; hreflang=&quot;fr&quot; title=&quot;fedora-fr : Incidents du Week-end&quot;&gt;suite au crash du serveur&lt;/a&gt;, j'ai du réinstaller le service Bittorrent...&lt;/p&gt;


&lt;p&gt;Heureusement, le paquet Bittorrent a su évoluer au fil des versions de &lt;a href=&quot;http://fedoraproject.org/&quot; hreflang=&quot;fr&quot; title=&quot;Le projet Fedora&quot;&gt;Fedora&lt;/a&gt; et il est maintenant très simple d'installer et configurer un serveur Bitto.&lt;/p&gt;    &lt;code class=&quot;bash&quot;&gt;yum &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt; bittorrent&lt;/code&gt;


&lt;p&gt;Ensuite on place l'ISO et le torrent dans le répertoire &lt;em&gt;/srv/bittorrent/data/&lt;/em&gt;, comme je voulais un compte &lt;a href=&quot;http://fr.wikipedia.org/wiki/Ftp&quot; hreflang=&quot;fr&quot;&gt;ftp&lt;/a&gt; associé à mon répertoire bittorrent, et que je ne voulais pas encombrer la racine, j'ai déplacé ce répertoire :&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;cd&lt;/span&gt; /srv/ ; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mv&lt;/span&gt; bittorrent /home/ ; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;ln&lt;/span&gt; -s /home/bittorrent ./&lt;/code&gt;


&lt;p&gt;Ensuite on lance le service de tracker et celui de seeder  (partage) :&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;/etc/init.d/btseed start ; /etc/init.d/bttrack start&lt;/code&gt;


&lt;p&gt;Pour finir une petite configuration du firewall (system-config-securitylevel-tui) pour ouvrir le 6969 (tracker) et le 6881 (seed).&lt;/p&gt;


&lt;p&gt;Voila donc Borsalinio équipé d'un &lt;a href=&quot;http://www.fedora-fr.org:6969&quot; hreflang=&quot;fr&quot;&gt;tracker Bittorrent&lt;/a&gt; qui se lance au démarrage de la machine :&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;chkconfig btseed on ; chkconfig bttrack on&lt;/code&gt;


&lt;p&gt;Pour affiner la configuration, vous pouvez éditer le fichier /etc/sysconfig/bittorrent. Dans mon cas, j'ai rajouté les paramètres &lt;code&gt;favicon&lt;/code&gt; ainsi qu'&lt;code&gt;allow_get&lt;/code&gt; pour rendre le nom du Torrent clicable.&lt;/p&gt;



&lt;h3&gt;Cas de CentOS&lt;/h3&gt;

&lt;p&gt;Afin d'aider Borsalino dans son effort de partage, j'ai équipé &lt;a href=&quot;http://www.llaumgui.com/tag/spb-box&quot; hreflang=&quot;fr&quot;&gt;mon serveur&lt;/a&gt; de Bittorrent. Le problème est que Bittorent n'est pas disponible dans les dépôts officiels. Il existe 2 paquets pour CentOS, l'un disponible sur la &lt;a href=&quot;http://rpmforge.net/&quot; hreflang=&quot;fr&quot; title=&quot;RPMforge&quot;&gt;forge&lt;/a&gt; et qui contient le strict minimum et l'autre disponible chez &lt;a href=&quot;http://blog.famillecollet.com/&quot; hreflang=&quot;fr&quot; title=&quot;Les RPM de Remi&quot;&gt;Remi&lt;/a&gt; qui lui est complet... Donc évidement :&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;yum --&lt;span style=&quot;color: #007800;&quot;&gt;enablerepo=&lt;/span&gt;remi &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt; bittorrent.&lt;/code&gt;


&lt;p&gt;&lt;em&gt;PS : Dans mon cas, remi est activé par défaut, j'ai donc juste rajouté &amp;quot;bittorrent&amp;quot; à la directive &lt;code&gt;includepkgs&lt;/code&gt; de mon fichier /etc/yum.repo/remi.repo. Ce qui donne :&lt;/em&gt;&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;remi&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;name=&lt;/span&gt;Les RPM de remi pour Enterprise Linux &lt;span style=&quot;color: #000000;&quot;&gt;5&lt;/span&gt; - &lt;span style=&quot;color: #007800;&quot;&gt;$basearch&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;baseurl=&lt;/span&gt;http://rpms.famillecollet.com/el5.&lt;span style=&quot;color: #007800;&quot;&gt;$basearch&lt;/span&gt;/&lt;br /&gt;
&amp;nbsp; &amp;nbsp; http://remi.collet.&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;free&lt;/span&gt;.fr/rpms/el5.&lt;span style=&quot;color: #007800;&quot;&gt;$basearch&lt;/span&gt;/&lt;br /&gt;
&amp;nbsp; &amp;nbsp; http://iut-info.univ-reims.fr/remirpms/el5.&lt;span style=&quot;color: #007800;&quot;&gt;$basearch&lt;/span&gt;/&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;enabled=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;gpgcheck=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;gpgkey=&lt;/span&gt;file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;failovermethod=&lt;/span&gt;priority&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;includepkgs=&lt;/span&gt;php* remi-release sqlite2 bittorrent&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;remi-&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;name=&lt;/span&gt;Les RPM de remi en &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;test&lt;/span&gt; pour Enterprise Linux &lt;span style=&quot;color: #007800;&quot;&gt;$releasever&lt;/span&gt; - &lt;span style=&quot;color: #007800;&quot;&gt;$basearch&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;baseurl=&lt;/span&gt;http://rpms.famillecollet.com/test-el5.&lt;span style=&quot;color: #007800;&quot;&gt;$basearch&lt;/span&gt;/&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;enabled=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;gpgcheck=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;gpgkey=&lt;/span&gt;file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi&lt;/code&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Un-serveur-Bittorrent-en-5-minutes-sur-Fedora-ou-CentOS#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Un-serveur-Bittorrent-en-5-minutes-sur-Fedora-ou-CentOS#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/400</wfw:commentRss>
      </item>
    
  <item>
    <title>Bittorrent sur Borsalino</title>
    <link>http://www.llaumgui.com/post/Bittorrent-sur-Borsalino</link>
    <guid isPermaLink="false">urn:md5:7b92cd19bc24cad777232fe92f3c875e</guid>
    <pubDate>Wed, 03 Jan 2007 21:51:00 +0100</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>fedora-fr</category>
        <category>bittorrent</category><category>Borsalino</category><category>Fedora</category><category>Fedora Core 5</category><category>Fedora Core 6</category>    
    <description>&lt;p&gt;Depuis ce week-end, &lt;a href=&quot;http://www.llaumgui.com/post/Viva-Ikoula&quot; hreflang=&quot;fr&quot;&gt;le serveur de fedora-fr&lt;/a&gt;, est doté d'un tracker et d'un client &lt;a href=&quot;http://www.bittorrent.com/&quot; hreflang=&quot;en&quot;&gt;Bittorent&lt;/a&gt;.&lt;br /&gt;
C'est en effet la solution Bittorent qui a été retenue pour mettre à disposition la &lt;a href=&quot;http://odysseus.x-tnd.be/blog/index.php/post/02/01/2007/Fedora-Zod-Live-CD-en-francais&quot; hreflang=&quot;fr&quot;&gt;version française&lt;/a&gt; du &lt;a href=&quot;http://forums.fedora-fr.org/viewtopic.php?pid=122231#122231&quot; hreflang=&quot;fr&quot;&gt;Live CD de Fedora Core 6&lt;/a&gt; concoctée par notre amis &lt;a href=&quot;http://odysseus.x-tnd.be/blog/index.php/post/02/01/2007/Fedora-Zod-Live-CD-en-francais&quot; hreflang=&quot;fr&quot;&gt;Trasher&lt;/a&gt;.&lt;/p&gt;    &lt;p&gt;Borsalino tournant sous Fedora Core 5, il ne dispose pas de Bittorrent en mode service comme l'opus 6; pour y lancer les différents processus au démarrage, j'ai du passer par le fichier /etc/rc.local.&lt;br /&gt;
De plus, afin de sécuriser le tout, un compte Bittorent a été mis en place et c'est lui seul qui exécute le client chargé de partager l'ISO.&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/sh&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# This script will be executed *after* all the other init scripts.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# You can put your own initialization stuff &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;in&lt;/span&gt; here &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; you don&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'t&lt;br /&gt;
# want to do the full Sys V style init stuff.&lt;br /&gt;
&lt;br /&gt;
touch /var/lock/subsys/local&lt;br /&gt;
/root/bin/bttracker&lt;br /&gt;
su bittorrent -c /home/bittorrent/bin/btseed&lt;/span&gt;&lt;/code&gt;

&lt;p&gt;Mon fichier /etc/rc.local&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;cd&lt;/span&gt; /home/bittorrent/share/&lt;br /&gt;
bttrack --port &lt;span style=&quot;color: #000000;&quot;&gt;6969&lt;/span&gt; --dfile dstate --allowed_dir /home/bittorrent/share/ --allow_get &lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;&lt;/code&gt;

&lt;p&gt;Le fichier bttracker&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;cd&lt;/span&gt; /home/bittorrent/share/&lt;br /&gt;
bittorrent-console --maxport &lt;span style=&quot;color: #000000;&quot;&gt;6889&lt;/span&gt; /home/bittorrent/share/*.torrent&lt;/code&gt;

&lt;p&gt;Le fichier btseed&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Bittorrent-sur-Borsalino#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Bittorrent-sur-Borsalino#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/132</wfw:commentRss>
      </item>
    
</channel>
</rss>