Nextcloud is a very excellent private cloud storage service. Using the Snap installation method provided by the official website, you can set up the Nextcloud cloud storage platform in almost a few minutes. Nextcloud provides a rich application interface. You can not only use Nextcloud as a network disk, but also view documents, pictures, and play video and music online.

Because of the powerful functions of Nextcloud, many friends may wonder whether they can use Nextcloud to build an offline download platform. In fact, as the predecessor of Nextcloud, OwnCloud already provides offline download plug-ins, but the installation and configuration are more complicated. So far, Nextcloud does not provide available offline download tools.

However, we can completely use Aria2 with NextCloud to achieve the effects of offline downloading and storage and online viewing and playback. Aria2 is an excellent lightweight command line download tool that supports multiple protocols. Its advantages are: multi-threaded connections make full use of bandwidth; it does not take up too many resources when running, usually between 4MB and 9MB; and it is a full-featured BitTorrent client. ; Support RPC interface remote control.

AriaNg is an Aria2 front-end management tool running on the server. It can add download tasks on the web page without using Aria2 commands. Of course, this article also introduces a method for you to install Aria2 WebUI locally to control Aria2 offline download locally. In short, with good offline downloading, Nextcloud can be transformed into an office and entertainment platform.

Nextcloud offline download construction method-integrate Aria2 and AriaNgAria2 WebUI to achieve offline download

For more practical website building tools and programs, you can check out:

  1. Installation and use of HashOver free open source PHP comment system - self-built comment system instead of third party
  2. Lsyncd builds synchronization mirror-use Lsyncd to achieve real-time synchronization between local and remote servers
  3. Summary of VPS hosting providers and computer rooms connected to CN2 lines - reference manual for identifying genuine and fake CN2 line hosts

PS: Updated on October 14, 2017, Friends who are interested in integrating Raspberry Pi and Nextcloud can check out: Raspberry Pi Installation NextCloud Tutorial - Self-built home private cloud LAN sharing.

1. Installation and use of Nextcloud

I have gone through the installation and use of Nextcloud in detail in the following two articles. Friends who like to mess around can build their own LNMP and LAMP to manually install Nextcloud. For friends who just want to get started with Nextcloud immediately, it is recommended to use the one-click installation method.

  1. Nextcloud is an excellent choice for personal cloud storage: one-click automatic installation method and cloud disk usage experience
  2. Manual installation tutorial of NextCloud - a free and open source private cloud storage network disk that can play pictures and music

2. Install Aria2 on VPS

Execute the command to install:

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/aria2.sh && chmod +x aria2.sh && bash aria2.sh
#备用地址:https://www.ucblog.net/wzfou/aria2.sh

After running the script, you can install and upgrade Aria2.

6. Local + Aria2 + Baidu Netdisk

If you don’t have a VPS host or Linux, it doesn’t matter. Here is a method to run Aria2 locally, supporting Mac and Windows. It also provides a Chrome plug-in to help you directly download files from Baidu Netdisk. address, skip the Baidu network disk client, and directly use Aria2 to download network disk files at high speed.

  1. Download: https://www.ucblog.net/wzfou/Aria2.zip

Download the installation package and there are three folders after decompression. Plugin is a Chrome plug-in. After I have used it, it may not be effective to obtain Baidu network disk. You can use the method of installing Oil Monkey introduced in this article to solve the problem. Mac OS installs Aria2GUI.dmg, which is located in the Aria2 for Mac folder on the network disk.

For Windows users, enter Aria2 for Windows and extract the file aria2.rar in the folder D:aria2, that is, D:aria2. Then create a Downloads folder in the root directory of drive D. This folder is where the files you download are stored.

Go to D:aria2, double-click the HideRun.vbs file, and then enter the task manager to see that the aria2c.exe process is running. Find aria2 control interface.rar, unzip the file at any location, and then double-click the index.html file, your default browser will open.

Next, you will enter the Aria2 WebUI control panel and add the download address, which is the same as the above operation. However, in order to download files from Baidu Netdisk, you need to install the tampermonkey application on Chrome, and then go to greasyfork.org to download the installation script. As long as it is related to Baidu, you can install it.

Now use a browser to open Baidu Netdisk, and then a button to export the download link will appear on the download page.

Copy the download link address, and then put it in Aria2 WebUI and AriaNg to start calling Aria2 download.

If the speed is too slow, you can modify the number of download connections.

You can also modify the downloaded Agent to avoid Baidu's blockade or avoid some pages that are not allowed to be downloaded by crawlers.

7. Summary

As you can see from the above, when we integrate Nextcloud and Aria2, we just combine their respective advantages. Aria2 loads download files and Nextcloud can manage and view files. The control panel of Aria2 can be completely separated from the web server and can be run directly locally.

You can even put it in Nextcloud synchronization, so that you can open Aria2 and AriaNgAria2 WebUI from anywhere to view and add download tasks. Of course, before using Aria2 and AriaNgAria2 WebUI to implement offline downloads, please note that foreign VPS hosts are stricter about version files.

Leave a Reply