aria2 is a lightweight multi-protocol & multi-source download utility operated in command-line. It supports HTTP/HTTPS, FTP, BitTorrent and Metalink. aria2 has built-in JSON-RPC and XML-RPC interface. You can manipulate aria2 via these interfaces.
Install aria2c on Arch Linux:
pacman -S aria2
Create ~/.aria2/aria2.conf and add this following commands.
# # ~/.aria2/aria2.conf # # Some Aria2c Tweaks log-level = error log = /download/directory continue = true file-allocation = none # max-overall-download-limit = 2M max-concurrent-downloads = 2 # Misc Proxy Settings (optional) connect-timeout = 30 lowest-speed-limit = 1M max-tries = 3 remote-time = true split = 2 timeout = 30 # Direct Downloads no-proxy = domain1.com, domain2.com, ip1, ip2 # Download Directory dir = /download/directory #input-file = /download/directory/links.txt # FTP Downloads with Proxy # ftp-pasv = false # ftp-type = ascii # ftp-reuse-connection = false ftp-user = username ftp-passwd = password ftp-proxy = http://server:port ftp-proxy-user = username ftp-proxy-passwd = password # HTTP Downloads with Proxy referer = Firefox enable-http-pipelining = true # use-head = false user-agent = Mozilla/5.0 http-proxy = http://server:port http-proxy-user = username http-proxy-passwd = password # Optionally Proxy Everything # all-proxy = http://server:port # all-proxy-user = username # all-proxy-passwd = password
Now to download with aria2c run command like this in your terminal:
// Download from WEB aria2c ftp://server:port/directory/file.tar.gz // Download from FTP aria2c http://domain.com/file.tar.gz // Download from BitTorrent aria2c http://domain.com/linux.torrent // Download from BitTorrent (Magnet URI) aria2c 'magnet:?xt=urn:btih:XXXXXXXXXXXXXXX' // Download from Metalink aria2c http://domain.com/linux.metalink // Download from list of files aria2c -i links.txt
- http://aria2.sourceforge.net/
- https://wiki.archlinux.org/index.php/Aria2
- http://en.wikipedia.org/wiki/BitTorrent_protocol_encryption