What's new

[TUTORIAL]pyLoad Download Manager through Entware

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

How this works for you

  • Working fine on my mipsel router

    Votes: 7 100.0%
  • Not working on my mipsel router

    Votes: 0 0.0%

  • Total voters
    7

TeHashX

Very Senior Member
New site with updated guide

logo.png


After many requests, I made this tutorial for pyload entware version, works on the following routers: RT-AC66U/R, RT-N66U/R, RT-N16
We need a usb-flash formatted EXT2 or a usb-hdd formated EXT3, will not work on FAT32 or NTFS.

1) - Setup entware, details here: http://www.hqt.ro/how-to-install-entware/

2) - Login to router with putty terminal and copy/paste the following commands
Code:
opkg install pyload

3) - Change the default configuration-directory
Code:
cd /opt/share/python/pyload
Code:
python pyLoadCore.py --changedir --configdir=/opt/etc/pyload/.pyload
Press ENTER once to confirm the path and once again ENTER to exit the dialog.

4) - Generate ssl keys, you have to input data required... or just press ENTER and fields will remains blanks
Code:
cd /opt/etc/pyload/.pyload
Code:
/usr/sbin/openssl genrsa -out ssl.key
/usr/sbin/openssl req -new -key ssl.key -out ssl.csr
/usr/sbin/openssl req -days 36500 -x509 -key ssl.key -in ssl.csr > ssl.crt

5) - Go to installation-process, just hit ENTER key, change username, password and port or leave it 8000
Code:
cd /opt/share/python/pyload
Code:
python pyLoadCore.py -s
Choose your Language / Wähle deine Sprache ([en], de, fr, it, es, nl, sv, ru, pl, cs, sr, pt_BR): Enter

Welcome to the pyLoad Configuration Assistent.
It will check your system and make a basic setup in order to run pyLoad.

The value in brackets [] always is the default value,
in case you don't want to change it or you are unsure what to choose, just hit enter.
Don't forget: You can always rerun this assistent with --setup or -s parameter, when you start pyLoadCore.
If you have any problems with this assistent hit STRG-C,
to abort and don't let him start with pyLoadCore automatically anymore.

When you are ready for system check, hit enter. Enter

## System Check ##
Python Version: OK
pycurl: OK
sqlite3: OK

pycrypto: OK
py-OpenSSL: OK

py-imaging: OK
tesseract: OK

PyQt4: missing

jinja2: OK
beaker: OK
JS engine: missing

System check finished, hit enter to see your status report. Enter

## Status ##

Features available: container decrypting, ssl connection, automatic captcha decryption, Webinterface, extended Click'N'Load

Continue with setup? ([y]/n): Enter

Do you want to change the config path? Current is /tmp/mnt/sda1/asusware/pyload/.pyload
If you use pyLoad on a server or the home partition lives on an iternal flash it may be a good idea to change it.
Change config path? (y/[n]): Enter

Do you want to configure login data and basic settings?
This is recommend for first run.
Make basic setup? ([y]/n): Enter

## Basic Setup ##

The following logindata is valid for CLI, GUI and webinterface.
Username [User]: your_username
Password: your_password
Password (again): your_password

External clients (GUI, CLI or other) need remote access to work over the network.
However, if you only want to use the webinterface you may disable it to save ram.
Enable remote access ([y]/n): Enter

Language ([en], de, fr, it, es, nl, sv, ru, pl, cs, sr, pt_BR): Enter
Downloadfolder [Downloads]: /mnt/sda1/downloads Enter If your hdd has a label, replace "sda1" with "your device label"
Max parallel downloads [3]: Enter
Use Reconnect? (y/[n]): Enter

Do you want to configure ssl?
Configure ssl? (y/[n]): y / Enter

If you're done and everything went fine, you can activate ssl now.
Activate SSL? ([y]/n): Enter

Do you want to configure webinterface?
Configure webinterface? ([y]/n): Enter

## Webinterface Setup ##

Activate webinterface? ([y]/n): Enter

Listen address, if you use 127.0.0.1 or localhost, the webinterface will only accessible locally.
Address [0.0.0.0]: Enter
Port [8000]: Enter

pyLoad offers several server backends, now following a short explanation.
builtin: Default server, best choice if you dont know which one to choose.
threaded: This server offers SSL and is a good alternative to builtin.
fastcgi: Can be used by apache, lighttpd, requires you to configure them, which is not too easy job.
lightweight: Very fast alternative written in C, requires libev and linux knowlegde.
Get it from here: https://github.com/jonashaag/bjoern, compile it
and copy bjoern.so to module/lib

