transmission 安装配置

添加fedora官方源并安装:

curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum -y install transmission transmission-daemon
systemctl start transmission-daemon
systemctl stop transmission-daemon
systemctl enable transmission-daemon.service

创建transmission储存目录并赋予相关权限:

mkdir -p
chown -R transmission:transmission /mnt/movies/PT/
chmod g+w /mnt/movies/PT/

配置transmission:

vim /var/lib/transmission/.config/transmission-daemon/settings.json
 
"download-dir": "/home/transmission/download",  #下载完成后的储存目录
"incomplete-dir": "/home/transmission/download",  #下载中的储存目录
"rpc-authentication-required": true,  #默认是false, 改为true即可
"rpc-password": "登陆密码",  #默认是"一长串加密的密码"
"rpc-username": "登陆用户名",  #默认是"空的"
"rpc-whitelist-enabled": false,  #默认是true, 改为false即可
"umask": 0,
 
#启动transmission
systemctl start transmission-daemon

登陆transmission: http://yourIP:9091

输入上方填写的用户名和密码即可登陆transmission

# 依赖环境
apt-get install build-essential libssl-dev automake autoconf libtool pkg-config intltool libcurl4-openssl-dev libglib2.0-dev libevent-dev libminiupnpc-dev
# 下载源码
wget https://github.com/transmission/transmission-releases/raw/master/transmission-2.94.tar.xz
tar xf transmission-2.94.tar.xz
cd transmission-2.94
# 编译,指定prefix
./configure --prefix=/usr/local/transmission --enable-cli
make && make install

2.1 配置systemd服务

创建transmission用户:

groupadd -r transmission
useradd -s /sbin/nologin -g transmission -r transmission
id transmission

配置systemd服务:

cat > /etc/systemd/system/transmission.service<<'EOF'
[Unit]
Description=Transmission BitTorrent Daemon
After=network.target
 
[Service]
User=transmission
LimitNOFILE=100000
ExecStart=/usr/local/transmission/bin/transmission-daemon -f --log-error -g /usr/local/transmission/etc --logfile /var/log/transmission.log
 
[Install]
WantedBy=multi-user.target
EOF
 
systemctl daemon-reload
touch /var/log/transmission.log
chown -R transmission:transmission /usr/local/transmission/ /var/log/transmission.log

# 启动Transmission生成配置文件
# 编辑前关闭Transmission否则配置会被还原
systemctl start transmission.service
systemctl stop transmission.service
systemctl enable transmission.service

修改下面几项,其余的都可以通过后面的WEB-GUI工具来配置:

vim /usr/local/transmission/etc/settings.json
 
"rpc-authentication-required": true,
"rpc-username": "mrco",
"rpc-password": "{865daa3aee74daf673373db23207829cd9be99cfb7OppbSx",
"rpc-whitelist-enabled": false,
"preallocation": 0,
"umask": 0,
"bind-address-ipv6": "fe80::",

运行 & 查看状态:

chown -R transmission:transmission /usr/local/transmission
systemctl start transmission.service
netstat -antlp | grep transmission

transmission-web-control是一个增强的WebUI套件,不能代替 Transmission 工作,用户需要自行安装 Transmission 后才可正常使用.

wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control.sh
sudo bash install-tr-control.sh
# 比如你用我上文提供的transmission的话
sudo bash install-tr-control.sh /usr/local/transmission/share/transmission

找不到libminiupnpc.so.10:

apt install libminiupnpc-dev

transmission-web-control界面显示不全:

# 重新安装,如果还是不行尝试:
chown -R 755 /usr/local/transmission/share/transmission/web/

  • linux/others/transmission安装配置.txt
  • 最后更改: 2019/09/03 18:19
  • 由 mrco