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 :

http://setaoffice.com/2011/04/10/how-to-install-pyload-on-a-synology-diskstation-ds211j/
http://forum.synology.com/enu/viewtopic.php?f=38&t=34051
http://www.synology-wiki.de/index.php/PyLoad
http://nas-tweaks.net/220/installation-of-pyload-on-optware/

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/opt
wget http://get.pyload.org/get/src/0.4.6/
unzip pyload-src-v0.4.6.zip
RM pyload-src-v0.4.6.zip
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/pyLoadCore.py

Iniciaremos pyLoad :

python /opt/pyload/pyLoadCore.py

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.
{ENTER}
## System Check ##
Python Version: OK
pycurl: OK
sqlite3: OK

pycrypto: OK
OpenSSL: OK

py-imaging: OK
tesseract: OK

PyQt4: missing

django: OK
JS engine: OK

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 /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 127.0.0.1 or localhost, the webinterface will only accessible locally.
Address [0.0.0.0]: {ENTER}
Port [8000]: {ENTER}

Setup finished successfully.
Hit enter to exit and restart pyLoad
{ENTER}

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/S99pyload.sh

Código del Script :

#!/bin/sh
#
# Start / Stop Script for PyLoad http://localhost:8000
#
prefix="/opt"
PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin
NAME="PyLoad"
DAEMON="python /opt/pyload/pyLoadCore.py –daemon"
DAEMON_OPTS=""
#
#
start() {
       echo "Starting Service: $NAME"
       $DAEMON $DAEMON_OPTS | awk '{print $3}' >/var/run/pyload.pid
}
#
stop() {
       kill `cat /var/run/pyload.pid`
}
#
case "$1" in
       start)
               start
               ;;
       stop)
               stop
               ;;
       restart)
               stop
               sleep 4
               start
               ;;
       *)
               echo "Usage: $0 (start|stop|restart)"
               exit 1
               ;;
esac
#
# End

Daremos permisos de ejecución al script de inicio :

chmod x /opt/etc/init.d/S99pyload.sh

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

CD /usr/syno/synoman/webman/3rdparty
wget http://DL.dropbox.com/u/3001640/webman.pyload.tar.gz
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 ( http://pyload.org/download )
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
wget http://get.pyload.org/static/pyload-v0.4.6-noarch.ipk
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.