首页 > 其他 > 详细

ccaa

时间:2020-05-06 19:39:37      阅读:79      评论:0      收藏:0      [点我收藏+]

先安装小z大佬的CCAA傻瓜一键式脚本,直接整合了aria2下载工具、AriaNg前端显示面板(直观的操作界面)、Caddy filemanager文件管理(直观的对下载文件进行管理)。
复制下面的命令,一行一个,粘贴到SSH客户端里回车执行。

yum -y install wget unzip curl  #安装wget unzip
wget https://github.com/helloxz/ccaa/archive/master.zip  #下载ccaa压缩包
unzip master.zip && cd ccaa-master && sh ccaa.sh  #解压并安装ccaa

出现下面界面输入1安装CCAA。
之后可以输入 ccaa调用菜单

CentOS 7 + Caddy + Aria2 + AriaNg一键安装脚本,简称CCAA
1) 安装CCAA
2) 卸载CCAA
3) 更新bt-tracker
q) 退出!
:1

根据提示设置下载路径、RPC密钥、用户名、密码。这些填的都要记住,稍后要用到,这里我强调下我设置下载路径为/data/download,这个是虚拟机的地址,这个在教程后面挂载网盘时会用到,小白怕出错可以完全按照我的来填写。
下面的用户民都是预设好的,之后在进行更改,能设置的只有RPC密码

 

设置下载路径(请填写绝对地址,默认/data/ccaaDown):/data/download
Aria2 RPC 密钥:(字母或数字组合,不要含有特殊字符):rpc2486
设置Caddy用户名:ccaa
设置Caddy密码:admin

安装完成后会看到如下提示,请务必记住RPC密钥、用户名、密码等信息。

大功告成,请访问: http://66.42.105.231:6080/
File Browser 用户名:ccaa
File Browser 密码:admin
Aria2 RPC 密钥: rpc2486
帮助文档: https://dwz.ovh/ccaa (必看)


设置下CCAA的开机自启

如果不设置可能导致挂载的网盘在服务器重启后掉盘,又得重新挂载,下面两行代码可以一起复制进去然后回车执行。

chmod +x /etc/rc.d/rc.local 
echo "/usr/sbin/ccaa start" >> /etc/rc.d/rc.local

下载完成自动上传OneDrive网盘

以下分三步这里做个简介:第一步是PC端获取网盘授权的token;第二步是在VPS里绑定获得的授权;第三步才是真正挂载到网盘上。因为OneDrive的授权需要在浏览器打开,而VPS没有图形界面,只能先在PC端获取授权,所以第一步和第二步有点重复。

1、先在windows(PC)端安装Rclone
登录Rclone官网下载Rclone的 windows 客户端

技术分享图片


下载后解压将里面的rclone.exe移动到C:\Windows\System32这个目录,其它的可以删掉没关系,按 win+R 快捷键打开运行,输入 cmd 确定来打开cmd窗口,输入下面命令开始配置。

rclone config
输入rclone config命令后出现下图界面,按提示输入n回车创建个新的远程,然后提示输入name,名称随意但要记住,这里我填了remote

C:\Users\a2>rclone config
Current remotes:

Name                 Type
====                 ====
onedrive             onedrive

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   
name> remote
接着让你选择要挂载的网盘,这里OneDrive是19,填入19(不同版本序号可能会变化)。

Current remotes:

Name                 Type
====                 ====
onedrive             onedrive

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
name> onedrive
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
 1 / A stackable unification remote, which can appear to merge the contents of several remotes
   \ "union"
 2 / Alias for a existing remote
   \ "alias"
 3 / Amazon Drive
   \ "amazon cloud drive"
 4 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, etc)
   \ "s3"
 5 / Backblaze B2
   \ "b2"
 6 / Box
   \ "box"
 7 / Cache a remote
   \ "cache"
 8 / Dropbox
   \ "dropbox"
 9 / Encrypt/Decrypt a remote
   \ "crypt"
