Howto install TorrentFlux 2.3 on Bubba.
Note: Use this at
your own risk!. I might have made a typo which could render your system unusable, and I take no responsability for damage caused by following this howto. You have been warned.
Browse to bubba and create a useraccount and allow ssh-login for it, follow Bubba-usermanual for this. I created a user called "bjorn" and this will be used as example throuout this howto.
Download torretflux_2.3.tar.gz from
http://www.torrentflux.com/ and save it as /home/bjorn/torrentflux_2.3.tar.gz on Bubba.
Connected to Bubba through SSH, login as your user.
become root
backup files that we change if something goes wrong
Code: Select all
cp /etc/apt/sources.list /etc/apt/sources.list.backup
cp /etc/sudoers /etc/sudoers.backup
there are many file editors available, "vi" or "nano" are two good examples, "nano" would perhaps be better for beginners.
enable debian sarge repositories by editing /etc/apt/sources.list and remove comments ("#"-sign) for 3 top rows
Allow user "bjorn" to use the command "sudo" by adding the row "bjorn ALL=(ALL) ALL" to /etc/sudoers
leave root:
unpacked archive
update bubbas apt-system with new information
install nessesary software with the following (the packages has a number of requirements, apt will prompt you to install them as well):
Code: Select all
sudo apt-get install mysql-server php4-mysql python
set password for mysql-root user (default is blank-password, and not recomended!)
Code: Select all
mysqladmin -u root -p password my_secret_password
login to mysql as mysql-root:
run the following commands in mysql-client to create database, user and populate with data from torrentflux script (edit the below to use desired username and password):
Code: Select all
create database torrentflux;
grant all on torrentflux.* to 'tf_user'@'localhost' identified by 'tf_password';
flush privileges;
use torrentflux;
source /home/bjorn/torrentflux_2.3/sql/mysql_torrentflux.sql;
quit;
edit the file /home/bjorn/torrentflux_2.3/html/config.php and insert values for database connection.
Code: Select all
vi /home/bjorn/torrentflux_2.3/html/config.php
move files into webserver-documentroot
Code: Select all
sudo mv /home/bjorn/torrentflux_2.3/html/ /var/www/html/tf
make the webserver-user owner of files
Code: Select all
sudo chown -R www-data.www-data /var/www/html/tf
stop then start apache (a "force-reload" is done while running the apt-get install command above but for some reason this did not register mysql-support properly).
Code: Select all
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
created a directory where to store downloads from torrentflux:
Code: Select all
sudo mkdir -p /home/storage/torrentflux
make folder writeable for all users
Code: Select all
sudo chmod -R 777 /home/storage/torrentflux
That should be it!
Browse to
http://bubba/tf/ and enter your desired username and password. The first user to do this will become administrator and will be directly taken to the settings-screen.
Change the "path" to /home/storage/torrentflux/
make sure you forward a port-range for your bubba in your firewall/router, having open connection to the specified ports will greatly enhance your bittorrent experience.
I choosed to enable the "Queue manager" and run with default thread-settings.
/Bjorn