Transmission daemon

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:35, 11 January 2009 (edit)
Alvin (Talk | contribs)
m
← Previous diff
Revision as of 23:35, 11 January 2009 (edit) (undo)
Alvin (Talk | contribs)
m
Next diff →
Line 1: Line 1:
-I have just tried out this Transmission Torrent thing (1.42-1).+I have just tried out this Transmission Torrent thing (1.42-1).<br>
- +
This is how I got it running (Jan. 2009 on v24preSP2 Eko svn11218 Mini_usb_ftp). This is how I got it running (Jan. 2009 on v24preSP2 Eko svn11218 Mini_usb_ftp).

Revision as of 23:35, 11 January 2009

I have just tried out this Transmission Torrent thing (1.42-1).
This is how I got it running (Jan. 2009 on v24preSP2 Eko svn11218 Mini_usb_ftp).


  • Format an USB disk with one partition (ext3).
  • In web-GUI -> USB, auto-mount it as /mnt


Make the following folders

     cd /mnt
     mkdir /opt
     mkdir -p /data/torrents              # -p to make both directories at the same time

The plan is to have everything torrent go to the folder /mnt/data/torrents


Making sure /opt is pointing to an rw area, by mounting /mnt/opt as /opt

     mount /mnt/opt /opt


Install Optware basic files

     wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh -O /tmp/optware-install.sh
     sh /tmp/optware-install.sh
Note about putty:
  • You can paste text from the clipboard to a putty window by right clicking in the putty window.
  • You can copy from a putty window to the clipboard by highlighting text with the mouse (click-and-hold, move, let-go-of-mouse-button). Highlighted text is immediately copied to the clipboard. Click the putty window to remove the highlight, the text stays in the clipboard.


Instal Optware Transmission

     /opt/bin/ipkg-opt -verbose_wget install transmission
Note: I like to see the progress of the downloading process, so I know the right thing is happening. This is done with the -verbose_wget parameter.


Started and stopped Transmission to get the basic work folders

     /opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemon
     killall transmission-daemon

With the command above you get the basic folder structure of:

/mnt/data/torrents/.config/
/mnt/data/torrents/.config/transmission-daemon
/mnt/data/torrents/.config/transmission-daemon/settings.json  #file
/mnt/data/torrents/.config/transmission-daemon/stats.json       #file
/mnt/data/torrents/.config/transmission-daemon/blocklists 
/mnt/data/torrents/.config/transmission-daemon/resume          
/mnt/data/torrents/.config/transmission-daemon/torrents


Edit settings.json to contain the following

     vi /mnt/data/torrents/.config/transmission-daemon/settings.json
     {
     "blocklist-enabled": 1,
     "download-dir": "\/mnt\/data\/torrent",
     "download-limit": 100,
     "download-limit-enabled": 1,
     "encryption": 2,
     "max-peers-global": 35,
     "peer-port": 25000,
     "pex-enabled": 1,
     "port-forwarding-enabled": 1,
     "rpc-authentication-required": 0,
     "rpc-password": "",
     "rpc-port": 9091,
     "rpc-username": "",
     "rpc-whitelist": "192.168.1.*",
     "upload-limit": 200,
     "upload-limit-enabled": 1
     }

The file settings.json can also be downloaded from here (the wget command is one line):

 wget http://www.3iii.dk/linux/optware/settings.json -O /mnt/data/torrents/.config/transmission-daemon/settings.json


Restart transmission

     /opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemon


Now you get web access to the Transmission page by going to http://192.168.1.1:9091. That is if your routers IP is 192.168.1.1


How to get transmission to download torrent files?

     - In a web browser go to your favourite torrent site/tracker and download a "<myfile>.torrent" file
     - In a web browser go to 192.168.1.1:9091 to enter the Transmission web page.
     - click "open"
     - click the text field (or "select" button)
     - point out the "<myfile>.torrent"
     - click "upload"

     and the torrent'ed file should start downloading shortly.


The downloaded file will turn up in the /mnt/data/torrents folder.

The full space of the file will be reserved from the start, so in a FTP, WinSCP or Explorer via Samba it may seem like the file is all there immediately, but it is not! It is fully downloaded when the line turns green in the Transmission web interface at 192.168.1.1:9091.

You can se details about any of the torrent files by clicking the Inspector button on the right in the Transmission web interface.