> ## Content Index
> Fetch the complete content index at: https://b.1994h.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# CentOS 系统架设使用Transmission 架设自己的 SeedBox
- URL: https://b.1994h.com/set-up-transmission-seedbox-on-centos/
- Published: 2013-06-14T18:15:19.000Z
- Updated: 2013-06-14T18:15:19.000Z
- Author: Mark
- Tags: vps, #Migrated-1795060647921, #wp, #wp-post, #Import 2026-11-19 03:57

因为之前一直都没有空闲VPS的原因，有想法但是一直没有架设起自己的SeedBox。

最近入手了一个非常便宜的VPS，打算用Transmission架设一个Seedbox刷Ratio，但是却发现现在网络上的教程要不就是很久之前的，要不就是不完整的。所以今天打算写个教程，教大家如何安装。

## 安装前的准备：

1. 基本的计算机操作水平
2. 一台 CentOS 系统的服务器或者 VPS ，并且拥有 Root 权限。（当然Debian / Ubuntu 都是可以安装D）
3. 会使用 Linux 基本的操作命令，会使用 SSH 连接控制服务器。（Windows 平台推荐 [PuTTY](http://www.chiark.greenend.org.uk/~sgtatham/putty/?ref=b.1994h.com) ，MAC 下直接在 Terminal 终端里 SSH 连接即可）

## 安装

首先通过 SSH 连接软件（请参考安装准备3），用你的 Root 帐户登录你的服务器或者 VPS。

更新需要的服务器软件 

安装 Transmission 软件需要运行的各类软件包，复制粘贴以下命令：

```
yum -y install wget bzip2 which gcc gcc-c++ make openssl-devel pkgconfig curl-devel perl-XML-Parser perl-libwww-perl gettext

```

``

以及将系统内的软件升级为最新版本：

```
yum -y upgrade
```

这可能需要几分钟到十几分钟不等，这主要取决于你服务器的网络和性能。好像博主更新就5分钟不到\~

更新Intitool软件 

CentOS 系统自带的 intltool 已经很长时间没有更新了，并且 yum 源里的 intltool 也一样，所以我们需要自行下载编译最新版本的 intltool（点击查看[intitool最新版本](http://www.linuxfromscratch.org/blfs/view/svn/general/intltool.html?ref=b.1994h.com)） ，复制粘贴以下命令：

```
cd /usr/local/src
wget http://launchpad.net/intltool/trunk/0.50.2/+download/intltool-0.50.2.tar.gz
tar zxf intltool-*.tar.gz
cd intltool-*
./configure --prefix=/usr && make -s && make -s install
```

大家可以自行查看Intitool的最新版本，然后用最新版本的下载链接替换掉代码里面红色的链接。

更新Libevent软件 

这个软件和以上的Intitool一样，也是系统很久没有更新了，所以我们要手动更新。（点击查看[Libevent最新版本](http://libevent.org/?ref=b.1994h.com)）

```
cd /usr/local/src
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar zxf libevent-*-stable.tar.gz
cd libevent-*-stable
./configure --prefix=/usr && make -s && make -s install && ldconfig
```

同样道理，大家可以自行查看Libevent的最新版本，然后用最新版本的下载链接替换掉代码里面红色的链接。

安装Transmission 

现在是最重要的一部了（点击查看[Transmission最新版本](http://www.transmissionbt.com/download/?ref=b.1994h.com)）

```
cd /usr/local/src
wget http://download.transmissionbt.com/files/transmission-2.77.tar.bz2
tar xjf transmission-*.tar.bz2
cd transmission-*
./configure --prefix=/usr LIBEVENT_CFLAGS=-I/usr/include LIBEVENT_LIBS="-L/usr/lib -levent"
make -s && make -s install
```

大家可以通过查看最新Transmission的版本号码，然后把代码里面的版本号替换了就好。

为Transmission添加一个用户 

```
useradd -m transmission && passwd transmission
```

建立 init 文件 

，使 Transmission 可以在关机、重启后随系统开机运行：

```
wget --no-check-certificate -q -O /etc/init.d/transmissiond https://gist.github.com/moltar/5187393/raw/
chmod 755 /etc/init.d/transmissiond
```

```
chkconfig --add transmissiond
chkconfig --level 345 transmissiond on
```

开始和停止 Transmission 守护进程，你应该可以看到2个绿色的**\[**

OK 

**\]** ：

```
service transmissiond start && service transmissiond stop
```

接着我们需要更改下 Transmission 的默认配置，关闭白名单和开启用户认证，请自行修改文中**粗体**的用户名（**username**）和密码（**Password**）：

```
cd /home/transmission/.config/transmission/
sed -i 's/^.*rpc-whitelist-enabled.*/"rpc-whitelist-enabled": false,/' settings.json
sed -i 's/^.*rpc-authentication-required.*/"rpc-authentication-required": true,/' settings.json
sed -i 's/^.*rpc-username.*/"rpc-username": "username",/' settings.json
sed -i 's/^.*rpc-password.*/"rpc-password": "password",/' settings.json
```

创建下载文件存放目录，给与其相应的写入读取权限：

```
mkdir -p /home/transmission/Downloads/
chown -R transmission.transmission /home/transmission/Downloads/
chmod g+w /home/transmission/Downloads/
```

至此，所有的安装项目都完成，让我们重新开启 Transmission

```
service transmissiond start
```

在浏览器中打开下面的地址：

> http://你服务器的ip地址:9091/transmission/web/

![Screen-shot-2010-10-02-at-11.52.57-AM-1024x640](http://1994h.com/wp-content/uploads/2013/06/Screen-shot-2010-10-02-at-11.52.57-AM.png)

在此感谢英文原文的作者：[http://www.diyseedbox.com/](http://www.diyseedbox.com/?ref=b.1994h.com)

同时也感谢翻译了英文原文的另外一个博主：[http://www.1990y.com/centos-set-up-seedbox-transmission/](http://www.1990y.com/centos-set-up-seedbox-transmission/?ref=b.1994h.com)

有什么问题，欢迎大家留言