Single server seedbox management!
We have decided to release package to manage single server seedbox server, our internal tool for setting up users and servers.
This is only for a single server, and contains some known bugs. It includes the master gui and everything!
The installation script installs:
- All necessary debian packages
- Custom "quota" package (compiled from source)
- Custom rTorrent/libTorrent version, compiled from source. (Changed to actually compile, from SVN)
- Management scripts to /scripts
- Configuraiton files to /etc/seedbox
- SKEL to /etc/skel for Master GUI + ruTorrent etc.
- Custom plugins for ruTorrent
It is exactly the same package as we use internally to deploy new servers, and management scripts are the same we use daily. But this package is only for single server (one server at a time management).
Known bugs include at least the following:
- Should not install "quota" from source package under OpenVZ
- userTransfer script arguments wrong (chg $args[4] to $args[3] for param list)
- No documentation what-so-ever (Internal tool)
- Current package is "untested", meaning changes were made which SHOULD work but have not been tested to the package
- not all apt-get questions are bypassed (proftpd)
- Not everything is 100% automatic (quota setup, munin config hostname has to be manually typed etc.)
- Does not install central management package
- No idempotency on server side (ie. cannot regenerate configuration/automate removal easily as data of user resource limits is not saved locally)
- Does not setup automatically root crontab
- Some of rTorrent operational scripts should be removed/refactored (scripts making sure it stays running)
- Does not get installation failures (extremely rare in our usage tho)
- No account automatic removal tools included
- No DNS setup integration
- No versioning, upon updates need to know if an package needs manual upgrade
- addUser scripts asks password as parameter, potential security risk
- Works only with DNS naming scheme of *USERNAME*.*SERVER*.*DOMAIN_NAME*
- All users need FQDN
Pulsed Media Seedbox Management by Pulsed Media is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Based on a work at PulsedMedia.com.
There are other bugs too, but if you use this, just remember this was meant for our internal use only, on very specific range of hardware and software. Tested only under Debian Lenny 64bit on pure hardware and under OpenVZ, KVM.
Installation & Usage
Installation is very easy really.
wget http://PulsedMedia.com/remote/install.sh
bash install.sh
answer questions/set configafter installation, setup user:
cd /scripts
./addUser.php USERNAME USERPASSWORD RTORRENT_RAM_LIMIT QUOTA_LIMITchange user resource limits
cd /scripts/util
./userConfig.php USERNAME RTORRENT_RAM_LIMIT QUOTA_LIMITCheck all rTorrent instances are running
/scripts/checkInstances.phpSetup custom rTorrent template
wget http://pulsedmedia.com/remote/config/rtorrentTemplate.txt -O /etc/seedbox/config/templates.rtorrentrc
vim /etc/seedbox/config/templates.rtorrentrc
That is it really :)
Remember to set /etc/hostname correctly, as that's used for the lighttpd virtual hosts.
Questions, Bug Reports
This does not include free support. But you may send us general questions about the package or bug reports. If you do not have client portal account you may use e-mail sales@pulsedmedia.com to send in your questions.
There are absolutely no warranties for this package, and we do not provide end user support. However, good ideas to enhance the package are more than welcome, and will be considered.
Monday, December 27, 2010