Aria2
Aria2
- Can download file from Baiduyun or 115
Steps
- All the config file see on this page.
Header text | Header text | Header text |
---|---|---|
Install | apt-get install aria2 | - |
create session file | sudo touch /home/pi/aria2.session | - |
create config file | sudo nano /home/pi/aria2.conf | use file below |
Test Run
- run with conf file - sudo aria2c --conf-path=/home/pi/aria2.conf
- run with conf file - sudo aria2c --conf-path=aria2.conf
- run in daemon mode - sudo aria2c --conf-path=/home/pi/aria2.conf -D
- run in daemon mode - sudo aria2c aria2.conf -D
Set auto start
- sudo nano /etc/init.d/aria2
- sudo chmod +x /etc/init.d/aria2
- sudo update-rc.d aria2c defaults
run as service
- sudo service aria2 start
- sudo ps x |grep aria2
|-
| set as auto start || sudo update-rc.d aria2 defaults || -
|-
| set web -> install nginx || apt-get install nginx ||
|-
| config nginx ||
- nano /etc/nginx/sites-available/default
- set port from 80 to 8080
|| |- | get YAWW || wget http://binux.github.io/yaaw/ || |- | install YAWW || unzip to nginx html folder -> /usr/share/nginx/www/ or /var/www/html/ || |- | restart nginx to try run YAWW || service nginx restart || |- | install webui-aria2 || https://github.com/ziahamza/webui-aria2.git || |- | debug || if use HDD external -> set file-allocation=falloc to file-allocation=none ||
conf
dir=/home/pi/downloads
file-allocation=falloc
continue
log-level=error
max-connection-per-server=4
summary-interval=120
daemon=true
enable-rpc=true
rpc-listen-port=6800
rpc-listen-all=true
max-concurrent-downloads=1
disable-ipv6=true
disk-cache=25M
timeout=600
retry-wait=30
max-tries=50
Web GUI Frontend
webui-aria2
- git clone https://github.com/ziahamza/webui-aria2.git
- apt-get install nodejs
- node node-server.js