Alist+Aria2+Rclone creates the ultimate solution for network disk downloads in the Mac environment - taking 115 network disk as an example

0 question raised

0.1 About 115 network disk

This article is not intended to explore the pros and cons of 115 network disks, nor is it to recommend a specific product. It is just to provide a set of solutions that can be used by other network disks. After many rounds of environmental changes, 115 has still survived, which shows that 115 has withstood the test of the market. The key to the problem is that many people are deterred by the threshold of 115 network disk. The problem caused by the niche is that the related supporting ecology is not perfect, many good plug-ins are no longer updated, and there are very few related tutorials.

0.2 Content arrangement of this article

In view of the uneven quality of various articles on the Internet, this article integrates the content on the Internet. The main content mainly includes the following aspects:

  • Installation of AList and mounting of 115 network disk
  • Integration of Aria2 and AList
  • Rclone installation and AList mounting

1 Install AList and mount 115 network disk

1.1 Install AList

This article recommends manual installation of all software for two main reasons: First, the cooperation between different software needs to be in the same environment, such as alist and < a i=2>, using will increase the difficulty of configuration; secondly, from personal experience, takes up a lot of system resources and increases the burden on the computer. aria2dockerdocker

InstallationalistRefer to the installation tutorial on the official website:

  • OpenAList’s release pageAList Release and choose the one you likeAListVersion and copy the download link
    Insert image description here
  • Download and installAList
# 进入你喜欢的目录并下载:
cd /your/path/
wget https://github.com/alist-org/alist/releases/download/v3.28.0/alist-darwin-arm64.tar.gz

# 解压缩:
tar -zxvf alist-xxxx.tar.gz
# 赋其可执行权限:
chmod +x alist
# 启动服务
./alist server

# 不同版本设定管理员随机密码:
# 小于 v3.25.0 版
./alist admin

# 高于 v3.25.0 版
# 设定随机密码
./alist admin random
# 手动设定密码 `NEW_PASSWORD` 改成自己欢的密码
./alist admin set NEW_PASSWORD

  • Configure startup items
# 编辑配置文件
vi ~/Library/LaunchAgents/ci.nn.alist.plist
  • document content
  • Changepath_alist to your own path
  • Changepath/to/working/dir to the working directory ofAList. The two contents can be the same
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
     <dict>
         <key>Label</key>
         <string>ci.nn.alist</string>
         <key>KeepAlive</key>
         <true/>
         <key>ProcessType</key>
         <string>Background</string>
         <key>RunAtLoad</key>
         <true/>
         <key>WorkingDirectory</key>
         <string>path/to/working/dir</string>
         <key>ProgramArguments</key>
         <array>
             <string>path_alist/alist</string>
             <string>server</string>
         </array>
     </dict>
</plist>

  • Load configuration items:launchctl load ~/Library/LaunchAgents/ci.nn.alist.plist
  • 启动AListlaunchctl start ~/Library/LaunchAgents/ci.nn.alist.plist
  • StopAList:launchctl stop ~/Library/LaunchAgents/ci.nn.alist.plist
  • Uninstall configuration items:launchctl unload ~/Library/LaunchAgents/ci.nn.alist.plist

1.2 Mount 115 network disk

  • Enter in the address bar of the streaming browserhttp://ip:5244EnterAListHomepage, you can enter directly on this machine127.0.0.1:5244
    Insert image description here

  • Enter the management interface
    Insert image description here

  • Add network disk
    Insert image description here

  • Relevant information that needs to be filled in for 115 network disk mounting
    Insert image description here

  • 115网盘Cookie获取
    Insert image description here

  • 115 network diskQrcode tokenGet it hereQRCode scan code to log in
    Insert image description here

  • 115网盘Root folder id获取
    Insert image description here

2 Integration of Aria2 and AList

2.1 Aria2 installation and RPC settings

  • aria2This article recommends using it directlyMotix
    Insert image description here
  • acquisitionrpcinstallation
    Insert image description here

2.2 Configure Aria2

  • Fill in the information about in Motrix into the backendrpcAList
    Insert image description here
  • AListFront-end configuration
    Insert image description here

3 Rclone and AList integration

3.1 Rclone installation

  • environment dependence

MacThe file system under is not fully supported, and Macfuse needs to provide third-party file system support

brew install --cask macfuse

Insert image description here

sudo -v ; curl https://rclone.org/install.sh | sudo bash
  • brewInstalledrclonedoes not have the mounting function
    Insert image description here

3.2 Mount AList

  • Enter in the terminalrclone configGenerate `rclone configuration file
  • nCreate a new remote link
Current remotes:

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n 
  • Choose a name you like
Enter name for new remote.
name> alist
  • Depends on the situationWeb Dav
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
 1 / 1Fichier
   \ (fichier)
 2 / Akamai NetStorage
   \ (netstorage)
 3 / Alias for an existing remote
   \ (alias)
 4 / Amazon Drive
   \ (amazon cloud drive)
 5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, Ceph, China Mobile, Cloudflare, GCS, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, IONOS Cloud, Leviia, Liara, Lyve Cloud, Minio, Netease, Petabox, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Synology, Tencent COS, Qiniu and Wasabi
   \ (s3)
 6 / Backblaze B2
   \ (b2)
 7 / Better checksums for other remotes
   \ (hasher)
 8 / Box
   \ (box)
 9 / Cache a remote
   \ (cache)
10 / Citrix Sharefile
   \ (sharefile)
11 / Combine several remotes into one
   \ (combine)
12 / Compress a remote
   \ (compress)
13 / Dropbox
   \ (dropbox)
14 / Encrypt/Decrypt a remote
   \ (crypt)
15 / Enterprise File Fabric
   \ (filefabric)
16 / FTP
   \ (ftp)
17 / Google Cloud Storage (this is not Google Drive)
   \ (google cloud storage)
18 / Google Drive
   \ (drive)
19 / Google Photos
   \ (google photos)
20 / HTTP
   \ (http)
21 / Hadoop distributed file system
   \ (hdfs)
22 / HiDrive
   \ (hidrive)
23 / In memory object storage system.
   \ (memory)
24 / Internet Archive
   \ (internetarchive)
25 / Jottacloud
   \ (jottacloud)
26 / Koofr, Digi Storage and other Koofr-compatible storage providers
   \ (koofr)
27 / Local Disk
   \ (local)
28 / Mail.ru Cloud
   \ (mailru)
29 / Mega
   \ (mega)
30 / Microsoft Azure Blob Storage
   \ (azureblob)
31 / Microsoft OneDrive
   \ (onedrive)
32 / OpenDrive
   \ (opendrive)
33 / OpenStack Swift (Rackspace Cloud Files, Blomp Cloud Storage, Memset Memstore, OVH)
   \ (swift)
34 / Oracle Cloud Infrastructure Object Storage
   \ (oracleobjectstorage)
35 / Pcloud
   \ (pcloud)
36 / PikPak
   \ (pikpak)
37 / Proton Drive
   \ (protondrive)
38 / Put.io
   \ (putio)
39 / QingCloud Object Storage
   \ (qingstor)
40 / Quatrix by Maytech
   \ (quatrix)
41 / SMB / CIFS
   \ (smb)
42 / SSH/SFTP
   \ (sftp)
43 / Sia Decentralized Cloud
   \ (sia)
44 / Storj Decentralized Cloud Storage
   \ (storj)
45 / Sugarsync
   \ (sugarsync)
46 / Transparently chunk/split large files
   \ (chunker)
47 / Union merges the contents of several upstream fs
   \ (union)
48 / Uptobox
   \ (uptobox)
49 / WebDAV
   \ (webdav)
50 / Yandex Disk
   \ (yandex)
51 / Zoho
   \ (zoho)
52 / premiumize.me
   \ (premiumizeme)
53 / seafile
   \ (seafile)
Storage> 49
  • Inputhttp://ip:5244/dav, this machine can inputhttp://127.0.0.1:5244/dav
Option url.
URL of http host to connect to.
E.g. https://example.com.
Enter a value.
url> http://127.0.0.1:5244/dav
  • Depends on the situationOther site/service or software
Option vendor.
Name of the WebDAV site/service/software you are using.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
 1 / Fastmail Files
   \ (fastmail)
 2 / Nextcloud
   \ (nextcloud)
 3 / Owncloud
   \ (owncloud)
 4 / Sharepoint Online, authenticated by Microsoft account
   \ (sharepoint)
 5 / Sharepoint with NTLM authentication, usually self-hosted or on-premises
   \ (sharepoint-ntlm)
 6 / Other site/service or software
   \ (other)
vendor> 6
  • ImportAListName of the trade name
Option user.
User name.
In case NTLM authentication is used, the username should be in the format 'Domain\User'.
Enter a value. Press Enter to leave empty.
user> admin
  • Selecty, enter password twice
Option pass.
Password.
Choose an alternative below. Press Enter for the default (n).
y) Yes, type in my own password
g) Generate random password
n) No, leave this optional password blank (default)
y/g/n> y
Enter the password:
password:
Confirm the password:
password:
  • Enter
Option bearer_token.
Bearer token instead of user/pass (e.g. a Macaroon).
Enter a value. Press Enter to leave empty.
bearer_token>
  • Enter
Edit advanced config?
y) Yes
n) No (default)
y/n>
  • Enter
Configuration complete.
Options:
- type: webdav
- url: http://127.0.0.1:5244/dav
- vendor: other
- user: admin
- pass: *** ENCRYPTED ***
Keep this "alist" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>
  • choiceqexit
Current remotes:

Name                 Type
====                 ====
alist                webdav
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q
  • Check if the connection is successful
# 查看 alist 挂载的硬盘 <name> 前面设定的名字
rclone lsd <name>:

# 查看 alist 中的文件
rclone ls <name>:
  • Mount to local
# 建一个挂载点
mkdir /your/path
# 挂载
rclone mount <DriveName>:<Folder>  <LocalFolder> --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 --use-mmap

DriverName is the name you set when configuring rclone. If Folder does not require it, just fill in /. LocalFolder is the address of your local mount. /tmp is special. It caches the directory when uploading. Other types of mounts Generally, this parameter is not needed, the default /tmp address is sufficient, unless your system is special.
For example: rclone mount alist:/ /webdav --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 --use-mmap --daemon

  • Unmount local
# 解除本地挂载,后面跟的是挂载的本地目录
# 当自动取消挂载失败时,也可以这样手动取消挂载
fusermount -qzu /webdav

3.3 Set up startup

  • Building plistText item
vi ~/Library/LaunchAgents/com.example.mount_rclone.plist
  • Fill in the following

rcloneThe location of the configuration file is~/.config/rclone/rclone.conf

<USER>MacDesk arm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
	<dict>
		<key>KeepAlive</key>
			<true/>
		<key>Label</key>
			<string>com.example.mount_rclone</string>
		<key>ProgramArguments</key>
			<array>
				<string>/usr/local/bin/rclone</string>
				<string>mount</string>
				<string>--allow-other</string>
				<string>--allow-non-empty</string>
				<string>--config=/Users/<USER>/.config/rclone/rclone.conf</string>
				<string>--copy-links</string>
				<string>--no-gzip-encoding</string>
				<string>--no-check-certificate</string>
				<string>--umask=000</string>
				<string>--use-mmap</string>
				<string><DriveName>:<Folder></string>
				<string><LocalFolder></string>	
			</array>
		<key>RunAtLoad</key>
			<true/>
		<key>StandardErrorPath</key>
			<string>/Users/<USER>/Documents/logs/rclone-mount.log</string>
		<key>StandardOutPath</key>
			<string>/Users/<USER>/Documents/logs/stdout</string>
	</dict>
</plist>
  • Load configuration items:launchctl load ~/Library/LaunchAgents/com.example.mount_rclone.plist
  • 启动Rclonelaunchctl start ~/Library/LaunchAgents/com.example.mount_rclone.plist
  • StopRclone:launchctl stop ~/Library/LaunchAgents/com.example.mount_rclone.plist
  • Uninstall configuration items:launchctl unload ~/Library/LaunchAgents/com.example.mount_rclone.plist
  • Check the mounting result
    Insert image description here
    Insert image description here
  • Download effect display
    Insert image description here

4 others

4.1 Possible Rclone configuration commands

  • The simplest configuration
rclone mount alist: /home/alist --allow-other
  • Basic configuration
rclone mount DriveName:Folder LocalFolder --cache-dir /tmp --allow-other --vfs-cache-mode writes --allow-non-empty

# 官方命令
rclone mount alist:/ /webdav  --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 --use-mmap
  • Background process
rclone mount tianyi:/video /tianyiwebdav –allow-other –vfs-cache-mode writes&

rclone mount tianyi:/video /tianyiwebdav –allow-non-empty –vfs-cache-mode full –vfs-cache-max-size 8G&

# 官方命令
# --daemon 强制后台模式
rclone mount alist:/ /webdav  --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 --use-mmap --daemon
  • If Alibaba Cloud disk is included, you may need to set--header "Referer:"parameters
rclone mount 远程名称:/ 本地挂载路径 --cache-dir /tmp --allow-other --vfs-cache-mode writes --header "Referer:https://www.aliyundrive.com/drive"

rclone mount ali:/ W: --vfs-cache-mode writes --cache-dir E:\aliyun --network-mode --no-check-certificate --default-permissions --header "Referer:https://www.aliyundrive.com/" --vfs-read-chunk-size-limit 1G --vfs-read-chunk-size 64M --dir-cache-time 12h --buffer-size 32M
  • Configurations that may improve fluency
# --network-mode至关重要,这个参数是影响都文件管理器打开挂载目录的响应速度。这个参数的原意是以网络位置挂载即如下图。如果没有这个参数,rclone就会挂载到设备和驱动器
# --header "Referer:"含阿里云盘时需要,否则挂载后打不开文件
# --buffer-size 512M缓存占用的最大内存大小为512M,512可改为其他数字,不宜设置得过大,过大会导致文件过多的占用网络和电脑内存
# --vfs-fast-fingerprint使用快速的文件校验检测,加开文件打开速度
.\rclone mount alist: M: --network-mode --header "Referer:" --multi-thread-streams 8 --buffer-size 512M --vfs-fast-fingerprint

4.2 Rclone startup script

  • If you don’t want to start the computer, and you don’t want to enter various parameters every time you start it, you can use a script to start it.
cd /your/scripts/path
vi mount_rclone.sh
  • Replace/path/to/your/mount/point with the local path to mount the remote storage, and replace your_remote_name with rclone as set in the configuration file remote storage name
#!/bin/bash
RCLONE_CONFIG_PATH=~/.config/rclone/rclone.conf
MOUNT_POINT=/path/to/your/mount/point
REMOTE_NAME=your_remote_name

rclone mount --config $RCLONE_CONFIG_PATH --allow-non-empty --allow-other --vfs-cache-mode writes $REMOTE_NAME: $MOUNT_POINT &
  • Set execution permissions
chmod +x mount_rclone.sh
  • About the download of 115 network disk
    The most unacceptable thing about 115 network disk is its client. To download and upload, you must use its client. Even if you are a distinguished member. If you don't want to use its client, you can also usedockerinstall itsLinux client and use it as a download tool. As for the mounting method similar to this article, you can also use CloudMounter to mount AList, or you can use CloudDrive to directly mount the 115 network disk , but this is a tool developed by one person and does not seem to be open source. The secondary development version of Rclone can also directly mount the 115 network disk.

references

  1. AList manual installation
  2. Alist cooperates with aria2 to realize offline downloading
  3. Enable NTFS reading and writing under MacOS
  4. Enable NTFS reading and writing under MacOS - FUSE for Mac
  5. Mac mounts other file systems
  6. rclone and alist mount the network disk to the local
  7. rclone and alist mount the network disk to the local
  8. Automatically mount rclone remote storage under macOS system: realize startup items
  9. Callumpy/macos-rclone-launchd
  10. Help setting up rclone.plist on macos Sierra
  11. Error on MacOS with launchd and default user directories
  12. How to use AList + RCLONE to mount the network disk locally on macOS
  13. Use EMBY on Linux (Centos) to manage the network disk mounted by Alist, taking the Quark network disk as an example
  14. Use AALLiisstt to mount Tiantianyiyi cloud disk to build a private audio and video library
  15. Windows uses alist to generate various network disk webdavs and mount them to the local hard disk.
  16. Mount the Alibaba cloud disk as Webdav and use rclone to mount it locally
  17. MacOS APP cannot start automatically, manually add self-starting APP
  18. Run 115 network disk Linux version (docker) in Synology
  19. 115 Netdisk Linux version of Docker packaging
  20. Build video service based on QNAP 115 + Clouddrive + Plex/Emby
  21. Save 115 network disk files to QNAP anytime, anywhere
  22. Mac uses Docker to deploy Alist and mount the network disk locally through CloudMounter
  23. Use alist to map cloud disk to WebDAV
  24. How to set up AList, RCLONE, and xTeVe to start running in the background on macOS
  25. Rclone - Set up Google Cloud Drive
  26. Play with network disk
  27. New project: Use rclone to mount 115 network disk as webdav or folder
  28. Synology builds AList cloud disk file list, supports mounting local and major cloud disks
  29. Alist Multiple network disk mounting directory program construction

Guess you like

Origin blog.csdn.net/Y1575071736/article/details/133984636