Client bittorrent transmission
#Client bittorrent transmission install#
The last step is to install our web-interface. Rc_add -k transmission-daemon Setting up Clutch WebUI If everything is OK you should see transmission-daemon running with the following command:
If you are sure that all permissions are setup correctly you can start transmission-daemon and see if all is working ok: If you need another DATA_DIR change it and save it. The contents of my conf.d file is like this: Make sure the torrents directory and everything below it is owned by lighttpd:lighttpd or else transmission cannot save any media. This is my DATA dir where transmission holds its runtime data. This will be the directory where my media will be saved to. Personally I have mounted my USB disk to /media/usb and created a subdirectory torrents. We also need to change the DATA directory because we do not want to loose transmissions runtime info after a reboot (if it does it will need to recheck the hash of each running torrent). Because transmission-daemon will be controlled via Clutch which is run by lighttpd we need to change the user/group transmission-daemon runs at. We need to make some changes to this file. After the installation is complete you should have default configuration file for init in: This should install Transmission 1.20 which is included in Alpine 1.7.18. Rc_add -k lighttpd Setting up TransmissionĪs of Alpine 1.7.18 it includes Transmission BitTorrent client. If all is ok we can add lighttpd to the system start: This should display a page which tells you everything regarding your PHP installation. Now change the address in your browser to: We do this like this:Įcho "" > /var/www/localhost/htdocs/test.php A good way of knowing if PHP is functioning properly is by creating a test page which includes the phpinfo() function. This should give a 404 document not found error. Lets start lighttpd and see if it works (make sure no other service is running on port 80).įire up your prefered browser and point it to: Our Lighttpd with PHP support should be complete. You can add it inside the include section: Now we need to make sure lighttpd can find this configuration file by adding an include in our nf. # see cgi.txt for more information on using mod_cgiĬgi.assign = (".php" => "/usr/bin/php-cgi") Lets add PHP CGI support by creating the following file: I choose normal CGI because I have a small embedded system and I prefer to use my memory for other things.
FastCGI keeps PHP running in the background waiting for lighttpd to talk to it This makes it fast and more responsive than normal CGI mode.
If you need a high performance HTTP server with PHP support, you should probably go for the second option but if you need PHP only for some administrative tasks like controlling Clutch, CGI mode should be enough. There are two ways of adding PHP support to lighttpd: When the installation is finished we need to add PHP support to lighttpd. PHP isn't a light package so please consider this before you install it. NOTE: When you install PHP you will see it has some dependencies. We need lighttpd because our web-interface (Clutch) depends on PHP and the default webserver in Alpine Linux (mini_httpd) does not support it. The first thing we need to setup is lighttpd. 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 Transmission BitTorrent client on Alpine Linux and control it with a nice HTTP web-interface.