Skip navigation.

SERVER : Install TorrentFlux

, , , , , ,

Now that the server is up and running, I wanted to have it do something when I'm not at home and am not using it as a Gateway.

The first things i could think of was some kind of download system, and after searching I've found Torrent Flux - 4BT. It's a web-based front-end for command-line bit-torrent clients. It is based on TorrentFlux 2.1 written by Qrome, which can be found at www.torrentflux.com.

At the time I'm writing this post the latest version is 1.0 Alpha5 (released on 2006-12-20).
So, download the file to your server, and in the folder where you've downloaded it to execute this :
tar -jxvf torrentflux-b4rt_1.0-alpha5.tar.bz2

Now lets create the folder where torrentflux will be and copy it there
sudo mkdir /var/www/torrentflux
sudo cp -r html/* /var/www/torrentflux
sudo chown -R www-data:www-data /var/www/torrentflux

The last line will make shore that www-data which is the user used by Apache (the webserver) can access the files used by TorrentFlux.

Now open a browser and direct it to this address : http://your_server_ip_address/torrentflux
You should see something similar to this :
press the Continue button.
press the Continue button again.
Select MySQL from the combobox and press the Continue button again. You should see this : press the Continue button again.
Now we need to enter the database name, username and password used for accessing MySQL.
First we need to create the database and user so open up phpMyAdmin in another browser window and log in.
Once logged in enter torrentfluxb4rt under Create New Database and press the Create button.
You should see this : .
Now we need to create the user that will be used to access the database. We could use the root user, but it's safer to use another user. So go back to the homepage of phpMyAdmin and press privileges and there press the Add new user
You should fill the data similar to this :
then press the Go button. Now you should get a window saying you've added a new user, scroll down on that page, and there's the Database-specific privileges, you'll need to modify it so that the new user can modify the torrentfluxb4rt databaseOnce you've selected torrentfluxb4rt from the list, a new window will appear where you can set the privileges that the user has over the database I'm not shore if you have to enable all accesses, but that's how i did it. Now press Go so that the changes can be applied.

Now we return to the TorrentFlux installation, you can log out from phpMyAdmin, we need to add the user and password we just created : Make shore you uncheck the Create Database since we've already created the database. You should also check the Use Persistent Connection since it will reduce the load on the server.
After you press the continue button, you should see this : After you press the continue button, you should see this :At the next step you'll see a long output similar to this : At the next step you'll see an even longer output, if you scroll down you should have
Next step :
We now need to select a folder where the torrents will be downloaded, so lets create a folder on the second harddisk. For that, in a console do this :
sudo mkdir /mnt/d/Torrents
sudo chown www-data:www-data /mnt/d/Torrents
sudo chmod 777 /mnt/d/Torrents

This will create a new folder, grant the Apache user access to it.
So now, in the TorrentFlux installation enter this as the downloads folderyou should get this response
Now, Torrentflux will look for some programs it needs, so we must make shore those are installed, so in the console run this command :
sudo apt-get install wget unrar unzip cksfv
Some of the packages might already be installed, don't worry about that.
So, now back to the TorrentFlux installation, when you press continue from the previous image, you should see this : As you can see, torrentflux didn't find VLC, we're not using it for now, so simply ignore the error and press continue.
You should see this screen :followed by
Just like the text says, after pressing the Continue button, you'll end up at the Login screen. Enter a user name and password, but make shore you remember them, or you'll be in trouble, since this user is the SuperAdmin.
After you log in, you'll get this error message Just like the text says, the problem is that your config file is writable, you'll need to change that.
In a console enter the following command :
sudo chmod 444 /var/www/torrentflux/inc/config/config.db.php

Now press the OK button and you should end up in the TorrentFlux window.

You can now search for torrents, add torrents and of course download them, so happy downloading.
P.S. I'm not going to explain how to download stuff, you should already know that:doh:

SERVER : Install PHPMyAdminSERVER : Install MRTG for TorrentFlux

Comments

crazybilly 5. May 2008, 18:18

Very helpful. Thanks!

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

July 2009
S M T W T F S
June 2009August 2009
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31