Results 1 to 5 of 5

Thread: [HowTo] install pyLoad

  1. #1

    Post [HowTo] install pyLoad

    (the original HowTo was created by FastJack and is also available in German: http://wl500g.info/showthread.php?p=166837#post166837)
    but, since there is the ipk - its much easier..


    pyLoad is a free and open source downloader for 1-click-hosting sites like rapidshare.com or uploaded.to.
    Link-Crypt services like lix.in as well as the Link-Container Files RSDF, CCF and DLC are also supported.

    This HowTo will show, how to install and configure pyLoad an your Asus router.

    1. requirements
    You will need a wengi-like configured oleg firmware or later (or any other system where you can install Python)
    and the packages below:
    Code:
    ipkg install ossp-js
    iokg install tesseract-ocr-lang-eng
    ipkg install tesseract-ocr
    ipkg install unrar
    ipkg install wget-ssl
    2. download pyload

    Code:
    wget http://get.pyload.org/static/pyload-v0.4.8-noarch.ipk
    3. install pyload

    Code:
    ipkg install pyload-v0.4.8-noarch.ipk
    Some packages will be installed too, python for example.

    4. configure pyload
    From now on you don't need to change any xml anymore, as pyLoad provides a nice assistant and the config tab on the WebIF.
    At first just run the pyLoadCore in setup-mode.
    Code:
    pyLoadCore -s
    Here you edit pyLoads config for your personal needs. (mostly self explaining)
    at least define IP and PORT of the Webinterface. The buildin WebIF has an issue, use the threaded.

    If you want to use the reconnect capability you need to create the reconnect-script, this can vary depending on your environment.
    In this example we're assuming the WL-500G is establishing the internet connection at itself.
    Create the reconnect.sh with the following content:
    reconnect.sh
    Code:
    #!/bin/sh
    killall -1 pppd >/dev/null 2>&1
    sleep 5s
    ping -c 1 www.heise.de >/dev/null 2>&1
    and make it executable:
    Code:
    chmod +x reconnect.sh
    Use the path to this file in settings/reconnect tab.

    5. Start-Stop Script
    Code:
    cd /opt/etc/init.d
    nano S90pyloadstart
    insert this:
    Code:
    #!/bin/sh
    
    prefix="/opt"
    PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin
    
    start() {
            echo "starting pyLoad"
            pyLoadCore --daemon
            }
    
    stop() {
            echo "stopping pyLoad"
            pyLoadCore --status | xargs kill -9
            }
    status() {
            pyLoadCore --status
            }
    
    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
    make executable:
    Code:
    chmod +x /opt/etc/init.d/S90pyloadstart
    For further configurations such as download times etc. use the Webinterface on the address : port you've defined.

    If you'll get any errors use this thread or consult the pyload-devs on their site.

    Thats it
    Support the pyLoad guys and enjoy http://pyload.org/

    up2date

    gm
    Last edited by !gm; 22-11-2011 at 10:55. Reason: v0.4.8

  2. #2
    Here is a package, which helps you automate pyLoad installation. To complete steps 1, 2, 5 and 7 type
    ...
    Last edited by ryzhov_al; 22-06-2011 at 18:53. Reason: Package deleted. There is official http://get.pyload.org/static/pyload-v0.4.6-noarch.ipk

  3. #3

    set server.event-handler to poll

    Hi !gm,

    I've tried following test downloads with the bulid-in Web interface:

    http://www.share.cx/files/6160714584...10_v2.zip.html
    http://www.share.cx/files/0503799806...sf_v2.zip.html
    http://www.share.cx/files/8326381133...10_v2.zip.html

    While downloading the first file the progress bar suddenly disappeared when aprox. 15MB of download finished. I'm still trying to figure out why. My question is:

    Shall the line 50 in lighttpd_default.conf look like this?:

    server.event-handler = "poll" # needed on OS X

    thx. in advance

    mikro

  4. #4
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by mikro View Post
    Shall the line 50 in lighttpd_default.conf look like this?:

    server.event-handler = "poll" # needed on OS X
    Yes
    the old ipkg package had build in e-pol, but it has been removed in newer versions.
    Since lighttpd uses e-poll by default, the default needs to be changed to the system build in poll

  5. #5

    reconnect.sh

    Thanks fo FAQ!
    Quote Originally Posted by !gm View Post
    Create the reconnect.sh with the following content:
    reconnect.sh
    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
    A pppd can reconnect by catching SIGHUP:
    Code:
    #!/bin/sh
    killall -1 pppd >/dev/null 2>&1
    sleep 5s
    ping -c 1 www.heise.de >/dev/null 2>&1

Similar Threads

  1. Русские имена торрентов
    By Mirage-net in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 110
    Last Post: 18-06-2010, 14:16
  2. IPKG INSTALL ERRORS
    By Fullback in forum WL-700g Firmware Discussion
    Replies: 9
    Last Post: 13-07-2009, 18:49
  3. Replies: 2
    Last Post: 04-11-2008, 18:21
  4. install rTorrent
    By Peter81 in forum WL-700g Firmware Discussion
    Replies: 2
    Last Post: 21-06-2008, 15:45

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •