Transmission

From Indie IT - Wiki
Jump to: navigation, search

Create A Torrent File (Command Line)

Create the file, using 2 public trackers...

transmission-create -t udp://tracker.publicbt.com:80/announce -t udp://tracker.openbittorrent.com:80/announce ~/path/to/file.mp4

Then add the newly created .torrent file to your Transmission Daemon...

transmission-remote 127.0.0.1:9091 --auth username:password --add ~/path/to/file.mp4.torrent

Installation Of Latest Version Repository

sudo add-apt-repository ppa:transmissionbt/ppa
sudo apt-get update
sudo apt-get install transmission-cli transmission-common transmission-daemon

Web Interface

http://192.168.0.4:9091/transmission/web/

Where 192.168.0.4 is your computers IP address.

Or you can use:

http://localhost:9091/transmission/web/

Command Line

List Torrents

transmission-remote 192.168.0.4:9091 --auth us3rn4m3:p4ssw0rd --list

 ID     Done       Have  ETA           Up    Down  Ratio  Status       Name
  1    95%     670.3 MB  Unknown      0.0     0.0   0.08  Stopped      Name Of Torrent
 Sum:          670.3 MB               0.0     0.0

Schedule Start & Stop Of Torrents

crontab -e

# minute hour dayofmonth month dayofweek command
01 00 * * * transmission-remote 192.168.0.4:9091 --auth us3rn4m3:p4ssw0rd --torrent all --start
59 07 * * * transmission-remote 192.168.0.4:9091 --auth us3rn4m3:p4ssw0rd --torrent all --stop

Stop Shoreline Firewall (Shorewall) From Logging

Add the following lines to your /etc/shorewall/rules...

# Drop and do not log Transmission UDP Port 51413 packets
DROP:none!   net   fw   udp   51413

...and restart.

Set Up Transmission Daemon In Ubuntu

sudo apt-get install transmission-daemon
sudo service transmission-daemon stop
sudo nano /var/lib/transmission-daemon/info/settings.json
   "download-dir": "/home/user/Downloads/transmission/", 
   "rpc-authentication-required": true, 
   "rpc-bind-address": "0.0.0.0", 
   "rpc-enabled": true, 
   "rpc-password": "{s828b9bb3ccc3a94a6c57a2b328ea3d784a7e210h.DHxiLXZ", 
   "rpc-port": 9091, 
   "rpc-url": "/transmission/", 
   "rpc-username": "user", 
   "rpc-whitelist": "127.0.0.1", 
   "rpc-whitelist-enabled": false, 
   "umask": 2, 
   "watch-dir": "/home/user/Downloads/", 
   "watch-dir-enabled": true
sudo usermod -a -G debian-transmission yourlogin
sudo mkdir ~/Downloads/transmission
sudo chgrp debian-transmission ~/Downloads/transmission
sudo chmod 770 ~/Downloads/transmission
sudo nano /etc/sysctl.conf
   net.core.rmem_max = 4194304
   net.core.wmem_max = 1048576
   net.ipv6.neigh.default.retrans_time_ms = 250
sudo sysctl -p
sudo service transmission-daemon reload

To access the server, point your web browser to http://your.server.ip.address:9091

http://1000umbrellas.com/2010/04/21/transmission-install-on-ubuntu-10-04-server-lucid

External Links

http://www.transmissionbt.com