Koozali.org: home of the SME Server

BitTorrent client

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