How to // Comment
Install Transmission // Installer Transmission

Ubuntu

[Ubuntu] Install Transmission



0. Ensure your system is up to date
  • apt-get update && apt-get upgrade -y
1. Installation
  • sudo add-apt-repository ppa:transmissionbt/ppa
  • apt install transmission-cli transmission-common transmission-daemon
2. Configuration
  • service transmission-daemon stop
Update "/etc/transmission-daemon/settings.json" file
Add or Edit (not remove !) to have following lines :
  • "rpc-authentication-required": true,
  • "rpc-bind-address": "0.0.0.0",
  • "rpc-enabled": true,
  • # use SHA1 encryption
  • "rpc-password": "__YOUR_PASSWORD__",
  • "rpc-port": 9091,
  • "rpc-url": "/transmission/",
  • "rpc-username": "__YOUR_USERNAME__",
  • "rpc-whitelist": "*.*.*.*",
  • "rpc-whitelist-enabled": true,
  • # 022 644 (rw-r--r--) 755 (rwxr-xr-x) = 18
  • # 002 664 (rw-rw-r--) 775 (rwxrwxr-x) = 2
  • "umask": 18 - > "umask": 2
  • service transmission-daemon start
  • service transmission-daemon reload
3. Interface web
  • http://__YOUR_SERVER_IP__:9091/transmission/web/
4. Theme
Or upload "install-tr-control.sh" (in /home/Files/) and do "chmod +x install-tr-control.sh" to give it execution right to be able to use it, then "bash install-tr-control.sh"
5. Plex user
  • sudo adduser plex debian-transmission

-> __YOUR_FOLDER__ is for exemple : "/home/Applications", "/home/Books", etc.

  • sudo chmod g+rw "/home/__YOUR_FOLDER__"
  • sudo chgrp -R debian-transmission "/home/__YOUR_FOLDER__"
  • sudo chgrp debian-transmission -R "/home/__YOUR_FOLDER__"
  • sudo chmod 775 -R "/home/__YOUR_FOLDER__"
  • sudo chown root -R "/home/__YOUR_FOLDER__"

/!\ Do it for all your concerned folders!

6. Apache2 (to be able to write only /transmission and be redirect to correct full url and port)
  • sudo a2enmod proxy proxy_http rewrite
Update "/etc/apache2/sites-available/000-default.conf" file
Add or Edit (not remove !) to have following lines :
  • RewriteEngine on
  • # Transmission
  • <VirtualHost *:80>
  • ProxyPass /transmission http://localhost:9091/transmission
  • ProxyPassReverse /transmission http://localhost:9091/transmission
  • RewriteRule /transmission[/]?$ /transmission/web/ [L,R=permanent]
  • RewriteRule /transmission/web?$ /transmission/web/ [R=permanent]
  • </VirtualHost>
Force reload it with :
  • service apache2 restart && service transmission-daemon restart
7. Backup (and Restore)
Copy (Replace) all following directories and files:
  • /etc/transmission-daemon/settings.json
  • /var/lib/transmission-daemon/.config/transmission-daemon

/!\ In case of restoration:

You have to redo "5. Plex user" and give correct rights to configuration folder.
  • sudo chmod g+rw "/var/lib/transmission-daemon/.config"
  • sudo chgrp -R debian-transmission "/var/lib/transmission-daemon/.config"
  • sudo chgrp debian-transmission -R "/var/lib/transmission-daemon/.config"
  • sudo chmod 775 -R "/var/lib/transmission-daemon/.config"
  • sudo chown root -R "/var/lib/transmission-daemon/.config"


How to

[How to] Installer Transmission



0. Assurez-vous que votre système est à jour
  • apt-get update && apt-get upgrade -y
1. Installation
  • sudo add-apt-repository ppa:transmissionbt/ppa
  • apt install transmission-cli transmission-common transmission-daemon
2. Configuration
  • service transmission-daemon stop
Mettre à jour le fichier "/etc/transmission-daemon/settings.json"
Ajouter ou modifier (ne pas supprimer !) pour avoir les lignes suivantes :
  • "rpc-authentication-required": true,
  • "rpc-bind-address": "0.0.0.0",
  • "rpc-enabled": true,
  • # use SHA1 encryption
  • "rpc-password": "__YOUR_PASSWORD__",
  • "rpc-port": 9091,
  • "rpc-url": "/transmission/",
  • "rpc-username": "__YOUR_USERNAME__",
  • "rpc-whitelist": "*.*.*.*",
  • "rpc-whitelist-enabled": true,
  • # 022 644 (rw-r--r--) 755 (rwxr-xr-x) = 18
  • # 002 664 (rw-rw-r--) 775 (rwxrwxr-x) = 2
  • "umask": 18 - > "umask": 2
  • service transmission-daemon start
  • service transmission-daemon reload
3. Interface web
  • http://__YOUR_SERVER_IP__:9091/transmission/web/
4. Theme
Ou uploadé "install-tr-control.sh" (in /home/Files/) et effectué "chmod +x install-tr-control.sh" pour lui donner le droit d'exécution pour pouvoir l'utiliser, puis "bash install-tr-control.sh"
5. Plex user
  • sudo adduser plex debian-transmission

-> __VOTRE_DOSSIER__ est par exemple : "/home/Applications", "/home/Books", etc.

  • sudo chmod g+rw "/home/__YOUR_FOLDER__"
  • sudo chgrp -R debian-transmission "/home/__YOUR_FOLDER__"
  • sudo chgrp debian-transmission -R "/home/__YOUR_FOLDER__"
  • sudo chmod 775 -R "/home/__YOUR_FOLDER__"
  • sudo chown root -R "/home/__YOUR_FOLDER__"

/!\ Faites-le pour tous vos dossiers concernés !

6. Apache2 (être capable d'écrire uniquement /transmission et être redirigé pour corriger l'URL complète et le port)
  • sudo a2enmod proxy proxy_http rewrite
Mettre à jour le fichier "/etc/apache2/sites-available/000-default.conf"
Ajouter ou modifier (ne pas supprimer !) pour avoir les lignes suivantes :
  • RewriteEngine on
  • # Transmission
  • <VirtualHost *:80>
  • ProxyPass /transmission http://localhost:9091/transmission
  • ProxyPassReverse /transmission http://localhost:9091/transmission
  • RewriteRule /transmission[/]?$ /transmission/web/ [L,R=permanent]
  • RewriteRule /transmission/web?$ /transmission/web/ [R=permanent]
  • </VirtualHost>
Forcer à le recharger avec :
  • service apache2 restart && service transmission-daemon restart
7. Sauvegarde (et Restauration)
Copiez (remplacez) tous les répertoires et fichiers suivants :
  • /etc/transmission-daemon/settings.json
  • /var/lib/transmission-daemon/.config/transmission-daemon

/!\ Dans le cas d'une restauration :

Vous devez refaire le "5. Plex user" et donner les droits corrects au dossier de configuration.
  • sudo chmod g+rw "/var/lib/transmission-daemon/.config"
  • sudo chgrp -R debian-transmission "/var/lib/transmission-daemon/.config"
  • sudo chgrp debian-transmission -R "/var/lib/transmission-daemon/.config"
  • sudo chmod 775 -R "/var/lib/transmission-daemon/.config"
  • sudo chown root -R "/var/lib/transmission-daemon/.config"