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