惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Announcements
Recent Announcements
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
腾讯CDC
D
Docker
G
Google Developers Blog
D
DataBreaches.Net
雷峰网
雷峰网
Blog — PlanetScale
Blog — PlanetScale
S
SegmentFault 最新的问题
The Cloudflare Blog
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Stack Overflow Blog
Stack Overflow Blog
大猫的无限游戏
大猫的无限游戏
量子位
美团技术团队
aimingoo的专栏
aimingoo的专栏
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Engineering at Meta
Engineering at Meta
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

Rat's Blog - Google

使用Google Drive File Stream后,C盘没空间/爆满的解决方法 - Rat's Blog Mac系统下挂载Google Drive网盘为本地硬盘使用 - Rat's Blog LNMP环境下,利用Nginx反代Google网站的方法 - Rat's Blog 分享几款强大的类似Google搜索的搜索引擎 - Rat's Blog 分享几个好用的Google Hosts - Rat's Blog 可以直接获取并下载Google Play APK的镜像站 - Rat's Blog
利用Aria2+AriaNg+H5ai+Google Drive建立离线BT下载/在线播放...
博主: Rat's · 2018-02-10 · via Rat's Blog - Google

说明:现在很多人撸了无限空间的Google Drive后,都不知道咋玩,这里可以利用小硬盘VPS挂载Google Drive后进行一系列老司机操作,这里说下方法,过程不需要使用面板、LNMP等一键包,博主认为有点花时间,所以这里都使用一键脚本来完成,基本10分钟就搭建好了,且自带免费的SSL证书,可长期使用。

截图

请输入图片描述
请输入图片描述
请输入图片描述

教程

由于本教程所使用的H5ai一键包只适用Debian 8+,且必须纯净的系统,不含有WEB环境。

1、安装H5ai
H5ai一键安装包自带SSL证书,需要提前解析域名到服务器。使用命令:

#下载脚本
apt-get install git -y
git clone https://github.com/wulabing/h5ai_onekey_install-lnp-.git h5ai
cd h5ai

#Debian 8运行命令
bash h5ai.sh

#Debian 9运行命令
sed -i '53,54d' h5ai.sh && bash h5ai.sh

#脚本备份
https://www.moerats.com/usr/shell/h5ai_ssl.sh

运行后,选择3即可。完成后进入https://domain.com就可以打开了H5ai界面了,且目录在/home/wwwroot/domain.com

2、安装Aria2
这里用的逗比的脚本,使用命令:

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/aria2.sh && chmod +x aria2.sh && bash aria2.sh
#备用地址
wget -N --no-check-certificate https://www.moerats.com/usr/shell/Aria2/aria2.sh && chmod +x aria2.sh && bash aria2.sh

默认密匙为doub.io,下载目录为/usr/local/caddy/www/aria2/Download

3、安装AriaNg
博主认为AriaNg 0.2版本好用些,所以默认用这个,使用命令:

apt-get install unzip -y
mkdir /home/wwwroot/domain.com/ariaNg  #将domain改成你的域名再运行
cd /home/wwwroot/domain.com/ariaNg
wget https://www.moerats.com/usr/down/aria-ng-0.2.0.zip && unzip aria-ng-0.2.0.zip

此时进入https://domain.com/ariaNg就可以打开ariaNg界面了,记住该文件夹不能删,误删的重新此操作。

4、挂载Google Drive
教程参考:在Debian/Ubuntu上使用rclone挂载Google Drive网盘,注意挂载为磁盘的目录需要在H5ai目录里,且为子目录,比如/home/wwwroot/domain.com/GoogleDrive

5、配置上传Google Drive
直接通过Aria2下载文件到Google Drive挂载盘可能会有问题,所以需要简单操作下。
使用命令:

wget https://www.moerats.com/usr/shell/GDupload.sh

再编辑GDupload.sh文件

nano GDupload.sh

修改以下参数:

downloadpath='/usr/local/caddy/www/aria2/Download' #Aria2下载目录,这里默认逗比脚本目录,不变即可。
rclone='/home/wwwroot/xx.com/GoogleDrive'   #rclone挂载的目录

再授权chmod +x GDupload.sh,然后再到Aria2配置文件中加上一行on-download-complete=/root/GDupload.sh即可,后面为脚本的路径。

最后就可以愉快的去下电影和音乐了。

如果想一次性完成的,参考:Aria2+Rclone+DirectoryLister+Aria2Ng一键安装脚本 for Debian


版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/509/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。