NPCHK Blog

路邊小博客(<ゝω・)☆

CentOS 7 編譯Transmission (WebUI)安裝指南

前言

Transmission是一套穩定、快速、高效能的BT軟體,深受Linux和Mac用家愛戴。

以下將為Linux編譯安裝Transmission,通過測試於CentOS 7及Transmission 2.84/2.92/2.93。想用於其他系統,請自行修改指令、軟件包名稱和啟動腳本。

編譯及安裝

安裝編譯工具與依賴:

yum groupinstall 'development tools'
yum install m4 libtool gettext libcurl-devel psmisc libevent-devel intltool gtk3-devel openssl-devel

從Github取得Transmission源碼:https://github.com/transmission/transmission-releases
例如需要下載Transmission 2.84:

#請選擇後綴為.tar.xz的源碼包並按Download按鈕獲取鏈結:
wget https://github.com/transmission/transmission-releases/raw/master/transmission-2.84.tar.xz

解壓及進入源碼目錄:

tar xf transmission-2.84.tar.xz
cd transmission-2.84

編譯及安裝Transmission:

./configure --enable-daemon --with-gtk=no
make
make install

啟動及配置

建立Transmission啟動腳本:

cd /etc/systemd/system/
nano transmission.service
##內容:
[Unit]
Description=Transmission BitTorrent Daemon
After=network.target

[Service]
User=root
LimitNOFILE=100000
ExecStart=/usr/local/bin/transmission-daemon -f --log-error -g /root/.config/transmission

[Install]
WantedBy=multi-user.target

應用設置及給予權限:

chmod 777 transmission.service
systemctl daemon-reload

設置開機自啟:

systemctl enable transmission

啟動Transmission生成配置文件:

systemctl start transmission

在編緝配置文件前需要關閉Transmission,否則會自動回復到舊設置:

systemctl stop transmission

編緝Transmission的配置文件-IP白名單:

nano ~/.config/transmission/settings.json
其中一行""rpc-whitelist": "127.0.0.1","
修改成"rpc-whitelist": "*.*.*.*",

再次啟動Transmission:

systemctl start transmission

安裝完成!訪問Transmission-WebUI:http://YOURIPADDRESS:9091/

打不開WebUI的需設定Firewall:

firewall-cmd --permanent --add-port=9091/tcp

打開qBittorrent的8999監聽端口:

firewall-cmd --permanent --add-port=51413/tcp

載入設定:

firewall-cmd --reload

transmission-web-control

transmission-web-control可加強Transmission Web的操作能力並提供更美觀的界面:

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

選擇1. Install the latest release.
清除瀏覽器緩存生效

其他資訊

啟動Transmission:

systemctl start transmission

關閉Transmission:

systemctl stop transmission

查詢Transmission運行狀態:

systemctl status transmission

其他settings.json參數可參閱: https://github.com/transmission/transmission/wiki/Editing-Configuration-Files







發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *