|
How I got rtGui working on Ubuntu 8.04 (Hardy Heron) IntroductionThis 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! SUPPORTPlease do not use these comments - use the Google Groups instead (link on project home page)
|
A complete piece of documentation. Thank you.
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
Very good documentation, thanks !
@ jdrof...@rogers.com: - Thanks for the typo correction :)
Be sure that the .rtorrent.rc file you create has this line in it:
One of the example .rtorrent.rc files above doesn't have this line and therefore rtgui hangs when you browse to it.
@rangi500: The provided .rtorrent.rc does include the line you mention - at line 72.
The same documentation you can use on all Debian based distro's. Thanx a lot! Keep up this great work!
Sample rtorrent.rc is also in /usr/share... So no DOS Converting needed:
cp /usr/share/doc/rtorrent/examples/rtorrent.rc .rtorrent.rc
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?
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
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
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
@Nunnsby: Your entry in config.php is probably incorrect:
// Path to report disk usage $downloaddir="/Torrents";
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 ;-)
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??
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
What stopp have I messed up I rtgui can connect to rtorrent?
I am not connecting from local host (no GUI there)
// Fredrik
this might help http://pastebin.com/f6597765b < confog.php http://pastebin.com/m6f01c257 < rtorrent-rc
Any chance we could get it password protected for viewing over the web by browser other than that works great thanks
@hockney: http://www.google.com/search?q=how+to+.htpasswd
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'...
Thanks for the help.
For the chown part, can't you also use chown -R rtorrent /Torrents ?
Use rtorrent as daemon
thnx 2 Rudolf Mühlbauer http://freakingbits.sisyphus.teil.cc/~mru/projekte/rtorrentd/
works great on my ubuntu server
Wikkid, nice one! Needed rangi500's pointer to add scgi line to rtorrent.rc...
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:
Please can you help me ?? Thanks
have you restarted apache2 since you installed xmlrpc?
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. :)
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.
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)
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.