![图片[1]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/EMBY.jpg)
Emby是市面上为数不多的私人多媒体服务器软件,它有最强大的影片搜刮能力(没有之一),并且可以非常便捷远程维护其媒体库。作为一个完美的媒体播放解决方案,它提供了包括但不限于:播放、转码、刮削媒体信息、管理资料库、电视直播等功能。使用体验非常舒适,并且提供全平台客户端和web端支持。
VPS挂载Google Drive无限空间网盘–存放电影
Emby–影音系统 搜刮电影信息&播放电影
准备工作
1.一台VPS云服务器
2.加入电影共享团队盘
如果自己去整理电影资源非常耗时耗力,网上有人专门整理的,推荐这个:
![图片[2]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby01-1024x731-1.png)
一、VPS挂载Google Drive网盘
1.安装rclone挂载工具
curl https://rclone.org/install.sh | sudo bash
![图片[3]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby05-1024x87-1.png)
2.配置rclone
rclone config
![图片[4]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby28.png)
name emby 随意取 但是后面的代码也会相应改变
![图片[5]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby29-1024x169-1.png)
Choose a number from below, or type in your own value
选谷歌 (13) 可能会因为版本的不同而改变 注意选择 Google drive
![图片[6]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby08-1024x356-1.png)
client_id> 直接回车
![图片[7]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby09-1024x147-1.png)
client_secret> 直接回车
![图片[8]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby10-1024x251-1.png)
Choose a number from below, or type in your own value
scope> 1 选1 有最大的使用权限
![图片[9]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby11-1024x439-1.png)
root_folder_id>直接回车
service_account_file>直接回车
![图片[10]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby12-1024x183-1.png)
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n #不用别的高级配置
![图片[11]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby13-1024x126-1.png)
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 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby14-1024x198-1.png)
Please go to the following link: https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Log in and authorize rclone for access
![图片[13]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby15-1024x97-1.png)
登录谷歌账号授权
![图片[14]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby17-1024x742-1.png)
![图片[15]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby17-1-1024x742-1.png)
![图片[16]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby18-1024x716-1.png)
![图片[17]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby19-1024x702-1.png)
Enter verification code>贴入你获取到的key
![图片[18]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby20-1024x97-1.png)
Configure this as a team drive?
y) Yes
n) No (default)
y/n> y
![图片[19]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby21-1024x148-1.png)
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 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby22-1024x255-1.png)
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
![图片[21]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby23-1024x262-1.png)
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 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby24-1024x383-1.png)
3.挂载Google Drive到VPS目录
创建一个挂载目录,我们在/home/目录下创建gdrive文件夹作为挂载目录。
mkdir -p /home/gdrive
![图片[23]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby25-1024x112-1.png)
挂载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 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby27-1024x325-1.png)
上面这些可以根据需要自己改参数,如果VPS配置高可以吧数字改大一点。
如果出现如下提示:
![图片[25]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby30-1024x58-1.png)
运行图下命令之后从新挂载:
CentOS系统
yum install fuse -y
debian/Ubuntu系统
apt-get install fuse
4.查看挂载是否成功
df -h
![图片[26]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby31-1024x624-1.png)
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 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/561bc276520b9_1-1024x556-1.png)
Emby是市面上为数不多的私人多媒体服务器软件,它有最强大的影片搜刮能力(没有之一),并且可以非常便捷远程维护其媒体库。作为一个完美的媒体播放解决方案,它提供了包括但不限于:播放、转码、刮削媒体信息、管理资料库、电视直播等功能。使用体验非常舒适,并且提供全平台客户端和web端支持。
2.Emby搭建方法
进入官网后,点击【Download】-【Linux】
![图片[28]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby32-1024x478-1.png)
我使用的是Debian X64系统,安装方法如下(其他Linux系统同理):
![图片[29]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby33-1024x554-1.png)
具体方法如下
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 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby36-1024x258-1.png)
2.2安装Emby
dpkg -i emby-server-deb_4.5.2.0_amd64.deb
![图片[31]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby38-1024x200-1.png)
如果没有报错,安装就完成了。
三、Emby初始化设置
浏览器打开,配置看图操作。
http://VPS的IP地址:8096
![图片[32]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby39-1024x100-1.png)
![图片[33]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby40-1024x412-1.png)
![图片[34]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby42-1024x890-1.png)
这里暂时不添加媒体库
![图片[35]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby43-1024x219-1.png)
![图片[36]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby44-1024x434-1.png)
![图片[37]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby45-1024x396-1.png)
![图片[38]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby46-1024x407-1.png)
![图片[39]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby47-1024x347-1.png)
四、Emby添加媒体库
进入Emby后,我们发现里面什么都没有,是因为我们没有添加媒体库。我们点击右侧的【设置】开始添加媒体库。
![图片[40]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby001-1024x132-1.png)
点击左侧的【媒体库】,参照下命的图片设置。
![图片[41]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby003-1024x480-1.png)
![图片[42]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby004-1-1024x429-1.png)
![图片[43]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby005-1-1024x428-1.png)
![图片[44]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby006-1024x362-1.png)
![图片[45]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby007-1024x422-1.png)
![图片[46]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby007-1-1024x422-1.png)
![图片[47]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby008-1024x379-1.png)
![图片[48]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby009-1024x413-1.png)
![图片[49]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby010-1024x440-1.png)
![图片[50]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby011-1024x505-1.png)
![图片[51]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby012-1024x315-1.png)
到这里Emby的一个媒体库就添加完成了,我们可以用同样的方法添加其他的媒体库。
添加完成媒体库需要等待Emby检索数据,等一下就行了。
五、效果展示
效果如图:
![图片[52]-VPS搭建EMBY & 挂载Google Drive 搭建自己的媒体中心-软件库](https://www.knrjk.com/wp-content/uploads/2023/02/emby013-1024x576-1.png)
Emby、不限于于如此,还可以播放音乐、电视直播等功能。感兴趣可以自己研究一下。
暂无评论内容