10 / FTP Connection
   \ "ftp"
11 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"
12 / Google Drive
   \ "drive"
13 / Hubic
   \ "hubic"
14 / JottaCloud
   \ "jottacloud"
15 / Koofr
   \ "koofr"
16 / Local Disk
   \ "local"
17 / Mega
   \ "mega"
18 / Microsoft Azure Blob Storage
   \ "azureblob"
19 / Microsoft OneDrive
   \ "onedrive"
20 / OpenDrive
   \ "opendrive"
21 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"
22 / Pcloud
   \ "pcloud"
23 / QingCloud Object Storage
   \ "qingstor"
24 / SSH/SFTP Connection
   \ "sftp"
25 / Webdav
   \ "webdav"
26 / Yandex Disk
   \ "yandex"
27 / http Connection
   \ "http"
Storage> 19
client_idclient_secret 直接不填回车;
Edit advanced config? 这里输入n回车;
Already have a token - refresh? 这里输入y回车,后面 VPS 里配置时是没有这个提示的,会出现下个自动配置选项,别手快直接y;
Use auto config? 这里输入y回车,后面VPS里配置时这步要选 n。
过程如下

Microsoft App Client Id
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id>
Microsoft App Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret>
Edit advanced config? (y/n) 
y) Yes
n) No
y/n> n
Remote config 
Already have a token - refresh?  
y) Yes
n) No
y/n> y
Use auto config?  
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n> y
接着浏览器会自动弹出窗口,然后登录你要挂载的OneDrive账号,征求许可接受就行了,直到出现下图成功提示。


技术分享图片



返回cmd窗口出现以下界面,这里选1回车。

Choose a number from below, or type in an existing value
 1 / OneDrive Personal or Business  #个人和商用
   \ "onedrive"
 2 / Root Sharepoint site
   \ "sharepoint"
 3 / Type in driveID
   \ "driveid"
 4 / Type in SiteID
   \ "siteid"
 5 / Search a Sharepoint site
   \ "search"
Your choice>1
提示找到一个驱动器,让你选择,这里就一个选项0,那就填入0回车,然后问你是否okay,选y回车。

Found 1 drives, please select the one you want to use:
0: OneDrive (business) id=huioaeuiaeagioioieuiaaefe@#%gaege94#
Chose drive to use:>0
Found drive ‘root‘ of type ‘business‘, URL:https://jxjjxy-my.sharepoint.com/personal/meeaghvp_t_odmail_cn/Documents
Is that okay?
y) Yes
n) No
y/n> y
接着会出现一串长token,将下图红框内的整个复制,复制范围{"access_token":…………………………2019-04-21T16:41:25.1595637+08:00"},先保存到记事本,下面就要回到VPS操作了。

https://twoha.blogspot.com/2019/04/onedrive.html 直接看这个吧。
这里我强调下我设置下载路径为/data/download,

安装fuse

rclone挂载onedrive需要依赖fuse模块,需要先安装一下fuse。

注意:openvz架构的VPS默认不支持fuse,需要联系服务商开通。能不能开通就看你的VPS商家了。KVM架构的VPS可以自己通过这个命令安装:yum -y install fuse

挂载OneDrive到本地目录

执行这个命令挂载:rclone mount 云盘名:云盘目录路径 本地目录路径。例如:rclone mount test:/backup /home/mydir

如果要后台运行,需要加参数:--daemon

注意:本地目录如果不存在,需要提前自行使用mkdir命令创建。

卸载命令:fusermount -qzu 本地目录。例如:fusermount -qzu /home/mydir

mkdir /data/download
rclone mount remote:/btdownload /data/download --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 &&

rclone mount remote:/btdownload /data/download

rclone mount remote:/btdownload /data/download --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 2>&1 &


df -h


ccaa

原文:https://www.cnblogs.com/shewhen/p/12837713.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!