PDA

Bekijk de volledige versie : [HowTo] install pyLoad



!gm
31-10-2009, 04:07
(the original HowTo was created by FastJack and is also available in German: http://wl500g.info/showthread.php?p=166837#post166837)
but, since there is the ipk - its much easier.. :D


http://img1.abload.de/img/pyload-logo-edited3.5-l3oa.png (http://pyload.org)

pyLoad is a free and open source downloader for 1-click-hosting sites like rapidshare.com or uploaded.to.
Link-Crypt services like lix.in as well as the Link-Container Files RSDF, CCF and DLC are also supported.

This HowTo will show, how to install and configure pyLoad an your Asus router.

1. requirements
You will need a wengi-like configured oleg firmware or later (or any other system where you can install Python)
and the packages below:

ipkg install ossp-js
iokg install tesseract-ocr-lang-eng
ipkg install tesseract-ocr
ipkg install unrar
ipkg install wget-ssl

2. download pyload


wget http://get.pyload.org/static/pyload-v0.4.8-noarch.ipk


3. install pyload



ipkg install pyload-v0.4.8-noarch.ipk


Some packages will be installed too, python for example.

4. configure pyload
From now on you don't need to change any xml anymore, as pyLoad provides a nice assistant and the config tab on the WebIF. :cool:
At first just run the pyLoadCore in setup-mode.


pyLoadCore -s

Here you edit pyLoads config for your personal needs. (mostly self explaining)
at least define IP and PORT of the Webinterface. The buildin WebIF has an issue, use the threaded.

If you want to use the reconnect capability you need to create the reconnect-script, this can vary depending on your environment.
In this example we're assuming the WL-500G is establishing the internet connection at itself.
Create the reconnect.sh with the following content:
reconnect.sh

#!/bin/sh
killall -1 pppd >/dev/null 2>&1
sleep 5s
ping -c 1 www.heise.de >/dev/null 2>&1
and make it executable:

chmod +x reconnect.sh
Use the path to this file in settings/reconnect tab.

5. Start-Stop Script

cd /opt/etc/init.d
nano S90pyloadstart


insert this:


#!/bin/sh

prefix="/opt"
PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin

start() {
echo "starting pyLoad"
pyLoadCore --daemon
}

stop() {
echo "stopping pyLoad"
pyLoadCore --status | xargs kill -9
}
status() {
pyLoadCore --status
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 4
start
;;
status) status
;;
*)
echo "Usage: $0 (start|stop|restart|status)"
exit 1
;;
esac

exit 0


make executable:

chmod +x /opt/etc/init.d/S90pyloadstart

For further configurations such as download times etc. use the Webinterface on the address : port you've defined.

If you'll get any errors use this thread or consult the pyload-devs on their site.

Thats it :)
Support the pyLoad guys and enjoy http://pyload.org/

up2date

gm

ryzhov_al
29-03-2011, 10:27
Here is a package, which helps you automate pyLoad installation. To complete steps 1, 2, 5 and 7 type
...

mikro
13-05-2011, 13:54
Hi !gm,

I've tried following test downloads with the bulid-in Web interface:

http://www.share.cx/files/616071458470/czech_republic_q4_2010_v2.zip.html
http://www.share.cx/files/050379980637/denmark_q4_2010_sf_v2.zip.html
http://www.share.cx/files/832638113319/estonia_q4_2010_v2.zip.html

While downloading the first file the progress bar suddenly disappeared when aprox. 15MB of download finished. I'm still trying to figure out why. My question is:

Shall the line 50 in lighttpd_default.conf look like this?:

server.event-handler = "poll" # needed on OS X

thx. in advance

mikro

wpte
13-05-2011, 23:21
Shall the line 50 in lighttpd_default.conf look like this?:

server.event-handler = "poll" # needed on OS X

Yes:)
the old ipkg package had build in e-pol, but it has been removed in newer versions.
Since lighttpd uses e-poll by default, the default needs to be changed to the system build in poll;)

ryzhov_al
22-06-2011, 19:06
Thanks fo FAQ!

Create the reconnect.sh with the following content:
reconnect.sh

#!/bin/sh
killall pppd >/dev/null 2>&1
sleep 5s
pppd file /tmp/ppp/options.wan0 >/dev/null 2>&1
sleep 5s
ping -c 1 www.heise.de >/dev/null 2>&1

A pppd can reconnect by catching SIGHUP:

#!/bin/sh
killall -1 pppd >/dev/null 2>&1
sleep 5s
ping -c 1 www.heise.de >/dev/null 2>&1