Aria2
Aria2支援HTTP、torrent、magnet多種下載方式,相比transmission只支援種子,顯得更為實用。
sudo apt-get install -y aria2#安裝失敗,可按照提示,修復源:sudo apt-get update --fix-missing#配置檔案,https://raw.githubusercontent.com/acgotaku/BaiduExporter/master/aria2c/aria2.confsudo mkdir /etc/aria2sudo touch /etc/aria2/aria2.sessionsudo sh -c 'echo "daemon=true#rpc-user=user#rpc-passwd=passwd#設定加密的金鑰rpc-secret=your_secretenable-rpc=truerpc-allow-origin-all=true#rpc-secure=true#rpc-certificate=/home/pi/aria2.crt#rpc-private-key=/home/pi/aria2.keyrpc-listen-all=true#rpc-listen-port=6800max-concurrent-downloads=5continue=truemax-connection-per-server=5min-split-size=10Msplit=3max-overall-download-limit=0max-download-limit=1Mmax-overall-upload-limit=1Mmax-upload-limit=0#lowest-speed-limit=0#referer=*dir=/home/pi/Downloads#disk-cache=0#enable-mmap=truefile-allocation=noneinput-file=/etc/aria2/aria2.sessionsave-session=/etc/aria2/aria2.sessioncheck-certificate=false#bt加速用種子伺服器,https://github.com/ngosang/trackerslist#bt-tracker=">/etc/aria2/aria2.conf'
#設定開機啟動sudo sh -c 'echo "[Unit]Description=Aria2 ServiceAfter=network.target[Service]User=piType=forkingExecStart=/usr/bin/aria2c --conf-path=/etc/aria2/aria2.conf[Install]WantedBy=multi-user.target">/lib/systemd/system/aria2.service'
#重新載入並啟動sudo systemctl daemon-reloadsudo systemctl enable aria2sudo systemctl status aria2sudo systemctl restart aria2
Aria-NG
#下載Aria-NGaria2c https://github.com/mayswind/AriaNg/releases/download/1.0.0/AriaNg-1.0.0.zip -d /home/pi#解壓cd /home/piunzip AriaNg-1.0.0.zip -d /var/www/html/aria#需事先安裝好web伺服器,比如nginx#sudo systemctl enable nginx
瀏覽器中輸入地址及路徑,出現介面,如圖:
此時,設定在“Aria2 RPC金鑰”一欄出填入配置在/etc/aria2/aria2.conf的配置項rpc-secret的值即可正確連線。
PTsudo sh -c 'echo "# PT一般對分享率有要求,不限制分享時間和分享率。避免達到其中一條,停止做種seed-ratio=0# 模擬utorrentpeer-id-prefix=UT341-user-agent=uTorrent/341(109279400)(30888)# 避免tracker懷疑節點作弊,禁用本地發現enable-dht=falseenable-dht6=false# 載入種子讓下載完成的任務繼續做種force-save=true">>/etc/aria2/aria2.conf'