Install TorrentFlux-b4rt

From OpenFSG
Jump to: navigation, search
Mp borderleft.png
Mp info.jpg Download TorrentFlux-b4rt-94
Download: Torrentflux-fsg-1-.tar.gz
Web: www.torrentflux.com

Contents

This describes how to setup a web-based Bit-Torrent Client.

The web application allows you to search and download torrents to your FSG and from there down to your local PC. It supports multi users and different download engines. You may also download files from other users to your local PC.

Environment

This documentation was created for this environment:

System Requirements

Download Resources

Version b4rt-94

Version 2.3

Preparations of the FSG-3

Assumptions

This instructions assume that TorrentFlux is deployed into a separate virtual webserver instance of your FSG-3. Therefore the FSG-3 Admin web interface is used to create a directory as well as an additional virtual websever.

Create a directory on your FSG-3

Requirements
Actions

The directory is located on your FSG-3 in the /home directory. So the full path is /home/FSG_TorrentFlux.

Troubleshooting

Create a virtual Webserver on your FSG-3

Requirements
Actions

This documentation uses these values for configuration:

   Name: TorrentFlux
   DNS name: torrentflux.yourfsg.de
   Port: 8081
   Folder Name: FSG_TorrentFlux
   Enable PHP 4: Checked

Of course you may choose to select any other values for your local installation. Please refer to the User Manual of your FSG, section Webserver for detail descriptions of those parameters and values.

A new virtual webserver instance is created and your webserver is being rebooted. Just wait some time until the webserver is available again. It may be necessary to log into the web-based admin tool of you FSG-3 again.

Troubleshooting

Enable SQL Server

Requirements
Actions
Troubleshooting

Install Python

See Install Python. Hint: Because torrentflux assumes "python" in /usr/bin, and the actual installation sets the executable as python2.5 in /opt/bin, create a sym-link from /opt/bin/python2.5 to /usr/bin/python.

Install AWK

See Install GAWK.

Install Unzip

See Install Unzip.

Install Net-Tools

See Install Net-Tools.

Install Unrar

See Install Unrar.

Untar downloaded files

Requirements
Actions

The parameters are x -zf <file name> with <file name> being Torrentflux-fsg-1-.tar.gz

Example

The full command and the results should look like this:

# tar x -zf Torrentflux-fsg-1-.tar.gz
# ls
Torrentflux-fsg-1-.tar.gz  trunk
# cd trunk
# ls
CHANGES    COPYING    INSTALL    addons     clients    html       setup.php  sql
Troubleshooting

Copy files

Requirements
Actions

Use the command cd to change into the unpacked directory. Use the command cp -r to copy all files recursively into the target directory. The target directory in this example is /home/FSG_TorrentFlux which is used to store the html and other files. You have created that directory here.

Example

The results should look like this:

# cd trunk/html
# cp -r * /home/FSG_TorrentFlux
Troubleshooting

Create a database and load it

The tool for all steps in this section is phpMyAdmin, which is already installed on your FSG-3.

Requirements
Actions
Troubleshooting

Create Database

Actions

The database is created and you will see an overview of that database. The next step is to create tables in this new database.

Troubleshooting

Create Database Tables

Actions

The script is loaded from your local PC and the tables are created according to the statements of the script. Next step is to create a user, who will have access to these tables.

Troubleshooting

Create Database User

Actions

This documentation uses these values for configuration:

   User Name: torrentflux
   Host: local
   Password: Secer3T
   Re-type: Secer3T

Of course you may choose to enter any other values for your local installation. Anyway using those values for "user name" and "host" is strongly recommended! It is also recommended that you do NOT use the same password as shown in this example, but use a secure password.

The user is created. In the next step he will receive access permissions to the newly generated tables.

Troubleshooting

Configure Database User

Actions
   SELECT
   INSERT
   UPDATE
   DELETE

Now the user has all required access privileges for the new tables in the new database.

Troubleshooting

Edit "config.db.php" for database settings

The file config.db.php.dist is located in the inc/config directory of your webserver instance. In this example it is /home/FSG_TorrentFlux/inc/config/config.db.php.dist. See above where you have defined that directory.

Requirements
Actions
# cd /home/FSG_TorrentFlux/inc/config
# cp config.db.php.dist config.db.php
# cd /home/FSG_TorrentFlux/inc/config
# vi config.db.php

This documentation uses the mysql database, so it is recommended that your settings also look exactly like this:

$cfg["db_type"] = "mysql";       // mysql, postgres7 view adodb/drivers/

This documentation uses the database on your local machine, so it is recommended that your settings also look exactly like this:

$cfg["db_host"] = "localhost";   // DB host computer name or IP

This documentation uses the database user name torrentflux as defined here. So it is recommended that your settings also look exactly like this:

$cfg["db_name"] = "torrentflux"; // Name of the Database

This documentation uses the database name torrentflux as defined here. So it is recommended that your settings also look exactly like this:

$cfg["db_user"] = "torrentflux";        // username for your MySQL database

This documentation uses the database user password Secer3T as defined here. Anyway it is recommended that you do not use the password from the example below, but your own secure password. This is just an example:

$cfg["db_pass"] = "Secer3T";            // password for database
Troubleshooting

Start TorrentFlux and Enter Admin User

Requirements
Actions

This documentation uses this example:

http://yourfsg.de:8081

The login screen is displayed.

This documentation uses this example:

Username: root
Password: Adm1n1strat0r

Of course you may choose to enter any other values for your local installation. It is recommended that you do NOT use the same password as shown in this example, but use a secure password.

Torrentflux creates a new user with TorrentFlux superuser permissions. With that user you may create additional users and maintain them. But first you should configure TorrentFlux.

Troubleshooting

Configure TorrentFlux

to be done...

Credits

This documentation was inspired by the original documentation which was provided by Kapoira. Thanks a lot for the great documentation and the conversion of TorrentFlux-b4rt to the FSG-3. Although I could use your installation instructions very well I wanted to write some very detailed instructions so that a lot more people may set up TorrentFlux on their FSG-3.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox