Aria2 Download

0 views
Skip to first unread message

Dagny Westall

unread,
Aug 5, 2024, 12:35:33 AM8/5/24
to nousmavispa
FullyFeatured BitTorrent Client.All features you want in BitTorrent client are available: DHT,PEX, Encryption, Magnet URI, Web-Seeding, Selective Downloads,Local Peer Discovery and UDP tracker.

Metalink Enabled.aria2 supports The Metalink Download Description Format(aka Metalink v4),Metalink version 3 andMetalink/HTTP.Metalink offers the file verification, HTTP/FTP/SFTP/BitTorrent integrationand the various configurations for language, location, OS, etc.


This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2 of the License, or (atyour option) any later version.


I'm not familiar with the program, but attempting to research it, I couldn't find a single word explaining the difference, and the terms are used interchangeably. Web sites (including the official project sites), have a title containing one term and content containing the other, with no explanation. My guess from the context is that aria2 is the project and aria2c is the executable.


The proposed wiki edits that raised the question were an attempt to copy the aria2 wiki and excerpt content to the aria2c tag. This appears to be a case where the separate tags are not serving a useful purpose.


If I was familiar with the program, I would just fix it (and I'll be happy to do that if somebody can explain the difference). So I'm raising the question so people familiar with it can either clarify or do the honors.


The command you use to run the utility is aria2c. From that point of view, using it as the main tag looks more reasonable. At the same time, Google search gives much more results for aria2. Stack Overflow has only one tag: aria2.


aria2 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.


"No same file splittingThis functionality makes curl do URLs in parallel. It will still not download the same URL using multiple parallel transfers the way some other tools do. That might be something to implement and offer in a future fine tuning of this feature."


As far as I know, curl never added "same file splitting" to accelerate downloads. This is omitted from the comparison table and is a key feature present in aria2. For example, you can use -x 5 for faster downloads, e.g.


Hello,

I started to setup a home server.

I'm studying to solve problem regarding systemD to start aria2c as a daemon (it's a download manager). This would give a managed way to get files downloaded, avoid overcrowded situation.


For what I made myself, I tried several configurations.

I removed aria2@, I can't imagine what is related to which user, therefore I don't need a daemon for only a particular user.

I check all the possible options regarding permissions, none is good.

Now I'm trying as root user and permissions set to that. still fail.

My suspects are about the command line ExecStart=/usr/bin/aria2c --conf-path=/home/%i/.aria2/aria2.conf. Maybe dashes are not interpreted correctly. I don't kwon how to set debug to higher level, in order to catch the error.

I read some page about systemD, I don't get what is Environment statement used for.

So my point should start aria2 daemon and allow some environment variable to change time to time in case the file destinations need to be changed, without changing the aria2.service file.

I'll try a different approaching method.


Adjust the setting for your own taste, but don't ad options which are mentioning file paths, because otherwise the launching will fail.

Last but not least, using XML-RP Calls, adjust the remaining options. It might be the web user interface as herein mentioned


NOTE: the statements marked in bold face are those that makes the difference. None about After=dhcpcd.service above. Time maybe adjusted some little, but I don't have a rush to have daemons immediately after startup.


AFAIR you also need to set up the rpc options within the aria web UI. So go to Settings and then Connection Settings in aria2 Web UI and put your IP address and any other rpc settings from the config and it should connect nicely.


You need to set RPC settings in aria2 Web UI also. aria2 Web UI works through RPC so you will need to set the IP and RPC-PORT to whatever you set in the config. Have a look in the config and figure out your RPC settings for Web UI.


So it works now, but my only issue is that it has to loop through the input file and check each download, making sure they're downloaded, until it finds where it left off. So for only 4 files downloaded out of 10 (all are under 1gb) it started at 15:51:52 and only found the aria2 file(#5/10) to resume at 16:00:16. Sometimes I'm dealing with 20+ files, or files larger than 1gb, and I'm unsure if that'll also change for the download size itself. This could make a large delay of like an hour potentially. Is there anyway to force it to search for an existing aria2 file in the directory and immediately start there, or do I just have to deal with it or remove finished files from the text file to avoid this?


I have 15,000 files and ended up writing a wrapper around aria2c that checks first if a file is already there and that the file size is the same and skips files like this. It may be that aria2c is the wrong tool for this job. Have you had a look at lftp and it's "mirror" command?


I am not familiar with aria2 but im having issues with sonarr passing to rutorrent when encrypted. I hear aria2 can fix the magnet links so it will work. Its even going to be added to sonarr eventually. Will this docker be able to monitor my rutorrent docker and fix the magnet links? And if so can someone point me to how to do this? Sorry if this is the wrong place to ask.


1 file-allocation=falloc: Recommended for newer file systems such as ext4 (with extents support), btrfs or XFS as it allocates large files (GB) almost instantly. Do not use falloc with legacy file systems such as ext3 as prealloc consumes approximately the same amount of time as standard allocation would while locking the aria2 process from proceeding to download.


This configuration can be used to start aria2 as a service. It can be used in conjunction with several of the frontends listed below. Note that rpc-user and rpc-pass are deprecated, but most frontends have not been ported to the new authentication yet. Do not forget to change user, password and Download directory.


pacman -Sp lists the URLs of the packages on stdout, instead of downloading them, then pipes it to the next command. Finally, the -i in aria2c -i - switch to aria2c means that the URLs for files to be downloaded should be read from the file specified, but if - is passed, then read the URLs from stdin.


Some sites may filter the requests based on your User Agent, since aria2 is not a well known downloader, it may be good to use a most known downloader or browser as the Aria's User Agent. Just use the -U option like this:


As I'm using this in a batch-file, I thought about using a for /f loop to extract the data and then parse it. As far as I know, you can only use static data in a for /f loop, ie. it doesn't support formatting in realtime output from a command.


I can't seem to find any documentation on how to change the format using command line options, but do command line options exist to change the format of the console readout? or would I have to create modified version of aria2 and recompile?


I've been trying to turn into a workflow a script I wrote to start the super-nice and useful command-line downloader aria2. For some reason I don't seem to be getting any result, so maybe someone can help me?


The reason it's like this is because by default, Alfred doesn't import your profile settings. I believe by default that Alfred only has /sbin, /bin, /usr/sbin, and /usr/bin. This obviously would exclude the path that your file is installed in so it would indeed require the full path to run this application.


Aria2-Explorer captures browser's download task and exports it to Aria2 via JSON-RPC interfaces to complete download task. Aria2 is a lightweight multi-protocol & multi-source command-line download utility. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink. Usage Procedures:1. For Windows, please download Aria2 Manager: -manager. Other platform, please download Aria2 utility: For Windows, please run Aria2Manager.exe. Other platform, please run Aria2 in the Terminal with typing aria2c --enable-rpc.3. Install this Chrome extension.4. Enable auto-capture on the extension options page and configure others as you need. (For Motrix user, please use :16800/jsonprc as the RPC URL)After these steps, you could enjoy the multi-threads and BT download experience inside the Chrome. Warning: Please turn off auto-capture function, when you are using other extension to download network resources. Otherwise, there will be conflict and exception arisen.Features: [ ZERO collection of user data and privacy ]1. Auto capture browser download tasks - Capture notification - Support magnet links - Toggle auto-capture by shortcut (Default: Alt + A) - Set all Aria2 options manually before download - Filter task by the domain, file extensions or file sizes Filter priority: domain > file-ext > file-size, white-list > black-list2. Auto-select Aria2 RPC server by matching the preset download URL pattern3. Built-in Aria2 front-end: AriaNG enhanced, multiple present styles: popup, new tab, new window4. Synchronize and store all settings on the cloud5. Support for zh-CN/zh-TW/en languages6. Monitor Aria2 download status via icon badge7. Batch export webpage (Image Audio Video Magnet) links from context menu8. Receive download requests from other extensions9. Support shortcuts in the options page (Save: Alt + S Reset: Alt + R Download: Alt + J Upload: Alt + U)10. Download via browser if Aria2 is not connectedUpdate log: -Explorer/releasesContribution is welcome.Github: -ExplorerTips for business: To potential acquirers/cooperators: This extension is not for sale nor collecting user's privacy and also not inject content to user's web result. Pure business promotion is welcome, thanks.

3a8082e126
Reply all
Reply to author
Forward
0 new messages