之前那篇是用的脚本一键安装的deluge。但是感觉多少有点BUG,比如经常连不上后端,WEBUI显示BUG。今天就来编译安装一个最新的2.0.3版本的deluge

安装

相比之前的1.3.15版本,Deluge2.0.3已近由Python2换到Python3

apt update
apt install build-essential checkinstall libboost-system-dev libboost-python-dev libboost-chrono-dev libboost-random-dev libssl-dev automake libtool 
编译安裝Deluge的后端软件libtorrent-rasterbar:
wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1_14/libtorrent-rasterbar-1.1.14.tar.gz
tar xf libtorrent-rasterbar-1.1.14.tar.gz
cd libtorrent-rasterbar-1.1.14
./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --libexecdir=\${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking PYTHON=/usr/bin/python3.6 --enable-python-binding --with-boost-python=boost_python-py36 --with-libiconv --with-boost-libdir=/usr/lib/x86_64-linux-gnu
make -j$(nproc)
make install
python3 setup.py install
ldconfig
安裝Deluge的工具和依賴
apt install python python3-setuptools python-twisted python-openssl python-setuptools intltool python-xdg python-chardet geoip-database python-notify python-pygame python-glade2 librsvg2-common xdg-utils python-mako
安裝Deluge:
git clone --branch deluge-2.0.3 https://github.com/deluge-torrent/deluge/
cd deluge
python3 setup.py build
python3 setup.py install --install-layout=deb
设置开机启动
nano /etc/systemd/system/deluged.service

输入以下内容

[Unit]
Description=Deluge Bittorrent Client Daemon
Documentation=man:deluged
After=network-online.target

[Service]
Type=simple
UMask=007

ExecStart=/usr/bin/deluged -d

Restart=on-failure

# Time to wait before forcefully stopped.
TimeoutStopSec=300

[Install]
WantedBy=multi-user.target
nano /etc/systemd/system/deluge-web.service

输入以下内容

[Unit]
Description=Deluge Bittorrent Client Web Interface
Documentation=man:deluge-web
After=network-online.target deluged.service
Wants=deluged.service

[Service]
Type=simple
UMask=027

ExecStart=/usr/bin/deluge-web -d

Restart=on-failure

[Install]
WantedBy=multi-user.target

启用上面的设置

systemctl enable deluged.service
systemctl enable deluge-web.service

启动Deluged和WebUI:

systemctl start deluged.service
systemctl start deluge-web.service

在浏览器输入你的IP:8112就可以进入Deluge的WEBUI

默认密码是:deluge

创建下载文件夹和设置权限
mkdir /home/seeder/deluge
chmod 777 /home/seeder/deluge

下面是一些Deluge的基本设置

请输入图片描述

请输入图片描述

请输入图片描述

请输入图片描述

请输入图片描述

请输入图片描述

请输入图片描述

请输入图片描述

请输入图片描述

请输入图片描述请输入图片描述


补充

安装ltConfig-2.0.0插件

ltConfig点这里下载插件

reannounce点这里下载插件

ltconfig配置文件

直接在DelugeWebUI上传安装好像是不能正常安装的

将插件上传到这个目录安装

/root/.config/deluge/plugins

配置文件上传到

/root/.config/deluge

注意,先上传配置文件,然后才启用ltConfig这个插件,不然配置文件会被替换掉


反向代理Deluge

之前脚本安装后默认安装了nginx目录为/etc/nginx

在/etc/nginx/apps这个目录里面创建一个名为deluge.conf的文件

然后编辑内容为

location /deluge {
  return 301 /deluge/;
}

location /deluge/ {
  include /etc/nginx/snippets/proxy.conf;
  auth_basic "Password Required";
  auth_basic_user_file /etc/htpasswd.d/htpasswd.$remote_user;
  proxy_set_header X-Deluge-Base "/deluge/";
  rewrite ^/deluge/(.*) /$1 break;
  proxy_pass http://$remote_user.deluge;
}

在/etc/nginx/conf.d这个目录里面创建一个名为seeder.deluge.conf的文件

编辑内容为

upstream seeder.deluge {
  server 127.0.0.1:8112;
}

就先写到这了,有其他再补充

Last modification:September 12th, 2021 at 06:01 pm
如果觉得我的文章对你有用,请随意赞赏