My favorites | Sign in
Project Home Downloads Wiki Issues
Search
for
ubuntu_rtgui  

Phase-deploy, Featured
Updated May 28, 2009 by lemonbe...@gmail.com

How I got rtGui working on Ubuntu 8.04 (Hardy Heron)

Introduction

This is a quick guide on how I got rtGui working on Ubuntu 8.04 (Hardy Heron)

Details

  • Login and open up a new Terminal.
  • Applications -> Accessories -> Terminal
  • Install the necessary packages:
  • sudo apt-get install php5 php5-xmlrpc libapache2-mod-scgi rtorrent
  • Edit Apache default server config:
  • sudo gedit /etc/apache2/sites-enabled/000-default
  • Add the following lines, above the last "< /VirtualHost >" (or download example from http://rtgui.googlecode.com/files/000-default )
  • LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so
    SCGIMount /RPC2 127.0.0.1:5000
  • Restart Apache. Check it starts OK - if not, check you've done the above steps OK.
  • sudo apache2ctl restart
  • Create .rtorrent.rc file - download example from http://rtgui.googlecode.com/files/.rtorrent.rc and save to your home directory - ~/.rtorrent.rc
  • Note: when you download this file, it might end up in 'dos' text format. rtorrent won't like this, and complain with a message similar to "rtorrent: Error in option file: ~/.rtorrent.rc:16: Invalid start of name.". To convert it to 'unix' format, first install the tools:
  • sudo apt-get install tofrodos
  • ..then convert it...
  • dos2unix .rtorrent.rc
  • Create directories for rtorrent to use, and change the ownership to the user that runs rtorrent:
  • sudo mkdir /Torrents /Torrents/Downloading /Torrents/Downloading/rtorrent.session /Torrents/Complete /Torrents/TorrentFiles /Torrents/TorrentFiles/Auto
    sudo chown rtorrent /Torrents /Torrents/Downloading /Torrents/Downloading/rtorrent.session /Torrents/Complete /Torrents/TorrentFiles /Torrents/TorrentFiles/Auto
  • At this stage, check you can run rtorrent:
  • su - rtorrent  (optional - change to the user that runs rtorrent)
    rtorrent
  • Leave rtorrent running, and open a new Tab. (If at some point you want to close rtorrent, press CTRL-Q)
  • Download rtgui from http://code.google.com/p/rtgui/downloads/list
  • Extract files to webserver directory:
  • sudo tar xvzf ~/rtgui-x.x.x.tgz -C /var/www
  • If new install, use example config.php:
  • cd /var/www/rtgui/
    sudo cp config.php.example config.php
  • Default settings in config should be OK, but just in case:
  • sudo gedit /var/www/rtgui/config.php
  • Now open your browser, and go to http://localhost/rtgui/
  • Enjoy!

SUPPORT

Please do not use these comments - use the Google Groups instead (link on project home page)

Comment by gavin.mc...@gmail.com, May 10, 2008

A complete piece of documentation. Thank you.

Comment by jgtelf...@gmail.com, May 11, 2008

Terrific, thanks, one typo on the tar command it should be an upper case '-C' sudo tar xvzf ~/rtgui-0.2.3.tgz -C /var/www

Comment by sylvain....@gmail.com, May 26, 2008

Very good documentation, thanks !

Comment by project member lemonbe...@gmail.com, May 29, 2008

@ jdrof...@rogers.com: - Thanks for the typo correction :)

Comment by rangi...@gmail.com, Jun 24, 2008

Be sure that the .rtorrent.rc file you create has this line in it:

scgi_port = 127.0.0.1:5000

One of the example .rtorrent.rc files above doesn't have this line and therefore rtgui hangs when you browse to it.

Comment by project member lemonbe...@gmail.com, Sep 18, 2008

@rangi500: The provided .rtorrent.rc does include the line you mention - at line 72.

Comment by www.daan...@gmail.com, Oct 8, 2008

The same documentation you can use on all Debian based distro's. Thanx a lot! Keep up this great work!

Comment by stefan.a...@gmail.com, Oct 12, 2008

Sample rtorrent.rc is also in /usr/share... So no DOS Converting needed:

cp /usr/share/doc/rtorrent/examples/rtorrent.rc .rtorrent.rc

Comment by lukas.gs...@gmail.com, Nov 4, 2008

hi! the interface is great! but when i am downloading a big file (some gigs, like a debian dvd iso), i get wrong file sizes ... is this a known issue?

Comment by k.tony.j...@gmail.com, Nov 6, 2008

I have a few problem with the Gui, i would be so glad to get help with this.

Warning: disk_free_space() [function.disk-free-space]: No such file or directory in /var/www/rtgui/functions.php on line 239

And

Warning: disk_total_space() [function.disk-total-space]: No such file or directory in /var/www/rtgui/index.php on line 70

Comment by Arkadi.A...@gmail.com, Nov 8, 2008

See this http://code.google.com/p/rtgui/issues/detail?id=50 and don`t forget to change (as example)

$watchdir="//home/YOU_LOGIN/Torrents"; $downloaddir="//home/YOU_LOGIN/Downloads";

in config.php

Comment by Nunn...@gmail.com, Dec 9, 2008

Page loads, but getting this error:

Error:

Warning: disk_total_space() [function.disk-total-space]: No such file or directory in /var/www/rtgui/index.php on line 81

Warning: disk_total_space() [function.disk-total-space]: No such file or directory in /var/www/rtgui/index.php on line 81

Warning: Division by zero in /var/www/rtgui/index.php on line 81 Disk Free: / (0%)

Would appreciate assistance if possible. Wonder if it is a permissions issue in the directory maybe? Or a directory structure error:

