Koozali.org: home of the SME Server

BitTorrent client

Offline Teviot

  • *
  • 610
  • +0/-0
BitTorrent client
« on: August 21, 2006, 05:03:44 AM »
I want to setup a BitTorrent client on my sme7 server.  Can anyone help me with this?  I will need detailed instructions

Regards
Adrian
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline gippsweb

  • ****
  • 232
  • +0/-0
    • Wots I.T.?
BitTorrent client
« Reply #1 on: August 21, 2006, 10:29:36 AM »
We run uTorrent on a windows pc behind our SME box. I'd thought about putting it directly on the SME machine but since the other windows box is on all the time it was an easy way out.

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
BitTorrent client
« Reply #2 on: August 21, 2006, 04:49:28 PM »
have a look at http://www.torrentflux.com

I use it on my SME 7.0 and it's working great. I havn't written a howto but it's very simple to install, just create an ibay (for exemple torrent), owner admin, read and write to group, access local only without password, enble dynamic content.

download the archive and extract it in the html folder of the ibay

with your web browser go to http://yourserver/torrent and follow the steps.

You'll need to give some extra permissions on some directory, I don't remember all of them.

Hope it can help.
C'est la fin du monde !!! :lol:

Offline Teviot

  • *
  • 610
  • +0/-0
BitTorrent client
« Reply #3 on: August 22, 2006, 02:55:11 AM »
Quote
with your web browser go to http://yourserver/torrent and follow the steps


Did all that it said, but cant work out the following.

Quote
Database error: Access denied for user 'root'@'localhost' (using password: YES)


Any suggestions on how to change the password or discover what the password is?

Also some guidance for the rest of the install please, should I find a problem

Regards
Adrian
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
BitTorrent client
« Reply #4 on: August 22, 2006, 11:33:58 AM »
Quote from: "teviot"
Quote
with your web browser go to http://yourserver/torrent and follow the steps


Did all that it said, but cant work out the following.

Quote
Database error: Access denied for user 'root'@'localhost' (using password: YES)


Any suggestions on how to change the password or discover what the password is?

Also some guidance for the rest of the install please, should I find a problem

Regards
Adrian
Never use the root account for a service running on your system, this account is only intended for administration. Create a seperate suer instead wtih it's own privileges on the needed databases/tables

From a terminal open mysql as root user without a password:
Code: [Select]
mysql -u root

Guess which database is used for torrentflux:
Code: [Select]
show databases; and use this in the following commands, think of a username with a password and issue the following commands replacing the neccesarry entries with your desired values (don;t forget the quotes!):

Code: [Select]
grant all privileges on database.* to 'username'@'localhost' identified by 'password';
flush privileges;
quit

Now configure torrentflux to use the user and password that you just created.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Teviot

  • *
  • 610
  • +0/-0
BitTorrent client
« Reply #5 on: August 24, 2006, 02:37:05 AM »
Thanks cactus

But I'm stll having trouble.  Not knowing MySQL doen't help.

 
Quote
mysql> show databases;
+-------------+
| Database    |
+-------------+
| Mambo       |
| horde       |
| jinzora2    |
| mysql       |
| test        |
| torrentflux |
+-------------+
6 rows in set (0.00 sec)

mysql> grant all privileges on database.torrentflux to 'torrentflux'@'localhost' identified by '(MyPassword)';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> quit


and I am still getting the following

 
Quote
Database error: Access denied for user 'torrentflux'@'localhost' to database 'torrentflux'


Can we converse via email?  I know if we converse here everybody learns but I'm concearned about security of my system and I want to get this to work.

Regards
Teviot
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
BitTorrent client
« Reply #6 on: August 24, 2006, 10:06:41 AM »
Quote
mysql> grant all privileges on database.torrentflux to 'torrentflux'@'localhost' identified by '(MyPassword)';


It should be
Code: [Select]
mysql> grant all privileges on torrentflux.* to 'torrentflux'@'localhost' identified by 'password';

Then, configure torrentflux to access the datatbase with the user torrentflux and the password 'password'

Maybe installing the phpmyadmin contrib could help you:

http://vanhees.homeip.net//download/sme70/phpmyadmin-multiuser/smeserver-phpmyadmin-multiuser-2.0-3.noarch.rpm

It's a php frontend to mysql and allow you to create new databases and change permissions on them. It's very friendly and easy to use
C'est la fin du monde !!! :lol:

