ETOC

CENTOS7再次安装Transmission-daemon和transmission-web-control

原来安装过Transmission-daemon的KS服务器不知道怎么回,被我玩坏了。怎么也找不到原来安装过的程序,索性重新安装一下算了。这次简单化安装 ,不再编译安装了。

yum install epel-release
yum -y update

Just run the following command to install Transmission:
yum install transmission-cli transmission-common transmission-daemon
Once complete, you can verify Transmission is installed by running the below command:
systemctl start transmission-daemon.service
systemctl stop transmission-daemon.service

Edit the transmission settings.json config file:
nano /var/lib/transmission/.config/transmission-daemon/settings.json

OK now let’s edit the settings (to your liking) and don’t forget to save.

"rpc-authentication-required": true,
"rpc-enabled": true,
"rpc-password": "mypassword",
"rpc-username": "mysuperlogin",
"rpc-whitelist-enabled": false,
"rpc-whitelist": "0.0.0.0",

After editing and saving the settings.json file, start the transmission daemon:
systemctl start transmission-daemon.service

Transmission BitTorrent Client will be available on HTTP port 9091 by default. Open your favorite browser and navigate to http://yourdomain.com:9091 or http://server-ip:9091. You should be greeted with the Transmission WebUI. After logging in, you will notice that the value for the rpc-password inside the settings.json file will be hashed. If you are using a firewall, please open port 80 to enable access to the control panel.

trouble shooting(常见问题)

在客户端访问服务端的 9091 端口打不开
检查 firewalld 是否启动,需要检查 tcp 9091 端口是否放行。注意 transmission 需要在一个端口(默认51413)监听,必须在 firewalld 中放行 tcp、udp 的这个端口。
sudo firewall-cmd --permanent --add-service=transmission-client
这个 transmission-client 估计是在安装 transmission 的时候自动创建的。
检查本机的 9091 端口是否在 listening ss -lnp | grep 9091

修改下载路径到 /home/red/transmission

sudo usermod -a -G transmission red
sudo chgrp -R transmission /home/red/transmission/
sudo chmod -R 770 /home/red/transmission/
sudo systemctl stop transmission-daemon.service
The last thing to do is change the file creation mask, so that the downloaded files would be writeable by red.
sudo vim /var/lib/transmission/.config/transmission-daemon/settings.json
and change "umask": 18 to "umask": 2.
start tranmission-daemon
sudo sudo systemctl start transmission-daemon.service

修改 setting.json 设置默认下载路径
修改下面两个地方 修改配置需要提前 systemctl stop transmission-daemon

"download-dir": "/home/red/transmission",
"incomplete-dir": "/home/red/transmission",

再次提醒:修改配置前停止程序,否则修改不生效。

中文版transmission-web-control安装:
因为脚本是全中文提示所以这里只给出命令,请自行执行即可。

wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh
chmod +x install-tr-control-cn.sh
bash install-tr-control-cn.sh

如果命令成功执行,将出现以下界面:

参考:
上次安装文档
[[https://e2c.net/2019/02/26/8.html]][4]
貌似官方文档
[[https://wiki.archlinux.org/index.php/transmission]][1]

transmission-web-control中文版
[[https://github.com/ronggang/transmission-web-control]][2]

install-tr-control-cn.sh文件留档
[[https://e2c.net/usr/uploads/2019/05/162501550.zip]][3]

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »