Seedboxing with Digital Ocean

1. Spin up a Digital OceanĀ ubuntu droplet

Tutorial

2. ssh into your new droplet. If you’re on a mac or linux machine, you can just type in

ssh root@myDropletIp

or if you’re using windows, you can use Putty

3. Download and install transmission:

$wget https://launchpad.net/ubuntu/+archive/primary/+files/transmission_2.82.orig.tar.xz
#the latest build of transmission; https://www.transmissionbt.com/download/

$ sudo apt-get install build-essential automake autoconf libtool pkg-config intltool libcurl4-openssl-dev libglib2.0-dev libevent-dev libminiupnpc-dev libappindicator-dev

$ tar xf transmission_2.82.orig.tar.xz
$ cd transmission-2.82
$ ./configure -q && make -s
$ su (if necessary for the next line)
$ make install

Once we have transmission downloaded and installed we need to fix some settings:


$transmission-daemon -f
#ctrl+c out of this once it has loaded.
#This is to generate settings and init files.

#We will be running the transmission-daemon as a separate user.
#create a new user called transmission with no password
$ adduser --disabled-password transmission

#switch to the new user
$ sudo su transmission

4. Set up a watch folder
open up the settings file

/home/transmission/.config/transmission-daemon/settings.json

and add

"watch-dir": "/home/transmission/watch",
"watch-dir-enabled": true

to the settings.

If you haven't already, make a "Downloads" and "watch" folder in the /home/transmission/ directory.


$ cd /home/transmission
$ mkdir Downloads
$ mkdir watch

We need to create a start/stop script:

$ vim /etc/init.d/transmission-daemon
# then copy the script found on https://trac.transmissionbt.com/wiki/Scripts/initd

5. Using your seedbox


#start transmission
$ /etc/init.d/transmission-daemon start

#stop transmission
$ /etc/init.d/transmission-daemon stop


Simply move a torrent file into your watch directory to start a torrent.

List torrents:

transmission-remote -l

Stop a torrent:

transmission-remote -t [torrent id] -S
#or
transmission-remote -t [torrent id] --stop

Re-start a torrent:

transmission-remote -t [torrent id] -s
#or
transmission-remote -t [torrent id] --start

Remove a torrent:

transmission-remote -t [torrent id] -r

Create a torrent:

transmission-create -o [output filename e.g. music.torrent] -t [tracker] [source file or directory]

Notes:

Make sure the transmission user is the owner of the Downloads and watch directories.