Intro
When you have a NAS to store your resources, but many are from web drives (e.g. Baidu Net Disk, Aliyun Drive, etc.), how can you save the resources from web drives to NAS quickly and remotely?
RPC (Remote Procedure Call) is a protocol that allows a program on one computer to run code on another. It is a widely used download protocol and can be used by us to achieve the remote download goal.
Setups in DSM
- Open
Package Center
in DSM, and installContainer Manager
. - Open
Container Manager
, and go toRegistry
in the sidebar.
Unable to connect to the registry
If Docker Hub is banned in your region, please follow the cmliu/CF-Workers-docker.io to build a docker mirror website.
Then click
Settings
-Edit
, checkEnable registry mirror
, and add your docker mirror URL.
- Search
aria2-pro
inRegistry
, and download thep3terx/aria2-pro
image. - Run a container from the
p3terx/aria2-pro
image, add the resource limitation to 1GB, enter the same port inLocal Port
, map thedocker/aria2/config
to/config
,docker/aria2/downloads
to/downloads
(create first). - Search
aria2ng
inRegistry
, and download thep3terx/ariang
image. - Run a container from
p3terx/ariang
image, add the resource limitation to 1GB, and enter the same port inLocal Port
.
Unable to search the image in
Registry
Connect DSM via
ssh
, usesudo -i
to log in asroot
, usedocker pull p3terx/aria2-pro
anddocker pull p3terx/ariang
to download images.
- Edit the port forwarding in your router’s configuration, to access the AriaNg port from other machines.
Setups in local machine
- Open
<DSM IP>:<AriaNg Port>
, visit the AriaNg, and fill in theAria2 RPC Secret Token
inAriaNg Settings
-RPC
(defaults toP3TERX
, can be edited indocker/aria2/config/aria2.conf
). - Install Tampermonkey in your browser, and install the Panlinker script.
- Open your web drive, and configure your Panlinker settings (RPC address, port, token, etc.).
- Select the resources you want to download to NAS, click
RPC Download
, check the RPC parameters, and clickSend all links
. - Check the AriaNg and
docker/aria2/downloads
, your downloads have started!