install Pyload on NAS Synology – DSM 5.1

Two months ago I bought a new Network Attached Storage.
For my purposes, I choose a NAS Synology DS213J with two hd Western Digital RED of 3TB for each, to have 3TB of free space with a best RAID1 “bit-to-bit” backup.

So this special NAS, has a custom Linux OS with a wonderful web GUI to manage every part and to use various applications created for it, like a Download Manager, a Video Streamer, a Cloud Station and so on. Using Linux and having so many applications (made by the producer or by the community of users) I hoped to find a version of Pyload made for it. But I was wrong, because there is a Pyload made for Synology, but it is for older version of Synology OS: on my OS, DSM version 5.1, it doesn’t work.

So, in this forum I found a working solution.


Following, the steps:


1- For first you need to install the official app of “Synology Pyload” developed by the pyload Team.
This app is a 3rd party community package, that means that is developed by the community and not directly from Synology. So, to have this app into the installation list on your DSM 5.1 operating system you need to open the DSM Package Center, click on the Settings tab, then on the item Package Sources, Add button and insert the url Now, you can find the Pyload app into the Community item, into the Package Center, and then try to install it on the DSM 5.1. On the DSM 5.1 the installation process fails, but it necessary to do this before the next steps.


2- The second step is to do the standard setup by command-line of Pyload, as on a normal linux machine.
So, for this you must connect on remote terminal to your NAS through ssh, using the root user (pay attention!), that has the same password of the admin user (is the same user, but for the terminal is needed the username root to have correct administration priviledges). After the ssh connection, you should have a particular terminal like this:


To have a normal sh terminal, type the command su and then you’ll get the root terminal on your Synology NAS.
Then, the linux command to correct install Pyload on your DSM 5.1 is:

# /volume1/@appstore/pyload/bin/python /volume1/@appstore/pyload/pyload/ -s

ATTENTION: to run Pyload and its setup process you need to have PYTHON installed. I installed both the app “Python3” and the “Python Module” found into the producer’s app list

After that command, you must have to insert all the Pyload configurations, like the Port of the NAS on which start the Pyload daemon (to connect to Pyload via browser), the SSL security connection settings and so on.

Then, you can try to start Pyload using

# /volume1/@appstore/pyload/bin/python /volume1/@appstore/pyload/pyload/

and verify it connecting via browser to the IP of the NAS at the daemon port specified. Mine is at:


3- Configuration of the Pyload user.
Pyload needs a special configuration command to add a Pyload user (even if is the first or the only user), done with the command:

# /volume1/@appstore/pyload/bin/python /volume1/@appstore/pyload/pyload/ -u


4- Automate the startup of Pyload
To automate the startup of Pyload at the startup of the machine, you need to create the new script file:

# touch /usr/syno/etc/rc.d/

and write into that file this script:

COMMAND="/volume1/@appstore/pyload/bin/python /volume1/@appstore/pyload/pyload/"

start() {
        echo "Starting PyLoad"
        $COMMAND --daemon

status() {
        echo -n "Status of PyLoad: "
        STATUS=$($COMMAND --status)
        if [[ $STATUS = "False" ]]; then
                echo "Not running"
                echo "Running as PID $STATUS"

stop() {
        echo "Stopping PyLoad"
        $COMMAND --quit

case "$1" in
                sleep 4
                echo "Usage: $0 (start|stop|restart|status)"
                exit 1
exit 0

Then this file need the execution priviledges

# chmod +x /usr/syno/etc/rc.d/

and on the next system startup Pyload will be launched automatically!
To start now pyload, the command is:

# /usr/syno/etc/rc.d/ start


VERY INTERESTING: after this setup, Pyload can be used also by the Synology app, that opens a window with the same web GUI in execution at the port specified!!


Enjoy! 😉


remote Xfce4 desktop on ArchLinux

Hi everybody!

Few weeks ago I installed Arch linux on my RaspberryPI, to try this particular distro. ArchLinux is a “nerd” distro of Linux, where you must setup every single part that you need to use.
(You can find instructions to setup ArchLinux on Raspberry here)

In this post I don’t want to explain the setup of every single parts into ArchLinux, because there are already many guides for that (best guide is, but I want to talk about a particular situation like mine, where there is a Raspberry PI without monitor and keyboard, with only the ethernet cable to talk with any user, and the need to use the GUI of the Raspberry.
So the question is how get remote Xfce4 desktop on ArchLinux through SSH terminal?.

For first, you need to connect to your remote SSH terminal and install Xorg and Xfce4 on the machine. You also need to install vncserver provided by the package tigervnc.

After that, you only need to create the file ~/.vnc/xstartup (if already exists, delete it and create a new file), and into that file you must write:

exec /bin/sh /etc/xdg/xfce4/xinitrc

that starts an Xfce4 session at every VNC connection of the user owner of that home sub-folder.

The last operation to do is to start on the remote machine a vnc remote desktop, using the command

$ vncserver

that print the number ID of the new remote desktop created.
Then, you can connect to that remote desktop using a simple VNC program, like xvnc4viewer or the graphical remote desktop client remmina of Ubuntu, using as remote IP the format <remoteIP>:<dekstopID> like this:

or, otherwise if you need to setup the connection PORT, you only have to sum the standard VNC port 5900 to the ID of the desktop (if the new desktop created is the number 2 the remote port will be 5902).

Enjoy! 😉


PS: to delete the created remote dekstop (for example the desktop 2), the command is

$ vncserver -kill :2