hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : VPS Tutorials : How to Install rTorrent/ruTorrent on Debian/Ubuntu VPS
Reply

Forum Jump

How to Install rTorrent/ruTorrent on Debian/Ubuntu VPS

Reply Post New Thread In VPS Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-09-2012, 01:35 AM
VPS6NET_jh VPS6NET_jh is offline
Temporarily Suspended
 
Join Date: Nov 2011
Location: United States
Posts: 97
Arrow

How to Install rTorrent/ruTorrent on Debian/Ubuntu VPS


This tutorial will guide you through the setup of a fully-featured seedbox running on a Debian or Ubuntu system, including:
  • libtorrent 0.13.0
  • rTorrent 0.9
  • ruTorrent Web UI (3.0)
This guide has been tested with Debian 6 (x86_64) and Ubuntu 11.04 (x86_64).

To start, access your VPS via SSH (as the root user) and do the following to update your platform and install some required dependencies:
# apt-get update
# apt-get install subversion build-essential automake libtool libcppunit-dev libcurl3-dev libsigc++-2.0-dev unzip unrar-free curl libncurses-dev
# apt-get install apache2 php5 php5-cli php5-curl
Enable scgi for Apache:
# apt-get install libapache2-mod-scgi
# ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
Install XMLRPC:
# mkdir /install;cd /install
# svn checkout http://xmlrpc-c.svn.sourceforge.net/...mlrpc-c/stable xmlrpc-c
# cd xmlrpc-c
# ./configure --disable-cplusplus
# make
# make install
Intall libtorrent:
# cd /install
# wget http://vps6.net/src/libtorrent-0.13.0.tar.gz
# tar xvf libtorrent-0.13.0.tar.gz
# cd libtorrent-0.13.0
# ./autogen.sh
# ./configure
# make
# make install
Install rTorrent:
# cd /install
# wget http://vps6.net/src/rtorrent-0.9.0.tar.gz
# cd rtorrent-0.9.0
# ./autogen.sh
# ./configure --with-xmlrpc-c
# make
# make install
# ldconfig
Create required directories:
# mkdir /home/seeder1/rtorrent
# mkdir /home/seeder1/rtorrent/.session
# mkdir /home/seeder1/rtorrent/watch
# mkdir /home/seeder1/rtorrent/download
Setup .rtorrent.rc file (rTorrent config):
# cd ~/
# wget http://vps6.net/src/.rtorrent.rc
# cp .rtorrent.rc /home/seeder1/
(Edit the settings in .rtorrent.rc, like max upload/download speed, max connected peers, etc, as needed.)

Install rTorrent:
# cd /install
# wget http://vps6.net/src/rutorrent-3.0.tar.gz
# tar xvf rutorrent-3.0.tar.gz
# mv rutorrent /var/www
# wget http://vps6.net/src/plugins-3.0.tar.gz
# tar xvf plugins-3.0.tar.gz
# mv plugins /var/www/rutorrent
# rm -rf /var/www/rutorrent/plugins/darkpal
# chown -R www-data:www-data /var/www/rutorrent
Secure /rutorrent:
# a2enmod ssl
# a2enmod auth_digest
# a2enmod scgi
# openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
# chmod 600 /etc/apache2/apache.pem
# htdigest -c /etc/apache2/passwords seedbox seeder1
(Enter a password of your choice when prompted, you will use this to log in to the ruTorrent web UI.)
# cd /etc/apache2/sites-available/
# rm -rf default
# wget http://vps6.net/src/default
# a2ensite default-ssl
# /etc/init.d/apache2 reload
Install screen:
# apt-get install screen
Start rTorrent in a detached shell using screen:
# screen -fa -d -m rtorrent
(To start rtorrent automatically when the VPS is booted, add the above command to /etc/rc.local)

You can now access ruTorrent at http://xx.xx.xx.xx/rutorrent/ (replace xx.xx with your server's IP address). You should be greeted with a login prompt, where the username is "seeder1" and the password is the one you set above in the "secure /rutorrent" section.



Sponsored Links
  #2  
Old 02-10-2012, 08:25 AM
elvis1 elvis1 is offline
Web Hosting Master
 
Join Date: May 2007
Posts: 1,793
great guide buddy

__________________
imagepedia.net
inthecloudblog.net

  #3  
Old 02-10-2012, 12:50 PM
ViperNet ViperNet is offline
Disabled
 
