使用Emby搭建自己的媒体中心 VPS挂载Google Drive

原创评论1,032阅读模式

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

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

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

准备工作

1.一台VPS服务器

参考教程1:Bandwagon HOST搬瓦工VPS服务器购买和登录教程

参考教程2:Vultr VPS最新注册充值购买和SSH远程登录教程

2.加入电影共享团队盘

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

购买商品 – 嘎鱼饭Emby服务专营店——专业服务每一位影视爱好者

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

一、VPS挂载Google Drive网盘

1.安装rclone挂载工具

curl https://rclone.org/install.sh | sudo bash
使用Emby搭建自己的媒体中心 VPS挂载Google Drive

2.配置rclone

rclone config
使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

client_id> 直接回车

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

client_secret> 直接回车

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

root_folder_id>直接回车

service_account_file>直接回车

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

使用Emby搭建自己的媒体中心 VPS挂载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 #不用自动配置
使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

登录谷歌账号授权

使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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


1 / 共享硬盘 \ “XXXXXXXXXXXXXXXXXXX”

2 / 精英挂载NO1_HL02 \ “XXXXXXXXXXX”

3 / SYNC_115网盘 \ “XXXXXXXXXXXXXXX”

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

使用Emby搭建自己的媒体中心 VPS挂载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

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

3.挂载Google Drive到VPS目录

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

mkdir -p /home/gdrive
使用Emby搭建自己的媒体中心 VPS挂载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 &
使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

如果出现如下提示:

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

CentOS系统

yum install fuse -y

debian/Ubuntu系统

apt-get install fuse 

4.查看挂载是否成功

df -h
使用Emby搭建自己的媒体中心 VPS挂载Google Drive

5、设置开机自动挂载

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

cat > /etc/systemd/system/rclone.service <<EOF[Unit]Description=RcloneAssertPathIsDirectory=LocalFolderAfter=network-online.target[Service]Type=simpleExecStart=/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 1GExecStop=/bin/fusermount -u LocalFolderRestart=on-abortUser=root[Install]WantedBy=default.targetEOF

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

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

二、安装Emby

1.Emby简介

官网:Emby – The open media solution

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

2.Emby搭建方法

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

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

使用Emby搭建自己的媒体中心 VPS挂载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
使用Emby搭建自己的媒体中心 VPS挂载Google Drive

2.2安装Emby

dpkg -i emby-server-deb_4.5.2.0_amd64.deb
使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

三、Emby初始化设置

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

http://VPS的IP地址:8096
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive

这里暂时不添加媒体库

使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive

四、Emby添加媒体库

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

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive
使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

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

五、效果展示

效果如图:

使用Emby搭建自己的媒体中心 VPS挂载Google Drive

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

原创最后更新:2023-2-20
评论  0  访客  0
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: