下载文件大小过滤
\[\d\d\..*MB\]|\[\d\..*MB\]
\[[1-3]\..*GB\]
CentOS安装Transmission
yum -y install epel-release
yum -y update
yum install transmission-daemon
systemctl start transmission-daemon.service
systemctl stop transmission-daemon.service
systemctl enable transmission-daemon
vi /var/lib/transmission/.config/transmission-daemon/settings.json
"encryption": 2,//等于0时不加密,1是优先加密,2是必须加密
“dht-enabled”: false, //启用DHT网络(通过tracker寻找节点),默认启用
"rpc-authentication-required": true,//是否启用安全策略
"rpc-enabled": true,//是否开启网页
"rpc-password": "输入你的管理密码",
"rpc-username": "管理你的用户名",
"rpc-whitelist-enabled": false,//是否限制IP
"download-dir": "/var/lib/transmission/Downloads", //下载完成的保存路径
"incomplete-dir": "/var/lib/transmission/Downloads", //未下载完成的保存路径
chown -R transmission 新下载文件路径 chgrp -R transmission 新下载文件路径
wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control.sh --no-check-certificate
bash install-tr-control.sh
Debian安装Transmission
apt-get install transmission-daemon
service transmission-daemon stop
vi /var/lib/transmission-daemon/info/settings.json
download-dir”: “/down”, #下载目录的绝对路径,根据自己的硬盘情况来设定
“incomplete-dir”: “/down/temp”, #临时文件路径
“rpc-authentication-required”: true, #启用验证
“rpc-bind-address”: “0.0.0.0”, #允许任何IP通过RPC协议访问
“rpc-enabled”: true, #允许通过RPC访问
“rpc-password”: “123456”, #RPC验证密码(保存并启动后daemon会计算并替换为HASH值以增加安全性)
“rpc-port”: 9091, #RPC端口
“rpc-username”: “transmission”, #RPC验证用户名
“rpc-whitelist”: “*”, #RPC访问白名单
“rpc-whitelist-enabled”: false, #关闭白名单功能以便公网访问
service transmission-daemon start
wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh
chmod +x install-tr-control-cn.sh
./install-tr-control-cn.sh
Debian安装qBittorrent
wget https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-4.4.2_v2.0.5/x86_64-qbittorrent-nox
chmod +x x86_64-qbittorrent-nox
./x86_64-qbittorrent-nox -d --webui-port=38080
开机自启
nano /etc/rc.local
添加自启代码:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/root/x86_64-qbittorrent-nox -d --webui-port=38080
exit 0
chmod +x /etc/rc.local
Debian安装qBittorrent
apt update -y && apt upgrade -y
apt install qbittorrent-nox -y
nano /etc/systemd/system/qbittorrent-nox.service
[Unit]
Description=qBittorrent Command Line Client
After=network.target
[Service]
Type=forking
User=root
Group=root
UMask=007
ExecStart=/usr/bin/qbittorrent-nox -d --webui-port=8080
Restart=on-failure
[Install]
WantedBy=multi-user.target
systemctl daemon-reload && systemctl enable qbittorrent-nox
systemctl start qbittorrent-nox
systemctl status qbittorrent-nox
---------------------------------------
adduser --system --group qbittorrent-nox
adduser your-username qbittorrent-nox
User=qbittorrent-nox
Group=qbittorrent-nox
#Dedicated-Seedbox
https://github.com/jerry048/Dedicated-Seedbox
bash <(wget -qO- https://raw.githubusercontent.com/jerry048/Dedicated-Seedbox/main/Install.sh) <username> <password> <Cache Size(unit:GiB)>
#IYUUAutoReseed - IYUU自动辅种工具
https://github.com/ledccn/IYUUAutoReseed