Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---| rTorrent + rtgui ( webinterface install ) on Debian & Ubuntu Server OS |----------------------------
- STEP 1. start terminal and install needed packages:
- # sudo apt-get install php5 php5-xmlrpc apache2 libapache2-mod-scgi rtorrent
- STEP 2. Modify apache2
- # sudo nano /etc/apache2/sites-enabled/000-default
- Add:
- LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so
- SCGIMount /RPC2 127.0.0.1:5000
- </VirtualHost>
- NB. Note the 2 lines are added in the end of the first 1. </VirtualHost>
- If using several vhosts, still add the 2 lines to the first vhost </VirtualHost>
- STEP 3. Make an rtorrent user: ( example )
- adduser rtorrentuser
- Enter new UNIX password: enter wanted passwd
- Retype new UNIX password: enter wanted passwd again
- You now have user --> /home/rtorrentuser
- Make rtorrent dirs to download, autodownload and session
- Enter following in terminal:
- e.g.
- --
- # mkdir /home/rtorrentuser/download
- # mkdir /home/rtorrentuser/watch
- # mkdir /home/rtorrentuser/session
- # chown -R rtorrentuser /home/rtorrentuser
- # chmod 777 ./download ./watch ./session
- --
- STEP 4. Edit rtorrent config file
- --
- First download ----> http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc#latest
- Copy into an texteditor, save file as .rtorrent.rc
- File + filepath should now be /home/rtorrentuser/.rtorrent.rc
- --
- Now do: Insert
- # nano /home/rtorrentuser/.rtorrent.rc (Edit following lines in config file, must match folders we created earlier )
- uncomment and edit
- **Set download folder**
- # Default directory to save the downloaded torrents.
- directory = ./download
- **Set Session dir**
- # Default session directory. Make sure you don't run multiple instance
- # of rtorrent using the same session directory. Perhaps using a
- # relative path?
- session = ./session
- **Set watch dir**
- # Watch a directory for new torrents, and stop those that have been
- # deleted.
- schedule = watch_directory,5,5,load_start=./watch/*.torrent
- #schedule = untied_directory,5,5,stop_untied=
- ** Set a portforward range for rtorrent to use ( Remember to enable portforward range in you router) **
- # Port range to use for listening.
- port_range = 55410-55420
- At the end of file we put in ( .rtorrent.rc )
- scgi_port = 127.0.0.1:5000
- Save file ( .rtorrent.rc )
- STEP 5. Add webinterface to rtorrent ( rtgui )
- Download latest rtgui from http://code.google.com/p/rtgui/
- Change to webserver root e.g. /var/www and downlaod/wget the rtgui file to here
- # wget http://rtgui.googlecode.com/files/rtgui-0.2.9.tgz
- untar file while in /var/www
- # sudo tar -zxvf rtgui-0.2.7.tgz
- rename config.php.sample to config.php
- # cd /var/www/rtgui
- # nano config.php
- Insert correct folders, look for the following:
- // rtorrent 'watch' directory (used for upload torrent)
- $watchdir="/home/rtorrentuser/watch/";
- // Path to report disk usage
- $downloaddir="/home/rtorrentuser/download";
- Save file ( config.php )
- STEP 6. LETS GO
- start rtorrent in a screen
- # screen
- Press space
- rtorrent
- Open your webbrowser ->> http://localhost/rtgui
- Thats it. Now it should run. Maybe you have to shut rtorrent down and restart.
- Make sure .rtorrent.rc file is loaded during start. You can see this at the buttom of screen when starting rtorrent.
- ---| rTorrent + rtgui ( webinterface install ) on Debian & Ubuntu Server OS |----------------------------
- Please PM me on site if you have corrections to this guide.
- **
- Although not stated on the rtgui website, rtgui is working with rTorrent 0.7.9
- I have tested.
- 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