Install pyLoad on Synology Nas drive

In the next article I will describe the steps to install the Download Manager pyLoad in a hard Synology disk. In my case, a Ds111 Synology disk, with ARM Cpu.

The process of installation and configuration information has been obtained from the following pages :

The Download Manager integrated into DiskStation "Download Station"" (See), allows multiple formats download : BitTorrent, FTP, HTTP, eMule, RapidShare, Megaupload, etc.
Not bad, the problem is that the download files from sites like RapidShare or Megaupload, It is only possible through Premium accounts.

Looking for an alternative, to download this type of sites, without Premium accounts, I found the software pyLoad; and information to install and configure it in a Synology Nas drive.

As a prerequisite, It is necessary to have modified the Synology Server, to install packages ipkg; the steps were described in a previous article (See).

We connect by Ssh, and instaleramos packages "python", py25-crypto, py25-curl, py25-openssl, py25-pil, tesseract-ocr, tesseract-ocr-lang-eng, OSSP js" with the commands :

ipkg install python
ipkg install py25-crypto
ipkg install py25-curl
ipkg install py25-openssl
ipkg install py25-pil
ipkg install tesseract-ocr
ipkg install tesseract-ocr-lang-eng
ipkg install ossp js
ipkg install unrar

Then download the source files of the latest version of pyLoad :

cd pyload/

A continuación cambiaremos el directorio de configuración :

cd module/config/
echo "/volume1/pyload" >> configdir

Daremos permisos de ejecución a pyLoad :

chmod x /opt/pyload/

Iniciaremos pyLoad :

python /opt/pyload/

Al ser la primera ejecución, se iniciará el asistente de configuración, el cual se entiende bastante bien, aunque aquí os dejo el Asistente en Ingles :

Choose your Language / Wähle deine Sprache ([in], de, it, pl, fr, cs, es): {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.
## System Check ##
Python Version: OK
pycurl: OK
sqlite3: OK

pycrypto: OK

py-imaging: OK
tesseract: OK

PyQt4: missing

django: OK
JS engine: OK

System check finished, hit enter to see your status report.
## 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 /opt/pyload/.pyload
If you use pyLoad on a server or the home partition lives on an internal flash it may be a good idea to change it.
Change config path? (y/[n]): {ENTER}

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

## Basic Setup ##

The following logindata are only valid for CLI and GUI, but NOT for webinterface.
Username [User]: MyPersonalUser {ENTER}
Password: MyPasswordForUser {ENTER}
Password (again): MyPasswordForUser {ENTER}

Language ([in], de, it, pl, es, cs, fr): {ENTER}
Downloadfolder [Downloads]: /mnt/HD/HD_a2/Downloads/ {ENTER}
Max parallel downloads [3]: {ENTER}
Use Reconnect? (y/[n]): {ENTER}

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

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

## Webinterface Setup ##

Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_admin_log
Creating table pyload_prefs
Installing index for auth.Permission model
Installing index for auth.Message model
Installing index for admin.LogEntry model
If you see no errors, your db should be fine and we’re adding an user now.
Username [User]: MyPersonalUserForWebInterface {ENTER}
Superuser created successfully.
Password: MyPasswordforWeb {ENTER}
Password (again): MyPasswordforWeb {ENTER}

Activate webinterface? ([y]/n): {ENTER}

Listen address, if you use or localhost, the webinterface will only accessible locally.
Address []: {ENTER}
Port [8000]: {ENTER}

Setup finished successfully.
Hit enter to exit and restart pyLoad

A continuación, crearemos el script de inicio, para que el Servicio pyLoad se inicia automáticamente al encender el disco.
Para ello, crearemos el script en la carpeta /opt/etc/init.d/ :

nano /opt/etc/init.d/

Código del Script :

# Start / Stop Script for PyLoad http://localhost:8000
DAEMON="python /opt/pyload/ –daemon"
start() {
       echo "Starting Service: $NAME"
       $DAEMON $DAEMON_OPTS | awk '{print $3}' >/var/run/
stop() {
       kill `cat /var/run/`
case "$1" in
               sleep 4
               echo "Usage: $0 (start|stop|restart)"
               exit 1
# End

Daremos permisos de ejecución al script de inicio :

chmod x /opt/etc/init.d/

We can create an icon for accessing the Web administration of pyLoad, Since the DiskStation Panel (DSM)

CD /usr/syno/synoman/webman/3rdparty
tar xvfz webman.pyload.tar
RM webman.pyload.tar

But we have configured access to the website of pyLoad with the port by default (8000), We will have to edit the application.cfg configuration file ; and change the parameter port :

Nano /usr/syno/synoman/webman/3rdparty/pyload/application.cfg


* At the time of writing this article, newly available version 0.4.6, and also in format ipkg ( )
I have not had time to test the installation (much more simple), but the installation commands would be the following :

ipkg install tesseract-ocr tesseract-ocr-lang-eng ossp js unrar
ipkg install pyload-v0.4.6-noarch.ipk
pyLoadCore -s

El ultimo comando es el de configuración.

About rickcpp

Ciudadano de Burgos, aficionado a la Informática.