Coder Social home page Coder Social logo

minibay's Introduction

Accessible music.

License

Copyright (C) 2013 Dionysis "dionyziz" Zindros [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Installation

To install this on your own server, follow these steps. I have included the particular versions I am using that I have verified to work.

  • Install these on your Debian server:

  • Apache 2.2.16

  • MySQL

  • Python 2.6.6

  • git

  • transmission-daemon

  • p7zip, p7zip-full

  • Create a local directory structure. I recommend the following structure:

  • /home/minibay/downloads - To store the downloads

  • /home/minibay/minibay-django - To store the django project files (this is where you should clone)

  • /var/www/yourdomain.example.com/static - To store your static files

  • Set up transmission-daemon with a username and a password and make it run on system startup.

  • Verify that transmission is installed correctly by connecting to it using Transmission Remote GUI.

  • pip install -r requirements.txt

  • Install the following Apache modules:

  • mod_wsgi

  • mod_xsendfile

  • git clone https://github.com/dionyziz/minibay.git /home/minibay/minibay-django

  • Create a MySQL database and a user for it, with a username and a password and full permissions on the database.

  • Create the file settings-local.py next to settings.py in the folder minibay-django/minibay and include:

  • Your MySQL username and password

  • Your local downloads directory

  • Your transmission credentials

  • Change your MySQL configuration file to support the fine-tuning options for fulltext search from the file minibay/my.cfg. Restart MySQL.

  • Build the database using manage.py syncdb. You have to do this after modifying my.cfg!

  • Enable south on the django app

  • Make sure your tables use the MyISAM engine.

  • Create a FULLTEXT index on the column bay_files.name by manually running South migration #0004 or by issuing the appropriate SQL query. This can take several minutes.

  • Configure apache. A sample configuration file is provided at minibay/apache.conf.

  • Download The Pirate Base database from the following archives onto your server. This download can take a couple of days depending on your connection speed. Please seed.

  • The Pirate Bay 3200000 - 7700000

  • The Pirate Bay 7700000 - 7999999

  • If you want more recent torrents available git clone tpb2csv and export Pirate Bay to csv manually

  • If you downloaded one of the archives, you should have a folder with .7z files. To import, run the following command in it, after verifying that directory structure is correct by looking at the source code of the .sh file. Importing can take a couple of days, so you may want to run it under screen.

      /home/minibay/minibay-django/scripts/import-tpb.sh
    
  • Otherwise, if you just have plain directories that you have manually exported, directly run manage.py import-tbp with the appropriate arguments in a for loop.

  • You can now get rid of the .7z and .csv files, as everything is in MySQL.

  • Alternatively, if you don not want to download the archive via torrent and go through importing it, you can download a mysqlhotdump for the range 3200000 - 7700000 directly:

  • bay_file

  • bay_torrent

minibay's People

Contributors

dionyziz 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.