Difference between revisions of "Torrentflux"

From SME Server
Jump to navigationJump to search
(Added Torrentflux install howto)
 
Line 33: Line 33:
 
It should contain the lines in step 3. If you get nothing in return, go back to 3.
 
It should contain the lines in step 3. If you get nothing in return, go back to 3.
  
6. Install torrentflux and smeserver-torrentflux
+
5. Install torrentflux and smeserver-torrentflux
  
 
  yum --enablerepo=dungog install smeserver-torrentflux
 
  yum --enablerepo=dungog install smeserver-torrentflux
Line 39: Line 39:
 
I don't install this from smedev because it may contain an older version.
 
I don't install this from smedev because it may contain an older version.
  
7. Do following commands for the changes to take effekt:
+
6. Do following commands for the changes to take effekt:
  
 
  signal-event post-upgrade
 
  signal-event post-upgrade
Line 45: Line 45:
 
  signal-event reboot
 
  signal-event reboot
  
8. Your SME server reboots
+
7. Your SME server reboots
  
 
If you try to connekt to YOURSERVER/torrent in a web browser at this stage you get:<br>
 
If you try to connekt to YOURSERVER/torrent in a web browser at this stage you get:<br>
 
<code>ADONewConnection: Unable to load database driver ''</code>
 
<code>ADONewConnection: Unable to load database driver ''</code>
  
9. Create database structure
+
8. Create database structure
  
 
  /usr/bin/mysql torrentflux < /opt/torrentflux/sql/mysql_torrentflux.sql
 
  /usr/bin/mysql torrentflux < /opt/torrentflux/sql/mysql_torrentflux.sql
  
10. Copy and rename the config file
+
9. Copy and rename the config file
  
 
  cp /opt/torrentflux/html/config.php.dist /opt/torrentflux/html/config.php
 
  cp /opt/torrentflux/html/config.php.dist /opt/torrentflux/html/config.php
Line 63: Line 63:
 
Always check your database variables in the config.php file.</code>
 
Always check your database variables in the config.php file.</code>
  
11. Find torrentflux mysql password (DbPassword=) with
+
10. Find torrentflux mysql password (DbPassword=) with
  
 
  config show torrentflux
 
  config show torrentflux
Line 70: Line 70:
 
<code>rCFsw0PXkH8fThAKgzvFkQjNp1K472RwzPlpalpAKmUkPZ7A/yGAiBeerU+FQ06Ikh69wTSJMDim</code>
 
<code>rCFsw0PXkH8fThAKgzvFkQjNp1K472RwzPlpalpAKmUkPZ7A/yGAiBeerU+FQ06Ikh69wTSJMDim</code>
  
12. Open config.php with text editor Pico (^-sign means ctrl-button)
+
11. Open config.php with text editor Pico (^-sign means ctrl-button)
  
 
  pico -w /opt/torrentflux/html/config.php
 
  pico -w /opt/torrentflux/html/config.php
Line 80: Line 80:
 
Exit Pico and save file (ctrl+x - y - enter)
 
Exit Pico and save file (ctrl+x - y - enter)
  
13. Open YOURSERVER/torrent in a web browser
+
12. Open YOURSERVER/torrent in a web browser
  
 
Login with admin/admin, change admin password and review settings.
 
Login with admin/admin, change admin password and review settings.

Revision as of 14:03, 13 April 2007

Scuttle 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

Package Arch Version Repository Size
smeserver-torrentflux noarch 0.9-3 dungog 14 k
torrentflux noarch 2.3-1dungog 1.3 M