Aria2 Split Download

0 views
Skip to first unread message

Elcira Rohla

unread,
Jan 25, 2024, 2:08:46 PM1/25/24
to vetandewe

That implies that you have only one link in each line, and aria2 will use 16 streams for each of 16 files it is downloading. If you have multiple mirrors, put all mirrors for each file in one line and add -s N, where N is the maximum number of mirrors.

Arai2 is a lightweight multi-protocol & multi-source command-line download utility. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink. aria2 can be manipulated via built-in JSON-RPC and XML-RPC interfaces.

aria2 split download


Download File ✪✪✪ https://t.co/euRhjnuGL9



Firstly, under a folder, such as: "C:\", create a new folder. For example: "C:\aria2". Inside this folder, put the "aria2c.exe". Under the same directory, create:

aria2 is a lightweight multi-protocol and multi-server command linedownload tool. aria2 supports HTTP, HTTPS, FTP, BitTorrent and Metalink andcan be manipulated via integrated JSON-RPC and XML-RPC interfaces.-aria2.sourceforge.netAria2 can use use metalinks files to simultaneously download ISOs frommultiple servers as well as serve as a complete bit torrent client making aria2a great utility. The client uses less then ten(10) megabytes of RAM so aria2 canrun on an appliance or atom box without issue. Aria2, the CLI command isaria2c, can also be scripted. You can run external scripts or commands before,after or during a file or bittorrent download which make this tool incrediblypowerful. In fact, we have found aria2 works so well, we have retired rTorrent in favor of aria2.

Aria2 is a simple text based, command line interface. If you have used wgetor curl in an xterm then aria2 looks very similar. Pass the aira2c command aurl or torrent file and the program will start downloading the file. You willsee status messages about the download speed and any notices or errors theprogram encounters. We really like the simplified interface as it is easy touse in a "screen" or "tmux" session.

A browser based Web GUI is also available. Take a look at the webui-aria2 project located atsourceforge. webui-aria2 offers a very nice minimalist real time interface toaria2 running in daemon mode. The instillation of webui-aria2 is straightforward and instructions are in the link.

The following is the aria2.conf configuration file we use and it needs to beplaced in $HOME/.aria2/aria2.conf . We recommend using a config file so you donot have to keep adding command line arguments for every download. We findaria2 is quite friendly to those wishing to customize the client. Theconfiguration file may look long, but we tried to add insights and comments asbest we could.

There are many examples of how to run aria2 on the aria2 wikiand we suggest you check their page after you are done here. The Wiki assumesyou have not setup an aria2.conf configuration file yet and shows each linewith command line arguments. Since we have already setup a aria2.conf file allof our preferred configuration options are already set; there is no need to usecommand line arguments. Aria2 is now incredibly easy to use by simply passing aURL, a bittorrent URL, a magnet link or pre-downloaded bit torrent file. Hereare some examples.

Why does aria2 trigger "Listen queue overflow" warnings ?Aria2's max queue length is set to one (maxqlen=1) by default. When you see"Listen queue overflow" lines in /var/log/messages it means aria2 can nothandle that amount of extra incoming connections queued from connectingclients. After the connection has been established it is placed in the listenqueue of the listen socket. To see the current listen queues state, you may runthe command "netstat -Lan".

On FreeBSD, changing the kern.ipc.somaxconn to a larger value will not help.The somaxconn is the system level accept queue and the OS is not the problemhere, the aria2 application is. Here is an example log line. The"0xfffff800bd648620" string is the pcb id for the current running instance ofaria2.

At this point we have not found a solution to make aria2 accept moreconnections at a faster pace. The queue cap may be a framework problem orprogramming limit introduced by the developer to accept all connectionsserially.

Can I background the aria2c client processes when not using daemon mode ?Yes, you can background the client, but we suggest using "screen" or "tmux"instead. Before starting aria2c start a virtual terminal session using "screen"or "tmux", we like tmux. Once inside the virtual terminal run the aria2 commandand use "Ctrl-b d" to detach the tmux session. aria2c will run in the terminalin the background and you can re-attach the session using "tmux a".

A config file is required to pass on basic startup parameters. In the above example, we referenced the config file in /etc/aria2.conf. I use the following config with enforced two-way encryption on all data exchange:

Once this is done, make sure you have allowed incoming TCP connections on port 6800 of your VPS (or whichever port you have specified in the aria2.conf file), and configure your GUI frontend accordingly.


What is aria2?

aria2 is the next generation open-source download utility with lots of features and options and can download files and torrents in very efficient manner. You can read more about aria2 at aria2.github.io and can check documentation for latest version here.


How to download faster with aria2 on Android?

On Android, use an open source app Aria2App which can be downloaded from F-Droid or Play Store to install and control aria2 in GUI.

On first run, select In-App downloader and on next screen select the latest binary i.e. aria2 1.34.0 at the time of writing. Select In-App downlaoder again after binary download completes

Due to the distance from Server and higher latency in Mobile Networks, download over single connection can be very slow and may not use the available bandwidth in full potential. Multi-Connection download over aria2 eliminates that limiting factor and you get best possible speed from your network.

Above screenshots are from my otherwise not-so-fast Jio LTE network and the 1.2 GiB file used for testing can be downloaded from here.

Beware that it will take a long time. If the file is corrupted, I suggest you try downloading it with aria2. In my hands it is much faster than wget because it uses multiple connections, and also has the ability to restart so there should be no issues with corruption.

aria2 is a Linux command line counterpart of Windows Thunder/IDM, which supports URL, BT/PT, metalink etc. Make it simple, configure a GUI like Webui-aria2 or YAAW based on its builtin RPC (JSON or XML) support.

Make sure rpc-listen-port is allowed on host by iptables (on OpenWRT or PC). If --rpc-listen-all is True, aria2 listens incoming JSON-RPC/XML-RPC requests on all network interfaces. We can strict incoming requests to a specific interface by -d host-ip.

Refer to webui_aria2c. Remember that we set enable-rpc=true above to manage aria2 on RPC interface. For example, you configure aria2 at home OpenWRT. You are in office and would like to file an AV download by webui interface.

If webui is hosted on public IP (VPS/OpenWRT), don't set those variables as it can be compromised. For example, if someone got your router IP and webui HTTP Server port, he could access to your aria2 daemon.

We need different set of arguments for different downloads. For example, to download PT resources, we should camouflage aria2 as uTorrent. But options for PT impact BT download performance. We can set an alias for PT by --conf-path.

df19127ead
Reply all
Reply to author
Forward
0 new messages