Headless Torrent Daemon on Raspberry Pi

If, like me, you use a Raspberry Pi as a multimedia centre it’s really handy being able to kick off a torrent without having to be logged into the Pi. This is especially useful if you want to download something using your phone, to your Pi, from literally anywhere.

transmission

Here’s how to configure Transmission so you can download torrents to your Pi from anywhere.

Read More »

How To: Install Tarsnap on Linux

After posting how great Tarsnap is I thought it only fair to write a ‘how to install Tarnsap on Linux’ article, so here goes.

Sign up for an account

This is the easiest part, simply create an account at Tarsnap.com and verify your e-mail address. You will need to ‘top up’ your account with at least 5 American Pasos to actually get started so may as well do that right away. I used Paypal as it makes me feel safe and when I feel safe I sleep better at night.

Once you have an account balance there’s actually not much else to do via the website; the rest is all command line goodness.

Download and Compile the Source Code

I’m going to do the rest as the ‘root’ user. If you’re not feeling as brave you may wish to prefix every command with ‘sudo’ as your normal user – for some reason Ubuntu et al seem to love doing this.

At the time of writing version 1.0.36.1 was the latest.

First up lets get root and change to /tmp and then download the tarball:

sudo -i
cd /tmp/
wget https://www.tarsnap.com/download/tarsnap-autoconf-1.0.36.1.tgz

tarsnap1

Read More »

Tarsnap – The Ultimate Backup Solution

Tarsnap is a no nonsense backup service for Unix (Linux, Mac etc) and is very nice indeed from a sysadmin’s point of view. It is inherently uber secure by design. It somewhat lacks being end-user friendly though – for example it doesn’t handle expiry of archives out-the-box. Therefore if you wanted GFS style rotation you need to wrap it in something which handles deleting old archives according to whatever deltas.

tarsnap

Their payment model is a bit strange in that it is prepay so you get a warning email when running low on credit or risk having your backups deleted for good. The cost of a particular backup run can Read More »

Mopify Behind Apache Reverse Proxy

I’ll be writing a post about how great Mopify is shortly but essentially it’s a web plugin for Mopidy which provides a web front end to Spotify running on just about any machine. It means you can control Spotify running on a machine plugged into your HiFi without the needs for the Spotify App on your device. This is handy where you have other people in the house with their own accounts but still want them to be able to control the music on the main HiFi.

spotify-tile

Of course, an ideal host machine might well be a Raspberry Pi with a decent USB Soundcard.

Mopidy runs its own little web server which means Read More »

Bluetooth Proximity Sensor

bluetooth-logo

I wanted a way to detect if someone was in the house without anyone having to do anything. This is useful, for example, to run a script or launch a program if we can identify who it is. The solution I wanted to play with was using mobile phones. Given that folks are fairly attached to their phones these days this seemed a reasonable detection method.

The script below is written in Python and uses bluetooth to detect if anyone Read More »