Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. ---| rTorrent + rtgui ( webinterface install ) on Debian & Ubuntu Server OS |----------------------------
  2.  
  3.  
  4.  
  5. STEP 1. start terminal and install needed packages:
  6.  
  7. # sudo apt-get install php5 php5-xmlrpc apache2 libapache2-mod-scgi rtorrent
  8.  
  9.  
  10.  
  11. STEP 2. Modify apache2
  12.  
  13. # sudo nano /etc/apache2/sites-enabled/000-default
  14.  
  15. Add:
  16.  
  17. LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so
  18. SCGIMount /RPC2 127.0.0.1:5000
  19.  
  20. </VirtualHost>
  21.  
  22. NB. Note the 2 lines are added in the end of the first 1. </VirtualHost>
  23. If using several vhosts, still add the 2 lines to the first vhost </VirtualHost>
  24.  
  25.  
  26.  
  27.  
  28.  
  29. STEP 3. Make an rtorrent user: ( example )
  30.  
  31. adduser rtorrentuser
  32. Enter new UNIX password: enter wanted passwd
  33. Retype new UNIX password: enter wanted passwd again
  34.  
  35. You now have user --> /home/rtorrentuser
  36.  
  37. Make rtorrent dirs to download, autodownload and session
  38.  
  39. Enter following in terminal:
  40.  
  41. e.g.
  42.  
  43. --
  44. # mkdir /home/rtorrentuser/download
  45.  
  46. # mkdir /home/rtorrentuser/watch
  47.  
  48. # mkdir /home/rtorrentuser/session
  49.  
  50. # chown -R rtorrentuser /home/rtorrentuser
  51. # chmod 777 ./download ./watch ./session
  52. --
  53.  
  54.  
  55.  
  56. STEP 4. Edit rtorrent config file
  57.  
  58. --
  59. First download ----> http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc#latest
  60.  
  61. Copy into an texteditor, save file as .rtorrent.rc
  62.  
  63. File + filepath should now be /home/rtorrentuser/.rtorrent.rc
  64. --
  65. Now do: Insert
  66.  
  67. # nano /home/rtorrentuser/.rtorrent.rc (Edit following lines in config file, must match folders we created earlier )
  68. uncomment and edit
  69.  
  70. **Set download folder**
  71.  
  72. # Default directory to save the downloaded torrents.
  73. directory = ./download
  74.  
  75. **Set Session dir**
  76.  
  77. # Default session directory. Make sure you don't run multiple instance
  78. # of rtorrent using the same session directory. Perhaps using a
  79. # relative path?
  80. session = ./session
  81.  
  82. **Set watch dir**
  83.  
  84. # Watch a directory for new torrents, and stop those that have been
  85. # deleted.
  86. schedule = watch_directory,5,5,load_start=./watch/*.torrent
  87. #schedule = untied_directory,5,5,stop_untied=
  88.  
  89. ** Set a portforward range for rtorrent to use ( Remember to enable portforward range in you router) **
  90.  
  91. # Port range to use for listening.
  92. port_range = 55410-55420
  93.  
  94. At the end of file we put in ( .rtorrent.rc )
  95.  
  96.  
  97. scgi_port = 127.0.0.1:5000
  98.  
  99. Save file ( .rtorrent.rc )
  100.  
  101.  
  102.  
  103. STEP 5. Add webinterface to rtorrent ( rtgui )
  104.  
  105. Download latest rtgui from http://code.google.com/p/rtgui/
  106.  
  107. Change to webserver root e.g. /var/www and downlaod/wget the rtgui file to here
  108.  
  109. # wget http://rtgui.googlecode.com/files/rtgui-0.2.9.tgz
  110.  
  111. untar file while in /var/www
  112.  
  113. # sudo tar -zxvf rtgui-0.2.7.tgz
  114.  
  115. rename config.php.sample to config.php
  116.  
  117. # cd /var/www/rtgui
  118. # nano config.php
  119.  
  120. Insert correct folders, look for the following:
  121.  
  122. // rtorrent 'watch' directory (used for upload torrent)
  123. $watchdir="/home/rtorrentuser/watch/";
  124.  
  125. // Path to report disk usage
  126. $downloaddir="/home/rtorrentuser/download";
  127.  
  128. Save file ( config.php )
  129.  
  130. STEP 6. LETS GO
  131.  
  132. start rtorrent in a screen
  133.  
  134. # screen
  135.  
  136. Press space
  137.  
  138. rtorrent
  139.  
  140. Open your webbrowser ->> http://localhost/rtgui
  141.  
  142.  
  143. Thats it. Now it should run. Maybe you have to shut rtorrent down and restart.
  144. Make sure .rtorrent.rc file is loaded during start. You can see this at the buttom of screen when starting rtorrent.
  145.  
  146.  
  147. ---| rTorrent + rtgui ( webinterface install ) on Debian & Ubuntu Server OS |----------------------------
  148.  
  149.  
  150.  
  151. Please PM me on site if you have corrections to this guide.
  152.  
  153. **
  154. Although not stated on the rtgui website, rtgui is working with rTorrent 0.7.9
  155. I have tested.
  156. But then again, I assume that almost anyone is already using a later version of rTorrent?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement