<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Headless on Wimpy's World</title><link>https://blog.wimpys.world/tags/headless/</link><description>Recent content in Headless 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>Thu, 21 Mar 2013 17:35:22 +0000</lastBuildDate><atom:link href="https://blog.wimpys.world/tags/headless/rss.xml" rel="self" type="application/rss+xml"/><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>