Last update at :2024-05-18,Edit by888u
Transmission is a BitTorrent client that features a cross-platform backend and a simple user interface. It consumes very little hardware resources and supports multiple operating systems including Linux, BSD, Solaris, Mac OS X, etc., as well as Networked Media Tank, WD MyBook, ReadyNAS, D-Link DNS-323 & CH3SNAS, Synology and other devices. Supports GTK+, command line, Web and other interfaces.
TRANSMISSION main configuration
"blocklist-enabled": false, | Whether to enable the blacklist can be modified in the web interface |
"blocklist-url": "http://www.example.com/blocklist", | The blacklist address can be modified in the web interface |
"dht-enabled": true, | Start DHT, which can be modified in the web interface |
“download-dir”: “/PATH/TO/DIR”, | Default download directory |
"incomplete-dir": "/var/ftp/pub", | The directory where undownloaded files are stored |
"incomplete-dir-enabled": false, | Whether to enable the undownloaded directory |
“lpd-enabled”: false, | Local node discovery is only useful when there are multiple BT servers in the intranet and can be modified in the web interface |
"peer-port": 51413, | Input the port number and check whether the port is blocked. You can modify it in the web interface |
"preallocation": 1, | Pre-allocate download space to prevent you from finding insufficient space during the download and continuing the download. |
"rename-partial-files": true, | Renaming unfinished files will add .part at the end |
"rpc-authentication-required": true, | Enable remote control, it is recommended to turn it on |
"rpc-bind-address": "0.0.0.0", | Remote control address, the default means that all IPs can be controlled |
“rpc-enabled”: true, | Whether to enable remote connection, it is recommended to enable it |
"rpc-password": "PASSWORD", | Password used to authenticate users |
"rpc-port": 9091, | Port of web interface |
"rpc-username": "USERNAME", | Username for authenticating users |
"rpc-whitelist": "127.0.0.1", | A whitelist of IP addresses that allow remote connections, supports wildcards, and multiple IPs are separated by commas |
"rpc-whitelist-enabled": false, | Whether to enable remote connection whitelist |
"script-torrent-done-enabled": false, | Run script when torrent completes, closed by default |
"script-torrent-done-filename": "", | Script path |
"umask": 18, | The permission mask of the downloaded file, the default is 755 permission after downloading 18. |
Configure TRANSMISSION
Environment:
- CentOS7/RedHat7 Install Transmission
Install web interface
[root@lynk ~]# wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh [root@lynk ~]# bash install-tr-control-cn.shConfiguring Transmission
#Close the Transmission process [root@lynk ~]# systemctl stop transmission-daemon.service #Edit configuration file [root@lynk ~]# vim /var/lib/transmission/.config/transmission-daemon/settings.json #Modify the following content "rpc-host-whitelist-enabled": false, #Turn off ip whitelist mode "rpc-authentication-required": true, #Enable user authentication "rpc-username": "your username", #Username for login "rpc-password": "Your password", #The password used to log in will automatically become a HASH code after running it once. "rpc-whitelist-enabled": false, #Turn off whitelist mode #Start Transmission process [root@lynk ~]# systemctl start transmission-daemon.serviceTry to use server ip:9091 on the browser to enter the Transmission interface to verify the installation
Configure FTP anonymous access to facilitate downloading. For more information about FTP, please refer to my other blog: FTP Service and Configuration
[root@lynk ~]# yum -y install vsftpd [root@lynk ~]# vim /etc/vsftpd/vsftpd.conf 1. Modify listen=YES #Let the FTP service listen on ipv4 2. Comment listen_ipv6=YES #Not allowed to listen on ipv6 (ipv6 and ipv4 cannot coexist) 3. Add anon_root=/var/lib/transmission/Downloads #Change the default directory of anonymous users to the default download directory of Transmission. [root@lynk ~]# chmod 755 /var/lib/transmission/Downloads #Start ftp service [root@lynk ~]# systemctl restart vsftpdIf you feel that downloading files from the server is too slow and consumes too much server traffic, you can also use a script to back up the downloaded files to OSS every time after the Transmission download is completed. Then get the download address from OSS. This method only provides one idea:)
Recommended site searches: server rental, free virtual host for public welfare, Hong Kong cloud host, private server website space, website virtual host space, US host rental, shopex space, purchase of domain name, free virtual host, Hong Kong cloud host,
发表评论