Results 1 to 25 of 33
-
02-09-2012, 01:35 AM #1Temporarily Suspended
- Join Date
- Nov 2011
- Location
- United States
- Posts
- 100
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):
(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.
-
02-10-2012, 08:25 AM #2Web Hosting Master
- Join Date
- May 2007
- Posts
- 2,042
great guide buddy
-
02-10-2012, 12:50 PM #3Disabled
- Join Date
- Jan 2010
- Location
- WwW
- Posts
- 164
Nice tutorial, Thanks
-
02-19-2012, 02:40 PM #4Junior Guru Wannabe
- Join Date
- Feb 2011
- Location
- Super Sunny SoCal USA
- Posts
- 50
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.
-
02-25-2012, 09:40 PM #5Aspiring Evangelist
- Join Date
- Aug 2009
- Location
- Canada
- Posts
- 377
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 ● Canadian Hosting and Web Design
██ Reliable, fast, customized, and secure hosting!
██ 99.9% Uptime Guarantee | 24/7 Support | Money Back Guarantee
██ Visit www.613websites.com or call 1-800-636-1484
-
03-07-2012, 04:32 PM #6Newbie
- Join Date
- Jul 2002
- Posts
- 9
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
-
03-07-2012, 06:16 PM #7Temporarily Suspended
- Join Date
- Nov 2011
- Location
- United States
- Posts
- 100
-
03-07-2012, 07:19 PM #8Junior Guru Wannabe
- Join Date
- Feb 2011
- Location
- Super Sunny SoCal USA
- Posts
- 50
No No No! Don't recompile Apache unnecesarily !!!
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/
Code:http://joe.sld.tld/btpiraten/
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>
Code:http://www.sld.tld
Code:http://joe.sld.tld
Code:http://btpiraten.sld.tld
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.
-
03-08-2012, 01:23 PM #9Newbie
- Join Date
- Jul 2002
- Posts
- 9
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.
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"
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.
-
03-08-2012, 08:57 PM #10Junior Guru Wannabe
- Join Date
- Feb 2011
- Location
- Super Sunny SoCal USA
- Posts
- 50
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.
-
03-09-2012, 01:57 PM #11Newbie
- Join Date
- Jul 2002
- Posts
- 9
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.
-
03-09-2012, 02:19 PM #12Newbie
- Join Date
- Jul 2002
- Posts
- 9
ohh, one last thing i forget to mention i didn't issue the command that links /mods-available to /mods-enabled.
-
03-16-2012, 05:29 PM #13Newbie
- Join Date
- Sep 2010
- Location
- Novi Travnik
- Posts
- 12
tnx
this tut saved me few days ago...
my upload sux, and this thing works from shell.
-
04-03-2012, 04:26 PM #14Newbie
- Join Date
- Dec 2011
- Posts
- 13
Nice Tutorial
Thank you !
-
04-14-2012, 01:45 AM #15New Member
- Join Date
- Apr 2012
- Posts
- 4
Thanks very much mate
-
04-14-2012, 10:09 AM #16New Member
- Join Date
- Apr 2012
- Posts
- 1
Hi
thanks for this tutorial but after I did everything, I have a problem when I try to delete torrent with rutorrent.
I installed libtorrent-0.13.1, rtorrent-0.9.1, rutorrent-3.4 and plugins-3.4.
I think it's a problem of write but I don't know where.
The download folder of rutorrent is own by rtorrent_user:www-data
and I did a chmod 775 on the folder.
-
04-30-2012, 08:52 PM #17New Member
- Join Date
- Apr 2012
- Posts
- 1
Hi guys;
Im just another newbie trying to make a seedbox
thanks for the tutorial!its great!
But even though I followed the guide i have a problem
When i go to my mysite/rutorrent i got this error:
"Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file."
So i checked config.php and .rtorrent.rc and everything is ok.
I tried running rtorrent from ssh using screen and i got this error:
"Could not read resource file: ~/.rtorrent.rc"
Then i went to home/seeder1 (like i said i followed the guide)and the file was there.
I dont know what to do.
Any ideas tips or help would be great.
Thanks
-
05-03-2012, 02:10 PM #18New Member
- Join Date
- May 2012
- Posts
- 1
Ok I need some help here. I'm running Debian 6 and following this guide. When I try to download xmlrpc this comes up OPTIONS : 200 OK And nothing is downloaded how do I fix that? There are som links between but i cant link them yet.
-
05-05-2012, 04:32 PM #19Newbie
- Join Date
- Jan 2010
- Location
- Earth
- Posts
- 12
Good Tutorial .. Thanks mate
-
05-05-2012, 04:46 PM #20New Member
- Join Date
- May 2012
- Posts
- 3
easy step ! nice tutorial thanks..
-
05-16-2012, 04:43 AM #21New Member
- Join Date
- May 2012
- Posts
- 1
Help
Hello,
I get the error:
JS error: [xxx.xxx.xxx.xxx/rutorrent/js/stable.js : 183] Uncaught TypeError: Object has no method 'attr'
Please help me!
Thanks!
-
05-16-2012, 04:15 PM #22New Member
- Join Date
- May 2012
- Posts
- 1
Try to delete the uisettings.json file from ..rutorrent/share/users/YOU/settings/
Next go to refresh at your page
-
05-25-2012, 10:31 PM #23WHT Addict
- Join Date
- Jan 2005
- Location
- Malaysia
- Posts
- 116
Great tutorial..
after i download those torrent and i want to download it and access it http://ip/rutorrent/download/
The requested URL /rutorrent/download/ was not found on this server.
how can i access/see this file?
thanks
-
05-27-2012, 03:11 AM #24Junior Guru
- Join Date
- May 2012
- Posts
- 191
We can also use these commands to install rtorrent , just to add a addon on this thread
cd
wget --no-check-certificate -O autodl-setup http://sourceforge.net/projects/auto...setup/download
sudo sh autodl-setup
-
06-14-2012, 10:32 PM #25New Member
- Join Date
- Dec 2010
- Posts
- 4
nice write up
Having issues getting filemanager plugin to work . did the SVN and chmod the scripts dir but the plugin never shows up : /
any ideas ?
Similar Threads
-
How to Setup Ubuntu VPS with rTorrent+wTorrent (Seedbox)
By telvps in forum VPS TutorialsReplies: 1Last Post: 05-11-2011, 10:18 PM -
rTorrent + ruTorrent seedbox setup on Linux
By snielsen in forum Systems Management RequestsReplies: 7Last Post: 01-28-2011, 05:14 AM -
4€ Per Month Bittorrent Seedbox - rTorrent + ruTorrent
By NuCode in forum Other Hosting OffersReplies: 0Last Post: 01-11-2011, 09:43 PM -
rTorrent + ruTorrent high quality seedboxes, 100Mbps unmetered!
By NuCode in forum Other Hosting OffersReplies: 0Last Post: 10-01-2010, 04:11 PM -
Gigenet reseller that install debian/ubuntu?
By J-B[away] in forum Dedicated ServerReplies: 18Last Post: 02-01-2007, 10:55 AM