<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Torrent on Wimpy's World</title><link>https://blog.wimpys.world/tags/torrent/</link><description>Recent content in Torrent on Wimpy's World</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><managingEditor>martin@wimpress.com (Martin Wimpress)</managingEditor><webMaster>martin@wimpress.com (Martin Wimpress)</webMaster><lastBuildDate>Sat, 21 Jun 2014 12:00:00 +0000</lastBuildDate><atom:link href="https://blog.wimpys.world/tags/torrent/rss.xml" rel="self" type="application/rss+xml"/><item><title>Setting up BitSync on Debian</title><link>https://blog.wimpys.world/posts/setting-up-bitsync-on-debian/</link><pubDate>Sat, 21 Jun 2014 12:00:00 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/setting-up-bitsync-on-debian/</guid><description>&lt;p&gt;I&amp;rsquo;ve replaced Dropbox with &lt;a href="http://www.bittorrent.com/sync"&gt;BitTorrent Sync&lt;/a&gt;.
In order to do this I&amp;rsquo;ve have &lt;code&gt;btsync&lt;/code&gt; running on a VPS (2CPU, 2GB, 400GB), my
home server and assorted Arch Linux workstations.&lt;/p&gt;
&lt;p&gt;I had a couple of reasons for migrating away from Dropbox.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Dropbox was costing $100 per year.&lt;/li&gt;
&lt;li&gt;Dropbox encryption model is weak and I have data security/privacy.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The VPS I am running BitTorrent Sync on costs $50 per year and provides four
times the storage. I run &lt;code&gt;btsync&lt;/code&gt; on a VPS so that there is always a server
&lt;em&gt;&amp;ldquo;in the cloud&amp;rdquo;&lt;/em&gt; that is available to sync with so that my setup emulates what
Dropbox used to do.&lt;/p&gt;
&lt;p&gt;All my servers are running Debian and this is how I install &lt;code&gt;btsync&lt;/code&gt; on
Debian.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sh -c &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;curl -fsSL http://debian.yeasoft.net/add-btsync-repository.sh&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install btsync
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is how I respond to the prompts:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Do you want to define a default BitTorrent Sync instance? : YES
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* BitTorrent Sync Daemon Credentials: yourusername
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* BitTorrent Sync Daemon Group: yourusername
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Niceness of the BitTorrent Sync Daemon: 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* On which portnumber should BitTorrent Sync listen? 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* BitTorrent Sync Listen Port: 12345
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Do you want BitTorrent Sync to request port mapping via UPNP? NO
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Download Bandwith Limit: 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Upload Bandwith Limit: 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Web Interface Bind IP Address: 0.0.0.0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Web Interface Listen Port: 8888
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* The username for accessing the web interface: yourusername
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* The password for accessing the web interface: yourpassword
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;As you&amp;rsquo;ll see, I don&amp;rsquo;t use UPNP on my VPS. I elect a specific port (not
actually 12345 by the way) and open that port up with &lt;code&gt;ufw&lt;/code&gt;. I also only
allow access to the WebUI port from another server I own which reverse
proxies via &lt;code&gt;nginx&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;btsync&lt;/code&gt; works really well, I have it syncing hundreds of thousands of
files that amount to several hundred gigabytes of data. On my Arch Linux
workstations I use the brilliant &lt;a href="http://www.yeasoft.com/site/projects:btsync-deb:btsync-gui"&gt;btsync-gui&lt;/a&gt;
and &lt;a href="https://play.google.com/store/apps/details?id=com.bittorrent.sync"&gt;BitTorrent Sync is also available for Android&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;That said, I still use a free Dropbox account to sync photos from mine and my
wife&amp;rsquo;s Android phones. I have a Dropbox instance running on my home file server
and everyday it runs a script to automatically import these photos into Plex.&lt;/p&gt;
&lt;p&gt;Such a shame, that at the time of writing, &lt;code&gt;btsync&lt;/code&gt; is closed source :-(
Maybe that will change but if it doesn&amp;rsquo;t &lt;a href="http://syncthing.net/"&gt;syncthing&lt;/a&gt;
may well be the answer when it has matured a little.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.yeasoft.com/site/projects:btsync-deb:btsync-server"&gt;http://www.yeasoft.com/site/projects:btsync-deb:btsync-server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://forum.bittorrent.com/topic/18974-debian-and-ubuntu-server-packages-for-bittorrent-sync/"&gt;http://forum.bittorrent.com/topic/18974-debian-and-ubuntu-server-packages-for-bittorrent-sync/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Setting up BitTorrent Sync on Debian</summary></item><item><title>Headless Debian 6.0 Torrent Server</title><link>https://blog.wimpys.world/posts/headless-debian-6.0-torrent-server/</link><pubDate>Thu, 21 Mar 2013 17:35:22 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/headless-debian-6.0-torrent-server/</guid><description>&lt;p&gt;I recently switched ISPs at home and now have unlimited high speed broadband.&lt;/p&gt;
&lt;p&gt;Finally I can participate in torrenting Linux .ISO images. I always download
the latest distros using &lt;a href="http://en.wikipedia.org/wiki/BitTorrent"&gt;BitTorrent&lt;/a&gt;
and can now contribute to the community by seeding the distros I&amp;rsquo;ve downloaded.&lt;/p&gt;
&lt;p&gt;I have a small (in size and resources) &lt;a href="http://www.debian.org"&gt;Debian&lt;/a&gt; 6.0
headless server at home that I wanted to turn into a torrent box. I&amp;rsquo;m a big fan
of &lt;a href="http://www.transmissionbt.com/"&gt;Transmission&lt;/a&gt; since it can be managed from
the shell, web and Android phone/tablet. Sadly, the Transmission packages in the
official Debain squeeze repositories are quite old, 2.03 at the time of writing,
and there are no Transmission packages in &lt;a href="http://backports-master.debian.org/"&gt;Debian Backports&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;However after flexing my &lt;em&gt;google-fu&lt;/em&gt; I found a &lt;a href="http://apt.balocco.name/changelog.txt"&gt;3rd party Debian Squeeze
repository&lt;/a&gt; that includes fairly current
(2.73 at the time of writing) Transmission packages specifically for headless use.
Yah!&lt;/p&gt;
&lt;h2 id="install-transmission-daemon"&gt;Install Transmission Daemon&lt;/h2&gt;
&lt;p&gt;First become root.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo -s -H
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add the repository key.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-key adv --keyserver keyserver.ubuntu.com --recv-key 92B84A1E
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add the repository.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;deb http://apt.balocco.name squeeze main&amp;#34;&lt;/span&gt; &amp;gt; /etc/apt/sources.list.d/balocco.list
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Update the package list.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get update
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Install Transmission.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get install transmission-cli transmission-daemon transmission-webinterface
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="basic-configuration"&gt;Basic Configuration&lt;/h2&gt;
&lt;p&gt;The Transmission settings can be found in &lt;code&gt;/etc/transmission-daemon/settings.json&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;If &lt;code&gt;transmission-daemon&lt;/code&gt; is running when you make changes to &lt;code&gt;settings.json&lt;/code&gt;
the changes you make will be discarded the next time &lt;code&gt;transmission-daemon&lt;/code&gt; is started.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Therefore either stop &lt;code&gt;transmission-daemon&lt;/code&gt; before you make any changes or you can make
the daemon reload &lt;code&gt;settings.json&lt;/code&gt; by sending it the SIGHUP signal.&lt;/p&gt;
&lt;h3 id="connect-from-anywhere"&gt;Connect from anywhere&lt;/h3&gt;
&lt;p&gt;If you want to be able to connect to Transmission from anywhere on the Internet
stop &lt;code&gt;transmission-daemon&lt;/code&gt;, make the following changes to &lt;code&gt;settings.json&lt;/code&gt; and
then start &lt;code&gt;transmission-daemon&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;rpc-password&amp;#34;&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;YourPlainTextPassword&amp;#34;&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;rpc-username&amp;#34;&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;YourUsername&amp;#34;&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;rpc-whitelist-enabled&amp;#34;&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The &lt;code&gt;rpc-username&lt;/code&gt; field will need adding but you can edit the existing entry
for &lt;code&gt;rpc-password&lt;/code&gt;. Enter the &lt;code&gt;rpc-password&lt;/code&gt; as a plain text string, Transmission
will automatically convert the password to a hash the next time it is started.&lt;/p&gt;
&lt;h2 id="connect-via-a-browser"&gt;Connect via a browser&lt;/h2&gt;
&lt;p&gt;You should now be able to access the Transmission web interface via
&lt;code&gt;http://yourhost.example.org:9091&lt;/code&gt;. If you didn&amp;rsquo;t change the username and password
(you really should) the defaults are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Username : &lt;code&gt;transmission&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Password : &lt;code&gt;transmission&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="connect-via-android"&gt;Connect via Android&lt;/h2&gt;
&lt;p&gt;I have an Android phone and an Android tablet. I use
&lt;a href="https://play.google.com/store/apps/details?id=com.neogb.rtac"&gt;Remote Transmission&lt;/a&gt;
on my Android devices to manage my torrent box.&lt;/p&gt;
&lt;h2 id="connect-via-the-shell"&gt;Connect via the shell&lt;/h2&gt;
&lt;p&gt;If, like me, you spend the majority of you time at the shell. Then
&lt;a href="https://github.com/fagga/transmission-remote-cli"&gt;transmission-remote-cli&lt;/a&gt; is
probably for you. All my workstation run &lt;a href="http://www.archlinux.org"&gt;Arch Linux&lt;/a&gt; so
I install &lt;code&gt;transmission-remote-cli&lt;/code&gt; as follows.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo pacman -S transmission-remote-cli
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;See the GitHub project page for &lt;code&gt;tramission-remote-cli&lt;/code&gt; for instructions on how
to connect to a remote Transmission daemon.&lt;/p&gt;
&lt;h2 id="block-list"&gt;Block List&lt;/h2&gt;
&lt;p&gt;Regardless of how you intend to use Transmission you should enable a block list,
this can be done via &lt;code&gt;settings.json&lt;/code&gt; and the web interface. The following block
lists are a good start.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://list.iblocklist.com/?list=bt_level1&amp;amp;fileformat=p2p&amp;amp;archiveformat=gz"&gt;http://list.iblocklist.com/?list=bt_level1&amp;amp;fileformat=p2p&amp;amp;archiveformat=gz&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.bluetack.co.uk/config/level1.gz"&gt;http://www.bluetack.co.uk/config/level1.gz&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That covers the basics for getting Transmission running on headless Debian 6.0 and
how to connect to it from just about anywhere and on any device. I recommend reading
the &lt;a href="https://trac.transmissionbt.com/wiki"&gt;Trasmission Wiki&lt;/a&gt; as Transmission is
capable of so much more than I have covered in this blog post.&lt;/p&gt;
&lt;p&gt;Happy torrenting.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://apt.balocco.name/changelog.txt"&gt;http://apt.balocco.name/changelog.txt&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.lowendtalk.com/discussion/1001/squeeze-repository"&gt;http://www.lowendtalk.com/discussion/1001/squeeze-repository&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://trac.transmissionbt.com/wiki/EditConfigFiles"&gt;https://trac.transmissionbt.com/wiki/EditConfigFiles&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/fagga/transmission-remote-cli"&gt;https://github.com/fagga/transmission-remote-cli&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.iblocklist.com/"&gt;http://www.iblocklist.com/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Installing Transmission daemon on headless Debian (Squeeze) 6.0</summary></item></channel></rss>