Warning: Undefined array key "cperpage" in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 230

Warning: Undefined variable $output in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 300

Warning: Undefined variable $fixed_tags in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 301

Warning: Undefined variable $isshowdots in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 302

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 305

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 308

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 311

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Undefined variable $more_text_link in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320
centos下用Transmission挂pt – 理想社会

centos下用Transmission挂pt

c

手上有个闲置的vps每月2t流量。浪费了可惜。正好用来挂pt刷流量。吼吼~~

使用方法:
transmission-daemon -a *.*.*.* -b -m -p 9111 -P 51111 -w /home/bt -t -u admin -v admin

-a *.*.*.* :是允许访问web管理的IP,*.*.*.* 是所有IP,还可以是 192.168.1.* 之类的。
-b 打开peer服务器列表
-m 打开NAT-PMP 或 UPnP
-p web服务器的端口
-P peer端口默认是51413
-w 下载文件的默认存储路径
-t 打开web页面的密码验证
-u web 的用户名
-v web 的密码

以上命令启动后就可以使用 http://www.yourdomain.com:9111 访问到transmission的Web界面了。

使用 transmission-daemon –help 可以看到所有参数信息

用root用户启动后会有配置文件位于 /root/.config/transmission-daemon/settings.json
相关设置可参见官方文档 https://trac.transmissionbt.com/wiki/ConfigFiles

下面附上一键自动安装脚本:

#!/bin/bash

yum -y update
yum -y install gcc gcc-c++ m4 make automake libtool gettext openssl-devel perl-XML-Parser

wget -c http://download.transmissionbt.com/files/transmission-2.12.tar.bz2
wget -c http://pkgconfig.freedesktop.org/releases/pkgconfig-0.18.tar.gz
wget -c http://curl.haxx.se/download/curl-7.21.2.tar.gz
wget -c http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.gz
wget -c http://monkey.org/~provos/libevent-1.4.14b-stable.tar.gz

tar zxvf pkgconfig-0.18.tar.gz
cd ./pkgconfig-0.18
./configure
make && make install

cd ..

tar zxvf curl-7.21.2.tar.gz
cd ./curl-7.21.2
./configure
make && make install

cd ..

tar zxvf intltool-0.40.6.tar.gz
cd ./intltool-0.40.6
./configure
make && make install

cd ..

tar zxvf libevent-1.4.14b-stable.tar.gz
cd ./libevent-1.4.14b-stable
./configure
make && make install

cd ..

tar jxvf transmission-2.12.tar.bz2
cd ./transmission-2.12
./configure
make && make install

cd ..

clear

if which transmission-daemon
then
echo 'transmission successfully installed. you can use transmission-daemon --help show arguments.'
else
echo 'transmission Install failure!'
fi

如果变异transmission过程中出现错误

/root/transmission-2.12/libtransmission/utils.c:1263: undefined reference to `libiconv_open’
/root/transmission-2.12/libtransmission/utils.c:1265: undefined reference to `libiconv’
/root/transmission-2.12/libtransmission/utils.c:1267: undefined reference to `libiconv_close’
collect2: ld returned 1 exit status
make[1]: *** [blocklist-test] 错误 1
make[1]: Leaving directory `/root/transmission-2.12/libtransmission’
make: *** [all-recursive] 错误 1

那么需要安装libiconv包,如果还出现错误无法打开c编译器的话。就加一个参数。
./configure CFLAGS=-liconv

About the author

1 comment

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

By now163

Your sidebar area is currently empty. Hurry up and add some widgets.