1 准备一台服务器
我用的是Digital Ocean的服务器,优点是可以随时毁掉。我在这里就不演示怎么创建了。需要的可以参照:https://www.imtrq.com/archives/2672(vultr),https://www.imtrq.com/archives/581(DigitalOcean)
第一步看完,直到能SSH登录就行了
2 在服务器上安装Alist,并挂载夸克网盘
在ssh里运行
curl -fsSL "https://nn.ci/alist.sh" | bash -s install
出现以下提示则代表安装成功

访问:http://你的ip:5244/,进入Alist管理页面,用初始管理密码登录
依次点击左侧的 账号——添加——选择夸克网盘(quark)

填入Cookie和根目录ID

Cookie和根目录ID的获取办法:登录夸克网盘网页版,按F12跳转到开发者模式,在network中找到sort开头的这一请求,pdir_fid=后面的字符串即为当前目录id,我这里是0

往下拉可以看到Cookie

访问http://你的ip:5244,能看到你的文件,则代表alist挂载quark网盘成功

3 用rclone将其挂载到本地
就是普通的rclone挂载webdav,熟悉的朋友可以跳过
ssh登录到服务器,安装rclone
sudo -v ; curl https://rclone.org/install.sh | sudo bash
出现类似以下信息则代表安装成功
rclone v1.59.1 has successfully installed. Now run "rclone config" for setup. Check https://rclone.org/docs/ for more details.
输入rclone config开始配置
No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n
输入n
Enter name for new remote. name> alist
输入你想取的名称
Option Storage. Type of storage to configure. Choose a number from below, or type in your own value. …… 45 / WebDAV \ (webdav) …… 49 / seafile \ (seafile) Storage> 45
输入45,选择webdav
Option url. URL of http host to connect to. E.g. https://example.com. Enter a value. url> http://你的ip:5244/dav
输入http://你的ip:5244/dav ,注意要加上dav
Option vendor. Name of the WebDAV site/service/software you are using. Choose a number from below, or type in your own value. Press Enter to leave empty. 1 / Nextcloud \ (nextcloud) 2 / Owncloud \ (owncloud) 3 / Sharepoint Online, authenticated by Microsoft account \ (sharepoint) 4 / Sharepoint with NTLM authentication, usually self-hosted or on-premises \ (sharepoint-ntlm) 5 / Other site/service or software \ (other) vendor> 5
选择5,other
Option user. User name. In case NTLM authentication is used, the username should be in the format 'Domain\User'. Enter a value. Press Enter to leave empty. user> admin Option pass. Password. Choose an alternative below. Press Enter for the default (n). y) Yes, type in my own password g) Generate random password n) No, leave this optional password blank (default) y/g/n> y Enter the password: password: Confirm the password: password:
填入用户名,选择y选择输入密码,填入密码。用户名和密码可以在alist后台——后端看到:

Option bearer_token. Bearer token instead of user/pass (e.g. a Macaroon). Enter a value. Press Enter to leave empty. bearer_token> Edit advanced config? y) Yes n) No (default) y/n> Configuration complete. Options: - type: webdav - url: - vendor: other - user: admin - pass: * ENCRYPTED * Keep this "alist" remote? y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> Current remotes: Name Type ==== ==== alist webdav 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
后面的步骤一路回车跳过,最后选择q退出
使用下面的命令将alist挂载到本地
mkdir /home/alist rclone mount alist: /home/alist --allow-other
如果提示fusermount错误,可能需要先安装fuse:
yum install fuse
使用 ls /home/alist 看看有没有挂载成功

成功
4 安装并使用Emby
在官网(https://emby.media/linux-server.html)选择合适版本的服务端,我是centos64位,直接输入
yum install https://github.com/MediaBrowser/Emby.Releases/releases/download/4.7.6.0/emby-server-rpm_4.7.6.0_x86_64.rpm
下载并安装,出现以下提示则代表安装成功:
Installed: emby-server-4.7.6.0-1.x86_64 Complete!
在浏览器中访问 http://你的ip:8096即可进入emby控制台
接下来跟着网页提示走,新建一个默认用户,语言选简体中文(Chinese Simplified),地区选中国(China)即可。
登录之后可以看到控制台

在媒体库中新增媒体

点击确定,之后选择“扫描媒体库文件”

等待扫描完成即可。



Comments | 3 条评论
大佬,开机自动挂载命令应该怎么写啊
@哇塞 这个我也不清楚呀,这个服务器性能不太行,我后来已经没有用它搭建EMBY了。
可以参考恩山论坛的教程:https://www.right.com.cn/forum/thread-7371875-1-1.html
不错已经完美启动了,n100终于有用武之地了hh