Attention: In some rare cases the builtin server is not working, if you notice problems with the webinterface
come back here and change the builtin server to the threaded one here.
Server ([builtin], threaded, fastcgi, lightweight): threaded / Enter
Setup finished successfully.
Hit enter to exit and restart pyLoad Enter

6) - Start the server with
Code:
/opt/etc/init.d/S51pyload start

7) - Go to 192.168.1.1:8000 (this is the default router ip, modify to your router ip if you change it previously) and happy downloading...

8) - After login, if you receive the message: Plugins updated, please restart!, restart pyload with:
Code:
/opt/etc/init.d/S51pyload restart

4j60g.png

etv52r.png


TO ACCESS PYLOAD FROM WAN
Code:
opkg install nano
nano /jffs/scripts/firewall-start
paste this lines
#!/bin/sh
iptables -I INPUT -p tcp --destination-port 8000 -j ACCEPT
Save with CTRL-O / Enter / and exit with CTRL-X
chmod a+rx /jffs/scripts/firewall-start
reboot
After reboot you should have access from yourwanipadress:8000.

Please post a feedback here if you managed to install successfully
 
Last edited:
works on my router RT-N66U.
Only difference is this:
JS engine: missing

I can see that You have it, so what to do get in on my router ?? :)
 
There is a problem with (Entware) JS engine on some devices.
In short: js package is generally working, but _after_ interpreting js code - segfault.
I know 2 ways to fix it:
1) patch pyload code (to pass JS test, sorry can't write exact code now)
2) use JS engine from chrooted debian (you'll need to replace /opt/bin/js with script with smth. like chroot /opt/debian-chrooted /usr/bin/js $1 $2 $3 $4 $5 $6 $7)
 
Hello, on my RT-AC66U I've the same proplem of zboq

Code:
## System Check ##
Python Version: OK
pycurl: OK
sqlite3: OK

pycrypto: OK
py-OpenSSL: OK

py-imaging: OK
tesseract: OK

PyQt4: missing

jinja2: OK
beaker: OK
[COLOR="Red"]JS engine: missing[/COLOR]

System check finished, hit enter to see your status report.

## Status ##

Features available: container decrypting, ssl connection, automatic captcha decryption, Webinterface

Featues missing:

Gui not available
The Graphical User Interface.

no JavaScript engine found
You will need this for some Click'N'Load links. Install Spidermonkey, ossp-js, pyv8 or rhino
You can abort the setup now and fix some dependicies if you want.

P.S. thanks for the guide
 
Last edited:
works on my router RT-N66U.
Only difference is this:
JS engine: missing

I can see that You have it, so what to do get in on my router ?? :)







Hello, on my RT-AC66U I've the same proplem of zboq

Code:
## System Check ##
Python Version: OK
pycurl: OK
sqlite3: OK

pycrypto: OK
py-OpenSSL: OK

py-imaging: OK
tesseract: OK

PyQt4: missing

jinja2: OK
beaker: OK
[COLOR="Red"]JS engine: missing[/COLOR]

System check finished, hit enter to see your status report.

## Status ##

Features available: container decrypting, ssl connection, automatic captcha decryption, Webinterface

Featues missing:

Gui not available
The Graphical User Interface.

no JavaScript engine found
You will need this for some Click'N'Load links. Install Spidermonkey, ossp-js, pyv8 or rhino
You can abort the setup now and fix some dependicies if you want.

P.S. thanks for the guide

I only copy / pasted from optware tutorial but can you download files even with js-engine error?

Sent from my HTC One using Tapatalk
 
I've just finished the installation process: the error persist, but pYLoad is working :D

Tomorrow I'm going to do some "stress test"
 
I only copy / pasted from optware tutorial but can you download files even with js-engine error?

Sent from my HTC One using Tapatalk

I just tested two different sites and it worked without a hitch. Even captcha works so I think I will be fine for now.
But, wouldn't it be nice idea to install JS engine through chrooted debian ?? spiedermonkey ?, just a though ...
 
But, wouldn't it be nice idea to install JS engine through chrooted debian ?? spiedermonkey ?, just a though ...
If you wish :)
Code:
/opt/home/admin # chroot /opt/CHROOTED/debian-testing /bin/bash
root@ROUTER:/# cat /etc/issue.net
Debian GNU/Linux jessie/sid
root@ROUTER:/# apt-cache show spidermonkey-bin | grep Version
Version: 17.0.10esr-1~deb7u1
 
Hehe nice ;), maybe quick tutorial how to get it on my router ?

Use this tutorial as reference, then enter chroot and install spidermonkey with
Code:
apt-get install spidermonkey-bin
After, you need to symlink js
Don't have free time now to show you step by step, maybe someone else, please?
 
