Torrentflux

From SME Server
Jump to navigationJump to search

Torrentflux for SME Server

Maintainer

Dungog (Software)

Description

  • TorrentFlux is a PHP based Torrent client that runs on a web server.
  • Manage all of your Torrent downloads through a convenient web interface from anywhere.


Step-by-step HowTo for installation of Torrentflux on a fresh SMEserver 7.1.3.

Orginates from http://www.dungog.net/sme/webapp.php#torrent and some input from these forums.

It reflects the experiences I've had during install and are probably not always applicable.

It's intended for Linux-newbies like myself, experienced users are probably better off using the original.

Check latest releases at http://sme.dungog.net/packages/smeserver/7.0/i386/html/index_dungog.html

Installation

1. Log in (with username root) to the SMEserver console.

2. If you already enabled Dungog repo, skip down to 5, if your'e unsure, go to 4.

3. The following command will configure the Dungog repository on SME Server. The dungog repository will no longer be updated. All the contribs from this repository have been moved to the smecontribs repository.

DungogMember contribs are still at http://www.dungog.net After adding it to the database we have to update the changes to the configuration file:

signal-event yum-modify

4. Check correct input with

db yum_repositories show dungog

It should contain the lines in step 3. If you get nothing in return, go back to 3.

5. Install torrentflux and smeserver-torrentflux

yum --enablerepo=dungog install smeserver-torrentflux

I don't install this from smedev because it may contain an older version.

6. Do following commands for the changes to take effekt:

signal-event post-upgrade
signal-event reboot

7. Your SME server reboots

If you try to connekt to YOURSERVER/torrent in a web browser at this stage you get:
ADONewConnection: Unable to load database driver

8. Create database structure

/usr/bin/mysql torrentflux < /opt/torrentflux/sql/mysql_torrentflux.sql

9. Copy and rename the config file

cp /opt/torrentflux/html/config.php.dist /opt/torrentflux/html/config.php

If you try to connekt to YOURSERVER/torrent in a web browser at this stage you get:
TorrentFlux Database/SQL Error
Database error: Access denied for user 'torrentflux'@'localhost' (using password: NO)
Always check your database variables in the config.php file.

10. Find torrentflux mysql password (DbPassword=) with

config show torrentflux

Copy the string, it should be similar to this:
rCFsw0PXkH8fThAKgzvFkQjNp1K472RwzPlpalpAKmUkPZ7A/yGAiBeerU+FQ06Ikh69wTSJMDim

11. Open config.php with text editor Pico (^-sign means ctrl-button)

pico -w /opt/torrentflux/html/config.php

Add torrentflux mysql password to config.php, scroll down to: $cfg["db_pass"] = ""

Paste the password inbetween the empty ""-signs

Exit Pico and save file (ctrl+x - y - enter)

12. Open YOURSERVER/torrent in a web browser

Login with admin/admin, change admin password and review settings.

Take baby for a testdrive!

Additional information

Torrentflux website

Announcement: SME Server 7.x Contribs

If you connect to the SMEserver console by Putty ssh-client (or similar) you can copy and paste the commands (very convenient).

Please note that this was written in april 2007, if the software change then this howto may be outdated.

Please do edit if you find errors or have improvements, but make sure that it works!

Good luck /Per

Tested software versions


Overview of used software packages
Package Arch Version Repository Size
smeserver-torrentflux noarch 0.9-3 dungog 14 k
torrentflux noarch 2.3-1 dungog 1.3 M