Join Date: Jan 2010
Location: WwW
Posts: 147
Nice tutorial, Thanks

Sponsored Links
  #4  
Old 02-19-2012, 02:40 PM
tallship tallship is offline
Junior Guru Wannabe
 
Join Date: Feb 2011
Location: Super Sunny SoCal USA
Posts: 42
An excellent cookbook. That's the way I like my tutorials - I only have to read what I'm actually going to do and dispense with any lengthy explanations, since I can tweak what I want to along the way.

__________________
Bradley D. Thornton - http://NorthTech.US - Registered Linux User #190795

- "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.

  #5  
Old 02-25-2012, 09:40 PM
613websites 613websites is offline
Web Hosting Guru
 
Join Date: Aug 2009
Location: Canada
Posts: 348
For those looking for a more simple install for occasional torrent downloading or seeding, I'd look into "transmission-daemon". It provides a web interface and you only need to install 1 package.

__________________
613websites.com ● 1-800-636-1484
Budget Canadian Hosting and Web Design
Visit us @ www.613websites.com!

  #6  
Old 03-07-2012, 04:32 PM
R00T R00T is offline
Newbie
 
Join Date: Jul 2002
Posts: 5
thank you so much for this tutorial, it works like a charm.

you just need to add a line after downloading rtorrent command to untar the file: ( tar xvf torrent-0.9.0.tar.gz )

Now here is the situation i faced which i hope someone would be kind enough to help me with:

my debian server was working fine with virtualmin installed and a few apache virtual servers pointing to /home. and squid for personal use.

after i used this fine tutorial i got my self a good bittorrent client running at the full speed of my connection, BUT.

while my apache points fine to /var/www it cant load any website on the /home directory. after spending a few nights with my friend google i discovered that apache points to /var/www by default not to /home, and you need a custom compiled version in order to run /home virtual servers.

what i need now is a method to solve this issue so i can run both rutorrent and my hosted website. eather by executing some commands or do a new fresh virtualmin installation and use this tutorial again to install rutorrent but without the commands that made the problem in the first place.

thanks in advance

  #7  
Old 03-07-2012, 06:16 PM
VPS6NET_jh VPS6NET_jh is offline
Temporarily Suspended
 
Join Date: Nov 2011
Location: United States
Posts: 97
Quote:
Originally Posted by R00T View Post
thank you so much for this tutorial, it works like a charm.

you just need to add a line after downloading rtorrent command to untar the file: ( tar xvf torrent-0.9.0.tar.gz )

Now here is the situation i faced which i hope someone would be kind enough to help me with:

my debian server was working fine with virtualmin installed and a few apache virtual servers pointing to /home. and squid for personal use.

after i used this fine tutorial i got my self a good bittorrent client running at the full speed of my connection, BUT.

while my apache points fine to /var/www it cant load any website on the /home directory. after spending a few nights with my friend google i discovered that apache points to /var/www by default not to /home, and you need a custom compiled version in order to run /home virtual servers.

what i need now is a method to solve this issue so i can run both rutorrent and my hosted website. eather by executing some commands or do a new fresh virtualmin installation and use this tutorial again to install rutorrent but without the commands that made the problem in the first place.

thanks in advance
Just check the VirtualHosts section of your httpd.conf file, you'll be able to set the DocumentRoot parameters however you want.

To find httpd.conf you can run:

find / -name httpd.conf

  #8  
Old 03-07-2012, 07:19 PM
tallship tallship is offline
Junior Guru Wannabe
 
Join Date: Feb 2011
Location: Super Sunny SoCal USA
Posts: 42
* No No No! Don't recompile Apache unnecesarily !!!

Quote:
Originally Posted by R00T View Post

while my apache points fine to /var/www it cant load any website on the /home directory. after spending a few nights with my friend google i discovered that apache points to /var/www by default not to /home, and you need a custom compiled version in order to run /home virtual servers.

what i need now is a method to solve this issue...
thanks in advance
These instructions were given for Debian. Each distro is different. In debian, you prolly want to use the "Alias" directive, to keep in line with the way it is typically done on that distro.

Code:
Alias /btpiraten/ /home/joe/www/btpiraten/
If your server is http://joe.sld.tld, then the alias above (Placed in the original VirtualHost container), will render the pages you want with:

Code:
http://joe.sld.tld/btpiraten/
Unnecessarily recompiling Apache won't add anything you need, that you don't already have.

