sudo apt-get install transmission-cli transmission-daemon transmission
sudo service transmission-daemon stop
vi /var/lib/transmission-daemon/.config/transmission-daemon/settings.json
然后修改用户名 域名 密码

{
“alt-speed-down”: 50,
“alt-speed-enabled”: false, #限速,禁用
“alt-speed-time-begin”: 540,
“alt-speed-time-day”: 127,
“alt-speed-time-enabled”: false,
“alt-speed-time-end”: 1020,
“alt-speed-up”: 50,
“bind-address-ipv4”: “0.0.0.0”,
“bind-address-ipv6”: “::”,
“blocklist-enabled”: false,
“blocklist-updates-enabled”: true,
“blocklist-url”: “http://www.example.com/blocklist”,
“cache-size-mb”: 4,
“compact-view”: false,
“dht-enabled”: false, #禁用DHT(不通过tracker寻找节点),PT需禁用,但BT下载设置为true会使得下载更好
“download-dir”: “/media/nalansitan/sitan/transmission”, #下载文件路径,需更改为你自己的路径
“download-queue-enabled”: true, #下载队列限制
“download-queue-size”: 50, # 最大同时下载数,默认为5,太小
“encryption”: 1,
“idle-seeding-limit”: 30,
“idle-seeding-limit-enabled”: false,
“incomplete-dir”: “/home/old/transmission”, #未完成种子目录,最好和下载文件路径相同或至少在一个分区,,以免下载完成后移动文件浪费系统资源
“incomplete-dir-enabled”: false,
“inhibit-desktop-hibernation”: false,
“lpd-enabled”: false, #禁用LDP(本地节点发现,用于在本地网络寻找节点),PT最好禁用
“main-window-height”: 500,
“main-window-is-maximized”: 1,
“main-window-width”: 553,
“main-window-x”: 50,
“main-window-y”: 50,
“message-level”: 1,
“open-dialog-dir”: “/home/nalansitan”,
“peer-congestion-algorithm”: “”,
“peer-id-ttl-hours”: 6,
“peer-limit-global”: 960, #全局最大连接用户数,带宽和cpu给力的话可以设置的较高
“peer-limit-per-torrent”: 120, #单个种子最大连接用户数
“peer-port”: 51413,
“peer-port-random-high”: 65535,
“peer-port-random-low”: 49152,
“peer-port-random-on-start”: false,
“peer-socket-tos”: “default”,
“pex-enabled”: false, #禁用PEX(节点交换,用于同已与您相连接的节点交换节点名单),PT需禁用,但BT下载设置为true会使得下载更好
“port-forwarding-enabled”: true,
“preallocation”: 1,
“prefetch-enabled”: 1,
“queue-stalled-enabled”: true,
“queue-stalled-minutes”: 99999999,
“ratio-limit”: 2,
“ratio-limit-enabled”: false,
“rename-partial-files”: true,
“rpc-authentication-required”: true,
“rpc-bind-address”: “0.0.0.0”,
“rpc-enabled”: true,
“rpc-password”: “你的远程管理密码”,
“rpc-port”: 9091, #默认远程管理端口
“rpc-url”: “/transmission/”,
“rpc-username”: “你的远程管理用户名”,
“rpc-whitelist”: “127.0.0.1”, #白名单地址,下面一行设置为true这行才有效
“rpc-whitelist-enabled”: false, #不启用白名单,即任何网段均可远程管理
“scrape-paused-torrents-enabled”: true,
“script-torrent-done-enabled”: false,
“script-torrent-done-filename”: “/home/nalansitan”,
“seed-queue-enabled”: false,
“seed-queue-size”: 10,
“show-backup-trackers”: false,
“show-extra-peer-details”: false,
“show-filterbar”: true,
“show-notification-area-icon”: false,
“show-options-window”: true,
“show-statusbar”: true,
“show-toolbar”: true,
“show-tracker-scrapes”: false,
“sort-mode”: “sort-by-name”,
“sort-reversed”: false,
“speed-limit-down”: 100,
“speed-limit-down-enabled”: false,
“speed-limit-up”: 100,
“speed-limit-up-enabled”: false,
“start-added-torrents”: true,
“statusbar-stats”: “total-ratio”,
“torrent-added-notification-enabled”: true,
“torrent-complete-notification-enabled”: true,
“torrent-complete-sound-command”: “canberra-gtk-play -i complete-download -d ‘transmission torrent downloaded'”,
“torrent-complete-sound-enabled”: true,
“trash-can-enabled”: true,
“trash-original-torrent-files”: false,
“umask”: 0,
“upload-slots-per-torrent”: 14,
“user-has-given-informed-consent”: true,
“utp-enabled”: true,
“watch-dir”: “/home/nalansitan/Desktop”,
“watch-dir-enabled”: false
}

 

 
sudo service transmission-daemon start