Aria2 Download Manager through Entware

Aria2 is a file sharing program.

When you run a torrent, its data will be made available to others by means of upload.

Any content you share is your sole responsibility.

This version is for mipsel devices like RT-N16, RT-N66U, RT-AC66U...

1 - Install Entware from here

2 - Setup Lighttpd Web Server from here

3 - Install and start Aria2

opkg install aria2
/opt/etc/init.d/S81aria2 start

4 - Download WebUi for Aria2

wget -c -O /opt/tmp/webui-aria2.zip https://github.com/ziahamza/webui-aria2/archive/master.zip --no-check-certificate
unzip /opt/tmp/webui-aria2.zip -d /opt/tmp/ && rm /opt/tmp/webui-aria2.zip
mv /opt/tmp/webui-aria2-master /opt/share/www/aria2

5 - Open in web browser 192.168.1.1:81/aria2, go to Settings, Connection Settings and input "Passw0rd" as secret token, and press on Save Connection configuration (this and other settings can be removed/changed by editing /opt/etc/aria2.conf file)

aria2connection

Default download folder is /opt/var/aria2/torrents and may be changed from gui or editing /opt/etc/aria2.conf

6 - Happy downloading...

  • Trunder

    Thank you for your sharing.I have a question.Aria2 was intalled and run
    successfully in Local。But if I accessed aria2 from remote (My router is
    Asus Rt-N16,I can acess it with DDNS),The aria2 gave me this message:"Oh
    Snap!

    Could not connect to the aria2 RPC server. Will retry in 10 secs. You

    might want to check the connection settings by going to Settings >

    Connection Settings!".What's wrong with this?Thank you!

    • Trunder

      I have known the reason.I have added the follow to file "/jffs/scripts/firewall-start"

      iptables -I INPUT -p tcp --destination-port 6800 -j ACCEPT
      iptables -I INPUT -p udp --destination-port 6800 -j ACCEPT

      The problem is solved.

  • Trunder

    Thank you for your sharing.I have a question.Aria2 was intalled and run successfully in Local。But if I accessed aria2 from remote (My router is Asus Rt-N16,I can acess it with DDNS),The aria2 gave me this message:"Oh Snap!
    Could not connect to the aria2 RPC server. Will retry in 10 secs. You
    might want to check the connection settings by going to Settings >
    Connection Settings!".What's wrong with this?Thank you!

    • dg33k

      Hello! In order to access the RPC from WAN, you have to open the corresponding port (default is 6800) in the firewall. To do so, edit or create the firewall-start script and add port 6800 to it.

      nano -w /jffs/scripts/firewall-start
      #!/bin/sh
      iptables -I INPUT -p tcp --destination-port 6800 -j ACCEPT
      chmod a+rx /jffs/scripts/firewall-start
      sh /jffs/scripts/firewall-start

  • Test user

    test comment

  • Hello,

    Every time the router restart and the aria2c is dead.

    > /opt/etc/init.d/S81aria2 check
    > Checking aria2c... dead.

    Anything can be done to fix this? thx

    • Something wrong with the latest firmware, you are not alone :)
      Add to /jffs/scripts/post-mount right after
      ln -sf $1/entware /tmp/opt
      fi

      sleep 30
      /opt/etc/init.d/rc.unslung restart

  • user

    Hi,friends,sorry for bad english.
    aria2 can run a script like transmission as the download is complete,How to add a email notification like that transmission?
    thank you in advance!

    • Add this line to /opt/etc/aria2.conf
      on-download-complete=/PATH_TO_YOUR_EMAIL_SCRIPT

      Use transmission script but you have to make some adjustments
      on-download-complete=/jffs/scripts/torrent-done-email.sh

      And restart aria2
      /opt/etc/init.d/S81aria2 restart

  • Fanatico_PTY

    with this command "wget: not an http or ftp url: https://github.com/ziahamza/webui-aria2/archive/master.zip" i'm getting this: wget: not an http or ftp url:https://github.com/ziahamza/webui-aria2/archive/master.zip

  • I will but I have a long list of requests by then :)

    • Hadi

      Thank you for it. as always appreciated.

  • Hadi

    Hello ,
    Thank you very much for your hard work , I am waiting for optware or debian version of this great download manager,

SoftEther VPN Running on AsusWRT Routers
Minidlna UPnP Media Server through Debian Jessie Arm
How to Mount Samba Shares inside Chrooted Debian
Nginx Web Server with PHP Support through Optware-NG
Minidlna UPnP Media Server through Debian Jessie Arm
How to Mount Samba Shares inside Chrooted Debian
Spreed WebRTC server and web client
Asterisk VoIP Server running on AsusWRT Routers
SoftEther VPN Running on AsusWRT Routers
NZBGet through Entware
Minidlna UPnP Media Server through Debian Jessie Arm
NetData System Monitor Entware

SUBSCRIBE

To be notified by email when a new tutorial is posted :)

Thanks for Subscribing! I'll keeping you up-to-date with latest tutorials!

Something went wrong, try again...