NAS 110 220 440 part5 Download manager Debian

NAS 110 220 440 part5 Download manager Debian




This is the last of the series that describe how the NAS can behave as a linux server (DLNA, webserver, bittorent). About the end of this tutorial you should be at about the 75% of your space in the NAS (issue the "df -h" command).


Download from here the pyLoad deb file (without gui, cli only)


aptitude install python-pycurl python-crypto
dpkg -i pyload-cli-v0.4.9-all.deb
cd /usr/share/pyload/
python pyLoadCore.py -s
(to create the intial database setup for the webinterface. The command prompts you for a username, an email and a password, which will be used to authenticate you against the webinterface of pyload (see below).)
I would suggest to pick the threaded server as the builtin usually causes problems and requires restarts in the web interface.
nano ~/.pyload/pyload.conf
nano /usr/share/pyload/module/config/default.conf (although this is not the real that the program is looking)

see here for configuration settings.

if you want it to load at boot up time as a service then

  • nano /etc/init.d/pyload
    add to PATH after :/usr/bin: the :/usr/local/bin:
  • and edit /etc/rc.local
    add just before exit 0 the "/etc/init.d/pyload start" (make sure you leave an empty line just before and after this line) or "python /usr/share/pyload/pyLoadCore.py --daemon" (didnt work for me... probably doesnt resolve the right path, probably because python is not loaded yet..?)
To change users that can enter the webinterface just "python /usr/share/pyload/pyLoadCore.py -u"
To see more help, then " python /usr/share/pyload/pyLoadCore.py -h"

Alternatives:

wget4web
pyLoad


CLIs
http://www.techtalkz.com/blog/tips-n-tricks/download-rapidshare-files-from-linux-shell-command-line.html
http://mundogeek.net/rapidshare-dl/
http://aria2.sourceforge.net/

- FatRat (doesnt work without X-Server)
- Slimrat (doesnt have actualy a web ui)
- Plowshare (no WebUI)

For NAS to work with tomato you will need to open up the ports from outside.
iptables -I INPUT -p tcp --dport 8000 -j ACCEPT

So the startup script would be something like that
echo "LABEL=optware /opt ext2 defaults,noatime 1 1" >> /etc/fstab;
sleep 5;
/opt/bin/pyLoadCore --daemon
echo "#!/bin/sh" > /jffs/scripts/firewall-start;
echo "iptables -I INPUT -p tcp --destination-port 8000 -j ACCEPT" >> /jffs/scripts/firewall-start;
chmod a+rx /jffs/scripts/firewall-start;
Or instead for the last 3 lines, just go to the script for firewall and add
iptables -I INPUT -p tcp --destination-port 8000 -j ACCEPT;


go to link download

Popular posts from this blog

DroidJack RAT Androrat Android Sample

Modern Combat 2 Black Pegasus apk data Free Download

Notepad 6 6 8