Skip to content

Instantly share code, notes, and snippets.

@dinigo
Created December 14, 2014 17:56
Show Gist options
  • Save dinigo/d2d6bbacd3ba7b2c9bce to your computer and use it in GitHub Desktop.
Save dinigo/d2d6bbacd3ba7b2c9bce to your computer and use it in GitHub Desktop.
Aria2c config files and init scripts
# place under ${HOME}/.aria2/
# Daemonize, rpc and session save.
# The daemon is launched by the rpc query and
# stops when all downloads are completed.
continue
daemon=true
on-download-complete=exit
dir=/home/**youruser**/path/to/download/folder
save-session=/home/**youruser**/.aria2/session
input-file=/home/**youruser**/.aria2/session
max-concurrent-downloads=99999
seed-ratio=0
max-connection-per-server=4
bt-save-metadata
rpc-save-upload-metadata
enable-rpc=true
rpc-listen-all=true
rpc-user=**youruser**
rpc-passwd=**yourpassword**
rpc-listen-port=**yourport** # should be same as in the upstart script
# place under ${HOME}/.init/aria2.conf
# Starts aria2c daemon when the port 1234 is accesed
description "aria2 startup script"
start on socket PROTO=inet PORT=1234 # use the port you want
exec /usr/bin/aria2c
@Baneeishaque
Copy link

How to use theses files in windows?

@Baneeishaque
Copy link

is rpc-listen-port is mandatory?

@irungentootoo
Copy link

irungentootoo commented Jan 15, 2018

create file c:\Users\username\.aria2\aria2.conf
and set some options, in my case i'l set default proxy in command line it will be like this: aria2c.exe --all-proxy=http://myproxyaddr:8080 http://downld/url.file
in aria2.conf it was single line:
all-proxy=http://myproxyaddr:8080
w/o --
else lines u can see in https://linux.die.net/man/1/aria2c

@vegetaz
Copy link

vegetaz commented May 3, 2019

How to use aria2c.conf on Windows 10?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment