CentOS X64
1、 安装,可以先去查看最新版本进行替换

yum install https://github.com/MediaBrowser/Emby.Releases/releases/download/4.4.3.0/emby-server-rpm_4.4.3.0_x86_64.rpm

2、sudo -i 切换为 root 用户
3、使用 systemctl stop emby-server.service 结束 emby 进程
4、使用 find / -name EmbyServer 找到 emby,比如这里我的 emby 所在目录为/opt/emby-server/system/
5、使用 wget -O /opt/emby-server/system/System.Net.Http.dll 'http://file.neko.re/EmbyCrack/unix-x64/System.Net.Http.dll' --no-check-certificate(注意替换掉命令中的 emby 所在目录)下载破解程序集替换原有程序
6、启动 Emby 进程 systemctl start emby-server.service

PS: system/System.Net.Http.dll
System.Net.Http.dll
原作者:https://github.com/YukiCoco/EmbyCrack
7、客户端
浏览器:安装 URLRedirector 插件,将 https://mb3admin.com 替换为 http://crackemby.neko.re
URLRedirector.crx
Android & Android TV:直接使用破解版,自己找找就有了
8、 Open a web browser to http://localhost:8096
9、挂在Gdrive,利用rclone可以方便挂在GD
9.1 准备工作

yum install unzip fuse -y

9.2 安装rclone

curl https://rclone.org/install.sh | sudo bash

9.3 配置

rclone config

o remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n

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

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

client_id> 直接回车

client_secret> 直接回车

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

ID of the root folder
Leave blank normally.

Fill in to access "Computers" folders (see docs), or for rclone to use
a non root folder as its starting point.

Note that if this is blank, the first time rclone runs it will fill it
in with the ID of the root folder.

Enter a string value. Press Enter for the default ("").
root_folder_id> 空,直接回车。空是跟路径如果想用别的根路径

Service Account Credentials JSON file path
Leave blank normally.
Needed only if you want use SA instead of interactive login.
Enter a string value. Press Enter for the default ("").
service_account_file> 直接回车

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

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 因为我们是vps操作,不能auto config

Please go to the following link: https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Log in and authorize rclone for access
Enter verification code>贴入你获取到的key

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

Choose a number from below, or type in your own value
1 / xxx
\ "0AGfwXXXXXXXXXXXX"
2 / xxx
\ "0AXXXXXXXXXXXXXXX"
Enter a Team Drive ID>

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

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

9.4 挂载

mkdir -p /home/gdrive

/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 &

9.5 查看挂载

df -h

9.6 自动挂载

cat > /etc/systemd/system/rclone.service <<EOF
[Unit]
Description=Rclone
AssertPathIsDirectory=LocalFolder
After=network-online.target

[Service]
Type=simple
ExecStart=/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
ExecStop=/bin/fusermount -u LocalFolder
Restart=on-abort
User=root

[Install]
WantedBy=default.target
EOF

9.7 设置启动

systemctl start rclone

9.8 开启启动

systemctl enable rclone

10、如果采用域名并采用https的话,需要利用pfx证书,转换可以用下面这个网址:http://www.ssleye.com/jks_pkcs12.html
参考地址:https://neko.re/archives/128.html

评论已关闭