Git Product home page Git Product logo

aria2-pro-core's Introduction

Aria2 Pro Core

LICENSE GitHub All Releases GitHub Stars GitHub forks GitHub Workflow Status

Aria2 static binaries for GNU/Linux with some powerful feature patches.

GitHub release (latest by date)

Changes

  • option max-connection-per-server: change maximum value to
  • option min-split-size: change minimum value to 1K
  • option piece-length: change minimum value to 1K
  • download: retry on slow speed (lowest-speed-limit) and connection close
  • download: add option retry-on-400 to retry on http 400 bad request, which only effective if retry-wait > 0
  • download: add option retry-on-403 to retry on http 403 forbidden, which only effective if retry-wait > 0
  • download: add option retry-on-406 to retry on http 406 not acceptable, which only effective if retry-wait > 0
  • download: add option retry-on-unknown to retry on unknown status code, which only effective if retry-wait > 0
  • http: add option http-want-digest to choose whether to send the generated Want-Digest HTTP header or not (Not send by default)

Installing

Automatic script

curl -fsSL git.io/aria2c.sh | bash

Manual installation

wget https://github.com/P3TERX/Aria2-Pro-Core/releases/download/[version]/aria2-[version]-static-linux-[arch].tar.gz
tar zxvf aria2-[version]-static-linux-[arch].tar.gz
sudo mv aria2c /usr/local/bin

Uninstall

sudo rm -f /usr/local/bin/aria2c

Building

with script

Download script, execute script.

TIPS: In today's containerization of everything, this is not recommended.

git clone https://github.com/P3TERX/Aria2-Pro-Core
cd Aria2-Pro-Core
bash aria2-gnu-linux-build.sh

with docker

TIPS: Docker minimum version 19.03, you can also use buildx.

Build Aria2 for current architecture platforms.

DOCKER_BUILDKIT=1 docker build \
    -o type=local,dest=. \
    github.com/P3TERX/Aria2-Pro-Core

dest can define the output directory. If there are no changes, there will be an archive file in the current directory when the build is completed.

$ ls -l 
-rw-r--r-- 1 p3terx p3terx 3744106 Jan 17 20:24 aria2-1.35.0-static-linux-amd64.tar.gz

Cross build Aria2 for other platforms, e.g.:

DOCKER_BUILDKIT=1 docker build \
    --build-arg BUILDER_IMAGE=ubuntu:14.04 \
    --build-arg BUILD_SCRIPT=aria2-gnu-linux-cross-build-armhf.sh \
    -o type=local,dest=. \
    github.com/P3TERX/Aria2-Pro-Core

BUILDER_IMAGE variable defines the system image used for the build. In general, platforms other than armhf don't require it. BUILD_SCRIPT variable defines the script used for the cross build.

External links

Aria2

Used external libraries

Credits

Licence

GPLv3

aria2-pro-core's People

Contributors

p3terx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aria2-pro-core's Issues

SSL证书有问题 Exception: [SocketCore.cc:1018] errorCode=1 SSL/TLS handshake failure: protocol error

root@debian11:~# aria2c -x 32 -s 32 -k 512k 'https://mirror.sin11.sg.leaseweb.net/speedtest/1000mb.bin' -d /dev -o null --allow-overwrite=true --file-allocation=none --check-certificate=false --ca-certificate=/etc/ssl/certs/ca-certificates.crt

06/03 03:55:53 [NOTICE] Downloading 1 item(s)
[#a7956c 0B/0B CN:1 DL:0B]
06/03 03:55:55 [ERROR] CUID#7 - Download aborted. URI=https://mirror.sin11.sg.leaseweb.net/speedtest/1000mb.bin
Exception: [SocketCore.cc:1018] errorCode=1 SSL/TLS handshake failure: protocol error

06/03 03:55:55 [NOTICE] Download GID#a7956c0d208f3183 not complete: /dev/null

Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
a7956c|ERR | 0B/s|/dev/null

Status Legend:
(ERR):error occurred.

aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.
root@debian11:~#

在termux上无法使用

即使是arm64版本的的也无法在termux上使用,因为pkg安装的版本限制16线程,希望使用这个版本,但是下载release的使用则显示bad system call 尝试自己编译发现编译脚本代码似乎不适用于termux 请问如何解决呢?

Tcmalloc Request

Dear

In the aria2 project,there is a issue about the comparation about jemalloc with tcmalloc.
Seemed the tcmalloc is more effective.

恳请增加 M1 Mac Arm 平台的版本

恳请增加 M1 Mac Arm 平台的版本,homebrew安装的aria2不支持BT加密和文件预分配falloc,如果可以的话愿意付费支持。麻烦大佬!

下载间歇性中断

问题表现:
下载间歇性速度归0,期间RPC无响应,观察上游路由流统确认确实存在流量异常波动
image
image

环境信息:
k3s(docker部署),存储使用nfs v4(10G内网互联,读写测试无异常)

~#docker  version
Version:  0.1.0
RuntimeName:  containerd
RuntimeVersion:  v1.4.4-k3s1
RuntimeApiVersion:  v1alpha2

注入环境变量DISK_CACHE=256M
k3s上未配置CPU/内存使用限制
CPU型号为E5-2689,内存为ECC型号

Aria2-Pro版本:
p3terx/aria2-pro latest镜像(2021/6/29)

其他补充:
似乎下载速度高于某个值之后就会有较高概率出现这个问题,下载非常冷门的p2p资源或者对方服务器有较大限速的时候,则基本没见过

重启机器后闲置时CPU占用约3%

你好,我是通过优化脚本来装的aria2:

wget -N git.io/aria2.sh && chmod +x aria2.sh
./aria2.sh

安装完以后离线下载功能正常,没有下载任务时cpu也几乎没有占用,感谢分享👍。昨晚因其它原因需要重启linux,重启后发现即使没有任何任务,aria2c 一直会占用 2.6-3% cpu。通过 aria2.sh 停止服务后消失,重新启动后会继续持续占用 2.6-3% cpu。请问这会是什么原因?有办法可以解决它在机器重启后闲置时的异常cpu占用吗?谢谢。

另外我好像没有看到它的service文件,请问它是通过什么方式随着系统自启的呢?谢谢。

how to use proxy

国内的网络环境太差了,很多tracker服务器都被墙了,导致获取不到节点,怎么设置aria2 使用代理呢

英伟达官网下载驱动报错

2021-06-26 10:39:39.250833 [NOTICE] [RequestGroupMan.cc:424] Download GID#ea979756f01af11b not complete:
2021-06-26 10:39:46.058604 [ERROR] [AbstractCommand.cc:377] CUID#16 - Download aborted. URI=https://cn.download.nvidia.cn/Windows/471.11/471.11-notebook-win10-64bit-international-dch-whql.exe
Exception: [SocketCore.cc:1018] errorCode=1 SSL/TLS handshake failure: protocol error
2021-06-26 10:39:46.058894 [NOTICE] [RequestGroupMan.cc:424] Download GID#d3904eaa2433ca12 not complete:
2021-06-26 10:40:09.957011 [NOTICE] [SaveSessionCommand.cc:81] Serialized session to '/opt/appconfig/aria2-config/aria2.session' successfully.

启动aria2c时出现“段错误”

$ aria2c
段错误
$ sudo aria2c
段错误 (核心已转储)

使用sudo aria2c后,Ubuntu提示sudo已停止运行,并且询问是否报告错误,无法启动aria2c。
环境:Ubuntu 20.04.3 AMD64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.