Offline Teviot

  • *
  • 610
  • +0/-0
BitTorrent client
« Reply #7 on: August 25, 2006, 06:18:29 AM »
VIP-ire

Thank you so much... I have it working now... I think.

Do I need to open some ports in the firewall or will it work from the existing firewall settings?

Teviot
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

egerards

BitTorrent client
« Reply #8 on: August 25, 2006, 09:32:07 AM »
I also installed it (cool program!) and I opened one port to enable uploads as well (seems prety fair to me). On the Torrentflux settings page I limited the port range to one port.

Port opening:

Code: [Select]
config set torrent service access public status enabled TCPPort 49160
signal-event remoteaccess-update

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
BitTorrent client
« Reply #9 on: August 25, 2006, 09:49:21 AM »
You can enable some more ports if you want several downloads at the same time. For exemple, I enabled 5 ports:

config set torrent1 service access public status enabled TCPPort 49500
config set torrent2 service access public status enabled TCPPort 49501
config set torrent3 service access public status enabled TCPPort 49502
config set torrent4 service access public status enabled TCPPort 49503
config set torrent5 service access public status enabled TCPPort 49504

signal-event remote-access-update
C'est la fin du monde !!! :lol:

addodge

BitTorrent client
« Reply #10 on: August 25, 2006, 10:57:20 PM »
Database error: Table 'torrentflux.tf_settings' doesn't exist

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


This is the error i get when i try to access http://sme/torrent

I created a database called torrentflux and i edited my config.php file with the correct username/password.  Any ideas?
Thanks
Andy


Edit:  I figured out that I forgot to import the sql stuff into the database.  Once i did that it works fine.  Sorry for wasted bandwidth.
Andy

treydock

BitTorrent client
« Reply #11 on: September 03, 2006, 02:14:57 AM »
lots of wild guesses have lead me to getting at least torrentflux to somewhat show up on my browser somewhat.  But all it says is

Database error: Lost connection to MySQL server during query

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


Of course I checked the config.php file

$cfg["db_type"] = "mysql";      
$cfg["db_host"] = "192.168.1.200";  
 $cfg["db_name"] = "torrentflux";
$cfg["db_user"] = "root";        
$cfg["db_pass"] = "***********";

the rest I left alone like file said to...

What am I doing wrong ? :(

#mysqladmin create torrentflux

#mysql torrentflux < mysql_torrentflux.sql

also done successfully....

Please help :(

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
BitTorrent client
« Reply #12 on: September 05, 2006, 10:10:11 AM »
As Cactus wrote some post ago, you should never use root mysql account for a service.
Just put in your configuration file:

$cfg["db_user"] = "torrentflux";
$cfg["db_pass"] = "password";

and then

Code: [Select]
mysql -u root
grant all privileges on torrentflux.* to 'torrentflux'@'localhost' identified by 'password';
C'est la fin du monde !!! :lol:

Offline kingjm

  • **
  • 55
  • +0/-0
    • www.iking.ca
how do I close these ports now that I have opened them
« Reply #13 on: October 16, 2006, 06:21:43 AM »
I have used thid to open these ports:

config set torrent1 service access public status enabled TCPPort 49500

but I don't like torrentflux so
1)did this open the port only to torrentflux?
2)how do I close them?

egerards

BitTorrent client
« Reply #14 on: October 16, 2006, 08:24:25 AM »
1. If you open a port, you simply tell the firewall (iptables) to accept traffic on the specified port, regardless whether there is something listening or not.
2. Close the port with the following commands:
Code: [Select]
config delete torrent1
signal-event remote-access-update

Malakai

BitTorrent client
« Reply #15 on: October 22, 2006, 08:34:07 AM »
Can somebody write step by step instructions please? I'm lost...

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
BitTorrent client
« Reply #16 on: October 22, 2006, 03:09:13 PM »
Quote from: "treydock"
$cfg["db_user"] = "root";        
$cfg["db_pass"] = "***********";



Where did you get a password for the MySQL user 'root'?
Regards,
William

IF I give advise.. It's only if it was me....

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
BitTorrent client
« Reply #17 on: October 22, 2006, 05:33:25 PM »
mysql root password can be found in /root/.my.cnf but it shouldn't be used because root account shouldn't be used.

I'll try to explain all the necessary steps to install torrentflux (and it's the same for many other applications like SPIP or JOOMLA):

