« Transmission » : différence entre les versions
De Banane Atomic
Aller à la navigationAller à la recherche
(12 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 3 : | Ligne 3 : | ||
= Liens = | = Liens = | ||
* [https://wiki.archlinux.org/index.php/transmission Transmission] sur wiki archlinux | * [https://wiki.archlinux.org/index.php/transmission Transmission] sur wiki archlinux | ||
* [https://linuxconfig.org/how-to-set-up-transmission-daemon-on-a-raspberry-pi-and-control-it-via-web-interface How to set up transmission-daemon on a Raspberry Pi and control it via web interface] | |||
= Configuration = | = Configuration = | ||
{{warn | If you want to edit the configuration manually using a text editor, stop the daemon first; otherwise, it would overwrite its configuration file when it closes. }} | {{warn | If you want to edit the configuration manually using a text editor, stop the daemon first; otherwise, it would overwrite its configuration file when it closes. }} | ||
<filebox fn='/ | <filebox fn='/etc/transmission-daemon/settings.json' lang='javascript'> | ||
{ | { | ||
"download-dir": "/var/lib/transmission/Downloads", | "download-dir": "/var/lib/transmission/Downloads", | ||
"incomplete-dir": "/var/lib/transmission/Downloads", | "incomplete-dir": "/var/lib/transmission/Downloads", | ||
"rpc-password": "hash", | |||
"rpc-port": 9091, | "rpc-port": 9091, | ||
"rpc-username": "transmission", | |||
"rpc-whitelist": "127.0.0.1,192.168.x.x", | "rpc-whitelist": "127.0.0.1,192.168.x.x", | ||
"peer-port": 51413, | "peer-port": 51413, | ||
} | } | ||
</filebox> | </filebox> | ||
{{boxx|/var/lib/transmission/.config/transmission-daemon/settings.json}} is a symlink to {{boxx|/etc/transmission-daemon/settings.json}}. | |||
== Password == | |||
{{boxx|rpc-password}} est un hash du mot de passe.<br> | |||
Pour changer le mot de passe il faut changer la valeur de {{boxx|rpc-password}}. Au démarrage le logiciel transforme le mot de passe en hash. | |||
= Firewall = | = Firewall = | ||
== UFW == | {{info | Router le port 51413 en tcp et udp.}} | ||
== [[Ufw#Applications_custom|UFW]] == | |||
<kode lang='bash'> | <kode lang='bash'> | ||
sudo ufw allow 9091/tcp comment 'Transmission web client tcp port 9091' | sudo ufw allow 9091/tcp comment 'Transmission web client tcp port 9091' | ||
Ligne 36 : | Ligne 46 : | ||
|- | |- | ||
| web client interfaces || <tt><nowiki>http://ip-transmission:9091</nowiki></tt> | | web client interfaces || <tt><nowiki>http://ip-transmission:9091</nowiki></tt> | ||
|- | |||
| transmission-remote-gtk || | |||
|- | |- | ||
| transmission-qt || Edit → Change Session | | transmission-qt || Edit → Change Session | ||
Ligne 44 : | Ligne 56 : | ||
= Installation = | = Installation = | ||
{| class="wikitable wtp wtmono1" | {| class="wikitable wtp wtmono1" | ||
|- | |||
| transmission-daemon || daemon (Ubuntu) | |||
|- | |- | ||
| transmission-cli || daemon, with CLI, and web client interfaces.<br />Créé l'utilisateur et le groupe {{boxx|transmission}} | | transmission-cli || daemon, with CLI, and web client interfaces.<br />Créé l'utilisateur et le groupe {{boxx|transmission}} | ||
Ligne 58 : | Ligne 72 : | ||
systemctl start transmission.service | systemctl start transmission.service | ||
</kode> | </kode> | ||
= Erreurs = | |||
== [https://wiki.archlinux.org/index.php/Transmission#Failed_to_set_send/receive_buffer Failed to set send/receive buffer] == | |||
<filebox fn='/usr/lib/sysctl.d/90-network-memory.conf' lang='bash'> | |||
# Increase the memory dedicated to the network interfaces | |||
# fix warning from transmission | |||
# UDP Failed to set receive buffer: requested 4194304, got 425984 | |||
# UDP Failed to set send buffer: requested 1048576, got 425984 | |||
net.core.rmem_max = 4194304 | |||
net.core.wmem_max = 1048576 | |||
</filebox> |
Dernière version du 7 septembre 2023 à 22:35
Liens
- Transmission sur wiki archlinux
- How to set up transmission-daemon on a Raspberry Pi and control it via web interface
Configuration
If you want to edit the configuration manually using a text editor, stop the daemon first; otherwise, it would overwrite its configuration file when it closes. |
/etc/transmission-daemon/settings.json |
{ "download-dir": "/var/lib/transmission/Downloads", "incomplete-dir": "/var/lib/transmission/Downloads", "rpc-password": "hash", "rpc-port": 9091, "rpc-username": "transmission", "rpc-whitelist": "127.0.0.1,192.168.x.x", "peer-port": 51413, } |
/var/lib/transmission/.config/transmission-daemon/settings.json is a symlink to /etc/transmission-daemon/settings.json.
Password
rpc-password est un hash du mot de passe.
Pour changer le mot de passe il faut changer la valeur de rpc-password. Au démarrage le logiciel transforme le mot de passe en hash.
Firewall
Router le port 51413 en tcp et udp. |
UFW
sudo ufw allow 9091/tcp comment 'Transmission web client tcp port 9091' sudo ufw allow 51413/tcp comment 'Transmission peer tcp port 51413' |
Iptables
# port tcp 51413 pour tous iptables -A TCP -p tcp --dport 51413 -j ACCEPT -m comment --comment "transmission" # port tcp 9091 pour le réseau local iptables -A TCP -p tcp --dport 9091 -s 192.168.x.x -j ACCEPT -m comment --comment "transmission web client interface" |
Clients
web client interfaces | http://ip-transmission:9091 |
transmission-remote-gtk | |
transmission-qt | Edit → Change Session |
Liens Magnet
Firefox → Edit → Preferences → Applications → magnet = Use Qtransmission
Installation
transmission-daemon | daemon (Ubuntu) |
transmission-cli | daemon, with CLI, and web client interfaces. Créé l'utilisateur et le groupe transmission |
transmission-gtk | GTK+ 3 package. Pas de connexion avec le daemon. |
transmission-qt | Qt5 package. |
transmission-remote-cli | Curses interface for the daemon. |
# démarrer le service avec l'utilisateur transmission systemctl start transmission.service |
Erreurs
Failed to set send/receive buffer
/usr/lib/sysctl.d/90-network-memory.conf |
# Increase the memory dedicated to the network interfaces # fix warning from transmission # UDP Failed to set receive buffer: requested 4194304, got 425984 # UDP Failed to set send buffer: requested 1048576, got 425984 net.core.rmem_max = 4194304 net.core.wmem_max = 1048576 |