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
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.

Should be an easier way to restart wan with a single input like "restart-wan" but I can't remember now.
 
ASUS RT-N56U

Works like a charm on ASUS RT-N56U with custom firmware 3.4.3.7-072

For newbies like me just a tip:
install openssl-util using opkg to generate ssl keys.

pyLoad with ExtractArchive Plugin and miniDLNA pointing to pyLoad downloads folder is awesome to watch tv series and movies.

Thanks for the excellent tutorial.
from Brazil...
 
Hello,
i have install optware pyload before i install th is entware Version of pyload.
i delete only the folders on the hdd.
My Router is N66U, RAM usage is 170mb.

I become this error on extract rar files.

Code:
29	14.10.2014 11:53:49	INFO	Package finished: 4u0t3h82z45fflg
830	14.10.2014 11:53:49	INFO	ExtractArchive: Package 4u0t3h82z45fflg queued for later extracting
831	14.10.2014 11:53:49	INFO	ExtractArchive: Check package 4u0t3h82z45fflg
832	14.10.2014 11:53:49	INFO	ExtractArchive: Dlg21WBLDGx6O.part01.rar | Extract to /mnt/sda1/downloads/4u0t3h82z45fflg/
833	14.10.2014 11:53:49	ERROR	ExtractArchive: Dlg21WBLDGx6O.part01.rar | Unknown Error | [Errno 12] Cannot allocate memory
834	14.10.2014 11:53:49	ERROR	ExtractArchive: Dlg21WBLDGx6O.part01.rar | Extract failed
 
No more access to WebUI after Firefox 33 upgrade

I had to downgrade to FireFox version 32.0.2, cause 33 doesn't allow me to connect to my local PyLoad/Entware installation using https with the following error:

Code:
sec_error_invalid_key


**** UPDATE ****

I've just found a way to solve this problem.

Follow the tutorial in the first post, but at step 4, change the ssl keys creation code as shown here:

Code:
/usr/sbin/openssl genrsa -out ssl.key [COLOR="Red"][B]1024[/B][/COLOR]
/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

Then reboot your router.

Now I'm again able to access to the PyLoad WebUI from Firefox 33.

Max
 
Last edited:
Ntfs will never work reliably on linux.
Thanks for the response; 2 questions:
  1. How can I tell the current formatting of my attached HDD? I believe its ntfs and works flawlessly?
  2. If i try installing pyload with ntfs will it work, just not reliably?
Thanks!
 
Thanks for the response; 2 questions:
  1. How can I tell the current formatting of my attached HDD? I believe its ntfs and works flawlessly?
  2. If i try installing pyload with ntfs will it work, just not reliably?
Thanks!
1) Check with "mount" command
2) Try and see
 
Lot of problems in the last days...
Freshly reinstalled but at first system check, py-OpenSSL is missing.
Manually installed but I'm not able to connect using HTTPS to my pyload GUI...
 
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.
This is openssl utility from firmware. I've updated pyload to last available revision and made some dependencies optional (including openssl-utils). Pyload package will show following note after installation:
Code:
opkg install pyload
...
Configuring pyload.
Please install optional pyload dependencies first.

* for SSL connection with WebUI:
opkg install pyopenssl openssl-utils

* for several hosters, ClickNLoad feature:
opkg install duktape

* for captcha recognition for a small amount of plugins:
opkg install python-imglib tesseract

* for RSDF/CCF/DLC support to decrypt container files:
opkg install python-crypto

* for using ExtractArchive plugin:
opkg install unrar unzip

And only then configure pyload by
pyload --configdir=/opt/var/pyload

If last Entware update broke SSL WebUI, run:
Code:
opkg --force-depends remove pyopenssl
opkg install pyopenssl
 
This is openssl utility from firmware. I've updated pyload to last available revision and made some dependencies optional (including openssl-utils). Pyload package will show following note after installation:

Code:
admin@MyAsus:/tmp/home/root# opkg install openssl-utils
Unknown package 'openssl-utils'.
Collected errors:
* opkg_install_cmd: Cannot install package openssl-utils.

And this should be an error in filename i think, it should be openssl-util instead of openssl-utils.


Code:
admin@MyAsus:/tmp/mnt/MYASUS/entware/share/python/pyload# python pyLoadCore.py --changedir --configdir=/opt/etc/pyload/.pyload
python: can't open file 'pyLoadCore.py': [Errno 2] No such file or directory
admin@MyAsus:/tmp/mnt/MYASUS/entware/share/python/pyload#

