宝塔面板安装cloudreve(云桌面服务器搭建)

宝塔面板安装cloudreve(云桌面服务器搭建)

浏览次数:
信息来源: 用户投稿
更新日期: 2024-12-03 08:59:56
文章简介

昨天说了如何利用rclone挂载世纪互联到自己的本地电脑上,今天说下如何挂载onedrive,sharepoint到linux服务器上。目前rclone的最新版本1.5

2025阿里云双十一服务器活动

昨天说了如何利用rclone挂载世纪互联到自己的本地电脑上,今天说下如何挂载onedrive,sharepoint到linux服务器上。目前rclone的最新版本1.54.0已经正式支持世纪互联和sharepoint。教程基于宝塔安装(宝塔服务器面板,一键全能部署及管理,送你3188元礼包,点我领取https://www.bt.cn/?invite_code=MV9ub2NxdmI=)

目前的最新版下载等,请参考前文:windows10:Rclone官方版1.54.0挂载世纪互联(含sharepoint)到本地磁盘

1、部署

1)CentOS系统安装rclone就很简单了,使用官方的安装命令即可,debian等也是一样。

curlhttps://rclone.org/install.sh|sudobash

因为接下来操作方法和windows完全一样,唯一的区别是“Useautoconfig?”这里选择,并输入之前获取的

*SayNifyouareworkingonaremoteorheadlessmachine

Forthistowork,youwillneedrcloneavailableonamachinethathas

Formorehelpandalternatemethodssee:https://rclone.org/remote_setup/

Executethefollowingonthemachinewiththewebbrowser(samerclone

rcloneauthorize"onedrive"

Thenpastetheresultbelow:

result>#这里输入之前保存的token

3)如果你忘了自己的token,在windows的cmd中使用如下命令查找路径,找到了rclone.conf文件,打开编辑即可看到token。

4)挂载世纪互联,使用如下命令。

rclonemountonedrive://home/onedrive--copy-links--no-gzip-encoding--no-check-certificate--allow-other--allow-non-empty--umask000--vfs-cache-modewrites

注意,mount后面的onedrive,是你在之前设置的名称,后面的/home/onedrive是挂载的目录,这个也可以挂载到别的目录。

2、挂载SharePoint

上面挂载好了od,我们在顺手把SharePoint,也挂载好。

配置的话,还是和之前的一样,具体看步骤吧。

[root@hostf68b156fb8~]#rcloneconfig

NameType========onedriveonedrive

s)Setconfigurationpassword

name>sharepoint#起一个名字

Typeofstoragetoconfigure.

Enterastringvalue.PressEnterforthedefault("").

Chooseanumberfrombelow,ortypeinyourownvalue

2/Aliasforanexistingremote

4/AmazonS3CompliantStorageProvidersincludingAWS,Alibaba,Ceph,DigitalOcean,Dreamhost,IBMCOS,Minio,andTencentCOS

11/Encrypt/Decryptaremote

14/GoogleCloudStorage(thisisnotGoogleDrive)

17/Hadoopdistributedfilesystem

19/Inmemoryobjectstoragesystem.

25/MicrosoftAzureBlobStorage

28/OpenStackSwift(RackspaceCloudFiles,MemsetMemstore,OVH)

31/QingCloudObjectStorage

34/TardigradeDecentralizedCloudStorage

35/Transparentlychunk/splitlargefiles

36/Unionmergesthecontentsofseveralupstreamfs

**Seehelpforonedrivebackendat:https://rclone.org/onedrive/**

Enterastringvalue.PressEnterforthedefault("").

Enterastringvalue.PressEnterforthedefault("").

client_secret>#填自己的

ChoosenationalcloudregionforOneDrive.

Enterastringvalue.PressEnterforthedefault("global").

Chooseanumberfrombelow,ortypeinyourownvalue

宝塔面板安装cloudreve,云桌面服务器搭建

4/AzureandOffice365operatedby21VianetinChina

Editadvancedconfig?(y/n)

MakesureyourRedirectURLissetto"http://localhost:53682/"inyourcustomconfig.

*SayNifyouareworkingonaremoteorheadlessmachine

y/n>n#之前配置过了,所以这里选择n

Forthistowork,youwillneedrcloneavailableonamachinethathas

Formorehelpandalternatemethodssee:https://rclone.org/remote_setup/

Executethefollowingonthemachinewiththewebbrowser(samerclone

rcloneauthorize"onedrive"--"a_Mp"

Thenpastetheresultbelow:

result>{#复制自己的token}

Chooseanumberfrombelow,ortypeinanexistingvalue

1/OneDrivePersonalorBusiness

3/SharepointsitenameorURL(e.g.mysiteorhttps://contoso.sharepoint.com/sites/mysite)

4/SearchforaSharepointsite

5/TypeindriveID(advanced)

6/TypeinSiteID(advanced)

7/Sharepointserver-relativepath(advanced,e.g./teams/hr)

Yourchoice>2#这里为了演示就选择了2,根据需要自行选择

Found2drives,pleaseselecttheoneyouwanttouse:

0:表单库tst(documentLibrary)id=b!x

1:文档(documentLibrary)id=b

Founddrive'root'oftype'documentLibrary',URL:

token=drive_type=documentLibrary

NameType========onedriveonedrive

s)Setconfigurationpassword

e/n/d/r/c/s/q>q#选择q退出

2)挂载SharePoint

挂载和之前的命令一样,如下:

rclonemountsharepoint://www/sharepoint--copy-links--no-gzip-encoding--no-check-certificate--allow-other--allow-non-empty--umask000--vfs-cache-modewrites

3、守护运行

还没结束,宝塔面板的话我们可以安装一个Supervisor管理器,具体部署如下:

1)安装Supervisor管理器,这个软件商店自行搜索安装

2)设置Supervisor管理器,守护之前挂载好的OneDrive。

此处为隐藏的内容发表评论并刷新,方可查看发表评论

4)运行成功截图

我擦,SharePoint挂哪里去了,怎么这么大?

4、卸载

如果要卸载,可以使用rcloneconfig命令来完成。

[root@hostf68b156fb8~]#rcloneconfig

NameType========onedriveonedrive

s)Setconfigurationpassword

Chooseanumberfrombelow,ortypeinanexistingvalue

NameType========onedriveonedrive

s)Setconfigurationpassword

别忘了,Supervisor管理器中删除你的守护进程。

5、最后

以上教程都基于rclone最新版本1.54.0安装搭建,喜欢折腾的童鞋可以试试,如果你用来备份,可以试试这个教程:宝塔面板修改OneDrive插件–支持备份网站数据至世纪互联

标签:
搬瓦工洛杉矶cn2机房(我的世界租赁服务器)
« 上一篇
vps测速speedtest(vps免费加速器下载)
下一篇 »

如本文对您有帮助,就请抽根烟吧!