Advertisement
Demosthenes

Untitled

Aug 22nd, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.71 KB | None | 0 0
  1.  
  2. How to install and run rTorrent/ruTorrent on a seedbox
  3.  
  4.  
  5.  
  6. Notes
  7.  
  8. This guide is going to make a new user named seeder1 and will install everything as if this is going to be your seed account. Feel free to change this name but do make sure you change it EVERYWHERE.
  9. You can probably do more parts of this guide from the root user saving you the trouble of having to always type "sudo" infront of the commands however this does allow for the problem that the user running the rtorrent program can't access all other files thus causing trouble with plugins of even the entire program not running. I find it safest to just do it like this.
  10.  
  11.  
  12.  
  13. The guide
  14.  
  15. This tutorial will guide you through the setup of a fully-featured seedbox running on a Debian or Ubuntu system, including:
  16.  
  17. libtorrent 0.13.0
  18. rTorrent 0.9
  19. ruTorrent Web UI (3.0)
  20.  
  21.  
  22.  
  23. This guide has been tested with Debian 6 (x86_64), Ubuntu 11.04 (x86_64) and Ubuntu 12.04 (x64).
  24.  
  25. To start, access your VPS or dedicated server via SSH (as the root user) and do the following to update your platform and install some required dependencies:
  26. apt-get update
  27. apt-get install subversion build-essential automake libtool libcppunit-dev libcurl3-dev libsigc++-2.0-dev unzip unrar-free curl libncurses-dev
  28. apt-get install apache2 php5 php5-cli php5-curl
  29.  
  30. Next step is to add a user under whose name the entire system is going to run.
  31. adduser seeder1
  32. Answer the questions asked and make sure you remember the password.
  33.  
  34. Add the user to the list of sudoers (for some basic help with the editor VI look here :http://www.unix-manuals.com/tutorials/vi/vi-in-10-1.html
  35. vi /etc/sudoers
  36. Find the part where it says "root ALL=(ALL:ALL) ALL" and add a new line (go to correct line, press the [ i ] key and enter what it says below. Once done press the [ esc ] key
  37. Seeder1 ALL=(ALL:ALL) ALL
  38. Save the file and exit (in vi you do this by pressing :wq[ enter ])
  39.  
  40. Close the ssh connection and restart it with the new user you just created. Then continue
  41.  
  42. Enable scgi for Apache:
  43. sudo apt-get install libapache2-mod-scgi
  44. sudo ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
  45.  
  46. Install XMLRPC:
  47. sudo mkdir /install;cd /install
  48. sudo svn checkout http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c
  49. sudo cd xmlrpc-c
  50. sudo ./configure --disable-cplusplus
  51. sudo make
  52. sudo make install
  53.  
  54. Intall libtorrent:
  55. cd /install
  56. sudo wget http://vps6.net/src/libtorrent-0.13.0.tar.gz
  57. sudo tar xvf libtorrent-0.13.0.tar.gz
  58. sudo cd libtorrent-0.13.0
  59. sudo ./autogen.sh
  60. sudo ./configure
  61. sudo make
  62. sudo make install
  63.  
  64. Install rTorrent:
  65. cd /install
  66. sudo wget http://vps6.net/src/rtorrent-0.9.0.tar.gz
  67. sudo cd rtorrent-0.9.0
  68. sudo ./autogen.sh
  69. sudo ./configure --with-xmlrpc-c
  70. sudo make
  71. sudo make install
  72. sudo ldconfig
  73.  
  74. Create required directories:
  75. mkdir /home/seeder1/rtorrent
  76. mkdir /home/seeder1/rtorrent/.session
  77. mkdir /home/seeder1/rtorrent/watch
  78. mkdir /home/seeder1/rtorrent/download
  79.  
  80. Setup .rtorrent.rc file (rTorrent config):
  81. cd
  82. wget http://vps6.net/src/.rtorrent.rc
  83.  
  84. (Edit the settings in .rtorrent.rc, like max upload/download speed, max connected peers, etc, as needed.)
  85. vi .rtorrent.rc
  86.  
  87. Install rTorrent:
  88. cd /install
  89. sudo wget http://vps6.net/src/rutorrent-3.0.tar.gz
  90. sudo tar xvf rutorrent-3.0.tar.gz
  91. sudo mv rutorrent /var/www
  92. sudo wget http://vps6.net/src/plugins-3.0.tar.gz
  93. sudo tar xvf plugins-3.0.tar.gz
  94. sudo mv plugins /var/www/rutorrent
  95. sudo rm -rf /var/www/rutorrent/plugins/darkpal
  96. sudo chown -R www-data:www-data /var/www/rutorrent
  97.  
  98. Secure /rutorrent:
  99. sudo a2enmod ssl
  100. sudo a2enmod auth_digest
  101. sudo a2enmod scgi
  102. sudo openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
  103. sudo chmod 600 /etc/apache2/apache.pem
  104. sudo htdigest -c /etc/apache2/passwords seedbox seeder1
  105.  
  106. (Enter a password of your choice when prompted, you will use this to log in to the ruTorrent web UI.)
  107.  
  108. cd /etc/apache2/sites-available/
  109. sudo rm -rf default
  110. sudo wget http://vps6.net/src/default
  111. sudo a2ensite default-ssl
  112. sudo /etc/init.d/apache2 reload
  113.  
  114. Install screen:
  115. sudo apt-get install screen
  116.  
  117. Start rTorrent in a detached shell using screen:
  118. screen -fa -d -m rtorrent
  119.  
  120. (To start rtorrent automatically when the VPS is booted, add the above command to /etc/rc.local)
  121.  
  122. 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.
  123.  
  124. Thanks to DrkNess who originally posted this in the Tutorials Forum
  125.  
  126. If all that code scares you try the Remote Deluge setup section of the Kimsufi 2G Guide
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement