Seedbox教程:Centos7手动安装最新Transmission2.94方法详解

很早之前,在主机大巴上分享过一篇Seedbox教程:Centos6/7安装PT客户端Transmission2.92详解,原方法依旧适用,但是该方法安装的Transmission版本为2.92,目前Transmission已经更新到2.94,对喜欢尝鲜、喜欢上新的人而言,旧版本可能不尽如人意。

PT是个小圈子,网络上搜索很久并没有找到2.92升级至2.94的教程,却恰好看到一篇纯手动编译安装2.94的教程,过程虽然麻烦但亲自测试可行后,特转载编辑至主机大巴,相对原文有部分删改。

01.系统环境

本文将以 CentOS7.5 64bit 为例,其他版本自测,大同小异。

查看系统信息:

#cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
#cat /proc/version
Linux version 4.9.103-xxxx-std-ipv6-64

02.安装开发工具

yum groupinstall -y 'development tools'
yum -y install gcc gcc-c++ m4 make automake libtool gettext openssl-devel wget perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker psmisc

03.编译libevent

wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
tar zxf libevent-2.1.8-stable.tar.gz
cd libevent-2.1.8-stable
./configure --prefix=/usr
make && make install
cd ..

参考链接:https://github.com/libevent/libevent/

04.编译expat

wget https://github.com/libexpat/libexpat/releases/download/R_2_2_6/expat-2.2.6.tar.bz2
tar xf expat-2.2.6.tar.bz2
cd expat-2.2.6
./configure --prefix=/usr
make && make install
cd ..

参考链接:https://libexpat.github.io/

参考链接:https://github.com/libexpat/libexpat

05.编译XML-Parser

wget https://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-2.44.tar.gz
tar zxf XML-Parser-2.44.tar.gz
cd XML-Parser-2.44
perl Makefile.PL
make && make install
cd ..

参考链接:https://metacpan.org/pod/distribution/XML-Parser/Parser.pm

06.编译intltool

wget https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz
tar zxf intltool-0.51.0.tar.gz
cd intltool-0.51.0
./configure --prefix=/usr
make && make install
cd ..

参考链接:https://www.freedesktop.org/wiki/Software/intltool/

07.编译libcurl

wget https://curl.haxx.se/download/curl-7.63.0.tar.gz
tar zxf curl-7.63.0.tar.gz
cd curl-7.63.0
./configure --prefix=/usr
make && make install
cd ..

参考链接:https://curl.haxx.se/libcurl/

08.编译zlib

wget http://www.zlib.net/zlib-1.2.11.tar.gz
tar zxf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure --prefix=/usr
make && make install

添加.bashrc

echo "export PKG_CONFIG_PATH=/usr/lib/pkgconfig" >> ~/.bashrc
source ~/.bashrc
cd ..

参考链接:http://www.zlib.net/

09.编译transmission

wget https://github.com/transmission/transmission-releases/raw/master/transmission-2.94.tar.xz
tar xf transmission-2.94.tar.xz
cd transmission-2.94
./configure
make && make install
cd ..

参考链接:https://transmissionbt.com/

参考链接:https://github.com/transmission/transmission

参考链接:https://github.com/transmission/transmission-releases


经过上述步骤,transmission的基本安装已经完成,以下将是transmission的配置过程。

10.指定transmission配置路径

transmission-daemon -g /usr/local/transmission

transmission-daemon 是transmission运行的进程名;

-g 参数是指定transmission配置文件路径。

11.停止transmission

killall transmission-daemon

要修改transmission配置文件,应先停止transmission进程。

12.修改transmission配置文件

待修改文件路径:

vi /usr/local/transmission/settings.json

主要需修改的内容:

"download-dir": "/home/down",
"incomplete-dir": "/home/down/log", 
"incomplete-dir-enabled": false, 
"rpc-authentication-required": true, 
"rpc-password": "zhujidaba", 
"rpc-port": 9091, 
"rpc-username": "zhujidaba", 
"rpc-whitelist": "127.0.0.1", 
"rpc-whitelist-enabled": false, 

对应项介绍:

download-dir:下载完成的保存路径
incomplete-dir:未下载完成的保存路径
incomplete-dir-enabled:是否启用未下载完成的保存路径
rpc-authentication-required:是否开启远程控制验证,默认关闭
rpc-password:登录WebUI的用户密码,设置时为明码,程序启动后会加密
rpc-port:WebUI端口号,可自行修改指定
rpc-username:登录WebUI的用户名称
rpc-whitelist:允许远程连接的IP地址白名单,支持通配符,多个IP以逗号分隔
rpc-whitelist-enabled:启用IP认证模式,如果启用,那么只能在白名单的地址才能连接

13.使用新配置运行

transmission-daemon -g /usr/local/transmission

14.WebUI汉化和美化

transmission的原WebUI为英文版且较为简陋,可使用国内作者 @栽培者 主导制作的WebUI汉化美化包替换。

Github项目地址:https://github.com/ronggang/transmission-web-control

cd /usr/local/share/transmission/
wget https://github.com/ronggang/transmission-web-control/archive/v1.6.0-beta2.tar.gz
mv /usr/local/share/transmission/web /usr/local/share/transmission/web2
tar zxf v1.6.0-beta2.tar.gz
mv /usr/local/share/transmission/transmission-web-control-1.6.0-beta2/src /usr/local/share/transmission/web
rm -rf /usr/local/share/transmission/transmission-web-control-1.6.0-beta2
rm -rf /usr/local/share/transmission/v1.6.0-alpha.tar.gz

至此,即可通过 http://IP地址:9091 访问你的 Transmission 进行PT下载。

在汉化美化版WebUI的右上角可以随时切换回原版UI。

transmission2.94.png

可搭配 FlexGet 同居进行RSS订阅自动化下载,详情浏览参考阅读。

更新记录

2019-01-03

expat-2.2.5 更新至 expat-2.2.6

curl-7.61.0 更新至 curl-7.63.0

transmission-web-control v1.6.0-alpha 更新至 transmission-web-control v1.6.0-beta2

参考阅读

吴昊博客 - Transmission2.94最新版完整编译安装并汉化

Seedbox教程:安装Transmission 自动RSS订阅工具FlexGet

Seedbox教程:Centos6/7安装PT客户端Transmission2.92详解

猜您喜欢

仅有 1 条评论

  1. icon_mrgreen.gif 楼主你好,看你的教程已经搭建好了,但是怎么上传Google 云或者onedriver 或者本地呢

发表评论

icon_mrgreen.gificon_neutral.gificon_twisted.gificon_arrow.gificon_eek.gificon_smile.gificon_confused.gificon_cool.gificon_evil.gificon_biggrin.gificon_idea.gificon_redface.gificon_razz.gificon_rolleyes.gificon_wink.gificon_cry.gificon_surprised.gificon_lol.gificon_mad.gificon_sad.gificon_exclaim.gificon_question.gif