Coder Social home page Coder Social logo

asdlei99 / friendlytorrent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cclleemm/friendlytorrent

0.0 2.0 0.0 2.15 MB

Web torrent plateform, the perfect seedbox for sharing with your friends

Home Page: http://cclleemm.github.io/FriendlyTorrent/

License: Apache License 2.0

Shell 0.37% PHP 21.62% CSS 3.37% JavaScript 24.36% Python 50.28%

friendlytorrent's Introduction

PreviewImage FriendlyTorrent

FriendlyTorrent is a web PHP script to download torrents with a beautiful an intuitive web responsive interface. Moreover it allow you to explore and share download files "in the cloud" with your friends. This software is based on Transmission torrent software.

This is a BETA version, maybe you can help us ? :) TODO List

PreviewImage

What's included

Within the download you'll find the following directories and files. You'll see something like this:

bootstrap/
├── board.sql
├── install.sh
└── src/
    ├── bootstrap/
    ├── controllers/
    ├── core/
    ├── models/
    ├── theme/
    ├── tmp/
    ├── tornado/
    ├── uploadify/
    ├── views/
    ├── .htaccess
    ├── favicon.ico
    └── index.php

Automatic installation (Ubuntu, Debian ...)

sudo chmod +x ./install.sh
sudo ./install.sh 
  • Enable HTACESS for the web folder (vhost file).

Solution to enable HTACCESS but it's not secure :

sudo nano /etc/apache2/apache2.conf

Change Directory directive

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

To

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

Then, restart the apache service

sudo service apache2 restart

Go to : http://localhost/

Manual installation

Dependencies

You must have installed this before :

  • Apache2
  • php5
  • mysql-server
  • libapache2-mod-php5
  • php5-curl
  • php5-mysql
  • memcached
  • php5-memcache
  • php5-memcached
  • transmission
  • transmission-daemon
  • zip

Files Import

Put all files of the src/ folder in your web folder (for example in /var/www/).

Create the download folder where all your downloads will be stored (ex : /var/downloads/)

Create .transfert folder (ex : /var/downloads/.transferts/)

Create user folder (ex : /var/downloads/user-name/)

Give folders rights with sudo chown www-data /var/downloads/ -R

Cofigure the src/core/config/global.php file with yours settings :

<?php
define('ROOT_DOWNLOADS','/var/downloads/');
define('TRANSMISSION','/usr/bin/transmission-daemon');
define('LANGUAGE','en');
?>

MySQL Import

Import the MySQL database board.sql

Configure the src/core/config/bdd.php file with yours settings :

<?php
//CONFIG MYSQL
$BDD_MYSQL_SERVER = 'localhost';
$BDD_MYSQL_LOGIN = 'root';
$BDD_MYSQL_PASS = 'password';
$BDD_MYSQL_BDD = 'FriendlyTorrentDB';
?>

Add user in the users table with MD5 encryption for the password :

insert into users(login,mail,password,boxe,couleur,lastScan,rss,admin,port) values('USERNAME','-','MD5_PASSWORD','/YOUR_DOWNLOADS_FLODER/USERNAME', '78ba00', 0, '', 1, 9091);

Apache Configuration

Enable memcache in your php.ini file (/etc/php5/apache2/php.ini) adding line extension=memcache.so

Enable HTACESS for the web folder.

Solution to enable HTACCESS but it's not secure :

sudo nano /etc/apache2/apache2.conf

Change Directory directive

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

To

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

Add thoose lines in the cron table /etc/cron.d/php5

*/1 * * * *     www-data wget "http://localhost/action/refreshTorrent/" -O /dev/null' >> /etc/cron.d/php5

Initialization

Restart cron sudo /etc/init.d/cron restart

Restart Apache sudo service apache2 reload

Stop transmission sudo service transmission stop

Go to : http://localhost/


Read the Official Website for more information.


Community

Keep track of development and community news.

friendlytorrent's People

Contributors

cclleemm avatar mixman68 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.