Transmission

From Amahi Wiki
Revision as of 19:05, 29 November 2010 by Chucara (talk | contribs)
Jump to: navigation, search


Transmission is a torrent client that is available on Amahi among other platforms. It has a web based interface, as well as a daemon.

Transmission screen.png

Automatically Download to a Share

(Note: this will be automatic in the future)

When you install Transmission from your Amahi dashboard, the /var/hda/files/torrents directory will be created.

If you want remote access to your downloaded torrents, or if you want to drop .torrent files in this folder, to have Transmission automatically download them, you'll need to create a torrents share. To do this:

  • Go to the Shares tab in setup, or go directly there: http://hda/setup?tab=shares
  • Click the New Share button
  • Create a share named torrents

Note: Torrent files added to this share directory are also automatically added to Transmission to download. This is done every 5 minutes.


How to update Transmission to version 2.04

If you're using x86_64 version of Fedora 12, execute this as one big line in terminal:

rpm -Uvh http://dl.dropbox.com/u/3022105/Amahi/transmission/transmission-2.04-1.fc12.x86_64.rpm http://dl.dropbox.com/u/3022105/Amahi/transmission/transmission-cli-2.04-1.fc12.x86_64.rpm http://dl.dropbox.com/u/3022105/Amahi/transmission/transmission-common-2.04-1.fc12.x86_64.rpm http://dl.dropbox.com/u/3022105/Amahi/transmission/transmission-daemon-2.04-1.fc12.x86_64.rpm http://dl.dropbox.com/u/3022105/Amahi/transmission/transmission-gtk-2.04-1.fc12.x86_64.rpm

Now you should have newest Transmission client.


How to add a password to Transmission Web Client

NOTE: Do all tasks as ROOT

1. Stop the Transmission service:

service amahi-transmission stop

2. Edit the settings.json.

nano /var/lib/transmission/.config/transmission-daemon/settings.json

3. Edit these fields, remembering the username and password.

"rpc-authentication-required": true,

   "rpc-bind-address": "0.0.0.0",                                              
   "rpc-enabled": true,                                                        
   "rpc-password": "[Insert wanted password]",        
   "rpc-port": 9091,                                                           
   "rpc-username": "[Username wanted]", 

CTRL-X to save.

4. Restart Transmission Service

Service Amahi-Transmission start

Next, we need to make sure that the cronjob that automatically loads torrents from the torrents share uses the same user authentification.

5. Edit /etc/cron.d/amahi-transmission-watch

6. Edit the following:

  • /5 * * * * transmission transmission-remote localhost:9091 -a /var/hda/files/torrents/*.torrent && rm -f /var/hda/files/torrents/*.torrent

add "--auch [username]:[password]" so the line becomes:

  • /5 * * * * transmission transmission-remote localhost:9091 --auth [username]:[password] -a /var/hda/files/torrents/*.torrent && rm -f /var/hda/files/torrents/*.torrent

where the username and password are the ones you entered as rpc-username and rpc-password. Now navigate to web address and input information and you're all set!