aria2: An Ultra Fast Download Manager On Linux
aria2 is a brutally fast and very feature rich download manager available for Linux platform. It can handle almost any kind of download you can ever imagine (FTP, HTTP, BitTorrent, SFTP, ...).
You can install it by simply running sudo apt-get install aria2 at the command line or by using Ubuntu Software Center (if you're on Ubuntu).
How To Use
First add the following line at the bottom of your .bashrc (or .bash_profile depending on your distro).
This practically replaces the original aria2c command with a pre-configured one that
- tries to resume the download in case of a disconnect or failure
- for each download establishes up to 5 simultaneous connection to the server
- downloads a file using 10 connections/segments
- retries infinitely in case of failure to connect to the server
Remember to close the terminal and open a new one, for this change to take effect.
Single (ad-hoc) Downloads
Just grab the link from Firefox or whatever browser you use, open a terminal and type aria2c THE_URL, replacing THE_URL with the URL you wish to download.
Create a file, for example urls.txt, and copy-paste all the links you wish to download into the file, each URL on a separate line. Then open a terminal and run aria2c -i urls.txt.
There are cases that you wish the download start at a certain time and terminate at another certain time. For example, your ISP may have granted you free unlimited download during certain hours. In such cases simply use cron.
To schedule aria2, in a terminal run EDITOR=gedit crontab -e to edit your crontab in gedit. Add the following two lines at the bottom of the file, save it and exit gedit --just remember to change YOUR_USERNAME to your real username.
This is scheduling aria2 to run every day at 2AM, downloading all the links in the file urls.txt and stop downloading at 7AM.
Image source NASA