Changes

From Amahi Wiki
Jump to: navigation, search
2,440 bytes added ,  17:19, 8 January 2017
[[Category:Apps]]
[http://transmissionbt.com Transmission] is a torrent client that is available on Amahi as a [http://www.amahi.org/apps/transmission one-click] app. It has a web based interface.
<!--[[Image:Transmission_screen.png]]-->= Blocklist Rules =Blocklists can be added to Transmission via the user interface:* Select '''Edit Preferences''' (looks like a wrench at the bottom left)* Choose '''Peers''' tab* Select '''Enable blocklist''' checkbox* Replace <b><nowiki>http://transmissionbtwww.example.com Transmission] is a torrent client that is available on Amahi among other platforms/blocklist</nowiki></b> with <b><nowiki>http://list. It has a web based interface, as well as a daemoniblocklist.com/?list=bt_level1</nowiki></b>* Choose '''Update'''
[[Image:Transmission_screenYou should now see "Blocklist has 0 rules" change. Close the '''Preferences''' by selecting the '''X''' at the top right corner.png]]
= Automatically Download to a Share =
(Note: this * When you install Transmission from your Amahi dashboard, the '''torrents''' share will be automatic in the future)created automatically.
When you install * Torrent files added to this share directory are also automatically added to Transmission from your Amahi dashboard, the to download. This is done every 5 minutes via '''/etc/varcron.d/hdaamahi-torrent-watch''' [http:/files/torrents directory will be createden.wikipedia.org/wiki/Cron Cron] job.
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* Change the following portion of the file as desired (*/5 = 5 minutes):
* Go to the '''Shares''' tab in setup, or go directly there: http://hda/setup?tab=shares5 * * * 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 = Automatic download. This is done every 5 minutes.script (Amahi 7) =
* To change the logging or saving of torrents, you will need to modify the script below (located in /usr/share/transmission directory):
** Remove '''>> /var/log/torrentwatch.log''' to disable logging.
** Change '''mv "$file" "$file".added"''' to '''"rm -f "$file"''' to prevent saving torrents with .added extension.
** Change '''/var/hda/files/torrents''' to desired share path to change download location.
<pre>#!/bin/bashfor file in /var/hda/files/torrents/*.torrentdoif [ "$file" != How "/var/hda/files/torrents/*.torrent" ]; thenecho [`date`] "$file" added to update Transmission to version 2queue. >> /var/log/torrentwatch.log/usr/bin/transmission-remote localhost:9091 -a "$file"mv "$file" "$file".04 =addedsleep 1fidone</pre>
If you're using x86_64 version of Fedora 12, execute this as one big line in terminal:= Add Transmission Web Client Password =
{{Code|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 ROOTroot user
1. Stop the Transmission service:
{{Code| service amahi-transmission stop}}
2. Edit the settings.json.
{{Code| nano /var/lib/transmission/.config/transmission-daemon/settings.json}}
3. Edit these fields, remembering the username and password
{{Text|Text=<pre>"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]",}}</pre>
CTRL-X to save.
4. Restart Transmission Service
service amahi-Transmission starttransmission restart
5. Next, we need to make sure that the cronjob that automatically loads torrents from the torrents share uses the same user authentification.
5. * (Amahi 6) Edit '''/etc/cron.d/amahi-transmission-watch''' and change the following:
6. Edit the following{{Text| */5 * * * * transmission transmission-remote localhost:9091 -a /var/hda/files/torrents/*.torrent && rm -f /var/hda/files/torrents/*.torrent}}
:: add "--auch auth [username]:[password]" so the line becomes:
{{Text| */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 * (Amahi 7) Edit '''/usr/share/transmission/torrentwatch.sh''' and password are change the ones you entered as rpc-username and rpc-password.Now navigate to web address and input information and you're all set!following:
= Changing the /usr/bin/transmission-remote localhost:9091 -a "$file permissions of downloaded files ="
:: add "--auth [username]:[password]" so the line becomes:  /usr/bin/transmission-remote localhost:9091 --auth [username]:[password] -a "$file" * 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! = Change Downloaded Files Permissions = By default, transmission sets the file permissions of downloaded files so that only the transmission user can wrie write 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. {{Code|Edit '''/var/lib/transmission/.config/transmission-daemon/settings.json''': 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.
<u>GUI method:</u>
1. Go to System -> Administration -> Users and Groups<br />2. Enter your root password<br />3. Click on Edit -> Preferences<br />4. Make Sure "Hide System users and groups" is unchecked and close the dialog box<br />5. In the list of Users find "transmission" and double click<br />6. In the Groups tab find "users" and make sure it is checked.<br />7. Close all windows.
<u>Terminal method:</u> 1. Open Terminal<br />2. Type sudo su -3. Enter your password<br />4. Type usermod -G users transmission5. Close Terminal =Adding User To Transmission Group= You may run into a problem where even after adding transmission to the users group, that you cannot delete or modify files downloaded from Transmission. If this happens, you can add the user(s) you want to modify the downloaded files by running the follow command as root passwordreplacing "admin" with the user you want to add:
3. Click on Edit usermod -> Preferencesa -G transmission admin
4. Make Sure "Hide System users Note: You need to stop the transmission-daemon service and groups" is unchecked watchdog before running the above command, and close a restart of the server may be necessary, just remember to restart the dialog boxservice and watchdog first.
5. In the list of Users find "transmission" and double click= Prevent Transmission Email Reports =
6Transmission installs a cronjob that checks a preset folder every xx minutes for torrent files. If a torrent-file is present it will automatically start the download for you and delete the torrent file. In some cases you might receive email reports when the folder is empty. You can edit the Groups tab find "users" and cronjob to make sure it no reports are sent when the cronjob is checkedrun.
7. Close all windows* cronjob can be found at '''/etc/cron.d/amahi-transmission-watch'''
* Add '''>/dev/null 2>&1''' to the end all command lines and reports will not be sent in the future.
<u>Terminal method:</u>= Transmission with HTTPS Trackers (Ubuntu) =
1Ubuntu 12.04 64bit currently suffers from [https://bugs.launchpad.net/ubuntu/+source/gnutls26/+bug/937537 this bug] in libgnutls26 which prevents Transmission communicating with SSL trackers. In order to fix this run the following commands. Open Terminal
2 wget <nowiki>http://ftp. Type {{Code|su}}uk.debian.org/debian/pool/main/g/gnutls26/libgnutls26_2.12.20-1_amd64.deb</nowiki>
3 sudo dpkg -i libgnutls26_2. Enter your root password12.20-1_amd64.deb
4. Type {{Code|usermod -G users transmission}} (Make sure G is Capital)
5For a list of available mirrors see [http://packages. Close Terminaldebian.org/wheezy/amd64/libgnutls26/download here]
12,424

edits