1) First, download the archive:
Code: [Select]
wget http://kent.dl.sourceforge.net/sourceforge/torrentflux/torrentflux_2.1.tar.gz

2) Create an ibay, for exemple an ibay called torrent:
- owner: admin
- write: group, read: group
- Web access, local only or internet, as you want, without password (torrentlux has it own authentication system)
- enable dynamic pages

3) Remove the index.html from the html directory of the ibay
Code: [Select]
rm -f /home/e-smith/files/ibays/torrent/html/index.html

4) Extract the archive in the html directory of the ibay
Code: [Select]
tar xvzf torrentflux_2.1.tar.gz
mv torrentflux_2.1/* /home/e-smith/files/ibays/torrent/html/


5) make www the owner of all this files
Code: [Select]
chown -R www:www /home/e-smith/files/ibays/torrent/html

6) create a database and grant all permissions on it to a user of your choice, for example we will create a database called torrentflux_db, and we will grant permissions on it to user torrentflux with password torrent_pass
Code: [Select]
mysql
create database torrentflux_db;
grant all privileges on torrentflux_db.* to 'torrentflux'@'localhost' identified by 'torrent_pass';
flush privileges;
exit


7) Open your web browser and go to the ibay you have created, for example http://yourserver/torrent.
You should arrived on a the installation page of the software, you just have to follow the instructions. When it asks for the mysql database parameters, enter the name of the database you have created the step before, server localhost and the user/password you have used
From my memory, you will also have to choose a directory to store the downloded file and give it 777 permissions, you can choose the directory you want. For example, I've created a directory download in the files directory of the ibay:
Code: [Select]
mkdir /home/e-smith/files/ibays/torrent/files/download
chown www:www /home/e-smith/files/ibays/torrent/files/download
chmod 777 /home/e-smith/files/ibays/torrent/files/download


That's all. I hope this were usefull, ask if you want more details

Cheers, daniel
C'est la fin du monde !!! :lol:

Malakai

BitTorrent client
« Reply #18 on: October 22, 2006, 11:04:08 PM »
Something is not right, I get:


Forbidden

You don't have permission to access /torrent on this server.


When trying to access the ibay... Any idea why?

debiandog

Well I did a bit better than Malakai but...
« Reply #19 on: October 23, 2006, 12:37:37 AM »
When I try and upload a file I get

Quote

The connection was reset
       
The connection to the server was reset while the page was loading.
     
    *   The site could be temporarily unavailable or too busy. Try again in a few  moments.
    *   If you are unable to load any pages, check your computer's network
          connection.
    *   If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.


I am sure I am missing something painfully obvious!

Quote
Forbidden

You don't have permission to access /torrent on this server.


Malakai, You have the wrong address it should be something like: http://192.168.1.1/torrent/html/ the numbers being your internal network (I believe)  :wink:

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
BitTorrent client
« Reply #20 on: October 23, 2006, 01:36:33 AM »
Quote from: "VIP-ire"
mysql root password can be found in /root/.my.cnf but it shouldn't be used because root account shouldn't be used.

The question was for treydock.

Quote from: "VIP-ire"

I'll try to explain all the necessary steps to install torrentflux (and it's the same for many other applications like SPIP or JOOMLA):

dungog.net provides the easiest installation of Joomla.
http://dungog.net/sme/webapp.php#joomla
Regards,
William

IF I give advise.. It's only if it was me....

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
BitTorrent client
« Reply #21 on: October 23, 2006, 09:37:52 AM »
Quote from: "Malakai"


Forbidden

You don't have permission to access /torrent on this server.


Can you please post the result of these commands, just after trying to access the page /torrent:

tail /var/log/messages
tail /var/log/httpd/error_log

Quote from: "debiandog"

Malakai, You have the wrong address it should be something like: http://192.168.1.1/torrent/html/ the numbers being your internal network (I believe)


No, if you create an ibay called torrent, then the alias /torrent point to the html directory of the ibay
C'est la fin du monde !!! :lol:

Malakai

BitTorrent client
« Reply #22 on: October 23, 2006, 11:40:02 AM »
[root@qubit ~]# tail /var/log/messages
Oct 23 18:09:09 qubit dhcpd: DHCPNAK on 192.168.2.102 to 00:16:cb:07:13:66 via eth0
Oct 23 18:09:10 qubit dhcpd: DHCPDISCOVER from 00:16:cb:07:13:66 (Azalia) via eth0
Oct 23 18:09:11 qubit dhcpd: DHCPOFFER on 192.168.100.11 to 00:16:cb:07:13:66 (Azalia) via eth0
Oct 23 18:09:12 qubit dhcpd: Wrote 12 leases to leases file.
Oct 23 18:09:12 qubit dhcpd: DHCPREQUEST for 192.168.100.11 (192.168.100.1) from 00:16:cb:07:13:66 (Azalia) via eth0
Oct 23 18:09:12 qubit dhcpd: DHCPACK on 192.168.100.11 to 00:16:cb:07:13:66 (Azalia) via eth0
Oct 23 18:10:11 qubit dhcpd: DHCPDISCOVER from 00:16:cb:07:13:66 (Azalia) via eth0
Oct 23 18:10:11 qubit dhcpd: DHCPOFFER on 192.168.100.11 to 00:16:cb:07:13:66 (Azalia) via eth0
Oct 23 18:10:12 qubit dhcpd: DHCPREQUEST for 192.168.100.11 (192.168.100.1) from 00:16:cb:07:13:66 (Azalia) via eth0
Oct 23 18:10:12 qubit dhcpd: DHCPACK on 192.168.100.11 to 00:16:cb:07:13:66 (Azalia) via eth0


[root@qubit ~]# tail /var/log/httpd/error_log
[Mon Oct 23 16:08:36 2006] [error] [client 192.168.100.100] client denied by server configuration: /home/e-smith/files/ibays/torrent/html/html
[Mon Oct 23 16:10:36 2006] [error] [client 192.168.100.100] client denied by server configuration: /home/e-smith/files/ibays/torrent/html/html/
[Mon Oct 23 16:10:41 2006] [error] [client 192.168.100.100] client denied by server configuration: /home/e-smith/files/ibays/torrent/html/htm
[Mon Oct 23 16:10:47 2006] [error] [client 192.168.100.100] client denied by server configuration: /home/e-smith/files/ibays/torrent/html
[Mon Oct 23 18:12:03 2006] [error] [client 192.168.100.11] client denied by server configuration: /home/e-smith/files/ibays/torrent/html/html
[Mon Oct 23 18:12:03 2006] [error] [client 192.168.100.11] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Mon Oct 23 18:12:09 2006] [error] [client 192.168.100.11] client denied by server configuration: /home/e-smith/files/ibays/torrent/html
[Mon Oct 23 18:12:09 2006] [error] [client 192.168.100.11] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Mon Oct 23 19:34:55 2006] [error] [client 192.168.100.1] client denied by server configuration: /home/e-smith/files/ibays/torrent/html
[Mon Oct 23 19:34:55 2006] [error] [client 192.168.100.1] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico

Malakai

BitTorrent client
« Reply #23 on: October 23, 2006, 11:49:07 AM »
Also I accidentally ran this command while following the instructions above:

chmod 777 /home/e-smith/files/ibays

Is that bad?

The error stood before I did that though...

Offline raem

  • *
  • 3,972
  • +4/-0
BitTorrent client
« Reply #24 on: October 23, 2006, 12:06:38 PM »
Malakai

> chmod 777 /home/e-smith/files/ibays
> Is that bad?

It has enabled write access for group & other users.
Best to set it back to original which I believe is
chmod 755 /home/e-smith/files/ibays

When making changes it's good practice to check the before and after permissions using
ls -al
and that way if you make a mistake, you know what to revert it to.
...

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
BitTorrent client
« Reply #25 on: October 23, 2006, 12:33:45 PM »
giving 777 access to all your ibays can be dangerous, but that's independant of your problem of torrentflux.
It looks like there's a problem with your web server configuration.
Did the installation went ok and then, you cannot access the page? or did the page were refused before the installation?
Have you allow dynamic page for this ibay?

make sure the directory torrent/html contains the correct files/permissions, what does ls -l /home/e-smith/files/ibays/torrent/html returns?
C'est la fin du monde !!! :lol:

Malakai

BitTorrent client
« Reply #26 on: October 23, 2006, 12:42:04 PM »
Well all the steps went fine but I could not get anything when pointing to the ibay in my browser. Which is the installation you refer to I assume.

ls of the ibay

-rwxr--r--  1 www www  5475 Apr  6  2006 CHANGELOG
-rwxr--r--  1 www www 15237 Nov  5  2004 COPYING
drwxr-xr-x  9 www www  4096 Apr  6  2006 html
-rw-rw----  1 www www   263 Oct 23 06:57 index.html
-rwxr--r--  1 www www  9885 Apr  6  2006 INSTALL
-rwxr--r--  1 www www   822 Nov 14  2004 README
drwxr-xr-x  2 www www  4096 Mar 13  2006 sql
drwxr-xr-x  2 www www  4096 Feb 16  2006 upgrades

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
BitTorrent client
« Reply #27 on: October 23, 2006, 01:01:52 PM »
ok sorry, it's my fault. I wrote the how-to from my memory but torrentflux is just a bit different from most of LAMP applications

1) download the archive on your server, for example in /root:
Code: [Select]
cd /root
wget http://easynews.dl.sourceforge.net/sourceforge/torrentflux/torrentflux_2.1.tar.gz


2) while it's downloading, create the ibay
- owner: admin
- write: group, read: group
- Web access, local only or internet, as you want, without password (torrentlux has it own authentication system)
- enable dynamic pages

3) Remove the index.html from the html directory of the ibay
Code: [Select]

rm -f /home/e-smith/files/ibays/torrent/html/index.html


4) extract the archive
Code: [Select]
tar xvzf torrentflux_2.1.tar.gz

5) move the content of the html directory of the extracted archive to the html directory of your ibay:
Code: [Select]
mv ./torrentflux_2.1/html/* /home/e-smith/files/ibays/torrent/html/

6) make www the owner of all this files
Code: [Select]
chown -R www:www /home/e-smith/files/ibays/torrent/html

7) create a database and grant all permissions on it to a user of your choice, for example we will create a database called torrentflux_db, and we will grant permissions on it to user torrentflux with password torrent_pass
Code: [Select]

mysql
create database torrentflux_db;
grant all privileges on torrentflux_db.* to 'torrentflux'@'localhost' identified by 'torrent_pass';
flush privileges;
exit


8) edit the file /home/e-smith/files/ibays/torrent/html/config.php to fit your configuration:
Code: [Select]
$cfg["db_type"] = "mysql";       // mysql, postgres7 view adodb/drivers/

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

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

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

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


9) Populate the database with the sql script provided in the archive:
Code: [Select]
mysql torrentflux_db < ./torrentflux_2.1/sql/mysql_torrentflux.sql

10) Open your web browser, go to http://yourserver/torrent and follow the instructions.

Now this should be ok
C'est la fin du monde !!! :lol:

Malakai

BitTorrent client
« Reply #28 on: October 23, 2006, 01:03:18 PM »
Ok it appears that I didn't choose to allow local network access (without password) when creating the ibay. I have fixed that.

Now if I go to http://server/torrent/html

I get this"

TorrentFlux Database/SQL Error
Database error: Access denied for user 'root'@'localhost' (using password: NO)

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


So close yet so far...

Malakai

BitTorrent client
« Reply #29 on: October 23, 2006, 01:36:31 PM »
Ok I started again with your updated steps and it works now.

It asks for a username and password so I'm off to the Flux Torrent site now to read about how to use the software.

Thanks for all your help.

debiandog

BitTorrent client
« Reply #30 on: October 23, 2006, 04:20:47 PM »
Quote from: "VIP-ire"

Quote from: "DebianDog"


Forbidden

You don't have permission to access /torrent on this server.


Can you please post the result of these commands, just after trying to access the page /torrent:

tail /var/log/messages
tail /var/log/httpd/error_log


:oops:

No... this is after I tried to upload a "regular" file to it.  I can upload a torrent file and have it work as advertised but I was under the assumption that I could:
- "Upload" a file to it.  
-  Create a torrent there.
-  Then have the server act as a tracker for the videos I am trying to distribute.
- Then all my other pilot friends could get the torrent file from my server and "start a swarm" of downloads going.

Just FYI these are RC helicopter videos I produce (For example)

So I am off to read... and figure out the best way to create a torrent and a tracker to have my server host the tracker and actual file.  Could you give me a quick "How To" on that?  I know the tracker port is defaulted to 6969 so I would think I would have to open that port up on the SME box.  No?

Any pointers or help would be greatly appeciated. :D

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
BitTorrent client
« Reply #31 on: October 24, 2006, 10:12:36 AM »
Well, I don't think this is possible with torrentflux as it's a torrent client. I don't know how to setup a tracker. You can try to search for PhpTracker, I know it's a tracker written in php and it shouldn't be hard to install on SME.

daniel
C'est la fin du monde !!! :lol:

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
BitTorrent client
« Reply #32 on: October 24, 2006, 12:36:25 PM »
Quote from: "debiandog"


Any pointers or help would be greatly appeciated. :D


BT FAQ
PHPBTTacker+

Was looking into it but it looks tricky in a NAT'd situation.
Regards,
William

IF I give advise.. It's only if it was me....

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
BitTorrent client
« Reply #33 on: October 24, 2006, 05:46:28 PM »
Try This one possibly suites your needs

http://sourceforge.net/projects/phpmybittorrent
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.

debiandog

BitTorrent client
« Reply #34 on: October 24, 2006, 07:27:52 PM »
Quote from: "stiperstones"
Try This one possibly suites your needs

http://sourceforge.net/projects/phpmybittorrent


Thanks.  I just decided to go with an external tracker for now.  Without having to provide a tracker it is pretty straight forward.

What -I- did

- Created a torrent on my Mac with Azureus
- Used a free public tracker
- Opened/Uploaded the torrent (TorrentFlux has a FireFox plugin to do this too)
- Started the torrent to get a blank file
- Stopped the torrent
- Copied the file to the server
- Restated the torrent as a "Super Seeder"
- It check sums the file and considered it complete
-

Offline HomePlayer

  • **
  • 55
  • +0/-0
Server cant "Connecting to Peers"
« Reply #35 on: May 24, 2007, 02:53:17 PM »
Hey all,

some how i cant get the connection to work.
i used this http://wiki.contribs.org/Torrentflux great

a torrent torrent client behind the server works whit this port forward rule
"TCP     49501-49506     192.168.0.81     49501-49506     "
"UDP     49501-49506     192.168.0.81     49501-49506     "
Code: [Select]
[root@server ~]# iptables -L -n|grep 49501
ACCEPT     tcp  --  0.0.0.0/0            192.168.0.81        tcp dpts:49501:4950                                   6
ACCEPT     udp  --  0.0.0.0/0            192.168.0.81        udp dpts:49501:4950                                   6
ACCEPT     tcp  --  0.0.0.0/0            84.27.77.193        tcp dpt:49501


only the TorrentFlux on the server wont connect.
wat i tryed
Quote from: "william_syd"
Use Port Forwarding in Server-manager...

Protocol TCP
Source Ports 6881-6889
Destination Host ip Address (IP of xp machine)
Destination Ports <blank>


Maybe a range of ports.. 6881-6889 (TCP) will work better.

What port were you using ?

so whit a blank destiation port
Quote from: "VIP-ire"
You can enable some more ports if you want several downloads at the same time. For exemple, I enabled 5 ports:

config set torrent1 service access public status enabled TCPPort 49500
config set torrent2 service access public status enabled TCPPort 49501
config set torrent3 service access public status enabled TCPPort 49502
config set torrent4 service access public status enabled TCPPort 49503
config set torrent5 service access public status enabled TCPPort 49504

signal-event remote-access-update


this wont work to
signal-event remote-access-update most be
signal-event remoteaccess-update
but stil no connection to peers

torrentflux is set to use ports 44100-44105
Code: [Select]
Welcome to the µTorrent Port Checker.
A test will be performed on your computer to check if the specified port is opened.

Checking port 44100 on 84.27.77.193...

OK! Port 44100 is open and accepting connections.

You will be able to receive incoming BitTorrent connections.

Code: [Select]
[root@server ~]# iptables -L -n|grep 44100
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:44100
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:44100

so what can i do,

Frits

Callumgw

BitTorrent client
« Reply #36 on: May 31, 2007, 01:41:02 PM »
HI,
apologies up front for being a Linux ans SQL newbie  :oops:

I get up to step 7 and then hit issues.  I'm running 7.1.3 I get to the OS Shell through the server manager on the sme server (not through telnet or similar).  I type 'mysql' at the prompt and get access denied for user 'root'@'local host' (using password: No)

so I switch to the toorent/html directory and typed mysql again and got the same message.

I have a basic sme install "server only"

what simple thing am I stuffing up?

C

Offline HomePlayer

  • **
  • 55
  • +0/-0
BitTorrent client
« Reply #37 on: May 31, 2007, 05:01:39 PM »
Quote from: "Callumgw"
HI,

I get up to step 7 and then hit issues.


step 7 of this howto http://wiki.contribs.org/Torrentflux?

Callumgw

BitTorrent client
« Reply #38 on: May 31, 2007, 11:06:44 PM »
ohh, no I hadn't found that one, I was working to step seven of the post by vamp-ire above (quoted below).  I'll have a go at yours, cheers.

Quote

1) download the archive on your server, for example in /root:
Code:
cd /root
wget http://easynews.dl.sourceforge.net/sourceforge/torrentflux/torrentflux_2.1.tar.gz
 


2) while it's downloading, create the ibay
- owner: admin
- write: group, read: group
- Web access, local only or internet, as you want, without password (torrentlux has it own authentication system)
- enable dynamic pages

3) Remove the index.html from the html directory of the ibay
Code:

rm -f /home/e-smith/files/ibays/torrent/html/index.html


4) extract the archive
Code:
tar xvzf torrentflux_2.1.tar.gz


5) move the content of the html directory of the extracted archive to the html directory of your ibay:
Code:
mv ./torrentflux_2.1/html/* /home/e-smith/files/ibays/torrent/html/


6) make www the owner of all this files
Code:
chown -R www:www /home/e-smith/files/ibays/torrent/html


7) create a database and grant all permissions on it to a user of your choice, for example we will create a database called torrentflux_db, and we will grant permissions on it to user torrentflux with password torrent_pass
Code:

mysql
create database torrentflux_db;
grant all privileges on torrentflux_db.* to 'torrentflux'@'localhost' identified by 'torrent_pass';
flush privileges;
exit
 


 edit the file /home/e-smith/files/ibays/torrent/html/config.php to fit your configuration:
Code:
$cfg["db_type"] = "mysql";       // mysql, postgres7 view adodb/drivers/

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

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

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

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


9) Populate the database with the sql script provided in the archive:
Code:
mysql torrentflux_db < ./torrentflux_2.1/sql/mysql_torrentflux.sql


10) Open your web browser, go to http://yourserver/torrent and follow the instructions.


Offline HomePlayer

  • **
  • 55
  • +0/-0
BitTorrent client
« Reply #39 on: June 01, 2007, 05:48:16 AM »
Code: [Select]
[root@server ~]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 14 to server version: 4.1.20

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create database torrentflux_db;
Query OK, 1 row affected (0.00 sec)

mysql> grant all privileges on torrentflux_db.* to 'torrentflux'@'localhost' identified by 'torrent_pass';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit


just copy past all off this at ones
Code: [Select]
mysql
create database torrentflux_db;
grant all privileges on torrentflux_db.* to 'torrentflux'@'localhost' identified by 'torrent_pass';
flush privileges;
exit

it just works

Callumgw

BitTorrent client
« Reply #40 on: June 01, 2007, 05:52:42 AM »
if I type mysql and then press <enter>, I get the "root'@'local' error, so are you saying to write:

mysql create database torrentflux_db; grant all privileges on torrentflux_db.* to 'torrentflux'@'localhost' identified by 'torrent_pass';
flush privileges; exit

as a single line from my "admin" log in?

C

Offline HomePlayer

  • **
  • 55
  • +0/-0
BitTorrent client
« Reply #41 on: June 01, 2007, 06:52:07 PM »
i use http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe putty
(to login from my desk top to the server)
https://(your server ip/name)/server-manager/
remote access has to be enabled --> Secure Shell Settings
login als root and your root password.

then it should all work

Callumgw

BitTorrent client
« Reply #42 on: June 03, 2007, 11:13:44 PM »
Cheers, I got it working by following the how to you mentioned: http://wiki.contribs.org/Torrentflux.  I reckon I needed to do the bit from step 9 onwards:
Quote
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)


before the step 7 stage of the "How to" provided in this post.

Thanks also for the secure shell program tip, definately going to give that one a go!

On another front, I'm a uTorrent user and after playing with TorrentFlux all weekend I think I'mm going to stay with uTorrent. There are features like the scheduler which just seem to make it better and from my searching of the TorrentFlux site there seems to be less help and no desire to included things like the scheduler. Similalry I could get extra search engine to add to the list, but details on how to implement them seem missing. All in all I think TorrentFlux needs a bit more developement.

C