Creating a seedbox on a Linux server
Clone or download
Notos Merge pull request #25 from ryanb93/ryanb93-patch-1
Replaced ffmpeg with libav-tools
Latest commit d4c9a88 Feb 11, 2015
Permalink
Failed to load latest commit information.
php @ ef22c91 adding submodule php Dec 7, 2012
rutorrent.org adding rutorrent.org files Jan 15, 2013
.gitmodules adding submodule php Dec 7, 2012
README.md license Feb 4, 2013
SABnzbd-0.7.6-src.tar.gz Adding SABnzbd-0.7.6-src.tar.gz Dec 13, 2012
action.php.template Adding copyright to everything. Feb 4, 2013
aliases Adding copyright to everything. Feb 4, 2013
autodl-trackers.zip updated list of trackers Oct 26, 2012
changeUserPassword Adding copyright to everything. Feb 4, 2013
createOpenSSLCACertificate Adding copyright to everything. Feb 4, 2013
createOpenSSLServiceCertificate Adding copyright to everything. Feb 4, 2013
createSeedboxUser Autodl-Irssi community name has changed. Apr 14, 2013
debian.60-squeeze.etc.apt.sources.list.template Making sources compliant with http://wiki.debian.org/SourcesList. Feb 11, 2013
deleteSeedboxUser Adding copyright to everything. Feb 4, 2013
deluge.password.py Adding copyright to everything. Feb 4, 2013
downgradeRTorrent Adding copyright to everything. Feb 4, 2013
etc.apache2.default.template Adding copyright to everything. Feb 4, 2013
etc.fail2ban.jail.conf.template Adding copyright to everything. Feb 4, 2013
etc.jailkit.jk_init.ini.template jail files Oct 30, 2012
favicon.ico favicon and rutorrent.plugins.fileshare.conf.php.template Nov 16, 2012
home.user.autodl.autodl.cfg.template modifying dirs and adding mktorrent Sep 29, 2012
home.user.config.deluge.core.conf.template adding deluge to seedbox script Dec 26, 2012
home.user.config.deluge.hostlist.conf.1.2.template hostlist Dec 26, 2012
home.user.config.deluge.web.conf.template adding Deluge installation and support for multi user Dec 26, 2012
home.user.sabnzbd.sabnzbd.ini.template new centralized restart script Nov 11, 2012
installCurl installCurl script (still in development) added. Apr 14, 2013
installDeluge Update installDeluge May 19, 2013
installOpenVPN Adding copyright to everything. Feb 4, 2013
installRTorrent Adding copyright to everything. Feb 4, 2013
installRapidleech Adding copyright to everything. Feb 4, 2013
installSABnzbd Adding copyright to everything. Feb 4, 2013
installUploader Adding copyright to everything. Feb 4, 2013
installWebmin Adding copyright to everything. Feb 4, 2013
installruTorrentStreamPlugin Adding copyright to everything. Feb 4, 2013
jailkit-2.15.tar.gz chroot added Oct 24, 2012
libtorrent-0.12.9.tar.gz Adding packages for xmlrpc, rtorrent and libtorrent Oct 23, 2012
libtorrent-0.13.2.tar.gz Adding packages for xmlrpc, rtorrent and libtorrent Oct 23, 2012
libtorrent-0.13.3.tar.gz adding deluge to seedbox script Dec 26, 2012
ovpni Adding copyright to everything. Feb 4, 2013
removeWebmin Adding copyright to everything. Feb 4, 2013
restartSeedbox.template Adding copyright to everything. Feb 4, 2013
root.ca.cacert.conf.template Adding copyright to everything. Feb 4, 2013
rtorrent-0.8.9.tar.gz Adding packages for xmlrpc, rtorrent and libtorrent Oct 23, 2012
rtorrent-0.9.2.tar.gz Adding packages for xmlrpc, rtorrent and libtorrent Oct 23, 2012
rtorrent-0.9.3.tar.gz adding deluge to seedbox script Dec 26, 2012
rtorrent.conf.template Adding copyright to everything. Feb 4, 2013
rtorrent.jailed.conf.template Adding copyright to everything. Feb 4, 2013
rtorrent.rc.template Adding copyright to everything. Feb 4, 2013
rutorrent-oblivion.zip adding oblivion Oct 31, 2012
rutorrent-stream.tar.gz stream plugin Jan 16, 2013
rutorrent.conf.users.config.php.template Adding copyright to everything. Feb 4, 2013
rutorrent.conf.users.plugins.autodl-irssi.conf.php.template Adding copyright to everything. Feb 4, 2013
rutorrent.conf.users.plugins.fileupload.conf.php.template Adding copyright to everything. Feb 4, 2013
rutorrent.conf.users.plugins.ini.template Adding copyright to everything. Feb 4, 2013
rutorrent.plugins.filemanager.conf.php.template Adding copyright to everything. Feb 4, 2013
rutorrent.plugins.fileshare.conf.php.template Adding copyright to everything. Feb 4, 2013
seedbox-from-scratch.sh Replaced ffmpeg with libav-tools Feb 10, 2015
seedboxInfo.php.template bug Nov 11, 2012
ubuntu.1204-precise.etc.apt.sources.list.template apt sources templates Dec 12, 2012
updateExecutables Autodl-Irssi community name has changed. Apr 14, 2013
updategitRepository Adding copyright to everything. Feb 4, 2013
updatejkinit Adding copyright to everything. Feb 4, 2013
upgradeRTorrent Adding copyright to everything. Feb 4, 2013
upgradeSeedbox Adding copyright to everything. Feb 4, 2013
versions versions Oct 23, 2012
vsftpd_2.3.2-3ubuntu5.1_amd64.deb vsftpd packages Dec 14, 2012
vsftpd_2.3.2-3ubuntu5.1_i386.deb vsftpd packages Dec 14, 2012
vsftpd_2.3.2-3ubuntu5.1_x86_64.deb vsftpd packages Dec 14, 2012
webmin-1.600.tar.gz Many Changes to Install Oct 25, 2012
xmlrpc-c-1.16.42.tgz renaming files. Oct 29, 2012
xmlrpc-c-1.31.06.zip xml-rpc Oct 25, 2012

