Pages

Wednesday, 8 January 2014

transmission

Install transmission from OSMC App Store - according to OSMC Project Leader Sam Nazarko this is the preferable way as oposed to apt-get.

After installation is completed stop daemon with:

sudo systemctl stop transmission

then edit ~/.config/transmission-daemon/settings.json (where ~ means your home directory, so it will most likely be /home/osmc).

There's a plethora of settings, nicely described here, the default ones guarantee transmission running just fine, but you propably will want to change at least:
- download-dir - where your torrents will land,
- incomplete-dir-enabled (true) & incomplete-dir - where your torrents in progress will be stored,
- rpc-authentication-required (true) rpc-usernamerpc-password - transmission's web interface credentials (as for the password - type it in plain-text form, after you restart transmission it will be encrypted)
- script-torrent-done-enabled (true) & script-torrent-done-filename - full path to a bash script that will be executed when the torrent is finished (for example for sending emails follow sending emails with msmtp post).

As transmission runs under osmc user by default (beware - only if you install it from OSMC App Store), remember to make sure that osmc user or group have read/write permissions on download-dir incomplete-dir paths.

After you are happy with your setup, save settings.json file and start transmission:

sudo systemctl start transmission

And remember that if you are ever tempted to tinker in settings.json config file - stop the daemon first, as it overwrites all settings on exit.

If you didn't make any changes to rpc-port in settings.json, the web interface will be available under osmc_local_address:9091 (if you don't know what is osmc_local_address please go to Settings-> ... )

But wait a second... isn't this the uglies web gui ever? I personally think so, that is why I like to install transmission-control - they do have an install script which you may get and run by doing the following:

cd / (go to root directory)
sudo wget --no-check-certificate https://transmission-control.googlecode.com/files/tr-control-easy-install.sh (download the install script)
sudo chmod +x tr-control-easy-install.sh (make the script executable)
sudo ./tr-control-easy-install.sh (and finally - install)

If you are lucky you should finally have a very nice web interface for transmission :)