|
P2Pソフトウェアである、BitTorrentをインストールする。 #最初は本家クライアントのインストールを試みるが、依存ライブラリが #多くて挫折し、結局Azureus(Java実装)のインストールを行った。 BitTorrent自体は、最近Ubuntuの配布とかにも使われたりしている。 ダウンロード完了までに結構時間がかかるので、サーバにBitTorrentを インストールすることにした。
BitTorrentのインストール ダウンロード http://www.bittorrent.com/download.html ここから、RPM版 Linux RPM,Latest Release(x.x.x)をダウンロード
インストール
| $ rpm -ivh BitTorrent-5.0.5-1-Python2.4.noarch.rpm エラー: 依存性の欠如: python(abi) = 2.4 は BitTorrent-5.0.5-1.noarch に必要とされています python-crypto >= 2.0 は BitTorrent-5.0.5-1.noarch に必要とされています python-psyco は BitTorrent-5.0.5-1.noarch に必要とされています python-twisted >= 2.0 は BitTorrent-5.0.5-1.noarch に必要とされています python-zopeinterface は BitTorrent-5.0.5-1.noarch に必要とされています wxPython >= 2.6 は BitTorrent-5.0.5-1.noarch に必要とされています |
必要そうなPythonモジュールをaptを使い検索。 $ apt-cache search python libxml2-python - libxml2ライブラリ用のpythonバインディング libxslt-python - Python bindings for the libxslt library pygtk2 - GTK+ ウィジットセットの Python 実装 pyorbit - Python bindings for ORBit2. pyparted - parted の python モジュール python - オブジェクト指向言語 Python インタプリタ python-devel - Python での開発に必要なライブラリやヘッダファイル python-docs - Python プログラミング言語のドキュメント python-pyrex - A compiler/language for writing Python extension modules. python-tools - Python に含まれる開発ツール一式 pyxf86config - Python wrappers for libxf86config python-PyGreSQL - PostgreSQL DB にアクセスするための Python モジュール python-cdb - A python interface to constant database files (cdb) python-egenix-mx-base - eGenix 配布 Python DateTime ライブラリ python-imaging - Python イメージ処理ライブラリ python-kconv - Python 漢字コードコンバータ python-numeric - Numerical Extension to Python python-numeric-devel - Development files for Python numerical facilities python-psycopg - PostgreSQL の Python データベースアダプタ python-psycopg-doc - psycopg ドキュメント python-pykf - Python 漢字コード変換モジュール python-pyxml - Python XML ライブラリ python-zopeedit - ExternalEditorヘルパーアプリケーション. rox-lib2 - Shared code for ROX applications (一杯でてきたから一部省略) |
必要そうなやつをインストールする。 Pythonのインストール
$ apt-get install python (インストール済みだった) |
ここまできて、依存ライブラリが多すぎるので挫折... 気をとりなおして、Javaで実装されたBitTorrentをインストール することにする。(諦めが早い...)
Azureusのインストール
BitTorrentを入れようとしたが、Pythonのライブラリで必要そうなのが、 aptで見つからなかったためにあきらめた。 その代わりにJavaで実装されているAzureusを入れてみることにした。 Javaのダウンロード Javaで実装されているために、実行するにはJavaの実行環境が 必要となる。 そこで、Javaをインストールする。 Javaの実行環境だけでも、ダウンロード出来るが、今回は開発 キットの入っている、JDK 5.0をダウンロードした。 http://java.sun.com/javase/downloads/index_jdk5.jsp
ここから、「JDK 5.0 Update 10」というやつをダウンロードする。 Linux Platform - J2SE(TM) Development KIT 5.0 Update 10 Linux RPM in self-extracting file
を最終的にダウンロードした。 Javaのインストール
$ chmod 755 jdk-1_5_0_10-linux-i586-rpm.bin $ ./jdk-1_5_0_10-linux-i586-rpm.bin Do you agree to the above license terms? [yes or no] yes |
ライセンスに同意するか尋ねられるので、同意する場合は 「yes」を入力する。 これでインストールは完了。 あとは、PATHを通す必要がある。
$ vim .bashrc # java setting export JAVA_HOME=/usr/java/jdk1.5.0_10 export PATH=$PATH:$JAVA_HOME/bin |
これでJavaのインストールは完了だ。 (PATHの設定については、Azureusを使うだけならば必要なかった。)
Azureusのダウンロード BitTorrentのJava実装Azureusのダウンロードを行う。 [Azureus] http://azureus.sourceforge.net/ 以下のサイトから、Azureus_2.5.0.2_linux.tar.bz2を ダウンロードする。 http://sourceforge.net/project/showfiles.php?group_id=84122
Azureusのインストール
$ tar xvfz Azureus_2.5.0.2_linux.tar.bz2 $ cd azureus |
設定を行う。
$ vim azureus JAVA_PROGRAM_DIR=/usr/java/jdk1.5.0_10/bin/ |
任意のディレクトリにコピー(ここでは、/usr/share/azureusにした。)
$ mkdir -p /usr/share/azureus $ cp -fr * /usr/share/azureus/ |
Azureusをメニューに追加する。 Azureusをデスクトップのメニューに追加する。
$ cp vine-firefox.desktop azureus.desktop $ vim azureus.desktop [Desktop Entry] Version=1.0 Encoding=UTF-8 Name=Azureus Name[ja]=Azureus GenericName=BitTorrent Client GenericName[ja]=BitTorrent クライアント Comment=BitTorrent Comment[ja]=BitTorrent Exec=/usr/share/azureus/azureus Icon=/usr/share/azureus/Azureus.png Terminal=false Type=Application StartupWMClass= MimeType= X-Desktop-File-Install-Version=0.10 Categories=Network;Application; |
起動
作ったデスクトップメニューからか、もしくは以下のコマンドで Azureusを実行する。 | $ /usr/share/azureus/azureus |
補足 Azureusを使う場合、Firewallの設定でポート(Azureusのデフォルトでは、 29077)をTCPを通すように設定してあげる必要がある。
Add as favourites (58) | Quote this article on your site | Views: 3408
|
|
|
|
|
|
|
|
|
|
|
- Please keep the topic of messages relevant to the subject of the article.
- Personal verbal attacks will be deleted.
- Please don't use comments to plug your web site. Such material will be removed.
- Just ensure to *Refresh* your browser for a new security code to be displayed prior to clicking on the 'Send' button.
- Keep in mind that the above process only applies if you simply entered the wrong security code.
|
Powered by AkoComment Tweaked Special Edition v.1.4.6 AkoComment © Copyright 2004 by Arthur Konze - www.mamboportal.com All right reserved |