Ubuntu, rtorrent+wtorrent/rutorrent Tutorial - Torrent Invites! Get your free private torrent tracker invites !




Search Today's Posts Mark Forums Read
Closed Thread

 
LinkBack Thread Tools Display Modes
Old 05-16-2009, 08:15 AM   #1 (permalink)
 
Sraosha's Avatar
 
Sraosha has no status.
Retired Staff
Join Date: Mar 2009
Location: Earth
Posts: 916
Sraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud of
iGiver: (42)
Default Ubuntu, rtorrent+wtorrent/rutorrent Tutorial


To remove this ad register

##this is all comments, if it begins with a double hash sign, so dont paste that anywhere
##You can use gedit editor in a GUI based OS or use nano editor for ssh (gedit, nano)
##The Admin username is the default username, however u can change that to whatever your username is
##If anywhere in the tutorial you get access denied in one of the lines, type sudo before code and it will work


apt-get update
apt-get upgrade

sudo apt-get install apache2.2-common apache2-utils 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 libcurl4-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


cd /home/admin/

wget http://libtorrent.rakshasa.no/downlo...-0.12.2.tar.gz
wget http://libtorrent.rakshasa.no/downlo...t-0.8.2.tar.gz
svn co https://xmlrpc-c.svn.sourceforge.net...mlrpc-c/stable xmlrpc-c

tar -xvzf libtorrent-0.12.2.tar.gz
tar -xvzf rtorrent-0.8.2.tar.gz

rm *.tar.gz

cd xmlrpc-c

./configure --disable-cplusplus
make
sudo make install

cd ..

cd libtorrent-0.12.2/
./autogen.sh
./configure
make
sudo make install
cd ..

cd rtorrent-0.8.2/
./autogen.sh
./configure --with-xmlrpc-c
after that command make sure you see "checking for XMLRPC.... OK" near the end of the outputted text**
make
sudo make install
cd ..

sudo ldconfig

gedit .rtorrent.rc

##(paste the content of this link pastebin - collaborative debugging tool in the editor and Save & close)

mkdir .session
mkdir downloads
mkdir torrents
cd ..

chmod 777 /home/admin/torrents -R
chmod 777 /home/admin/downloads -R
chmod 777 /home/admin/.session -R

ln -s /etc/lighttpd/conf-available/10-auth.conf /etc/lighttpd/conf-enabled/10-auth.conf

sudo gedit /etc/lighttpd/lighttpd.conf


##add this to the lighttpd.conf file where all the other mod_XXX are located on top of the rest and save and exit:


"mod_scgi",
"mod_fastcgi",
"mod_auth",


##Then add this part at the bottom of the page behind the rest and save and close the file
## the auth.require part is the part where you have to type in the path of the folder you want to protect
## (it has to be in /var/www, because in the example, you type in /wtorrent/ which says its in /var/www/wtorrent).


scgi.server = (
"/RPC2" => # RT_DIR
( "127.0.0.1" =>
(
"host" => "127.0.0.1", # Ip where rtorrent is listening
"port" => 5000, # Port specified in .rtorrent.rc
"check-local" => "disable"
)
)
)

fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket"
)))

auth.backend = "htdigest"
auth.backend.htdigest.userfile = "/etc/lighttpd/.passwd"
auth.debug = 2

auth.require = ( "/wtorrent/" =>
(
"method" => "digest",
"realm" => "gods",
"require" => "valid-user"
)
)


## type this, where 'gods' is the group he is associated with and superman is the username

htdigest -c /etc/lighttpd/.passwd 'gods' superman




## The next step is the web interface selection. check next post...





Signature

Sraosha is the divine being who is the messenger of Ahura Mazdā and the embodiment of the divine word.


 
The Following 8 Users Say Thank You to Sraosha For This Useful Post:

To remove this ad register

Old 05-16-2009, 08:18 AM   #2 (permalink)
 
