VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心

图片[1]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

Emby是市面上为数不多的私人多媒体服务器软件,它有最强大的影片搜刮能力(没有之一),并且可以非常便捷远程维护其媒体库。作为一个完美的媒体播放解决方案,它提供了包括但不限于:播放、转码、刮削媒体信息、管理资料库、电视直播等功能。使用体验非常舒适,并且提供全平台客户端和web端支持。

VPS挂载Google Drive无限空间网盘–存放电影

Emby–影音系统 搜刮电影信息&播放电影

准备工作

1.一台VPS云服务器

2.加入电影共享团队盘

如果自己去整理电影资源非常耗时耗力,网上有人专门整理的,推荐这个:

图片[2]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

一、VPS挂载Google Drive网盘

1.安装rclone挂载工具

curl https://rclone.org/install.sh | sudo bash
图片[3]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

2.配置rclone

rclone config
图片[4]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

name emby 随意取 但是后面的代码也会相应改变

图片[5]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

Choose a number from below, or type in your own value
选谷歌 (13) 可能会因为版本的不同而改变 注意选择 Google drive

图片[6]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

client_id> 直接回车

图片[7]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

client_secret> 直接回车

图片[8]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

Choose a number from below, or type in your own value
scope> 1 选1 有最大的使用权限

图片[9]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

root_folder_id>直接回车

service_account_file>直接回车

图片[10]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n #不用别的高级配置

图片[11]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

Use auto config?

  • Say Y if not sure
  • Say N if you are working on a remote or headless machine
    y) Yes (default)
    n) No
    y/n> n #不用自动配置
图片[12]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

Please go to the following link: https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Log in and authorize rclone for access

图片[13]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

登录谷歌账号授权

图片[14]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[15]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[16]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[17]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

Enter verification code>贴入你获取到的key

图片[18]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

Configure this as a team drive?
y) Yes
n) No (default)
y/n> y

图片[19]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

Choose a number from below, or type in your own value

1 / 共享硬盘 \ XXXXXXXXXXXXXXXXXXX

2 / 精英挂载NO1_HL02 \ XXXXXXXXXXX

3 / SYNC_115网盘 \ XXXXXXXXXXXXXXX

图片[20]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y

图片[21]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

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

图片[22]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

3.挂载Google Drive到VPS目录

创建一个挂载目录,我们在/home/目录下创建gdrive文件夹作为挂载目录。

mkdir -p /home/gdrive
图片[23]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

挂载Google Drive

/usr/bin/rclone mount emby: /home/gdrive \ --umask 0000 \ --default-permissions \ --allow-non-empty \ --allow-other \ --buffer-size 32M \ --dir-cache-time 12h \ --vfs-read-chunk-size 64M \ --vfs-read-chunk-size-limit 1G &
图片[24]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

上面这些可以根据需要自己改参数,如果VPS配置高可以吧数字改大一点。

如果出现如下提示:

图片[25]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

运行图下命令之后从新挂载

CentOS系统

yum install fuse -y

debian/Ubuntu系统

apt-get install fuse 

4.查看挂载是否成功

df -h
图片[26]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

5、设置开机自动挂载

VPS终端运行如下命令就可以了

cat > /etc/systemd/system/rclone.service <

运行完上面的代码就可以用如下的命令进行控制了。

systemctl start rclone   #启动systemctl stop rclone    #停止systemctl enable rclone  #允许开机自动启动

二、安装Emby

1.Emby简介

官网:Emby - The open media solution

图片[27]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

Emby是市面上为数不多的私人多媒体服务器软件,它有最强大的影片搜刮能力(没有之一),并且可以非常便捷远程维护其媒体库。作为一个完美的媒体播放解决方案,它提供了包括但不限于:播放、转码、刮削媒体信息、管理资料库、电视直播等功能。使用体验非常舒适,并且提供全平台客户端和web端支持。

2.Emby搭建方法

进入官网后,点击【Download】-【Linux】

图片[28]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

我使用的是Debian X64系统,安装方法如下(其他Linux系统同理):

图片[29]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

具体方法如下

2.1安装wget下载工具&下载Emby安装包

apt-get install wget && wget https://github.com/MediaBrowser/Emby.Releases/releases/download/4.5.2.0/emby-server-deb_4.5.2.0_amd64.deb
图片[30]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

2.2安装Emby

dpkg -i emby-server-deb_4.5.2.0_amd64.deb
图片[31]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

如果没有报错,安装就完成了。

三、Emby初始化设置

浏览器打开,配置看图操作。

http://VPS的IP地址:8096
图片[32]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[33]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[34]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

这里暂时不添加媒体库

图片[35]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[36]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[37]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[38]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[39]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

四、Emby添加媒体库

进入Emby后,我们发现里面什么都没有,是因为我们没有添加媒体库。我们点击右侧的【设置】开始添加媒体库。

图片[40]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

点击左侧的【媒体库】,参照下命的图片设置。

图片[41]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[42]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[43]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[44]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[45]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[46]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[47]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[48]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[49]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[50]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库
图片[51]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

到这里Emby的一个媒体库就添加完成了,我们可以用同样的方法添加其他的媒体库。

添加完成媒体库需要等待Emby检索数据,等一下就行了。

五、效果展示

效果如图:

图片[52]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库

Emby、不限于于如此,还可以播放音乐、电视直播等功能。感兴趣可以自己研究一下。

THE END

如果您喜欢本站,点击这儿不花一分钱捐赠本站

这些信息可能会帮助到你: 下载帮助 | 报毒说明 | 进站必看