If you want a completely different host to answer (requires an entry in /etc/hosts on the client or in DNS or NIS), then, something like the following will work for you:

Code:
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
    ServerAdmin joe@joe.sld.tld
    DocumentRoot "var/www"
    ServerName joe.sld.tld
    ServerAlias www.sld.tld
    ErrorLog "/var/log/httpd/joe.sld.tld-error_log"
    CustomLog "/var/log/httpd/joe.sld.tld-access_log" common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin joe@sld.tld
    DocumentRoot "/home/joe/btpiraten"
    ServerName btpiraten.sld.tld
    ErrorLog "/var/log/httpd/btpiraten.sld.tld-error_log"
    CustomLog "/var/log/httpd/btpiraten.sld.tld-access_log" common
</VirtualHost>
And now you would type:

Code:
http://www.sld.tld
or

Code:
http://joe.sld.tld
To reach the regular/old/default site you originally had, and:

Code:
http://btpiraten.sld.tld
To reach the new rTorrent site you installed under your home directory (or anywhere else you decide to put it.

I hope that helps

Kindest regards,

.

__________________
Bradley D. Thornton - http://NorthTech.US - Registered Linux User #190795

- "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.

  #9  
Old 03-08-2012, 01:23 PM
R00T R00T is offline
Newbie
 
Join Date: Jul 2002
Posts: 5
thank you so much for the quick replies.

i believe the problem is not with apache it self. it is really with Suexec, here is what virtualmin says:

Code:
The Suexec command on your system is configured to only run scripts under /var/www, but the
Virtualmin virtual server home directory is /home. CGI and PHP scripts run as domain owners will
not be executed.
what i understand that When using the Virtualmin the home directories of each domain are under /home/. This differs from the Apache convention of /var/www/ and causes issues with suexec refusing to execute CGI programs due to permissions problems.

so If you are using Virtualmin (or more accurately, not using /var/www/ as the root for your virtual domains) you will need to build a custom version of apache's suexec to adjust those built-in settings. because the suexec program has settings built in when it is compiled to prevent it being reconfigured to avoid the security restrictions it is designed to enforce.

here is the output of suexec:

Code:
# /usr/lib/apache2/suexec -V 
 -D AP_DOC_ROOT="/var/www"
 -D AP_GID_MIN=100
 -D AP_HTTPD_USER="www-data"
 -D AP_LOG_EXEC="/var/log/apache2/suexec.log"
 -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
 -D AP_UID_MIN=100
 -D AP_USERDIR_SUFFIX="public_html"
if we can install rtorrent/rutorrent without altering apache and/or its mods, then we can run rutorrent using /var/www and still able to run virtual hosts on the /home directory using virtualmin.

after all if you have to edit config files every time you add a new domain then what is the use of a control panel.

  #10  
Old 03-08-2012, 08:57 PM
tallship tallship is offline
Junior Guru Wannabe
 
Join Date: Feb 2011
Location: Super Sunny SoCal USA
Posts: 42
*

Quote:
Originally Posted by R00T View Post
after all if you have to edit config files every time you add a new domain then what is the use of a control panel.
An interesting perspective. I'm not a fan of the ubuntu kool-aid, however. It seems to leave a bitter, almond-like taste in my mouth.

I might be inclined to put it this way: "If all you have to do is edit a couple of config files, what use is a control panel that merely breaks things when you use it?"

If all you're concerned with is the cgi-bin dir, then perhaps a ScriptAlias directive pointing to a directory where you don't need to fiddle with the user's ~/ permissions would suffice?

With the Script-Alias directive you can point the cgi-bin directory (which is virtual anyway) to any place OUTSIDE the DocumentRoot of the particular VirtualHost in question - as it should be....

I remember taking a college course on Perl, and the catalog said one thing but the professor wanted to make it a CGI/Web class, which sucked, coz it wasn't what the catalog said.

The school IT folks (nevermind that they were using a glorified iPAD for NAS) used the stock userdir conf file to build the user accounts for the students, which iincluded a cgi-bin directory INSIDE each user's DocumentRoot.

The admins didn't understand why this was so objectionable until it was demonstrated to them that anyone arbitrarily view and execute anyone's CGI programs by default.

This wasn't a problem for a community college course, except that anyone could simply copy the homework assignments of some other student in the class into their own cgi-bin, make a couple of crafty changes, and get credit for having completed the assignment - considering that the directory tree was a known factor shared by all students in the class.

My recommendations are such:

1.) Don't use a GUI tool to do what is simpler to do by simply editing a config file that the GUI might not even be able to do.

