Results 1 to 4 of 4

Thread: [HowTo]Aria2 Torrent, FTP, HTTP mit Remote Control

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336

    [HowTo]Aria2 Torrent, FTP, HTTP mit Remote Control

    Dieses HowTo beschreibt den Einsatz des hervorragenden Linux-Downloaders Aria2, speziell für etwas ältere, leistungsschwache Systeme, einschliesslich WL-HDD. Für neuere Modelle (=>RT-N16) wird ebenfalls das exakt gleiche Aria2 verwendet. Lediglich zusätzliche PHP Webinterfaces können auf den neueren Systemen zusätzlich installiert werden.
    Aria2c kann Torrents, HTTP, FTP, MultiHTTP/FTP, Metalinks und Magnetlinks und verbraucht dabei unglaublich wenig CPU-Resourcen als auch wenig Speicher und ist dabei noch unglaublich schnell.

    Vorbedingungen: Oleg's oder Ily's Firmware auf dem Router
    (WL-Serie; für RTN16 oder 2.6er Kernel bitte die Pfade von /tmp/mnt/disc0_3 zu /tmp/mnt/disca_3 anpassen)
    Installation nach Wengi
    Ein Win32 System (PC/Note oder Netbook)
    Grund-Kenntnisse mit vi (Linux-Editor)
    Die Installation ist einfach:
    Code:
    ipkg update
    ipkg install aria2
    mkdir -p /opt/var/log/aria2
    mkdir -p /opt/etc/aria2
    mkdir -p /tmp/mnt/disc0_3/Downloads
    touch /opt/etc/aria2/aria2.conf
    
    vi /opt/etc/aria2/aria2.conf  ###SWITCH TO INSERT MODE WITH 'i' ######
    daemon=true
    enable-rpc=true
    rpc-listen-port=6800
    rpc-listen-all=true
    dir=/tmp/mnt/disc0_3/Downloads
    log=/opt/var/log/aria2/aria2.log
    log-level=warn
    dht-listen-port=6801
    auto-save-interval=30
    max-overall-upload-limit=15K
    max-upload-limit=10K
    max-overall-download-limit=100K
    max-download-limit=40K
    seed-ratio=1.0
    seed-time=1460
    event-poll=select
    ######end of file - store with 'ESC :wq'########
    
    
    touch /opt/etc/init.d/S85aria2
    vi /opt/etc/init.d/S85aria2
    
    ###SWITCH TO INSERT MODE WITH 'i' ######
    # For Olegs & Ily's FW for Asus Routers
    # store this script in /opt/etc/init.d if you've installed optware
    
    # Prgmname=/full_path/Prgmname
    prgmname1="/opt/bin/aria2c"
    shortname="aria2c"
    
    #one option 
    options="--conf-path="
    
    # configfile=/full_path/configfile
    configfile="/opt/etc/aria2/aria2.conf"
    
    start() {
            # Code here to start the program
            logger -t ARIA2C "Starting aria2c daemon "
            ${prgmname1} ${options}${configfile}
    	sleep 5
            return 0
    }
    
    stop() {
            # Code here to stop the program and check it's dead
            if [ -n "`pidof $shortname`" ]; then
               logger -t ARIA2C "Shutting down aria2c daemon "
                /usr/bin/killall $shortname
               sleep 5
            fi
            return 0
    }
    ##########################start here##########################
    case "$1" in
      start)
            start
            ;;
      stop)
            stop
            ;;
      restart)
            logger -t ARIA2C "$shortname restart"
            stop
            sleep 2
            start
            ;;
      *)
            echo $"Usage: $0 {start|stop|restart}"
            exit 1
    esac
    sleep 1
    exit
    #### end of file S85aria2 ####
    ### Enter 'ESC' and ':wq' to store and leave vi ###
    
    chmod 755 /opt/etc/init.d/S85aria2
    reboot

    Die Up und Download-limits müssen natürlich auf ihre Bandbreite angepasst werden, Die Einheit ist byte/sek und seed-time in Minuten.
    Mehr Optionen gibt es hier: http://linux.die.net/man/1/aria2c

    Jetzt müssen noch die Ports 6881-6999 und 6801 (dht) for TCP and UDP in der Firewall geöffnet werden.
    Falls ein Zugriff über DynDNS erfolgen soll ist Port 6800 für ein Remote Control
    ebenfalls zu öffnen. Dann bitte unbedingt einen rpc-user und password in der aria.conf verwenden.

    Nun brauchen wir noch die RemoteControl.
    Berücksichtigen sie, das es ein Win32 System sein muss!
    (Es gibt aber auch für Win64 ein experimental Prgm. - bitte danach googeln)

    Laden sie die Software von hier http://sourceforge.net/projects/aria...2.exe/download
    Installieren sie diese Software - starten sie AriaRemoteControl und tragen sie die Adresse (IP) unter Tools/Options von ihrem Aria-Router unter Remote Host ein.

    Bitte nicht vergessen, aria2c ist unglaublich flexibel.
    Anbei noch ein Screenshot......

    Hier ein super Wiki: http://sourceforge.net/apps/trac/aria2/wiki

    Falls jemand avbf2_6 einsetzt, finden sie die notwendigen Änderungen für Aria2c im Anhang.

    Das war es auch schon.....
    Viel Spass
    Newbiefan
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by newbiefan; 07-01-2012 at 08:58.
    Alle HowTo's, all howto's

    RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
    RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
    Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n

Similar Threads

  1. [HowTo] Aria2 Torrent, FTP, HTTP downloader with Webinterface
    By newbiefan in forum WL-500gP Tutorials
    Replies: 19
    Last Post: 10-08-2014, 10:55
  2. ftp mit dyndns per webinterface (oleg) einrichten
    By Harry01 in forum German Discussion - Deutsch (DE)
    Replies: 32
    Last Post: 01-05-2010, 08:40
  3. Full server config: Samba ftp http xmail mysql forum motor
    By KisVuK in forum WL-500gP Tutorials
    Replies: 14
    Last Post: 15-12-2008, 21:34
  4. HTTP server instead of FTP
    By lale in forum WL-500gP Q&A
    Replies: 1
    Last Post: 02-04-2008, 09:33
  5. Internet mit laufendem Torrent ausgelstet
    By rocker in forum German Discussion - Deutsch (DE)
    Replies: 22
    Last Post: 13-08-2007, 09:52

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
  •