https://wiki.archlinux.org/api.php?action=feedcontributions&user=Enceladus&feedformat=atomArchWiki - User contributions [en]2024-03-29T14:48:01ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Transmission&diff=229434Transmission2012-10-18T14:27:48Z<p>Enceladus: /* Run as a daemon */</p>
<hr />
<div>[[Category:Internet Applications]]<br />
[[it:Transmission]]<br />
{{expansion}}<br />
[http://www.transmissionbt.com/ Transmission] is a light-weighted and cross-platform BitTorrent client. It is the default BitTorrent client in many Linux distributions.<br />
<br />
==Installation==<br />
There are several options in [[Official Repositories]]:<br />
<br />
;{{pkg|transmission-cli}}: includes CLI tools, daemon and web client.<br />
<br />
;{{pkg|transmission-gtk}}: GTK+ GUI.<br />
<br />
;{{pkg|transmission-qt}}: Qt GUI.<br />
<br />
==Configuration==<br />
For {{pkg|transmission-gtk}} and {{pkg|transmission-qt}}, the default path of configuration files is {{ic|~/.config/transmission}}.<br />
<br />
For {{pkg|transmission-cli}}, default configuration path is {{ic|~/.config/transmission-daemon}}.<br />
<br />
===Run as a daemon===<br />
To run transmission as a [[daemon]], you need have {{pkg|transmission-cli}} installed. By default, the daemon will run as the user {{ic|transmission}}, whose home directory is {{ic|/var/lib/transmission/}}.<br />
<br />
If you use initscripts, you can change the user in {{ic|/etc/conf.d/transmissiond}}:<br />
<br />
TRANS_USER="<your user name>"<br />
<br />
If you use systemd, you have to override the user in both the service file ({{ic|/usr/lib/systemd/system/transmissiond.service}}) and the tmpfile ({{ic|/usr/lib/tmpfiles.d/transmission.conf}}). To do so, copy both files to the appropriate directory in {{ic|/etc}}:<br />
# cp /usr/lib/systemd/system/transmissiond.service /etc/systemd/system/<br />
# cp /usr/lib/tmpfiles.d/transmission.conf /etc/tmpfiles.d/<br />
<br />
Create a new group named for example, {{ic|transmission}}:<br />
# groupadd transmission<br />
<br />
Add your custom user to the newly created {{ic|1=[group]}} ie. {{ic|transmission}}:<br />
# gpasswd -a [user] [group]<br />
<br />
Then change {{ic|1=User=}} to your custom user in the service file and edit the tmpfile to the following:<br />
{{hc|/etc/tmpfiles.d/transmission.conf|<br />
d /run/transmission - [user] [group] -}}<br />
Then run {{ic|systemd-tmpfiles --create transmission.conf}} and restart the transmission service.<br />
<br />
Navigate to {{ic|http://127.0.0.1:9091}} in web browser and you can see the Web client.<br />
<br />
You can also edit the main configuration file {{ic|~/.config/transmission-daemon/settings.json}} to fit your preference. Or place a symlink to your media drive in Downloads dir set in config, just make sure the transmission ''user'' has rw privileges to your media drive dirs:<br />
<br />
ln -s /media/USB_Movies/Downloads /home/user/Downloads<br />
chown user /media/USB_Movies/Downloads<br />
<br />
<br />
{{Note|<br />
*If you cannot find the {{ic|~/.config/transmission-daemon}} folder, run {{ic|transmission-daemon}} once to create it.<br />
*You need to '''stop''' the daemon before editing configuration files, or your edits will '''not''' be saved.}}<br />
<br />
==See also==<br />
*[https://trac.transmissionbt.com/wiki Transmission wiki]<br />
*[https://trac.transmissionbt.com/wiki/HeadlessUsage/General HeadlessUsage]</div>Enceladus