Regarding the offline download function of Nextcloud, I have already mentioned it in the previous article Nextcloud offline download construction method. Nextcloud installation can use the SNAP one-click installation method, or you can build a LAMP or LNMP environment by yourself and then manually install the PHP program. Install it that way. In short, Nextcloud is the best choice for private cloud storage. The power of Nextcloud lies in its rich plug-ins, such as RSS online readers (which I personally think are the most useful), video and music players, online broadcasts, Word document editing and viewing, etc. At the same time, Nextcloud also has free mobile APPs and PC client, in fact, many organizations and companies have used Nextcloud to build their own cloud storage services. For those who like movies, TV and music, Nextcloud can also be transformed into a multimedia audio and video center. You only need a host running Nextcloud, install Aria2 offline download, and enjoy the benefits of a private high-definition theater no matter where you are. This article will share how Nextcloud combines PotPlayer and Kodi to create a home theater. In addition, if the storage of Nextcloud is relatively large, you can also mount the VPS host to a network disk to expand the capacity for free , and create a server synchronization mirror , which can allow you to more Protect important information well and be “prepared for anything”. For a more advanced gameplay, use Huginn to capture major film and television drama resources , and then submit them to Nextcloud for offline download. In this way, a "fully automatic" audio and video platform is established. can be referred to as follows:

  1. Linux VPS mounts Google Drive and Dropbox-realizes VPS host data synchronization and backup
  2. Lsyncd builds synchronization mirror-use Lsyncd to achieve real-time synchronization between local and remote servers
  3. Huginn manual installation tutorial on Debian/Ubuntu - grab full-text RSS and WeChat public account open source software
PS: Huginn is a very powerful tool. can not only be used as an RSS information resource capture tool, but also can build a task collection triggering platform and automatically follow up with real-time reminders (use Email, Slack, Telegeram, QQ and WeChat to receive push notifications) ), linking various apps, software, network services, network equipment, etc. together to trigger tasks. PS: Updated on December 27, 2017. For those who want to know how to install Aria2 on Windows or Linux, please see: Windows and Linux installation using Aria2-to download resources offline and manage files online to play videos. PS: Updated on March 13, 2018, Nextcloud comes with ocDownloader offline download plug-in. You can integrate ocDownloader and Aria2 offline download: Oneinstack installs NextCloud and uses Aria2 offline download and ocDownloader plug-in configuration.

1. How to use Nextcloud installation tutorial

I have shared the one-click installation method and the manual installation method of Nextcloud before. I personally prefer the SNAP one-click installation method, which is also officially recommended. SSL can be turned on with one click and the compatibility of the program has been officially tested.
  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. Nextcloud integrates Aria2 offline download

Friends who like to do it, you can read what I wrote before: Nextcloud offline download construction method-integrate Aria2, AriaNg, and Aria2 WebUI to achieve offline download. Here I will share a Docker Compose, which integrates Nextcloud+Aria2+AriaNg, and can be directly used in the Docker environment. It can be installed with just a few clicks, which is very convenient.

2.1  Docker environment configuration

Install Docker CE (Community Edition). You can refer to the official tutorial: https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/. I am using Ubuntu 16.04 (LTS) and use the following installation command:
sudo apt-get remove docker docker-engine docker.io
sudo apt-get update

sudo apt-get install 
    apt-transport-https 
    ca-certificates 
    curl 
    software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository 
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu 
   $(lsb_release -cs) 
   stable"

sudo apt-get update
sudo apt-get install docker-ce

#检查一下docker是否安装成功
sudo docker run hello-world
If the following prompt appears, it means the installation is successful. Pictures, Word, PDF, TXT, etc. can all be played online. Nextcloud also comes with broadcasting, online chat, games, maps and other applications, and its functions are far greater than those of various network disks.

5.3  Kodi Home Theater

Kodi is also a player, but unlike PotPlayer, it focuses on home theater mode. Its powerful open source plug-ins allow you to have a personal audio and video center, which can be used on Windows, Mac, Linux computers, and Android and iOS mobile phones. /runs on tablets and Raspberry Pi, especially suitable for audio and video enthusiasts. It is also very simple to play Nextcloud's audio and video resources on Kodi. First, add files to Kodi's videos and select a network location.

6. Summary

In short, three software are used to build the Nextcloud audio and video center platform: Nextcloud, Aria2, PotPlayer and Kodi. Nextcloud is responsible for file management, Aria2 is responsible for offline downloading, and PotPlayer and Kodi are responsible for playback functions. The functions of the integrated platform can be independent of each other, and the functions of integration are stronger. Currently, the main problems with aria2-ariang-x-docker-compose include: ariaNg does not have a password to log in, port 80, domain name binding, SSL certificate enabled, files downloaded by aria2 cannot be deleted, etc. Among them, for the problem of port 80, we can go to docker-compose.yml under nextcloud. Change the 8000 of the ports attribute under the aria2 node to 80 That's it.
aria2:
  image: wahyd4/aria2-ariang:filerun
  links:
    - web:file-manager
  ports:
    - "8000:80" #将此处8000 改为 80端口
    - "6800:6800"
  volumes_from:
    - web
Domain name binding issue: You only need to resolve your domain name to your VPS host IP to access it. I'm afraid there is no way to solve the problem of ariaNg logging in without a password, because ariaNg is a static file and can even be run directly locally. You can try to use htpasswd to set a password for ariaNg access. As for turning on the SSL certificate, you need to modify the docker-compose settings, which is a bit troublesome. Finally, the Nextcloud audio and video center platform is also suitable for building in a local area network, and the speed will be extremely fast. If you are using an external VPS server, then what you need to consider is funds. Domestic VPS hosts have many restrictions and are expensive. Foreign VPS hosts are cheap but slow. At present, it seems that CN2 VPS is the most suitable. Regarding purchasing VPS, you can read here: VPS host ranking list.

Leave a Reply