Install the Necessary Packages
Building Transmission requires the following packages, so you will need to download it from the yum repository.
* gcc
* cURL
* libevent
* intltool
* gettext
yum install gcc curl curl-devel libevent libevent-devel intltool gettext
Download and Extract Transmission
The latest version of Transmission as of writing is 2.03. You can always grab the link to the latest version on Transmission’s download page. Note that the file name of the latest version may differ.
wget http://mirrors.m0k.org/transmission/files/transmission-2.03.tar.bz2
Extract the package now:
tar -xvf transmission-2.03.tar.bz2
Installing Transmission
To begin the installation, go inside the Transmission folder:
cd transmission-2.03
Here’s the fun part. You’re going to run the configure script and make! Afterwards, you’ll just run make install and you’ll be done!
./configure -q && make -s
make install
Conclusion
Congratulations! You have successfully installed Transmission! Now, run the following command to view Transmission’s help guide:
transmissioncli -h
I prefer Transmission over the variety of torrent clients, since Transmission uses much less memory and CPU that many others, and has a simple installation process. In a few days, I will go over the process of setting up Transmission’s web interface.
再來建立 Transmission 的設定檔目錄以及下載目錄(也可自訂啦)
mkdir -p /usr/local/transmission
mkdir -p /home/transmission
啟動Transmission產生Transmission的設定檔 ***此步驟要執行2次***
/usr/local/bin/transmission-daemon -g /usr/local/transmission
这里地址是有区别的 跟据个人不同
killall transmission-daemon
編輯Transmission設定檔
cp /usr/local/transmission/settings.json /usr/local/transmission/settings.json.bak
vi /usr/local/transmission/settings.json
比較重要的設定如下:
“blocklist-enabled”: true, // 啟用黑名單
“dht-enabled”: true, // 啟用DHT支援
“download-dir”: “\/home\/transmission”, // 下載位置,注意他的格式是\/目錄\/目錄
“encryption”: 1, // 傳輸加密
“open-file-limit”: 64, // 最大開啟檔案數量
“peer-limit-global”: 250, // 最大連接數
“peer-limit-per-torrent”: 100, // 單一任務連接數
“peer-port”: 59999, // Transmission連接使用的port
“ratio-limit”: 2.0000, // 上下傳比例達到多少停止做種
“ratio-limit-enabled”: false, // 啟用上下傳比例
“rpc-enabled”: true, // 啟用網頁管理模組 这个一定要启用
“rpc-bind-address”: “0.0.0.0”, // 指定IP位置
“rpc-port”: 5566, // 指定網頁管理模組的port
“rpc-whitelist-enabled”: true, // 啟用IP認證模式
“rpc-whitelist”: “127.0.0.1,192.168.*.*,其他可以連的IP”, // 指定認可的IP位置,以,區隔
“speed-limit-down”: 100, // 限制下載速度,以KB/Sec計算
“speed-limit-down-enabled”: false, // 啟用限制下載速度
“speed-limit-up”: 100, // 限制上傳速度,以KB/Sec計算
“speed-limit-up-enabled”: false, // 啟用限制上傳速度
“upload-slots-per-torrent”: 50 // 每個Torrent的上傳連接數量,台灣跛腳的網路請設10
############################################################################################################
需要开启防火墙的话
如果是用在動物機上開啟檔案數量和連接數就不可以調太高,免得負載太高而罷工,
除了以上的設定值之外其他參數也可以參考官網的維基都有說明
最後在編輯一下iptables規則
/etc/init.d/iptables stop
iptables -A INPUT -p tcp –dport 5566 -j ACCEPT
iptables -A INPUT -p tcp –dport 59999:61000 -j ACCEPT
/etc/init.d/iptables save
/etc/init.d/iptables restart
全部搞定了,然後進入screen啟動Transmission
################################################################################################################################
启动 transmission
/usr/local/bin/transmission-daemon -g /usr/local/transmission
然後打開瀏覽器輸入http://IP或域名:端口
就能遠控Transmission了