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 Centerin DSM, and installContainer Manager. - Open
Container Manager, and go toRegistryin 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-proinRegistry, and download thep3terx/aria2-proimage. - Run a container from the
p3terx/aria2-proimage, add the resource limitation to 1GB, enter the same port inLocal Port, map thedocker/aria2/configto/config,docker/aria2/downloadsto/downloads(create first). - Search
aria2nginRegistry, and download thep3terx/ariangimage. - Run a container from
p3terx/ariangimage, add the resource limitation to 1GB, and enter the same port inLocal Port.
Unable to search the image in
RegistryConnect DSM via
ssh, usesudo -ito log in asroot, usedocker pull p3terx/aria2-proanddocker pull p3terx/ariangto 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 TokeninAriaNg 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!