Transmission daemon

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 07:24, 5 June 2009 (edit)
Ausimus1 (Talk | contribs)
(Removing all content from page)
← Previous diff
Revision as of 07:56, 5 June 2009 (edit) (undo)
Markus (Talk | contribs)
(Undo revision 25591 by Ausimus1 (Talk))
Next diff →
Line 1: Line 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).
 +Feb. 2009 - Version 1.5 is now available.
 +
 +
 +== Prepare your USB drive ==
 +
 +* 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 basic Optware files ==
 +
 +Install Optware basic files using these two commands:
 + <nowiki>wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh -O /tmp/optware-install.sh</nowiki>
 + sh /tmp/optware-install.sh
 +:Note about [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html 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.
 +
 +
 +== Install 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\/torrents",
 + "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):
 + <nowiki> wget http://www.3iii.dk/linux/optware/settings.json -O /mnt/data/torrents/.config/transmission-daemon/settings.json</nowiki>
 +
 +
 +
 +Open listening port for WAN access
 + /usr/sbin/iptables -I INPUT 1 -p tcp --dport 25000 -j logaccept
 +
 +
 +Restart transmission
 +
 + /opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemon
 +
 +== Accessing Transmission web interface ==
 +
 +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.
 +
 +
 +== Another interface option ==
 +
 +You might also want to check out a front-end (remote-GUI) for the rpc version of transmission.<br>
 +See: http://code.google.com/p/transmisson-remote-gui
 +
 +
 +== Links ==
 +* Home Page: [http://www.transmissionbt.com www.transmissionbt.com] goto menu Resources for forum, wiki, IRC channel, track, source and more.
 +* [http://mybookworld.wikidot.com/forum/t-111230/transmission-torrent-helper-script Transmission torrent helper script]

Revision as of 07:56, 5 June 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).

Feb. 2009 - Version 1.5 is now available.


Contents

Prepare your USB drive

  • 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 basic Optware files

Install Optware basic files using these two commands:

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.


Install 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\/torrents",
     "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 


Open listening port for WAN access

/usr/sbin/iptables -I INPUT 1 -p tcp --dport 25000 -j logaccept


Restart transmission

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

Accessing Transmission web interface

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.


Another interface option

You might also want to check out a front-end (remote-GUI) for the rpc version of transmission.
See: http://code.google.com/p/transmisson-remote-gui


Links