Difference between revisions of "Transmission Torrent Client"

From Hack Sphere Labs Wiki
Jump to: navigation, search
(CIFS watch directory)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
=Debian 8 Jessie=
 
=Debian 8 Jessie=
 
  apt-get install transmission-daemon
 
  apt-get install transmission-daemon
 +
systemctl stop transmission-daemon
 
  nano /etc/transmission-daemon/settings.json
 
  nano /etc/transmission-daemon/settings.json
 
Whitelist, rpc user, pass , and port...also peer port, download and incomplete dirs.
 
Whitelist, rpc user, pass , and port...also peer port, download and incomplete dirs.
  systemctl restart transmission-daemon
+
*rpc does not follow cidr but instead *.  so 192.168.1.*
 +
systemctl start transmission-daemon
 +
 
 +
==CIFS watch directory==
 +
inotify is used to notify transmission that a new file has been added.<ref>https://stackoverflow.com/questions/8124617/getting-file-create-notifications-for-cifs-mount-in-linux</ref><ref>https://superuser.com/questions/411038/inotify-or-equivalent-on-cifs-mount</ref>
 +
 
 +
This does not work with CIFS.  So someone talked about making a script that checked everyone once in a while and used transmission-remote -a $file to send to transmission.
 +
 
 +
But the simpler method<ref>https://forum.transmissionbt.com/viewtopic.php?t=11021</ref> is just to create two watch dirs...one local and one remote and have the crontab move the torrent file to the local dir.
 +
 
 +
So lets do it<ref>https://trac.transmissionbt.com/wiki/EditConfigFiles</ref>:
 +
watch-dir: String
 +
watch-dir-enabled: Boolean (default = false) Watch a directory for torrent files and add them to transmission.
 +
Note: When watch-dir-enabled is true, only the transmission-daemon, transmission-gtk, and transmission-qt applications will monitor watch-dir for new .torrent files and automatically load them.
 +
 
 +
systemctl stop transmission-daemon
 +
su -
 +
cd /var/lib/transmission-daemon
 +
mkdir watch
 +
chown debian-transmission:debian-transmission watch
 +
chmod 777 watch
 +
crontab -e
 +
Then add this:
 +
<pre>
 +
*/1 * * * * mv /mnt/CIFSMOUNT/watch/*.torrent /var/lib/transmission-daemon/watch > /dev/null 2>&1
 +
</pre>
 +
 
 +
nano /etc/transmission-daemon/settings.json
 +
 
 +
    "watch-dir": "/var/lib/transmission-daemon/watch",
 +
    "watch-dir-enabled": true
 +
Respect the commas at the end of the lines, except the last line.  Also look in the syslog if you have issues.  I had permssion problems with the incomplete and download dirs.  The chmod 777 watch...may be able to be restricted more.
 +
 
 +
  systemctl start transmission-daemon

Latest revision as of 20:19, 29 August 2015

Debian 8 Jessie

apt-get install transmission-daemon
systemctl stop transmission-daemon
nano /etc/transmission-daemon/settings.json

Whitelist, rpc user, pass , and port...also peer port, download and incomplete dirs.

  • rpc does not follow cidr but instead *. so 192.168.1.*
systemctl start transmission-daemon

CIFS watch directory

inotify is used to notify transmission that a new file has been added.[1][2]

This does not work with CIFS. So someone talked about making a script that checked everyone once in a while and used transmission-remote -a $file to send to transmission.

But the simpler method[3] is just to create two watch dirs...one local and one remote and have the crontab move the torrent file to the local dir.

So lets do it[4]:

watch-dir: String 
watch-dir-enabled: Boolean (default = false) Watch a directory for torrent files and add them to transmission.

Note: When watch-dir-enabled is true, only the transmission-daemon, transmission-gtk, and transmission-qt applications will monitor watch-dir for new .torrent files and automatically load them.

systemctl stop transmission-daemon
su -
cd /var/lib/transmission-daemon
mkdir watch
chown debian-transmission:debian-transmission watch
chmod 777 watch
crontab -e

Then add this:

*/1 * * * * mv /mnt/CIFSMOUNT/watch/*.torrent /var/lib/transmission-daemon/watch > /dev/null 2>&1
nano /etc/transmission-daemon/settings.json
   "watch-dir": "/var/lib/transmission-daemon/watch",
   "watch-dir-enabled": true

Respect the commas at the end of the lines, except the last line. Also look in the syslog if you have issues. I had permssion problems with the incomplete and download dirs. The chmod 777 watch...may be able to be restricted more.

systemctl start transmission-daemon
  1. https://stackoverflow.com/questions/8124617/getting-file-create-notifications-for-cifs-mount-in-linux
  2. https://superuser.com/questions/411038/inotify-or-equivalent-on-cifs-mount
  3. https://forum.transmissionbt.com/viewtopic.php?t=11021
  4. https://trac.transmissionbt.com/wiki/EditConfigFiles