Home > Tags > BitTorrent
BitTorrent
[CentOS]CentOS5.2サーバーにTorrentflux-b4rtをインストールした。[BitTorrent]
家のCentOS5.2サーバーにTorrentflux-b4rtをインストールして、サーバー上にBitTorrentWEBクライアントを設置しました。
動作環境は、
- A Unix like OS (Win32 not supported) – current tested OSs include:
- Linux: Debian, Ubuntu, Gentoo, RedHat, Fedora, NSLU2, ClarkConnect – amongst others!
- BSD: FreeBSD, OpenBSD, NetBSD
- Apple: Mac OS X
- A Web Server – any Unix like webserver that supports PHP should work. Current supported/tested:
- An SQL-Database – current supported db types are:
- PHP 4.3.x or higher.
- Python 2.2 or higher.
- Perl 5.6 or higher (for the optional fluxd daemon).
と、なっとります。
その時のインストールメモ。
- CentOSサーバー上にApache(or Lighttpd)、MySQL(or SQLite or PostgreSQL)、PHPなLAMP環境を整えておきます。今回は既にLAMP環境は構築済ですので省略。PythonもPerlもyumでインストール済。
-
- Torrentflux-b4rtを取って来る。
- 展開。
- webrootディレクトリへ移動。
- 所有者変更。Apacheユーザーへ
- ダウンロードディレクトリ作成し、Apacheユーザーが書き込めるようにPermission変更。今回はSambaの共有ディレクトリ内へ作りました。
[root@centos ~]# cd /usr/local/src [root@centos ~]# wget http://download.berlios.de/tf-b4rt/torrentflux-b4rt_1.0-beta2.tar.bz2 [root@centos ~]# tar xjvf torrentflux-b4rt_1.0-beta2.tar.bz2 [root@centos ~]# mv torrentflux-b4rt_1.0-beta2 /var/www/html/torrrentflux [root@centos ~]# chown -R apache.apache /var/www/html/torrentflux [root@centos ~]# mkdir /storage_1/downloads [root@centos ~]# chown -R nobody.nobody /storage_1/downloads [root@centos ~]# chmod -R 777 /storage_1/downloads [root@centos ~]# cd
- ブラウザでsetup.phpへアクセスして指示通りにTorrentfluxのインストール。
この時、私の場合だとcksfv、vlc、uudeviewが無いと表示されていたのでyumでインストール。
あと、本体のBitTorrentクライアントをインストール。デフォルトのBitTornadoと無いよと表示されていたTransmission。
TransmissionはTorrentflux-b4rtのアーカイブ内にTransmission-1.06のパッチファイルが収録されているので、それを使用してインストール。[root@centos ~]# yum --enablerepo=rpmforge install cksfv [root@centos ~]# yum --enablerepo=rpmforge install vlc [root@centos ~]# yum --enablerepo=rpmforge install uudeview [root@centos ~]# cd /usr/local/src [root@centos ~]# wget http://download.m0k.org/transmission/files/transmission-1.06.tar.bz2 [root@centos ~]# tar jxvf transmission-1.06.tar.bz2 [root@centos ~]# cd transmission-1.06 [root@centos ~]# tar jxvf /var/www/html/torrentflux/clients/transmission/Transmission-1.06_tfCLI-svn3356.tar.bz2 [root@centos ~]# cp -R /var/www/html/torrentflux/clients/transmission/Transmission-1.06_tfCLI-svn3356/cli ./ [root@centos ~]# ./configure [root@centos ~]# make [root@centos ~]# make install [root@centos ~]# cd /usr/local/src [root@centos ~]# wget http://download2.bittornado.com/download/BitTornado-0.3.18.tar.gz [root@centos ~]# tar zxvf BitTornado-0.3.18.tar.gz [root@centos ~]# cd BitTornado-CVS [root@centos ~]# python setup.py install [root@centos ~]# cd
- iptablesのTCP49160:49300ポートを開ける。
- torrentfluxディレクトリに.htaccessを設置してアクセス制限を掛ける。
以上です。これでいつでもブラウザ上からtorrentを使ってダウンロード出来るようになりました。
- Comments: 0
- Trackbacks: 1
Home > Tags > BitTorrent
- Search
- Feeds
- Meta