Private Tracker Wiki
  • Wellcome Private Tracker Wiki
  • 什么是 Private Tracker(PT)
  • PT & BT 中经常见到的词汇
  • Private Tracker生存指南
  • 常见红种原因分析及解决方法
  • Private Tracker 常见站点导航
  • U2分享園@動漫花園之资源申请|发布细则
  • SeedBox Wiki
    • 一键部署脚本&常见盒子服务商
    • PT盒子/SeedBox简单入门介绍
    • 盒子(SeedBox)的选择&购买
    • Flexget 安装&配置 入门级教程
    • 自动移除种子及其数据
    • Ubuntu 18.04 手动修改 DNS 方法
    • 客户端编译安装教学
      • Ubuntu/Debian Linux编译Deluge安装
      • Ubuntu/Debian Linux编译qBittorrent安装
    • qBittorrent参数详细设置教程
    • 常见PT客户端忘记密码的解决方法
    • 使用MTU设置优化Ubuntu Internet速度
    • 高性价比 seedbox 统计 by Aniverse
    • PT 限盒/限 IP/HR 情况统计表 by Aniverse
    • SeedBox优化Linux的参数
  • Aniverse(星大)语 录
  • 原盘食用方法BDPBC_MANUAL
由 GitBook 提供支持
在本页
  • 前言
  • 安裝編譯libtorrent的工具和依賴
  • 安裝Deluge的工具和依賴
  • 設置開機自啟
  • 創建下載文件夾和設置權限
  • [嘗鮮] 安裝Deluge2.0正式版
  • 安裝Deluge的工具和依賴
  • 設置開機自啟
  • 創建下載文件夾和設置權限
  • 安装ItConfig

这有帮助吗?

  1. SeedBox Wiki
  2. 客户端编译安装教学

Ubuntu/Debian Linux编译Deluge安装

by 神北小毬&R酱 https://npchk.info/deluge-ubuntu-debian/ & https://blog.rhilip.info/archives/754/

前言

透過APT安裝的Deluge有兩個缺點:版本老舊 (特別是Debian)、不能指定版本。

此教學通過測試於Ubuntu 16.04/18.04 和 Debian 8/9。

以下將從Deluge官網下載安裝包,並使用Deluged和Deluge-web (WebUI) 文章下半段有Deluge2.0安裝教學

上次更新日期:2019 年 11 月 9 日

安裝編譯libtorrent的工具和依賴

apt update
apt install build-essential 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_12/libtorrent-rasterbar-1.1.12.tar.gz
tar xf libtorrent-rasterbar-1.1.12.tar.gz
cd libtorrent-rasterbar-1.1.12
./configure --disable-debug --enable-python-binding --with-libiconv
make -j$(nproc)
make install
ldconfig

安裝Deluge的工具和依賴

apt install python 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
wget http://download.deluge-torrent.org/source/deluge-1.3.15.tar.xz

解壓Deluge安裝包:

tar xvJf deluge-1.3.15.tar.xz
cd deluge-1.3.15

安裝Deluge:

python setup.py build
python setup.py install --install-layout=deb

設置開機自啟

nano /etc/systemd/system/deluged.service

輸入以下內容:

[Unit]
Description=Deluge Bittorrent Client Daemon
After=network.target
 
[Service]
LimitNOFILE=512000
User=root
ExecStart=/usr/bin/deluged -d
 
[Install]
WantedBy=multi-user.target
nano /etc/systemd/system/deluge-web.service

輸入以下內容:

[Unit]
Description=Deluge Bittorrent Client Daemon
After=network.target
 
[Service]
LimitNOFILE=512000
User=root
ExecStart=/usr/bin/deluge-web
 
[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

安裝完成!在瀏覽器輸入 http://你的IP地址:8112 即可進入DelugeWebUI

WebUI默認密碼:deluge

創建下載文件夾和設置權限

mkdir /home/Downloads
chmod 777 /home/Downloads

Deluge把下載路徑設置到 /home/Downloads就OK了!

[嘗鮮] 安裝Deluge2.0正式版

此部分目前僅適用於Ubuntu18。 Deluge2.0已遷移到Python3,需要的軟件包python-libtorrent會換做python3-libtorrent。

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_12/libtorrent-rasterbar-1.1.12.tar.gz
tar xf libtorrent-rasterbar-1.1.12.tar.gz
cd libtorrent-rasterbar-1.1.12
./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
git clone --branch deluge-2.0.3 https://github.com/deluge-torrent/deluge/

安裝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

安裝完成!在瀏覽器輸入 http://你的IP地址:8112 即可進入DelugeWebUI

WebUI默認密碼:deluge

創建下載文件夾和設置權限

mkdir /home/Downloads
chmod 777 /home/Downloads

Deluge把下載路徑設置到 /home/Downloads就OK了!

安装ItConfig

ltConfig is a plugin for Deluge that allows direct modification to libtorrent settings.

进入Deluge WebUI配置页面安装

安装完成后启用该插件即可~

附送二个配置

Itconfig 参数修改(适用于32G及以上内存独立服务器)

active_limit = 2000;
active_seeds = 2000;
allow_multiple_connections_per_ip: true
auto_upload_slots = false;
cache_buffer_chunk_size = 128;
cache_expiry: 120;
cache_size: 512000;
choking_algorithm: 1;
close_redundant_connections = true;
enable_incoming_utp: false;
enable_outgoing_utp: false;
file_pool_size = 500;
inactivity_timeout = 20;
low_prio_disk: false;
max_failcount = 1;
max_queued_disk_bytes: 262144000;
max_queued_disk_bytes_low_watermark: 131072000;
max_rejects = 10;
optimize_hashing_for_speed = true;
peer_timeout = 20;
read_cache_line_size = 512;
request_timeout = 10;
seed_choking_algorithm: 1;
send_buffer_low_watermark: 13107200;
send_buffer_watermark: 26214400;
send_buffer_watermark_factor: 250;
strict_end_game_mode: false;
use_parole_mode: false;
use_read_cache = true;
write_cache_line_size = 512;

Itconfig 参数修改(适用于8G及以上内存独立服务器)

active_limit = 2000;
active_seeds = 2000;
allow_multiple_connections_per_ip: true
auto_upload_slots = false;
cache_buffer_chunk_size = 128;
cache_expiry: 60;
cache_size: 131000;
choking_algorithm: 1;
close_redundant_connections = true;
enable_incoming_utp: false;
enable_outgoing_utp: false;
file_pool_size = 500;
inactivity_timeout = 20;
low_prio_disk: false;
max_failcount = 1;
max_queued_disk_bytes: 7340032;
max_rejects = 10;
optimize_hashing_for_speed = true;
peer_timeout = 20;
read_cache_line_size = 64;
request_timeout = 10;
seed_choking_algorithm: 1;
send_buffer_low_watermark: 1048576;
send_buffer_watermark: 3145728;
send_buffer_watermark_factor: 150;
strict_end_game_mode: false;
use_parole_mode: false;
use_read_cache = true;
write_cache_line_size = 256;
上一页客户端编译安装教学下一页Ubuntu/Debian Linux编译qBittorrent安装

最后更新于4年前

这有帮助吗?

從官網下載Deluge安裝包,若需指定版本請自行修改版本號 (不適用於de2.0):

從Github獲取源碼,現時最新版本是Deluge-2.0.3,若需指定版本請自行修改版本號:

介绍页面:

到 上下载最新的egg发布文件

http://download.deluge-torrent.org/source/
http://download.deluge-torrent.org/source/
http://forum.deluge-torrent.org/viewtopic.php?t=42887
https://github.com/ratanakvlun/deluge-ltconfig/releases