VPS服务器搭建EMBY和挂载Google云端硬盘
1,安装emby

wget https://github.com/MediaBrowser/Emby.Releases/releases/download/4.4.3.0/emby-server-deb_4.4.3.0_amd64.deb

dpkg -i emby-server-deb_4.4.3.0_amd64.deb

IP:8096在wed上看能否打开。

如果你还是打不开那可能是因为端口未开放的缘故Ubuntu系统下打开端口

iptables -F
1,安装rclone

curl https://rclone.org/install.sh | sudo bash
2,配置

rclone config

o找到遥控器-创建一个新遥控器
n)新遥控器
s)设置配置密码
q)退出配置
n / s / q> n

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

从下面选择一个数字,或输入您自己的值
选谷歌(13)可能会因为版本的不同而改变注意选择Google drive

client_id>直接回车

client_secret>直接回车

从下面选择一个数字,或键入您自己的值
范围> 1选1有最大的使用权限。

根文件夹的ID
通常留空。

填写以访问“计算机”文件夹(请参阅文档),或者让rclone使用
非根文件夹作为起点。

请注意,如果为空,则第一次运行rclone时,它将
使用根文件夹的ID进行填充。

输入一个字符串值。按Enter作为默认值(“”)。
root_folder_id>空,直接回车。空是跟路径如果想用别的根路径

服务帐户凭据JSON文件路径
通常留空。
仅当您要使用SA而不是交互式登录时才需要。
输入一个字符串值。按Enter作为默认值(“”)。
service_account_file>直接回车

编辑高级配置?(y / n)
y)是
n)否(默认)
y / n> n不用别的高级配置

使用自动配置?

如果不确定则说Y
如果在远程或无头计算机上工作,请说N。y
)是(默认)
n)否
y / n> n因为我们是vps操作,不能auto config
请转至以下链接:https:// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
登录并授权rclone进行访问
输入验证码> 粘贴入您获取到的密钥

将其配置为团队协作吗?
y)是
n)否(默认)
y / n> y

从下面选择一个数字,或输入您自己的值
1 /影音云端盘
\“ 0AGfwXXXXXXXXXXXX”
2 / homenet6精英nas盘
\“ 0AXXXXXXXXXXXXXXX”
输入团队驱动器ID>

y)是,这是确定的(默认)
e)编辑此遥控器
d)删除此遥控器
y / e / d> y

e)编辑现有的遥控器
n)新建遥控器
d)删除遥控器
r)重命名遥控器
c)复制遥控器
s)设置配置密码
q)退出配置
e / n / d / r / c / s / q> q

3.挂载

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

4,查看挂载

df -h
5,自动挂载

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
6,设置启动

systemctl start rclone

7,开启启动

systemctl enable rclone
8,安装bbrplus这里和之前建造SSR之类使用BBR加速一样不多余述

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

9,虚拟内存

wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh
暂无评论

发送评论 编辑评论


|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