[GUIDE] Install pyLoad on 02.41.05-034

UPDATED 5-1-2013 Captcha Recognition 100% FIXED

All credit goes to audren at the mybookworldwiki forums with SLIGHT modifications made by me

 

Connect to the MBL with PuTTY or Terminal and install optware

wget http://mybookworld.wikidot.com/local--files/optware/setup-mybooklive.sh
sh setup-mybooklive.sh

Issue the following commands to ensure that we can use the command “ipkg” from any directory

echo "export PATH=$PATH:/opt/bin:/opt/sbin" >> /root/.bashrc
echo "export PATH=$PATH:/opt/bin:/opt/sbin" >> /etc/profile

Close PuTTY or Terminal (Very Important)

Open PuTTY or Terminal and connect to the MBL again to install dependencies and download the latest pyLoad

ipkg updateipkg install wget tesseract-ocr tesseract-ocr-lang-eng ossp-js unrarwget http://get.pyload.org/static/pyload-v0.4.9-noarch.ipk

 Install pyLoad

/opt/bin/ipkg install pyload-v0.4.9-noarch.ipk

 Edit HTTPRequest.py so pyLoad setup will run

nano /opt/share/pyload/module/network/HTTPRequest.py

 Add the following text right above import pycurl (Copy the text below and right click to paste the text in the PuTTY window)

import sys
sys.path.append('/opt/lib/python2.5/site-packages')

Hit control and o

Hit enter

Hit control and x

Start pyLoad setup

/opt/bin/pyLoadCore -s

SAMPLE pyLoad setup output (CHANGE AS YOU SEE FIT)

Do you want to change the config path? Current is /opt/share/pyload_config
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]): n

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

## Basic Setup ##

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

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): n

Language ([en], de, fr, it, es, nl, sv, ru, pl, cs, sr, pt_BR): en
Downloadfolder [Downloads]: /DataVolume/shares/Public
Max parallel downloads [3]: 3
Use Reconnect? (y/[n]): y
Reconnect script location [./reconnect.sh]: HIT ENTER HERE

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

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

## Webinterface Setup ##

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

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

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

Setup finished successfully.
Hit enter to exit and restart pyLoad

Start pyLoad Daemon

/opt/bin/pyLoadCore --daemon

 Create script to autostart pyLoad when you restart the MBL

nano /etc/init.d/pyload

 Copy this text and then paste it in the empty PuTTY window by simply right clicking your mouse button

#!/bin/sh
# Pyload daemon
#
# chkconfig: 345 99 30
# description: pyLoad is a fast, lightweight and full featured \
# download manager for many One-Click-Hoster, \
# container formats like DLC, video sites or just \
# plain http/ftp links
#
# 
# 
#

export PATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin
COMMAND="/opt/bin/pyLoadCore"

start() {
    echo "Starting PyLoad"
    cd /opt/bin/
    $COMMAND --daemon
}

status() {
    echo -n "Status of PyLoad: "
    cd /opt/bin/pyload
       STATUS=`$COMMAND --status`
       if [$STATUS == "False"] ; then
               echo "Not running"
       else
               echo "Running as PID $STATUS"
       fi
}
stop() {
    echo "Stopping PyLoad"
    cd /opt/bin/
    $COMMAND --quit
}

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

Hit control and o

Hit enter

Hit control and x

Update the script permissions and add it to startup

chmod 755 /etc/init.d/pyload
update-rc.d pyload defaults

Access pyLoad from your web browser using your MBL networkname or  ip:8000 (UNLESS YOU CHANGED THE PORT)

Login and at the TOP RIGHT CORNER it should say Plugins updated, please restart!

Logout of the Web Interface and SSH in and enter

/etc/init.d/pyload restart

 

Captcha Recognition 100% FIXED (OPTIONAL and only needed for a few servers)

The first command is VERY IMPORTANT and if not run could brick your MBL

To get python-imaging installed

rm -f /var/lib/dpkg/info/wd-nas.*nano /etc/apt/sources.list

 Comment out the wheezy repo like this by putting a # in the front of the bolded line

 We want to install from the squeeze repo (I tried from the wheezy repo and python imaging didn’t work)

deb http://ftp.us.debian.org/debian/ squeeze main
#deb http://ftp.us.debian.org/debian/ wheezy main
#deb-src http://ftp.us.debian.org/debian/ wheezy main
#deb http://ftp.us.debian.org/debian/ sid main

Hit control and o

Hit enter

Hit control and x

Now we want to run the following commands

apt-get updateapt-get install python-imaging

To see if python imaging is installed type

/opt/bin/pyLoadCore -s

Now select your language and then hit enter for the system check

Example of a GOOD system check

## 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: OK

 Hit enter again for the status report and when asked if you want to continue with setup type n and hit enter

DONE!

4 Likes

Thanks!

  1. Do plugins for it work? I wonder about 9kw.eu. It’s a captcha-recognition web service, via a plug in, so I don’t know if it would work…

  2. Is installing these custom apps “safe” for when a new firmware comes along? I mean, will updating the firmware to the next version be safe, brick the device or something?

Thanks again!!!

The plugins should be working, but like I said, Captcha Recognition is not working. I just popped in some standard download urls though and it worked like a champ. Maxed out my connection with no problems (30Mb)

You will be fine updating to new firmware. I have never ran into an issue upgrading my MBL with mods installed. This is about as safe as you can get installing pyLoad.

1 Like

Thanks again for the detailed guide; I forgot to add the “Kudos” and now I did!

The captcha recognition is made through the plugin (in that case, 9kw.eu), so the image is sent to their service and the solve code comes back, it’s not solved on the pyLoad client per se. Do you think that will still not work?

FIXED

I’m not sure but if you can try that would be great :slight_smile:

Here is the system report I get after the install

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

pycrypto: OK
py-OpenSSL: OK

py-imaging: missing
tesseract: OK

PyQt4: missing

jinja2: OK
beaker: OK
JS engine: OK

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

## Status ##

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

Featues missing:

no Captcha Recognition available
Only needed for some hosters and as freeuser.

FIXED

It may have something to do with py-pil not being installed… Still trying to track this down

EDIT:

MyBookLive:~# ipkg install py25-pil
Package py25-pil (1.1.7-1) installed in /opt/ is up to date.

 seems to be installed

@Timmy1024 How’s it working for you?

I followed your guide and (of course) it installed correctly as you wrote.

I’ve tried configured the plugin that solves the captchas (9kw.eu in my case), so I inputted my API key for it, submited the form, logged out and restarted it from the SSH terminal. Then I logged in again, added a download in a server where CAPTCHA is requested and after a while it errors out with:

failedNo captcha result obtained in appropiate time by any of the plugins. 6.70 MiBFreakshareCom

 

So, apparently, the plugin isn’t working. Do you have a clue why? A couple of times I got the “Plugins updated!!!” message in the top right, so I logged out and restarted the daemon. Afterwards, I noticed that more plugins were added, so it actually updated them. But still, it seems it isn’t working.

 

If is there anything I could do to troubleshoot it, please let me know. I rely on those plugins 100% for downloading, so without them I have no use for this pyLoad on NAS, which would be a shame :frowning:

 

Thanks

By the way, with “top” I’ve noticed pythong using ~9 MB of memory while idle… isn’t that way too much?

Well… I’ve looked at the 9kw account history and pyLoad was sending the captchas to solve to it. Now it started working; I see the captchas solved in my account, then after a while pyLoad receives it and starts downloading the file.

Hopefully all will work well like this after I recover my MBLD from brick

Transmission + pyLoad + all the other mods; nfo, I pretty much own my device to you! Hopefully all will go well when I restore the MBLD images from the mybookworld wiki page.

Nice, I’m new to pyLoad, if you could explain how the plugins work to me I would be most appreciative :slight_smile:

Sure!

Let’s say you add a file to download to pyLoad that is hosted in MegaShare (or any other of the zillion free servers with CAPTCHAS). When you add it, after pyLoad reachs it, a message on the top right of pyLoad will say something like “New CAPTCHA Available”. If you click it, you can manually solve the CAPTCHA.

In this case, I have configured the 9kw plugin, which is a service that solves CAPTCHAS for you (for a fee or by earning credits when you also solve CAPTCHA for other users). So, I can leave the downloads unnatended and they will be solved by 9kw. In this pyLoad scenario, the same “New CAPTCHA Available” message appeared, but since I had the plugin configured, after a while it dissapeared (as if somebody solved the CAPTCHA), and then it started downloading OK. Magic, I tell you! :slight_smile:

Also, in the plugins section of pyLoad is an “Extract RAR” plugin, which is involved with extracting after downloading. In my test, I was downloading a small .rar file with CAPTCHA. First, the plugin for the CAPTCHA worked and solved it and after it downloaded, I ended up with one .rar in the destination folder and also a subfolder with the same name as the file of the content extracted, so both seem to have been worked correctly!

I’m surely amazed, thank you very much nfo

1 Like

Thanks for your very detailed explanation :slight_smile:

I reinstalled after my image OS restore, thanks again :slight_smile:

Was that reboot of the whole OS really needed, or is it only to trigger the auto run on startup? I remember the first time I installed this guide skipping that command and it worked fine.

Thanks nfo

Yeah it’s not really needed. I will fix it when I can get to my desktop. Thanks Timmy :slight_smile:

Guide updated 5-1-2013

python-imaging is now 100% working!

It is very important you install it from the SQUEEZE repo

Comment out any wheezy repos in you sources.list and run an apt-get update

Another great finding… thanks nfo!

Do you know if the command to rm the wdnas* files has any side, undesirable effect on the system?

Nothing I have run into thus far :slight_smile:

Updated guide to fix the sources.list for a working install of python imaging :slight_smile:

wheezy has to be commented out in your sources.list at /etc/apt/sources.list

I explain how in the guide

Hi nfodiz,

it´s a great “howto”. Thanks!

Can you add a “howto” - Fritzbox Reconnect ?

Frank