Sraosha's Avatar
 
Sraosha has no status.
Retired Staff
Join Date: Mar 2009
Location: Earth
Posts: 916
Sraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud ofSraosha has much to be proud of
iGiver: (42)
Default

OPTION A (rutorrent):

## type the following:

cd /var/www

sudo wget http://vif2ne.ru/nvk/stuff/novik/rto...torrent.tar.gz

sudo tar -xvzf rtorrent.tar.gz

sudo chown admin:admin rtorrent -R


##Go to Config.php in rtorrent folder and edit the uploads folder correctly (in our example it is /home/admin/torrents/ ) by typing the following and save & close the file
## when finished.


cd /var/www/rtorrent/
sudo gedit Config.php


##when thats done, restart the lighttpd server. if you get a [Fail] error, you need to shut down apache by typing sudo /etc/init.d/lighttpd stop

sudo /etc/init.d/lighttpd restart

## start rtorrent in screen mode by typing

screen rtorrent


## Now press CTRL+a followed by CTRL+d . this will detach rtorrent from terminal and keep it running in the background
## now go to the following URL and type in your username & password

http://localhost/www/rtorrent/

OPTION B (wtorrent):

cd /var/www
sudo svn co svn://wtorrent-project.org/repos/trunk/wtorrent/
cd wtorrent
sudo touch ./db/database.db
chown -R www-data:www-data db torrents tpl_c
sudo chmod 755 ./db/database.db


sudo gedit conf/sample.user.conf.php

##set RT_AUTH to true
##RT_USER "**" (fill in your username, that u made)
##RT_PASS "**" (fill in your password, that u made)
##'DIR_EXEC' to '/var/www/wtorrent/'
##save this as 'user.conf.php'.


sudo chmod 755 /var/www/wtorrent/conf/user.conf.php
chown www-data:www-data /var/www/wtorrent/conf/user.conf.php


##Remove all 3 occurences of DIR_EXEC in /var/www/wt/cls/AddT.cls.php and Save & close it

sudo gedit /var/www/wtorrent/cls/AddT.cls.php

##when thats done, restart the lighttpd server. if you get a [Fail] error, you need to shut down apache by typing sudo /etc/init.d/lighttpd stop

sudo /etc/init.d/lighttpd restart

## start rtorrent in screen mode by typing

screen rtorrent

## Now press CTRL+a followed by CTRL+d . this will detach rtorrent from terminal and keep it running in the background
## now go to the following URL and type in your username & password

##CONTINUE FOR OPTION B (WTORRENT)


##start firefox and type the following url. when you do that you will be prompted. type in your username & password.

http://localhost/wtorrent/install.php


##when you have done that you will get a page where you have to fill in several things
##Leave everything as it is except the following:
## Enable auth for scgi folder = true
##rtorrent scgi user = username
##rtorrent scgi password = password
## folder to save uploaded torrents = /home/admin/torrents/
## folder to save torrent data = /home/admin/downloads/
##folder to where wtorrent is = /var/www/wtorrent/
## set up the wtorrent username and password on the right (you can type in the same username & password as before)
## now select "Try Configuration". if it says ok, click on save configuration

## when thats done, go back to the terminal again and type:


sudo rm -rf /var/www/wtorrent/install.php

## now go to the following URL and type in your username & password to enter wtorrent

http://localhost/wtorrent/



## Your installation is now complete!




Signature

Sraosha is the divine being who is the messenger of Ahura Mazdā and the embodiment of the divine word.


 
The Following 13 Users Say Thank You to Sraosha For This Useful Post:

Closed Thread

Tags
rtorrent, Tutorial, ubuntu, wtorrent or rutorrent


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +10. The time now is 10:19 PM.

Top Top


Affilates : Torrent Invites | Torrent Forums | Tracker Invites | Scene Releases | TI Folding Team

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright © 2007 - 2010 Torrent-Invites all Rights Reserved

Shoutbox