Have: rTorrent 0.8.4/0.12.4 | RSS Feed | Page created in 0.118 secs. rtGui v0.2.6 - by Simon Hall 2007-2008

Comment by project member lemonbe...@gmail.com, Dec 9, 2008

@Nunnsby: Your entry in config.php is probably incorrect:

// Path to report disk usage $downloaddir="/Torrents";

Comment by Nunn...@gmail.com, Dec 9, 2008

Hey lemonberry, SORTED!! :)

Man it had been driving me crazy. I had a ~/Torrents specified, but it required a fully qualified path. All working now. Thanks man.

Nunnsby ;-)

Comment by s.ka...@gmail.com, Feb 1, 2009

If I was running rtorrent wiv rtgui @ home, what would I need to do/change to be able to access it from work or some other location outside of my LAN??

Comment by ryszard....@gmail.com, Feb 5, 2009

works fine on my ubuntu 8.04 server Great Job @ s.kakau plese configure your firewal, port forwarding 80 to rtgui server. dont forget to configure www(apache,lighthttpd,...) security .httaccess .httpasswd

Comment by fbrannh...@gmail.com, Feb 12, 2009

What stopp have I messed up I rtgui can connect to rtorrent?

I am not connecting from local host (no GUI there)

// Fredrik

Comment by fbrannh...@gmail.com, Feb 12, 2009

this might help http://pastebin.com/f6597765b < confog.php http://pastebin.com/m6f01c257 < rtorrent-rc

Comment by hock...@gmail.com, Feb 13, 2009

Any chance we could get it password protected for viewing over the web by browser other than that works great thanks

Comment by project member lemonbe...@gmail.com, Feb 13, 2009
Comment by project member lemonbe...@gmail.com, Feb 17, 2009

For support, please use Google Groups - not these comments. Find the link on the home page.

@Hockney: Look on the home page under 'known problems'...

Comment by boga...@gmail.com, Feb 20, 2009

Thanks for the help.

For the chown part, can't you also use chown -R rtorrent /Torrents ?

Comment by ryszard....@gmail.com, Mar 12, 2009

Use rtorrent as daemon

thnx 2 Rudolf Mühlbauer http://freakingbits.sisyphus.teil.cc/~mru/projekte/rtorrentd/

works great on my ubuntu server

Comment by jules.ro...@gmail.com, Mar 29, 2009

Wikkid, nice one! Needed rangi500's pointer to add scgi line to rtorrent.rc...

Comment by dapboy....@gmail.com, May 24, 2009

Hello, I use my NSLU2 with rtorrent, and I want to use rtgui but I have this error ???

Fatal error: Call to undefined function xmlrpc_encode_request() in /var/www/rtgui/functions.php on line 231

My xmlrpc is functionnal, I have good response with the command :

# xmlrpc localhost download_list Result:

Array of 4 items:

Index 0 String: '4198C0769EF5301175CD3FF806FEFD91899B2E8F' Index 1 String: '41744EBBFA752CC65E58844E3AAD1D20EAAB36EB' Index 2 String: '6D6482C93F1592A00E154F1E43F842810829976C' Index 3 String: 'C8EF513720FF9011FAD020A302515B820D0E30C9'

Please can you help me ?? Thanks

Comment by N5EIL.N...@gmail.com, Jun 22, 2009

have you restarted apache2 since you installed xmlrpc?

Comment by daberg...@gmail.com, Aug 24, 2009

I can not get this working. I think I had everything pretty good but my error.log says = Aug 25 01:26:13 2009? error? 127.0.0.1? File does not exist: /var/www/RPC2

rtorrent starts up, reporting 444 functions. I guess that is a good thing. But when I test it right in console I get this:

# xmlrpc localhost get_upload_rate Error: no element found (-503)

I have the line in .rtorrent.rc and the two lines in 000-default. Shouldn't be a problem there...

Help appreciated, I am totally stuck. :)

Comment by kim.cal...@gmail.com, Aug 25, 2009

The only issue that I am having now is that fact that I can't seem to add a torrent via URL. Could just be the URL that I am trying to submit just do not submit correctly.

Comment by project member lemonbe...@gmail.com, Sep 22, 2009

Note for Gentoo (and possibly other) users: You might find the default "allow_url_fopen" set to "off" in php.ini - this must be set to "on" for rtGui to function. (thanks robin at? emagine dot? se)

Comment by yihsi...@gmail.com, Nov 26, 2009

Hi, there is a easy way to use rtGUI with apache. After you upgrade apache to 2.2.14, there is a new module: mod_proxy_scgi, we can use "ProxyPass? /RPC2/ scgi://127.0.0.1:5000/" in httpd.conf. It solves my nighmare to run rtGUI under FreeBSD with apache2. I can't get mod_scgi to work when virtual hosts enabled in my configuration.

Comment by kocin...@gmail.com, Jan 18, 2010

rtgui was just included in Debian GNU/Linux (sid) See: http://packages.qa.debian.org/r/rtgui.html

Comment by kocin...@gmail.com, Nov 21, 2010

I've package rtgui to be part of the official Debian GNU/Linux distribution.

The rtgui package is available through the official repository 0?

Since 2010-01-15, rtgui software can be installed in Debian GNU/Linux (and many derivatives) just issuing the following command:

$sudo apt-get install rtgui

Thanks for your work on rtgui.

0? http://packages.qa.debian.org/r/rtgui.html

Comment by project member lemonbe...@gmail.com, Nov 21, 2010

@kocinski: thank you too - I am proud that my project has found its' way into the repositories :)

Long live Open Source Software! Freedom for all :)

Comment by st...@archbox.net, Oct 1, 2011

Thanks, used this guide mixed with others to get lighttpd/php/rtorrent/rtgui going!


Sign in to add a comment
Powered by Google Project Hosting