README.md

The Seedbox From Scratch Script

Current version = 2.1.9

Last stable version = 2.1.8

This is a script I've being working for some time now. I decided to share it here because it has some good things to add:

  • A multi-user enviroment, you'll have scripts to add and delete users.
  • Linux Quota, to control how much space every user can use in your box.

Installed software

  • ruTorrent 3.4 + official plugins
  • rTorrent 0.9.2 or 0.9.3 (you can choose, downgrade and upgrade at any time)
  • Deluge 1.3.5 or 0.9.3 (you can choose, downgrade and upgrade at any time)
  • libTorrrent 0.13.2 or 0.12.9
  • mktorrent
  • Fail2ban - to avoid apache and ssh exploits. Fail2ban bans IPs that show malicious signs -- too many password failures, seeking for exploits, etc.
  • Apache (SSL)
  • OpenVPN
  • PHP 5 and PHP-FPM (FastCGI to increase performance)
  • Linux Quota
  • SSH Server (for SSH terminal and sFTP connections)
  • vsftpd (Very Secure FTP Deamon)
  • IRSSI
  • Webmin (use it to manage your users quota)
  • sabnzbd: http://sabnzbd.org/
  • Rapidleech (http://www.rapidleech.com)

Main ruTorrent plugins

autotoolscpuload, diskspace, erasedata, extratio, extsearch, feeds, filedrop, filemanager, geoip, history, logoff, mediainfo, mediastream, rss, scheduler, screenshots, theme, trafic and unpack

Additional ruTorrent plugins

  • Autodl-IRSSI (with an updated list of trackers)
  • A modified version of Diskpace to support quota (by me)
  • Filemanager (modified to handle rar, zip, unzip, tar and bzip)
  • Fileupload
  • Fileshare Plugin (http://forums.rutorrent.org/index.php?topic=705.0)
  • MediaStream (to watch your videos right from your seedbox)
  • Logoff
  • Theme: Oblivion

Before installation

You need to have a "blank" server installation, if you have a Kimsufi, just do a "reinstall" on it, using Ubuntu Server 12.04. After that access your box using a SSH client, like PuTTY.

Warnings

####If you don't know Linux ENOUGH:

DO NOT install this script on a non OVH Host. It is doable, but you'll have to know Linux to solve some problems.

DO NOT use capital letters, all your usernames should be written in lowercase.

DO NOT upgrade anything in your box, ask in the thread before even thinking about it.

DO NOT try to reconfigure packages using other tutorials.

How to install

Just copy and paste those commands on your terminal:

wget -N https://raw.github.com/Notos/seedbox-from-scratch/v2.1.9/seedbox-from-scratch.sh
time bash ~/seedbox-from-scratch.sh

####You must be logged as root to run this installation or use sudo on it.

Commands

After installing you will have access to the following commands to be used directly in terminal

  • createSeedboxUser

  • deleteSeedboxUser

  • changeUserPassword

  • installRapidleech

  • installOpenVPN

  • installSABnzbd

  • installWebmin

  • installDeluge

  • updategitRepository

  • removeWebmin

  • upgradeRTorrent

  • installRTorrent

  • restartSeedbox

  • While executing them, if sudo is needed, they will ask for a password.

Services

To access services installed on your new server point your browser to the following address:

https://<Server IP or Server Name>/seedboxInfo.php

####OpenVPN To use your VPN you will need a VPN client compatible with OpenVPN, necessary files to configure your connection are in this link in your box:

http://<Server IP or Server Name>/rutorrent/vpn.zip` and use it in any OpenVPN client.

Supported and tested servers

  • Ubuntu Server 12.10.0 - 64bit (on VM environment)
  • Ubuntu Server 12.04.x - 64bit (on VM environment)
  • Ubuntu Server 12.04.x - 32bit (OVH's Kimsufi 2G and 16G - Precise)
  • Ubuntu Server 12.04.x - 64bit (OVH's Kimsufi 2G and 16G - Precise)
  • Debian 6.0.6 - 32 and 64bit (OVH's Kimsufi 2G - Squeeze)
  • Debian 6.0.6 - 32 and 64bit (on VM environment)

Quota

Quota is disabled by default in your box. To enable and use it, you'll have to open Webmin, using the address you can find in one of the tables box above this. After you sucessfully logged on Webmin, enable it by clicking

System => Disk and Network Filesystems => /home => Use Quotas? => Select "Only User" => Save

Now you'll have to configure quota for each user, doing

System => Disk Quotas => /home => => Configure the "Soft kilobyte limit" => Update

As soon as you save it, your seedbox will also update the available space to all your users.

Changelog

Take a look at seedbox-from-scratch.sh, it's all there.

Support

There is no real support for this script, but people is talking a lot about it here and you may find solutions for your problems in the thread.

License

Copyright (c) 2013 Notos (https://github.com/Notos/)

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.

--> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php