##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...

LinkBack URL
About LinkBacks
