Difference between revisions of "Transmission"

From Amahi Wiki
Jump to: navigation, search
Line 82: Line 82:
  
 
4. Restart transmission from the Amahi Control Panel (Settings/Servers/Transmission Server/Restart) for the changes to take effect. Remember to check the watchdog timer as well.
 
4. Restart transmission from the Amahi Control Panel (Settings/Servers/Transmission Server/Restart) for the changes to take effect. Remember to check the watchdog timer as well.
 
[[Cat:Apps]]
 

Revision as of 00:01, 24 July 2011


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!

Changing the file permissions of downloaded files

By default, transmission sets the file permissions of downloaded files so that only the transmission user can wrie to the downloaded files and folders. To change this, modify the settings as follows:

1. Stop the transmission server from the Amahi Control Panel. Be sure to disable the watchdog timer as well.

2. vim /var/lib/transmission/.config/transmission-daemon/settings.json

3. Find the line: "umask": 18, and change it to "umask": 2. This will enable all users in the transmission group to also write to the file.

4. Restart transmission from the Amahi Control Panel (Settings/Servers/Transmission Server/Restart) for the changes to take effect. Remember to check the watchdog timer as well.