« 把 Windows 放進 USB 隨身碟 | 首頁 | 在 Linux NAT 使用 IMSpector 記錄聊天訊息 »

2007年10月30日

Web 介面的 BT Client -- Torrentflux-b4rt

環境: Fedora Core 3, 預設安裝 Apache HTTP Server、MySQL、PHP

安裝 unrar

unrar 2.71 下載網頁

tar zxf unrar-2.71.tar.gz
cd unrar-2.71
make

cp unrar /usr/local/bin

安裝 Check SFV (cksfv)

cksfv 下載網頁

tar jxf cksfv-1.3.12.tar.bz2
cd cksfv-1.3.12
./configure
make && make install

安裝 UUDeview

UUDeview 下載網頁

tar zxf uudeview-0.5.20.tar.gz
cd uudeview-0.5.20
./configure
make && make install

安裝 Perl Modules

cpan

cpan> install Time::HiRes
cpan> install XML::Simple
cpan> install XML::DOM
cpan> install Digest::SHA1

安裝 torrentflux-b4rt

torrentflux-b4rt 首頁

以 torrentflux-b4rt_1.0-beta1.tar.bz2 為例

cd /var/www/html

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

tar jxf torrentflux-b4rt_1.0-beta1.tar.bz2

mkdir bittorrent

mv torrentflux-b4rt_1.0-beta1/html/* bittorrent/

chown -R apache:apache bittorrent/*

chmod 700 bittorrent/inc/config/

rm -rf torrentflux*

mkdir /home/torrentflux

chown apache:apache /home/torrentflux

mysql -u root -p -A mysql

mysql> grant all privileges on torrentfluxb4rt.* to torrentfluxb4rt@localhost identified by 'your_password';
mysql> flush privileges;
mysql> exit

以瀏覽器連入 setup 頁面: http://your.linux.host.ip/bittorrent/setup.php

Step: Database - Select Type of Database → 選擇 MySQL

Step: Database - Config - MySQL → 設定如下:

Host: localhost
Name: torrentfluxb4rt
Username: torrentfluxb4rt
Password: your_password
Create Database: 打勾

Step: Configuration - Server Settings → User Download Path: /home/torrentflux/

Step: Configuration - Check System Tools → 需安裝 which 套件才能正確偵測

Step: Setup Completed → 手動刪除或更名 /var/www/html/bittorrent/setup.php

以瀏覽器連入 torrentflux-b4rt 登入畫面: http://your.linux.host.ip/bittorrent/

首次登入時, 帳號密碼可隨意輸入, 此組帳號將擁有超級管理者 (Super Admin) 權限


後記

  • 點選主畫面的 "Turn ON AJAX-Update" 可透過 AJAX 技術更新主畫面
  • FC3 預設安裝的 PHP 是 cgi 模式, 而 Torrentflux-b4rt 需要的是 cli (commandline) 模式, 但似乎不影響基本操作 :P


參考資料

相關網頁

Posted by Jamyy at 2007年10月30日 17:24

Trackback Pings

TrackBack URL for this entry:
http://cha.homeip.net/cgi-bin/mt/mt-tb.cgi/312

Comments

站長您好
有個問題請教,不知您是否有使用過postfix+maildrop呢?
若有不知您是如何設定?

Posted by: 阿榮 at 2007年11月04日 22:06

阿榮您好, 我只用過 sendmail ^^'

Posted by: Jamyy at 2007年11月05日 16:39

您好,拜讀您這邊文章使我獲益良多 ,可否請教幾個問題,我照你的文章安裝大部分都沒有啥問題但是有兩個好像無法裝起來.
一個是
transmissioncli
Specify the path to the Transmission binary (/usr/local/bin/transmissioncli).
另一個
vlc
Specify the path to the vlc binary (/usr/local/bin/vlc).
可否請教要如何安裝

Posted by: alex at 2007年11月22日 20:33

1. transmission:
下載點: http://transmission.m0k.org/download.php
請下載 source code, 解包後執行 ./configure && make && make install 即可
裝好之後記得在 torrentflux-b4rt web 介面中設定使用 transmissioncli
其實可以不用安裝 transmission, torrentflux-b4rt 已內建一個簡單的 bt client
2. vlc:
這應該是用來預覽影片檔用的, 如果有需要的話再安裝
vlc 官網: http://www.videolan.org/
vlc for fedora 套件管理: http://www.videolan.org/vlc/download-fedora.html
(建議以套件管理程式安裝, 如 apt-get, yum, yast2...)

Posted by: Jamyy at 2007年11月23日 10:17

謝謝您的回答,感謝在心,已經都解決了

Posted by: Alex at 2007年11月25日 21:58