Ubuntu LAMP Server With Torrentflux In VMware - Page 3

Want to support HowtoForge? Become a subscriber!
 
Submitted by Calvin (Contact Author) (Forums) on Wed, 2006-08-09 19:52. ::

Step 7: Installing Torrentflux

All right, we downloaded Torrentflux, now on to installing it. Set mysql root password:

mysqladmin -u root -p password <YourNewPassword>

when asked for a password: just press <Enter>
it's the current mysql root password which isn't assigned yet.

Unpack Torrentflux:

tar zxvf torrentflux_2.1.tar.gz
cd torrentflux_2.1
mysqladmin -u root -p create torrentflux
<YourNewPassword>
cd sql
mysql -u root -p torrentflux < mysql_torrentflux.sql
<YourNewPassword>
cd ../html


Set up the config.php:

vi config.php

Now edit the settings as below:

Consult a vi manual to find out how vi works.
After saving your updated config.php file copy the files to your web server root directory:

sudo mkdir /var/www/tf
sudo cp -rf * /var/www/tf

Create a folder to save the downloaded torrents

cd /home
sudo mkdir shared
sudo chmod 777 shared
cd shared
mkdir torrent
chmod 777 torrent

Step 8: Test!

If everything went OK it's time to try if it's working and to set up the last bits in Torrentflux. To find out what the ip address is of your new server:

ip address

Look for the eth0 network card:
in my case the ip address is: 172.16.50.83

On your host: open your webbrowser and go to:

http://<ip_address>/tf

Tadaaaa! :)

Login with: root and mysql password: <YourNewPassword>

As a final step: change the path to: /home/shared/torrent and press 'Update settings'

Configuring Torrentflux further is beyond the scope of this how-to.

Congratulations, you now have a working webserver with Apache, MySql, PHP and Torrentflux.

Step 9 (Optional): Installing SSH

Torrentflux has a nice system to download your downloaded files from your server but I prefer some sort of secure ftp-connection.
I installed openssh for this, this is how:

sudo apt-get install openssh-server

No need to start it or anything. it's ready for use with e.g. WinSCP or PuTTY.

Step 10: Shutdown your Ubuntu server

sudo shutdown -h now

If you don't want to shutdown but simply log-off:

exit


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Anonymous (not registered) on Sat, 2011-02-12 16:22.

The tutorial is great. I just managed to install torrentflux on Ubuntu server 10.04.1 without problems. Thanks.

Everything is working but one thing is not convenient. Users of Torrentflux may enter each others directories i.e. <normaluser> to <root> directory. Any solution for that ?

Regards

Submitted by Peter (not registered) on Mon, 2011-02-14 00:07.
Simply: it cannot be done with Torrentflux. It is not a matter od system settings - as all webui users are simply one system user. It is a matter od php code. Torrentflux development has been stopped in mid 2008. In order to have more control over Torrentflux users (  to make i.e. multiuser seedbox ) one should go for Torrentflux-4brt. Much more delevoped. It would be nice to have Torrentflux-4brt installation tutorial here as original Tf is rather ancient and there is no sense to use it.
Submitted by Florian (not registered) on Thu, 2009-05-21 10:35.
Very nice and easy Tutorial. Just one thing, for security reason if not only used for testing purposes I would create a different msql user and use this user with lower privileges to connect to my db....
Submitted by Anonymous (not registered) on Fri, 2006-08-11 06:14.

"Cancel the download and write down the link shown below in blue (haven't found a way to paste text into my vmware-window yet)"

 
Why not immediately install OpenSSH after the base install and use an SSH client to enter commands? You can cut & paste your commands in there...

Submitted by JeremyP (registered user) on Fri, 2006-08-11 15:04.
I sometimes miss the simple solutions¬ :)
Nice one, thanks!