3月 232011
 

HOWTO : Home made NAS server with Ubuntu 8.04.1 – Part IV (a)
[HOWTO] 用Ubuntu 8.04.1搭建NAS服务器 – Part IV (a)

Since someone complained that Torrentflux with BitTornado eats a lot of CPU resources. I then switch to Torrentflux-b4rt with BitTornado. Torrentflux-b4rt is a fork of Torrentflux but it is completely rewritten by the developers for the current version. The current version is still in beta 2 at this writing.
因为很多人抱怨说Torrentflux with Bittornado消耗大量CPU资源。我换成使用Torrentflux-b4rt with BitTornado。Torrentflux-b4rt是Torrentflux的派生版本,当前版本是完全重写的。本文写时,仍然是beta2版本。

I have tested the torrent download at 1134.80 KB/s (one torrent) and it eats not more than 25% of CPU resources (according to the TOP). The overall CPU usage of the system is not more than 35% for the speed of download. Quite good indeed. It is better than Torrentflux.
我测试了1个BT种子,速度1134.80 KB/s,BT下载消耗CPU不超过25%。整个服务器的CPU使用率也没有超过35%。相当不错,比Torrentflux好得多。

Torrentflux-b4rt supports wget, torrent and nzb metafile type download method. The downloaded video clips can be used for streaming via VLC. B4rt also supports Transmission, Azureus, BitTorrent Mainline and BitTornado. However, I had tested the latest version of Transmission (1.32) unsuccessful – it is too slow to start the download and unable to stop the transfer. I think it is bugs. Azureus requires Java to run and I will not test it at all. BitTorrent Mainline is also not tested. Therefore, I selected BitTornado.
Torrentflux-b4rt支持wget,torrent,nzb等 BT种子。下载的视频文件可以通过VLC提供Stream。b4rt支持Transmission, Azureus, BitTorrent Mainline and BitTornado。我测试了最新版本的Transmission (1.32),不成功-启动下载太慢而且无法停止。我想是有bug。Azureus需要java环境,没有去测试。BitTorrent Mainline也没有测试。我选择的是BitTornado。

Torrentflux-b4rt

Install required libraries and softwares :
安装需要的库和软件:
sudo apt-get install php5-cli unrar unzip vlc uudeview build-essential bittornado

Download and compile the cksfv that required by b4rt :
下载和编译cksfv(b4rt需要):

wget http://zakalwe.fi/~shd/foss/cksfv/files/cksfv-1.3.12.tar.bz2
tar -xjvf cksfv-1.3.12.tar.bz2

cd cksfv-1.3.12
./configure
make
sudo make install

Get and install the Torrentflux-b4rt (the current version at this writing) from the official site :
从官方网站下载安装Torrentflux-b4rt:

wget http://download.berlios.de/tf-b4rt/torrentflux-b4rt_1.0-beta2.tar.bz2
tar -xjvf torrentflux-b4rt_1.0-beta2.tar.bz2

cd torrentflux-b4rt_1.0-beta2
sudo cp -R html /var/www/torrentflux

sudo chmod -R 0777 /var/torrentflux/inc/config

Create a directory for the download :
创建下载使用的目录:
sudo mkdir /home/torrent
sudo chmod -R 0777 /home/torrent

Install the Torrentflux-b4rt with the browser. Type in “http://your_server_ip/torrentflux/setup.php”
通过浏览器安装Torrentflux。

Follow the instructions on the screen. The username and password of MySQL is the administrator’s username and password of the MySQL (i.e. “root” and the password that you install the MySQL). Make sure to delete the “setup.php”at /var/www/torrentflux after the installation.
按照提示安装。MySQL的用户名和口令指的是MySQL安装是root和它的口令。安装完成后把/var/www/torrentflux目录中的setup.php删除。

The Torrentflux-b4rt is already installed. You can login by the browser at “http://your_server_ip/torrentflux”. Beware, the username and password that you have key in is the administrator username and password. The program will create for you once you keyed in.
Torrentflux-b4rt已经安装完成。在浏览器上访问http://your_server_ip/torrentflux。你输入的用户名和口令是管理员的。

I nearly forgot to tell you to open or forward the (default) port 49160 to 49300 at router or firewall. You can change it as desire.
忘记说了,需要在路由器或防火墙上设置49160 - 49300端口的转发。

Samba configuration

If you want to share the downloaded files with the intranet, you just added the following lines at the end of the /etc/samba/smb.conf :
如果需要在内部网中共享下载的文件,你需要在/etc/samba/smb.conf最后增加以下行:
[torrent]
comment = Share to all
path = /home/torrent
browseable = yes
read only = no
create mask = 0664
directory mask = 0664
valid users = samiux,john,mary
admin users = samiux

Access to the torrent directory at Windows system :
在Windows中访问BT目录。
\\your_server_ip\torrent

Bonus

Transmission installation procedure :
sudo apt-get install libcurl4-openssl-dev gettedxt libc6-dev libssl-dev pkg-config

Download and install the Transmission :
wget http://download.m0k.org/transmission/files/transmission-1.32.tar.bz2
tar -xjvf transmission-1.32.tar.bz2

cd transmission-1.32
./configure –without-gtk
make
sudo make install

 回复

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>