[GUIDE] Cross Compiling Transmission 2.82

Installing Transmission on WD My Cloud
======================================

  1. Transfer the .deb package to your NAS via scp:

    scp transmission_2.82-1_armhf.deb root@:/tmp

  2. Open a remote shell to your My Cloud

    ssh root@

  3. All commands that follow are to be executed on the remote shell!

  4. Install transmission

    dpkg -i /tmp/transmission_2.82-1_armhf.deb

 

Configuring Transmission on WD My Cloud
=======================================

  1. Add a user for transmission:

    adduser --disabled-password transmission
    usermod -a -G share transmission
    usermod -a -G www-data transmission

  2. Get start-/stop script from https://gist.github.com/sled/7742775 and save it to /etc/init.d/transmission-daemon

  3. Set permissions and flags:

    chmod +x /etc/init.d/transmission-daemon
    chown root:root /etc/init.d/transmission-daemon

  4. Start Transmission Daemon:

    /etc/init.d/transmission-daemon start

The output should be:

WDMyCloud:/tmp# /etc/init.d/transmission-daemon start
Starting bittorrent client transmission-daemon...
   Starting bittorrent client transmission-daemon succeeded
  1. Go to http://:9091 → You should get a “403: Forbidden” Message, which is good as it proofs that the transmission-daemon is running :slight_smile:
  2. Customize the config file which can be found under /home/transmission/.config/transmission-daemon/settings.json

→ All possible configuration options can be found on https://trac.transmissionbt.com/wiki/EditConfigFiles

 

Example Configuration for transmission-daemon on WD My Cloud
============================================================

Here I will cover some basic configuration options to get transmission up and running.

  1. Stop Transmission

    /etc/init.d/transmission-daemon stop

  2. Go to your WD My Cloud Web Interface and create a new share, I called it “Transmission”. This is the place where your downloads will be placed.

  3. Create the following folders (assuming your share is called Transmission, case-sensitive!):

    mkdir /DataVolume/shares/Transmission/Complete
    mkdir /DataVolume/shares/Transmission/Incomplete
    mkdir /DataVolume/shares/Transmission/Watch

  4. Open “/home/transmission/.config/transmission-daemon/settings.json” with a text editor and adapt it accordingly (an example: https://gist.github.com/sled/7743612 )

The key settings are:

  • download-dir
    → make sure download-dir lies on a share (e.g. /DataVolume/shares/Transmission/Complete)
  • incomplete-dir
    → make sure incomplete-dir lies on a share (e.g. /DataVolume/shares/Transmission/Incomplete)
  • watch-dir
    → make sure watch-dir lies on a share (e.g. /DataVolume/shares/Transmission/Watch)
  • rpc-username
    → choose an arbitrary username
  • rpc-password
    → choose an arbitrary password (will be hashed afterwards)
  • rpc-whitelist
    → MAKE SURE YOUR HOME NETWORK IP RANGE IS DEFINED! YOU CAN USE WILDCARDS!
    MY HOME NETWORK USES AN IP RANGE THAT STARTS WITH 192.168.*.*
    SO THE VALUE I CHOSE IS: “127.0.0.1,192.168.*.*”
  • umask
    → set to 0 so that all clients can read/write the downloaded files
  1. Start transmission:

    /etc/init.d/transmission-daemon start

  2. Go to http://:9091 and ENJOY your torrent box!! :slight_smile:

2 Likes