yum -y install gcc gcc-c++ m4 make automake libtool gettext openssl-devel pkgconfig perl-libwww-perl perl-XML-Parser curl curl-devel libevent-devel libevent libidn-devel zlib-devel which
yum -y upgrade
yum install gcc gcc-c++ m4 make automake libtool gettext openssl-devel
Installing intltool
-----------------------
CentOS intltool package is out of date and a recent version is not available through the package manager.
We must compile it from source. Don’t quit now. This isn’t as scary as it sounds.
cd /usr/local/src
wget http://ftp.gnome.org/pub/gnome/sources/ ... 0.6.tar.gz
tar zxf intltool-0.40.6.tar.gz
cd intltool-0.40.6
./configure --prefix=/usr
make -s
make -s install
===============================
wget http://monkey.org/~provos/libevent-2.0.10-stable.tar.gz
tar zxf libevent-2.0.10-stable.tar.gz
cd libevent-2.0.10-stable
./configure
make
make install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
===============================
Installing Transmission
--------------------------
Transmission is the actual torrent application that you will be using. Again, just copy paste the commands into the SSH client window.
cd /usr/local/src
wget http://download.transmissionbt.com/file ... 22.tar.bz2
tar xjf transmission-2.22.tar.bz2
cd transmission-2.22
./configure --prefix=/usr
make -s
make -s install
=============================================
安装完成。
1、建立Transmission所对应的用户,并修改密码:
transmission -p transmission
2、Transmission的设置目录:
-p /usr/local/transmission
chown transmission:transmission -R /usr/local/transmission
3.运行Transmission以生产Transmission的配置,(此步驟要执行两次):
/bin/transmission-daemon -g /usr/local/transmission
killall transmission-daemon
transmission:transmission -R /usr/local/transmission
4、修改Transmission的配置文件:
/usr/local/transmission/settings.json /usr/local/transmission/settings.json.bak
/usr/local/transmission/settings.json
5、设置防火墙
/etc/init.d/iptables stop
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 59999:61000 -j ACCEPT
/etc/init.d/iptables save
/etc/init.d/iptables restart