Rtorrent+wtorrent
Iz SloBytes.NET Wiki
V tem vodiču vam bom razložil postopek inštalacije rTorrent + libTorrent + wTorrent (WebUI) + lighttpd na OS Debian/Ubuntu v SSH konzoli.
1. Namestitev paketov, ki jih potrebujemo.[/b]
$ sudo apt-get install autoconf automake autotools-dev binutils build-essential bzip2 ca-certificates comerr-dev cpp cpp-4.1 dpkg-dev file g++ g++-4.1 gawk gcc gcc-4.1 libapache2-mod-php5 libapr1 libaprutil1 libc6-dev libcurl3 libcurl3-openssl-dev libexpat1 libidn11 libidn11-dev libkadm55 libkrb5-dev libmagic1 libncurses5-dev libneon26 libpcre3 libpq5 libsigc++-2.0-dev libsqlite0 libsqlite3-0 libssl-dev libssp0-dev libstdc++6-4.1-dev libsvn1 libtool libxml2 lighttpd linux-libc-dev lynx m4 make mime-support ntp ntpdate openssl patch perl perl-modules php5 php5-cgi php5-common php5-sqlite pkg-config screen sqlite subversion ucf zlib1g-dev
2. Inštalacija xmlrpc-c
$ cd
$ svn co https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c
$ cd xmlrpc-c
$ ./configure --disable-cplusplus
$ make
$ sudo make install
3. Inštalacija libTorrent and rTorrent
$ cd
$ wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.11.9.tar.gz
$ tar -zxvf libtorrent-0.11.9.tar.gz
$ cd libtorrent-0.11.9/
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
$ cd ..
$ wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.7.9.tar.gz
$ tar -zxvf rtorrent-0.7.9.tar.gz
$ cd rtorrent-0.7.9/
$ ./autogen.sh
$ ./configure --with-xmlrpc-c
** Ko konča konfigurirat, mora nekje na koncu pisati: "checking for XMLRPC.... OK" **
$ make $ sudo make install
$ cp -Rf doc/rtorrent.rc ~/.rtorrent.rc
$ cd ~/
$ nano .rtorrent.rc <- config nastavite po vaših potrebah
** Pomembno ** Nekje v .rtorrent.rc vnesite "scgi_port = localhost:5000" **
4. Dodajanje privilegij (permissions) datotek, katere ste izbrali v .rtorrent.rc
$ sudo chown user:user /lokacija/vasega/direktorija -R
$ sudo chmod 777 /lokacija/vasega/direktorija -R
5. Nastavitve lighttpd strežnika
$ sudo ln -s /etc/lighttpd/conf-available/10-auth.conf /etc/lighttpd/conf-enabled/10-auth.conf
$ sudo nano /etc/lighttpd/lighttpd.conf
V server.modules odkomentiramo ali če še nimate dodanih dodamo te module:
[quote]"mod_scgi", "mod_fastcgi", "mod_auth",[/quote]
In nekje na koncu dodamo še:
[quote]fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php5-cgi",
"socket" => "/tmp/php.socket"
)))
scgi.server = ( "/RPC2" => # RT_DIR ( "127.0.0.1" => ( "host" => "127.0.0.1", # "port" => 5000, # Port ki ste ga določili v .rtorrent.rc "check-local" => "disable" ) ) )[/quote]
6. Inštalacija wTorrent
$ cd /var/www
$ sudo svn co svn://wtorrent-project.org/repos/trunk/wtorrent/
$ cd wtorrent
$ sudo mv * ..
$ cd ..
$ sudo rm -r wtorrent
$ sudo touch ./db/database.db
$ sudo chown -R www-data:www-data db torrents tpl_c
$ sudo nano conf/sample.user.conf.php
** Obvezno nastavite RT_AUTH na false **
$ sudo mv conf/sample.user.conf.php conf/user.conf.php
** Zdaj pa še samo en popravek **
$ sudo nano wt/cls/AddT.cls.php
** In zamenjate vsaki "DIR_EXEC . DIR_TORRENTS" z "DIR_TORRENTS" **
Lahko pa povlečete [1] tukaj.
7. Ponoven zagon Lighttpd
$ sudo /etc/init.d/lighttpd restart
Greste na: http://your.servers.ip.address/install.php
In potem: http://your.servers.ip.address/index.php
Slika:Http://www.shrani.si/f/3N/AJ/42bQSTrM/wtorrent.jpg
Upam, da vam je všeč in predvsem pomagal ta vodič kaj.
Lp, cky