or

2.) Live within the constraints of the GUI admin tool itself and don't edit ANY files by hand if you're going to use that GUI - you might (will probably) break things.

Just my two cents

Kindest regards,

.

__________________
Bradley D. Thornton - http://NorthTech.US - Registered Linux User #190795

- "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.

  #11  
Old 03-09-2012, 01:57 PM
R00T R00T is offline
Newbie
 
Join Date: Jul 2002
Posts: 5
Quote:
Originally Posted by tallship View Post
I might be inclined to put it this way: "If all you have to do is edit a couple of config files, what use is a control panel that merely breaks things when you use it?".
I have to respect that. the command line is the way to go when it comes to linux.

the point is that when i was first introduced to linux (more than 14 years ago) i was so exited about it, loved the idea of the open source OS and had redhat installed on a low end old machine of mine with all essential servers up and running.

start to read and learn about the command line, and the more i learn the more i liked it, actually after sometime i would say that i fall in love with this amazing OS.

not long after that i started to study for my master degree i could not keep up. and found my self stuck with windows again maybe because linux GUI (Gnome and KDE) wasn't mature enough at that time, or the idea that i had about the linux learning curve, i am not sure.

after all these years i started to think about it again, got my self a dedi-server with Debian 6 and began to play with it, the more i screwed up the more i learn, since the server is for personal use only.

decided to install some sort of control panel to get things starting and take it slow with the command line, learning as i go.

now back to the main subject. I reinstalled debian and virtualmin and everything in this tutorial except apachi and php (which were already installed by VM) and the libapache2-mod-scgi (since there is an rutorrent plug in to replace it). well things seems to work fine for now, got some issues when i reboot i think it has something to do with the rtorrentInit.sh (the script i use to autostart the service since the method mentioned here didn't work for me) removed it and started it manually thing are back on track for now.

i am so glad that i had the chance of this conversation and maybe just maybe, when i am sure everything is fine with my setup i will come back to add to this fine tutorial for the lazy new comers who use virtualmin like my self.

  #12  
Old 03-09-2012, 02:19 PM
R00T R00T is offline
Newbie
 
Join Date: Jul 2002
Posts: 5
ohh, one last thing i forget to mention i didn't issue the command that links /mods-available to /mods-enabled.

  #13  
Old 03-16-2012, 05:29 PM
levat levat is offline
Newbie
 
Join Date: Sep 2010
Location: Novi Travnik
Posts: 10
Thumbs up tnx

this tut saved me few days ago...

my upload sux, and this thing works from shell.

  #14  
Old 04-03-2012, 04:26 PM
alert-hosting alert-hosting is offline
Newbie
 
Join Date: Dec 2011
Posts: 11
Nice Tutorial

Thank you !

  #15  
Old 04-14-2012, 01:45 AM
BretH BretH is offline
New Member
 
Join Date: Apr 2012
Posts: 3
Thanks very much mate

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Setup Ubuntu VPS with rTorrent+wTorrent (Seedbox) telvps VPS Tutorials 1 05-11-2011 10:18 PM
rTorrent + ruTorrent seedbox setup on Linux snielsen Systems Management Requests 7 01-28-2011 05:14 AM
4 Per Month Bittorrent Seedbox - rTorrent + ruTorrent NuCode Other Hosting Offers 0 01-11-2011 09:43 PM
rTorrent + ruTorrent high quality seedboxes, 100Mbps unmetered! NuCode Other Hosting Offers 0 10-01-2010 04:11 PM
Gigenet reseller that install debian/ubuntu? J-B[away] Dedicated Server 18 02-01-2007 10:55 AM

Related posts from TheWhir.com
Title Type Date Posted
Canonical to Close Cloud Storage Service Ubuntu One Web Hosting News 2014-05-01 08:34:02
Joyent Cloud Adds Platform Optimization, Support for Ubuntu Server Images Web Hosting News 2014-02-20 11:19:00
Nginx to be Included in Upcoming Ubuntu Release Web Hosting News 2014-01-08 15:17:12
ServInt Offers Ubuntu OS Option with Flex VPS Plans Web Hosting News 2013-03-01 12:50:20
Canonical Releases Ubuntu Server 12.10 with OpenStack Folsom Web Hosting News 2012-10-19 11:11:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?