Ubuntu下,安装Viewscreen,可磁力搜索、BT种子搜索、离线下载、在线转码等
viewscreen是一个开源项目,可BT种子搜索、离线下载、在线转码等,下面是简单的安装教程。
基于Ubuntu 16.04,也是官方的推荐。
- 解析需要使用的域名
- 安装ffmpeg
apt -y update apt -y install ffmpeg x264 supervisor wget
- 下载二进制文件
wget https://github.com/viewscreen/viewscreen/raw/master/viewscreen-linux-amd64 -O /usr/bin/viewscreen chmod +x /usr/bin/viewscreen
- 给执行权限
setcap cap_net_bind_service=+ep /usr/bin/viewscreen
- 新建一个文件下载存放目录
mkdir -p /opt/viewscreen/Downloads
- 配置域名
viewscreen --http-host 你的域名 -http-addr :8080 --http-username 用户名 --download-dir /opt/viewscreen/Downloads
- 新建 supervisor 配置文件
nano /etc/supervisor/conf.d/viewscreen.conf
- 写入如下配置( –http-username 后是WEB面板用户名)
[program:viewscreen] priority=1 directory=/usr/bin command=/usr/bin/viewscreen --http-host 你的域名 -http-addr :8080 --http-username 用户名 --download-dir /opt/viewscreen/Downloads autostart=true autorestart=true redirect_stderr=true stdout_logfile=/var/log/supervisor/viewscreen.log
- 更新配置
supervisorctl update
- 查看WEB面板登录密码
cat /var/log/supervisor/viewscreen.log
- 登录WEB面板地址
http://www.ensu.cc:8080/viewscreen/
- 直接粘贴磁力链接就可以下载种子
- 开源页面:https://github.com/viewscreen/viewscreen,教程为:https://ensu.cc/archives/891/