Any help with pyload reconnect ?

Pyload is working fine here on my Asus RT-N16 running Merlin 374.40.
Now I'd like to add a reconnect script for my router (connected in bridged mode to a D-Link DSL-320B modem).

Any help about it ?

Thanks in advance.

Max
 
Mmmmm.... it doesn't work for me.

Installed curl and edited/copied reconnect script on my RT-N16.

I started the script by shell but it close with some error related to the first 5 lines:

Code:
http://192.168.100.1/goform/ChannelsSelection

This line point to the modem IP/Page, I corrected the IP affress with mine (I'm able to access my D-Link 320B modem from my PC even if it's running in bridge mode), but I'm unable to find /goform/ChannelsSelection.
Also I'm not able to find the correct XXXXXXXX frequency.

I'll try to find another script, cause I don't think it's really necessary to send commands to the modem in my case (bridged) a simple wan disconnect/reconnect will be enough to change IP address.

Thanks

Max
 
Last edited:
Recconect.sh script... Help needed

It's seems is much more difficult to use a reconnect script that running pYload from scratch...

I'm trying to use this simple script:

Code:
#!/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

As I wrote before, to change my IP address I simply need to disconnect and reconnect my WAN if, cause my PPPoE connection is completely handled by router (modem is bridged).

If I run manually this script line by line it works fine.
Putting it into a sh file (with +x) I have redirect errors for every line contiaining >/dev/null 2>&1.
Changing every >/dev/null 2>&1 in >/dev/null2>&1 no more errors, and running this script from sh works fine, my IP address is changed everytime I start this script.

Now...
I configured pyLoad to use this script, enabled reconnect, and used the full path for Method.

I've tried to donwload a multiple-file from EasyBytez and this is my log:

Code:
EasybytezCom: You have to wait 12 minutes, 51 seconds till next download Download files instantly with Premium-account
759	24.04.2014 07:08:01	INFO	Starting reconnect
760	24.04.2014 07:08:17	INFO	Reconnected, new IP: 94.36.197.139
761	24.04.2014 07:08:19	INFO	Download starts: spopr.part10.rev
762	24.04.2014 07:08:20	WARNING	EasybytezCom: You have to wait 12 minutes, 30 seconds till next download Download files instantly with Premium-account
763	24.04.2014 07:08:21	INFO	Starting reconnect
764	24.04.2014 07:08:24	INFO	Reconnected, new IP: 94.36.197.139
765	24.04.2014 07:08:26	INFO	Download starts: spopr.part10.rev
766	24.04.2014 07:08:27	WARNING	EasybytezCom: You have to wait 12 minutes, 24 seconds till next download Download files instantly with Premium-account
767	24.04.2014 07:08:28	INFO	Starting reconnect
768	24.04.2014 07:08:34	INFO	Reconnected, new IP: 94.36.197.139
769	24.04.2014 07:08:38	INFO	Download starts: spopr.part10.rev
770	24.04.2014 07:08:39	WARNING	EasybytezCom: You have to wait 12 minutes, 11 seconds till next download Download files instantly with Premium-account
771	24.04.2014 07:08:40	INFO	Starting reconnect
772	24.04.2014 07:08:44	INFO	Reconnected, new IP: 94.36.197.139
773	24.04.2014 07:08:45	INFO	Download starts: spopr.part10.rev
774	24.04.2014 07:08:46	WARNING	EasybytezCom: You have to wait 12 minutes, 5 seconds till next download Download files instantly with Premium-account
775	24.04.2014 07:08:46	INFO	Starting reconnect
776	24.04.2014 07:08:53	INFO	Reconnected, new IP: 94.36.197.139
777	24.04.2014 07:08:53	INFO	Download starts: spopr.part10.rev

As you can see it seems that the script is started but the IP doesn't change....

Why if I run from shell the script my IP changes and this doesn't happens in pyLoad ?

Any help is appreciated.

Thanks.
 
Last edited:
Hello TeHashX,

On step below i got "error"

/usr/sbin/openssl req -new -key ssl.key -out ssl.csr

After run this all of the questions are skipped (i can't enter values). All fields left blank and without any errors openssl command stop working.
What can i do in this situation ?
Thanks for any reply.
 
Hello TeHashX,

On step below i got "error"



After run this all of the questions are skipped (i can't enter values). All fields left blank and without any errors openssl command stop working.
What can i do in this situation ?
Thanks for any reply.

What error?
 
What error?



Code:
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
. []:US
. []:.
. []:.
. []:.
. []:.

Please enter the following 'extra' attributes
to be sent with your certificate request
. []:
. []:
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top