Difference between revisions of "Transmission Torrent Client"

From Hack Sphere Labs Wiki
Jump to: navigation, search
Line 6: Line 6:
 
*rpc does not follow cidr but instead *.  so 192.168.1.*
 
*rpc does not follow cidr but instead *.  so 192.168.1.*
 
  systemctl start transmission-daemon
 
  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 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:
 +
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 677 watch
 +
crontab -e
 +
Then add this:
 +
*/1 * * * * mv /mnt/CIFSMOUNT/watch/*.torrent /var/lib/transmission-daemon/watch

Revision as of 20:22, 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 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:

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 677 watch
crontab -e

Then add this:

*/1 * * * * mv /mnt/CIFSMOUNT/watch/*.torrent /var/lib/transmission-daemon/watch
  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