Torrentflux

Torrentflux is a very useful web-application to download torrent on Linux, based on php and Apache webserver.

Pratically, the only interface of this program is a website where the user can easily manage the torrent downloads. It’s very useful because it runs in background without use the GUI and the influence on the system is low. Moreover, the web interface permits to enable the access to the Torrentflux by remote, just setting the right ports forwarding on the home router and using the public IP assigned by the ISP provider on the home connection.

This program runs on apache (PHP webserver) and use the mysql engine.
So, for a debian-based linux the installation steps are:


$ sudo apt-get install mysql-client mysql-server mysql-common

and follow the required database configuration (mainly are required passwords for the database users).


$ sudo apt-get install php5 php5-mysql
$ sudo apt-get install apache2

and then the last step

$ sudo apt-get install torrentflux

After these steps, the Apache2 service need to be restarted

$ sudo service apache2 restart

and the link to the application checked under /var/www/html/.
If is not present, it is necessary to create the link to torrentflux on the webserver

$ sudo ln -s /usr/share/torrentflux/www/ /var/www/html/torrentflux

Finally, the Torrentflux web interface should be running at address
http://localhost/torrentflux/
or
http://127.0.0.1/torrentflux/

Have good downloads!
😀

set-up proxy on linux

Hi everyone!

Here a simple guide to set up a connection via proxy.
If you need to use a proxy to connect to any remote host, you can configure your linux system to use it automatically.
In case of an http proxy, you must write the line below into /etc/environment:

export http_proxy="http://<user>:<pwd>@<host>:<port>"

where “user” is your proxy user, “pwd” is your proxy password, “host” and “port” are the proxy IP and PORT defined to use that proxy connection.

If you need to set other proxy types, you can use the following options:
https_proxy=…,
ftp_proxy=..,
socks_proxy=..
or all_proxy=.. if you use the same proxy options on all proxy servers.

Enjoy! 😉

Auto-completion Bash (Debian systems)

Using an embedded system linux, that I create with an old Debian 6.0.6 minimal armel and the new kernel 3.8.6, on a Freescale i.MX53 board, I discovered that some linux distributions do not have the bash auto-completion pre-installed.

Yeah, is not a great surprise, but it’s a problem when you use a minimal distribution or a distribution that you don’t know..

So, for the Debian systems, you must only install the package “bash-completion”:

$ sudo apt-get install bash-completion

If the bash-completion doesn’t work, you must modify the file .bash_profile in your home directory, by un-comment these lines:

if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi

If you don’t have the file .bash_profile don’t worry: you must use the .bashrc file.If you don’t have the lines, you only have to add the lines to make the bash-completion work.