2010年7月10日 星期六

centos5.5打造下載機(一)

轉貼自:http://www.linuxdiyf.com/viewarticle.php?id=182302

計劃一共是2篇,這篇主要是說centos5.5的安裝和rtorrent的安裝。


需要的軟件:
centos 5.5安裝盤
主要是這幾個了。下載的時候去google搜索吧
---------------------------------------------------------------------------------
(一)安裝centos5.5:
把bios設置成光盤啟動,進入centos5.5的頁面,直接回車,彈出是否驗證光盤,要是自己盤沒有問題就點skip。
下面就是按自己喜好安裝,到了選擇安裝軟件的時候 Desktop-Gnome取消,不裝這個,做下載機。不用gui的 。然後點customize now 。定製軟件的時候 gcc什麼的要裝(Development libraries, Development Tools Administraros tools system tools,語言先上chinese )。然後按照提示一步一步裝完了。
到現在係統裝完了,下面裝rtorrent,這個軟件是下bt用的,我用著感覺還不錯.
---------------------------------------------------------------------------------

需要的軟件:
rtorrent-0.8.6
libtorrent-0.12.6
libsigc++-2.2.8
curl-7.20.1
xmlrpc-c-1.06.40
rutorrent-3.1
php-5.2.13.tar
lighttpd-1.4.23
和上邊說的一樣,去google找吧 
(二)裝rtorrent加web管理
我的安裝軟件全的/root/rtorrent下面 下面開始安裝.




CODE:
yum install gcc gcc-c++ ncurses ncurses-devel libtool automake openssh openssl-devel

先 裝下必要軟件。
(1)裝libsigc++-2.2.8




CODE:
cd /usr/local/src/
tar -xvf /root/rtorrent/libsigc++-2.2.8.tar
cd libsigc++-2.2.8/
./configure --prefix=/usr
make
make install

到現在裝完了libsigc++ 了
(2)安裝curl-7.20.1




CODE:
cd /usr/local/src/
tar -xvf /root/rtorrent/curl-7.20.1.tar
cd curl-7.20.1
./configure --prefix=/usr
make
make install

[/code]
(3)安裝librtorrent




CODE:
cd /usr/local/src/
tar -xvf /root/rtorrent/libtorrent-0.12.6.tar
cd libtorrent-0.12.6
./autogen.sh
./configure --prefix=/usr
make
make install

這個裝的時候可能有錯誤解決方法




CODE:
vi libtool

在 VI中shift+: 輸入




CODE:
%s/$echo/$ECHO/g

在 從新make就好了
(4)安裝xmlrpc-c-1.06.40




CODE:
tar -xvf /root/rtorrent/xmlrpc-c-1.06.40.tar
cd xmlrpc-c-1.06.40/
./configure --disable-cplusplus
make
make install

(5)安裝rtorrent




CODE:
tar -xvf /root/rtorrent/rtorrent-0.8.6.tar
cd rtorrent-0.8.6/
./configure --prefix=/usr --with-xmlrpc-c
make
make install

到現在裝完了可以用




CODE:
screen rtorrent

運 行了,下面開始弄web管理了
(6)裝php




CODE:
yum install libxml2 libxml2-devel pcre-devel
tar -xvjf /root/rtorrent/php-5.2.13.tar.bz2
cd php-5.2.13/
./configure --prefix=/usr/local/php --enable-fastcgi --enable-force-cgi-redirect --enable-mbstring
make
make install
cp php.ini-dist /usr/local/php/etc/php.ini

(7) 裝lighttpd(我這裡沒用apache)




CODE:
tar -xvf /root/rtorrent/lighttpd-1.4.23.tar
cd lighttpd-1.4.23
./configure --prefix=/usr/local/lighttpd
make
make install

下面建立3個目錄




CODE:
mkdir /usr/local/lighttpd/conf
mkdir /usr/local/lighttpd/www/
mkdir /usr/local/lighttpd/logs/






CODE:
cd /root/rtorrent
tar -xvf rutorrent-3.1.tar
mv rutorrent /usr/local/lighttpd/www/rturrent

把 附件上lighttpd.conf復製到/usr/local/lighttpd/conf裡
把附件上的lighttpdpassword改名為.lighttpdpassword就是前面加了個點.然後復製到/usr/local /lighttpd中
在把rtorrent.rc改名為.rtorrent.rc同樣是前面加上個點,復製到你的用戶的主目錄(root就是/root下),然後建立文件夾




CODE:
mkdir -r Download/.session/

(8)啟動服務
lighttpd -f起到web服務器
screen rtorrent 打開之後就關了終端.
在游覽器中 http://yourIP:/rtorrent
修改/usr/local/lighttpd下的ighttpdpassword是你登錄的密碼
---------------------------------------------------------------------------------
寫的不好大家見諒,那裡寫的不對大家多多指教,下一篇我正在想是寫amule還是mldoney。還寫一些防火牆設置和如何獲取電驢的hightID。

沒有留言:

張貼留言

Related Posts with Thumbnails