LinHES Forums
http://forums.linhes.org/

HOWTO: Torrentflux on R6
http://forums.linhes.org/viewtopic.php?f=11&t=19667
Page 1 of 1

Author:  mihanson [ Mon Mar 09, 2009 8:35 pm ]
Post subject:  HOWTO: Torrentflux on R6

1. Install
Code:
$ sudo pacman -Sy torrentflux


2. You need to create a mysql database for torrentflux
Code:
$ mysqladmin -u root create torrentflux


3. Load the script that creates tables and such
Code:
$ mysql -u root torrentflux < /opt/torrentflux/sql/mysql_torrentflux.sql


4. Edit /opt/torrentflux/config.php
Code:
$ sudo nano /opt/torrentflux/config.php

Find this section and make it look like this:

Code:
/**************************************************************************/
// YOUR DATABASE CONNECTION INFORMATION
/**************************************************************************/
// Check the adodb/drivers/ directory for support for your database
// you may choose from many (mysql is the default)
$cfg["db_type"] = "mysql";       // mysql, postgres7, postgres8 view adodb/driv$
$cfg["db_host"] = "localhost";   // DB host computer name or IP
$cfg["db_name"] = "torrentflux"; // Name of the Database
$cfg["db_user"] = "mythtv";        // username for your MySQL database
$cfg["db_pass"] = "mythtv";            // password for database
/**************************************************************************/


5. Make needed directories and adjust permissions
Code:
$ sudo mkdir /data/srv/httpd/htdocs/tf && sudo cp -a /opt/torrentflux/* /data/srv/httpd/htdocs/tf && sudo chown -R http /data/srv/httpd/htdocs/tf && sudo mkdir -p /myth/torrents


6. Edit /etc/php/php.ini
Code:
$ sudo nano /etc/php/php.ini

At ~line 216 be sure safe_mode = Off. Then add the following to open_basedir= variable (~line 252)
Code:
:/myth/torrents/:/bin/:/usr/bin/:/proc/


7. Enter http://localhost/tf in your browser (Note: If you're accessing from somewhere other than the box you installed torrentflux on, enter the IP address of your box instead of 'localhost')

You're presented with a login page. Enter a username and password and this will create the administrator account for torrentflux. For ease, I used mythtv/mythtv.

After login, you're kicked to the settings page. Adjust the PATH to /myth/torrents/ and fixup your PORT RANGE to be sure people can reach you. All the PATHS should have a green circle next to them. If not, check the path and make sure it's readable by user http. Step through the remainder of the menus and adjust things as needed/desired. You shoud now have a functioning bittorrent setup.

Author:  Tag_Scott [ Wed Mar 11, 2009 7:20 pm ]
Post subject: 

When I try to pull it up in the browser (Step 7) I get this error.

Code:
Notice: Undefined index: debug_sql in /data/srv/httpd/htdocs/tf/db.php on line 68
Database error: Access denied for user 'mythtv'@'localhost' to database 'torrentflux'

Always check your database variables in the config.php file.

Author:  mihanson [ Wed Mar 11, 2009 7:48 pm ]
Post subject: 

Tag_Scott wrote:
Code:
Notice: Undefined index: debug_sql in /data/srv/httpd/htdocs/tf/db.php on line 68
Database error: Access denied for user 'mythtv'@'localhost' to database 'torrentflux'

Always check your database variables in the config.php file.


Try changing the database host in config.php to the IP address of the machine hosting the db. If that fails, thy this:

Code:
$ mysql -u root mythconverg
mysql> grant all on torrentflux.* to mythtv@"%" identified by "mythtv";
mysql> flush privileges;


This is a very insecure way to allow access to your db. Basicly, anyone who can login as mythtv from anywhere can change anything. See this section (Modifying access to the MySQL database for multiple systems) of the mythtv docs for more info.

Author:  mediathreat [ Sun Jun 07, 2009 1:57 pm ]
Post subject: 

Thanks for these notes!

I think in practice that Azuerus is very annoying - but the compiled torrent clients work a magnitude faster than script based ones, which is no surprise, but you save a lot of time.

Isn't the development on torrentflux super slow? (it's certainly easy to mod if you know php)

Author:  kmkittre [ Sun Oct 25, 2009 10:06 pm ]
Post subject: 

I have torrentflux up and running, and everything appears to be working. However, I can't download files... I download a torrent file, set it to run, and the torrent is stuck at 0%. The "light" next to the file is Red.

Are there any logs to check? Any suggestions on why this isn't working?

Thanks!

Author:  mihanson [ Mon Oct 26, 2009 11:57 am ]
Post subject: 

kmkittre wrote:
I download a torrent file, set it to run, and the torrent is stuck at 0%. The "light" next to the file is Red.

Are there any logs to check? Any suggestions on why this isn't working?

Could be that there are no seeds for you to connect to. Could be that you have not opened any ports on your firewall/router to use with bit torrent... As far as logs go, try the "admin" link on the top right.

Author:  kmkittre [ Mon Oct 26, 2009 12:44 pm ]
Post subject: 

I found my error. My path had a space in it. I thought this wasn't an issue because TF was creating a folder in the path but apparently it was a problem because when I changed the path it started working...

Author:  mattbatt [ Tue Sep 28, 2010 11:31 pm ]
Post subject: 

So I tried this and have had little success. I'm getting the
Code:
Access denied for user 'mythtv'@'localhost' to database 'torrentflux'

I've tried running everything I can think of. I know this post is a year old, has anything changed since then? I am running a backend frontend system and the backend is a Master backend is that a complication?
I've peeked at the mysql settings in Webmin but I couldn't see anything out of the ordinary.

Help
I'm one more sleepless night away from Vuze.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/