Aria2 is opening in only Firefox , not in any other browser nor in any other interfaces except LAN. Don't know why.

Optionally you can use yaaw from any host in network

Here is a way to use aria2 with saving session and restarting on boot.

1. Install aria2 from webui 
                or
    by ssh 

opkg update
opkg install aria2

2. Create config file /etc/aria2.conf  as

daemon=true
enable-rpc=true
rpc-listen-port=6800
rpc-listen-all=true
dir=/mnt/sda1/downloads  //Change to your download directory
log=/var/log/aria2.log       //May change it
log-level=warn
dht-listen-port=6801
auto-save-interval=30

seed-ratio=1.0
seed-time=1460
max-upload-limit=20K
event-poll=select

continue=true
input-file=/etc/aria2.session    //Create a file to save session and name as you wish
save-session=/etc/aria2.session  //Same as the input file
max-concurrent-downloads=1

3. Create a init.d script at /etc/init.d/aria2  as

prgmname1="/usr/bin/aria2c"
shortname="aria2c"

options="--conf-path="

configfile="/etc/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

Remember to change permission to 755 i.e. rwxr-xr-x

4. Start 'aria2' in startup in webui of openwrt and to autostart add this line "/etc/init.d/aria2 restart" in Local Startup before 'exit 0'. So your Local startup will look like

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
/etc/init.d/aria2 restart
exit 0

Now open http://routerip/aria2/  to enter webui of aria2.


For yaaw [optional]

5. Download yaaw from https://binux.github.io/yaaw/ and place all the files from 'binux-yaaw-84a0fb8' folder in /www/yaaw (in Router).

6. Edit /etc/config/uhttpd by adding this line.

config uhttpd 'secondary'
    list listen_http '0.0.0.0:81'
    list listen_http '[::]:81'
    option home '/www/yaaw'
    option cgi_prefix '/cgi-bin'

7.Restart aria2 and uhttd and open http://routerip:81/ to enter into yaaw from any host.

Credit goes to discrucio for sharing yaaw and the aria2 yaaw project creators.

(Last edited by pppal on 25 Apr 2016, 07:32)