Setting up Transmission (bittorrent) with Clutch WebUI: Difference between revisions

From Alpine Linux
m (Corrected install package name)
(formatting and typos)
 
Line 1: Line 1:
== Introduction ==
== Introduction ==


This document will show you how you can setup Transmission BitTorrent client on Alpine Linux and control it with a nice HTTP web-interface. I assume that you know the basics about Alpine Linux (package management and internals) and you have enough storage available to store your downloaded media (ie USB hard-drive) and of course a working internet connection.
This document will show you how you can setup [https://transmissionbt.com/ Transmission BitTorrent] client on Alpine Linux and control it with a nice HTTP web-interface. It is assumed that you know the basics of Alpine Linux (package management and internals) and you have enough storage available for your downloaded media (i.e. USB hard drive) and, of course, a working internet connection.


== Setting up Transmission ==
== Setting up Transmission ==
Line 7: Line 7:
Lets install it:
Lets install it:


{{Cmd|apk add transmission-daemon}}
{{Cmd|# apk add {{Pkg|transmission-daemon}}}}


This should install Transmission 3.0.0. After the installation is complete you should have default configuration file for init in:
This should install latest available version of Transmission (available on Alpine). After the installation is complete you should have default configuration file for init in {{Path|/etc/conf.d/transmission-daemon}}.


/etc/conf.d/transmission-daemon
By default, Transmission will run as the user '''transmission'''. If you need to make changes, do so, and save them. You can restart <code>transmission-daemon</code> and see if all is working as desired:


By default, transmission will run as the user "transmission". If you need to make changes, do so, and save them. You can restart transmission-daemon and see if all is working ok:
{{Cmd|# rc-service transmission-daemon restart}}


{{Cmd|rc-service transmission-daemon restart}}
To configure the transmission settings (including the download location), edit the configuration file here: {{Path|/var/lib/transmission/config/settings.json}}


To configure the transmission settings (including the download location), edit the configuration file:
If everything is working, you should see <code>transmission-daemon</code> running with the following command:


/var/lib/transmission/config/settings.json
{{Cmd|$ ps}}


If everything is OK you should see transmission-daemon running with the following command:
If you change the download location in the settings, remember to transfer ownership to the '''transmission''' user and group.


{{Cmd|ps}}
{{Cmd|# chown -R transmission:transmission <DOWNLOAD_FOLDER>}}


If you change the download location in the settings, remember to transfer ownership to the transmission user and group.
It may also be convenient for the '''root''' user to be able to access the files when administering the server. An easy way to do this is to add the root user to the '''transmission''' group:


{{Cmd|chown -R transmission:transmission <DOWNLOAD_FODLER>}}
{{Cmd|# addgroup root transmission}}


It may also be convienent for the "root" user to be able to access the files when administering the server. An easy way to do this is to add the root user to the transmission group:
Let's add <code>transmission</code> to our system start:


{{Cmd|addgroup root transmission}}
{{Cmd|# rc-update add transmission-daemon}}


Lets add transmission to our system start:
The transmission web GUI will run on <code>http://<IP_ADDRESS>:9091/transmission</code>
 
{{Cmd|rc-update add transmission-daemon}}
 
The transmission web GUI will run on http://<IP_ADDRESS>:9091/transmission


== Saving your changes to disk ==
== Saving your changes to disk ==


Now is a good time to write you changes to disk:
Now is a good time to write your changes to disk:


{{Cmd|lbu_commit device}}
{{Cmd|# lbu_commit device}}


[[Category:Server]]
[[Category:Server]]

Latest revision as of 20:31, 26 May 2023

Introduction

This document will show you how you can setup Transmission BitTorrent client on Alpine Linux and control it with a nice HTTP web-interface. It is assumed that you know the basics of Alpine Linux (package management and internals) and you have enough storage available for your downloaded media (i.e. USB hard drive) and, of course, a working internet connection.

Setting up Transmission

Lets install it:

# apk add transmission-daemon

This should install latest available version of Transmission (available on Alpine). After the installation is complete you should have default configuration file for init in /etc/conf.d/transmission-daemon.

By default, Transmission will run as the user transmission. If you need to make changes, do so, and save them. You can restart transmission-daemon and see if all is working as desired:

# rc-service transmission-daemon restart

To configure the transmission settings (including the download location), edit the configuration file here: /var/lib/transmission/config/settings.json

If everything is working, you should see transmission-daemon running with the following command:

$ ps

If you change the download location in the settings, remember to transfer ownership to the transmission user and group.

# chown -R transmission:transmission <DOWNLOAD_FOLDER>

It may also be convenient for the root user to be able to access the files when administering the server. An easy way to do this is to add the root user to the transmission group:

# addgroup root transmission

Let's add transmission to our system start:

# rc-update add transmission-daemon

The transmission web GUI will run on http://<IP_ADDRESS>:9091/transmission

Saving your changes to disk

Now is a good time to write your changes to disk:

# lbu_commit device