This because pyLoadCore in not installed in /opt/share/python/pyload but in /opt/share/pyload
Finally.... S51pyload should be edited to use the correct configdir.

After that... my pyload starts, but I'm still unable to connect using https from Firefox...

Code:
(Codice di errore: ssl_error_rx_record_too_long)

http connection works fine.
pyload client on my Android phone seems working fine with SSL...

This is drivng me crazy...

Going a little bit out of topic... after all these troubles, now I'm not also able to run amule due to a missing libcrypto++8...
 
Last edited:
After that... my pyload starts, but I'm still unable to connect using https from Firefox...

Code:
(Codice di errore: ssl_error_rx_record_too_long)
Installed pyload from scratch. WebUI works fine in FF with SSL. Please read tips from pyload carefully.

Going a little bit out of topic... after all these troubles, now I'm not also able to run amule due to a missing libcrypto++8...
Code:
admin@RT-N66U:/tmp/home/root# opkg install amule
Installing amule (2.3.1-1) to root
...
Configuring amule.
admin@RT-N66U:/tmp/home/root# ldd `which amuled`
  libpthread.so.0 => /opt/lib/libpthread.so.0 (0x2aac0000)
  libiconv.so.2 => /opt/lib/libiconv.so.2 (0x2aae5000)
  libz.so.1 => /opt/lib/libz.so.1 (0x2abd8000)
  libcrypto++.so.9 => /opt/lib/libcrypto++.so.9 (0x2abfc000)
  libwx_baseu_net-2.8.so.0 => /opt/lib/libwx_baseu_net-2.8.so.0 (0x2b0f2000)
  libwx_baseu-2.8.so.0 => /opt/lib/libwx_baseu-2.8.so.0 (0x2b12e000)
  libstdc++.so.6 => /opt/lib/libstdc++.so.6 (0x2b27f000)
  libm.so.0 => /opt/lib/libm.so.0 (0x2b37a000)
  libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0x2b396000)
  libc.so.0 => /opt/lib/libc.so.0 (0x2b3b9000)
  libdl.so.0 => /opt/lib/libdl.so.0 (0x2b46a000)
  ld-uClibc.so.0 => /opt/lib/ld-uClibc.so.0 (0x2aaa8000)
admin@RT-N66U:/tmp/home/root# amuled
2015-08-05 08:35:58: Initialising aMuleD 2.3.1 compiled with  v2.8.12
2015-08-05 08:35:58: Checking if there is an instance already running...
2015-08-05 08:35:58: No other instances are running.
!2015-08-05 08:35:58: ERROR: WARNING Warning! You are running aMule as root.
!2015-08-05 08:35:58: Doing so is not recommended for security reasons,
!2015-08-05 08:35:58: and you are advised to run aMule as an normal
!2015-08-05 08:35:58: user instead.

--------------------------------------------------
Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.
--------------------------------------------------
...
Try install it from scratch too.
 
Please read tips from pyload carefully.

Can you please be more detailed ?
I cleaned my entware installation, installed pyload and relative deps, as suggested by pyload after installation.
Then I changed config dir and followed the tutorial in first page, but using /opt/share/pyload instead of /opt/share/python/pyload.
pyLoad cfg has been done using my configdir /opt/etc/pyload/.pyload instead of pyload --configdir=/opt/var/pyload.
Installed pyopenssl is 0.13.1-1, pyLoad 0.4.9-20150804-1.
No success also cleaning pyopenssl deps...

Try install it from scratch too.

Code:
admin@MyAsus:/tmp/home/root# opkg update
Downloading http://entware.wl500g.info/binaries/entware/Packages.gz.
Updated list of available packages in /opt/var/opkg-lists/openwrt.
admin@MyAsus:/tmp/home/root# opkg list amule*
amule - 2.3.1-1 - A multi-platform eMule-like ed2k client
amule - 2.3.1-2
admin@MyAsus:/tmp/home/root# opkg install amule
Installing amule (2.3.1-2) to root...
Collected errors:
* opkg_download_pkg: Package amule is not available from any configured src.
* opkg_install_pkg: Failed to download amule. Perhaps you need to run 'opkg update'?
* opkg_install_cmd: Cannot install package amule.
admin@MyAsus:/tmp/home/root#

What the hell means ???
Is available after a package list update but not availabe for download ?

Thanks again for your help
 
Similar threads
Thread starter Title Forum Replies Date
Igs One comprehensive Adguard Home installation tutorial (amtm). Asuswrt-Merlin AddOns 2

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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