{"id":311,"date":"2011-10-12T22:51:25","date_gmt":"2011-10-12T22:51:25","guid":{"rendered":"http:\/\/blog.trungson.com\/?p=311"},"modified":"2011-10-12T22:54:08","modified_gmt":"2011-10-12T22:54:08","slug":"puppet-bittorrent-aria2","status":"publish","type":"post","link":"http:\/\/blog.trungson.com\/?p=311","title":{"rendered":"Puppet, bittorrent, aria2"},"content":{"rendered":"<p>Bittorrent package for Linux is getting old (4.4 from RPMForge and 5.x from the source). Therefore, I made the switch to aria2 (command line is &#8220;aria2c&#8221;), which is much much better and offer a lot more features. Here is what I have for aria2.conf<\/p>\n<blockquote><p>daemon<br \/>\nenable-dht=true<br \/>\nallow-overwrite=true<br \/>\nseed-ratio=2<br \/>\nmax-upload-limit=600K<br \/>\nbt-min-crypto-level=arc4<br \/>\nbt-require-crypto=true<\/p><\/blockquote>\n<p>Here is how to run it:<\/p>\n<blockquote><p>\/usr\/bin\/aria2c &#8211;conf-path=aria2.conf abc.torrent &gt;&gt; torrent.log<\/p><\/blockquote>\n<p>Here is the old way running bittorrent via puppet:<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p>exec { &#8220;run-torrents&#8221;:<br \/>\ncommand =&gt; &#8216;nohup launchmany-console &#8211;saveas_style 1 &#8211;max_upload_rate 600 &#8211;display_interval 5 . &gt; torrent.log &gt;\/dev\/null 2&gt;&amp;1 &amp;&#8217;,<br \/>\ncwd =&gt; &#8216;\/home\/mytorrents&#8217;,<br \/>\nunless =&gt; &#8216;ps -e | grep launchmany&#8217;,<br \/>\nrequire =&gt; [ Package[&#8216;bittorrent&#8217;] , Exec[&#8216;download-torrents&#8217;] ]<br \/>\n}<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Bittorrent package for Linux is getting old (4.4 from RPMForge and 5.x from the source). Therefore, I made the switch to aria2 (command line is &#8220;aria2c&#8221;), which is much much better and offer a lot more features. Here is what I have for aria2.conf daemon enable-dht=true allow-overwrite=true seed-ratio=2 max-upload-limit=600K bt-min-crypto-level=arc4 bt-require-crypto=true Here is how to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/311"}],"collection":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=311"}],"version-history":[{"count":3,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/311\/revisions"}],"predecessor-version":[{"id":313,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/311\/revisions\/313"}],"wp:attachment":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=311"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}