Forum

Full Version: Guide: rTorrent + ruTorrent installation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
(23rd Apr, 2014 12:19 PM)jameskeagie Wrote: [ -> ]Hi all,

Just wanted to say thanks for this awesome script! Got rtorrent and rutorrent up and running quickly and it makes a great xbian citizen w/ XBMC w/ the nice levels.

I also wanted to mange rtorrent remotely with a client such as Transdroid on my android, but it appears scgi wasn't configured to allow this. It also wasn't configured for authentication, and I didn't want to open nginx up to the entire world, so I enabled basic auth on it.

Here's what I did:

nano /etc/nginx/sites-enabled/rutorrent


Paste in following (edit port, auth realm, and auth file) and save.


server
{
listen 9999; ##Replace with port to listen on - preferably not same as rutorrent
server_name localhost;
location ^~ /scgi {
auth_basic "Restricted"; ##auth zone - whatever you want to use
auth_basic_user_file torpasswd; ##auth file - relative to /etc/nginx/.
include scgi_params;
scgi_pass unix:/tmp/rtorrent.sock;
}
}


Now you need an auth file at /etc/nginx/torpasswd (or whatever auth file name you specified)

Easiest way is to use this online tool here:

http://www.askapache.com/online-tools/htpasswd-generator/ -> Be sure to put in the realm used in "auth_basic" in nginx config above, and select md5 and Basic Auth.

nano /etc/nginx/torpasswd -> paste in digest algorithm above

sudo /etc/init.d/nginx restart

Enjoy!

In transdroid, you specify user name and password, and then for SCGI mount point you put "/scgi", and also specify the port number you mapped it to. NAT the port through your router and you've got access anywhere with Dynamic DNS!

~James

Thanks for the info, but i've done all your steps and it doesn't seem to be working.

I dont get a pop-up at the gui and transdroid is not working either.

Do you have an idea what the issue could be ?

Thanks!
Thank You for a Great script :-) I installed it on a Respbian and it works perfectly.

The ONLY problem I have is that the torrents are saved as root.

Where do I need to make the change so that torrents are downloaded as a user ?

Thanks :-)
(29th Sep, 2014 10:04 AM)Crazy Wrote: [ -> ]Thank You for a Great script :-) I installed it on a Respbian and it works perfectly.

The ONLY problem I have is that the torrents are saved as root.

Where do I need to make the change so that torrents are downloaded as a user ?

Thanks :-)

Hi,

I've the same question. I suppose we need to do some change in /etc/init.d/rtorrent, because there's a USER var, but it is not usedConfused
Ok before I mess this up, thought I would ask. Currently I get these errors when I open ruTorrent

As the error suggests, there is a permission issue. These are the settings I used when I ran the script:
Note the change of user to pi and the watch and download locations. Subsequently the relative mkdir sections were commented out of the script but I left the permission changes in. (see after the below code)

Folder creations commented out:

Edit: This also shows up when I open ruTorrent:


As the main OP stated to log in as root, the very first command I did was sudo su followed by wget onwards. Did this have anything to do with the permissions not being granted to those that need it? And the end question being, could someone help me fix this please? Smile
@Moodkiller

ownership of installer package (or anything you got with wget) plays no role later.
unrar take this one for instance http://ivka57.dyndns-ip.com/pool/stable/main/u/unrar/unrar_4.1.4-1_armhf.deb

re-check your FOLDER creation scripts, you have copy&paste error - copied, but not changed the name
(8th Nov, 2014 11:53 PM)Moodkiller Wrote: [ -> ]Edit: This also shows up when I open ruTorrent:

I also got this issue, although on start of the web client it only says the 'unrar' couldn't be accessed. I do not have the other error.
How can I give my user, or to say rtorrent's user all the rights it needs manually?
(Btw, in the script I searched and replaced 'xbian' and replaced every match with my username in Notepad++, so it should be fine?)

Thanks for your script btw, very nice to have to have a base to work with. Smile

Edit:

Got it working! Thanks a bunch!
It was not your script that couldn't do it, but I picked different group for my user, and now it works. Smile
hi Smile
first of all, sorry for my english, hope you will understand me Tongue

then, some info :
raspbery Pi B+
Xbian


i have follow all steps carefully and everything work ! ... almost fine Confused

after a while, my rtorrent seems to simply crash, i ssh and do "ps aux | grep rtorrent", and of course found nothing....
when it happened, i tried to launch rtorrent again by enter "rtorrent" (thx captain obvious) and ... :
rtorrent: Error in option file: ~/.rtorrent.rc:77: Could not prepare socket for listening: Adresse déjà utilisée (adress already used)

as a perfect linux noob, i have look everywhere with my google skill and found nothing... so i have try change the scgi part like if i want couchpotato as explain in page 2, but i had to comment the 2 lines under scgi_local like :
# scgi_local = /tmp/rtorrent.sock
# execute = {sh,-c,/bin/chgrp www-data /tmp/rtorrent.sock}
# execute = {sh,-c,/bin/chmod g=rwx /tmp/rtorrent.sock}

was not told, so perhaps not a good idea, but if i dont, i have a line 76 error... with these changes, rtorrent command work and i have the shell gui that apear, and he webui back online too.

problem is...

[30.12.2014 22:47:17] scheduler: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] datadir: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] trafic: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] retrackers: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] create: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] _task: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] history: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] source: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] screenshots: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] edit: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] data: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] rutracker_check: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] mediainfo: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] autotools: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] erasedata: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.
[30.12.2014 22:47:17] unpack: ruTorrent and rTorrent must be installed on the same host. Plugin will not work.

... any clue for a reaaaaalll noob ? :/
Hi,

I also did a fresh install from the latest xbian image, and fellow all the step and getting all those error:

[13.01.2015 19:26:55] WebUI started.
[13.01.2015 19:26:57] rss: Some functionality will be unavailable. Webserver user can't access external program (curl).
[13.01.2015 19:26:57] scheduler: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] trafic: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] rss: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] retrackers: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] create: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] history: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] ratio: Some functionality will be unavailable. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] loginmgr: Some functionality will be unavailable. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] rutracker_check: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] autotools: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] unpack: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] rss: Some functionality will be unavailable. rTorrent user can't access external program (curl).
[13.01.2015 19:26:57] screenshots: Plugin will not work. rTorrent user can't access external program (ffmpeg).
[13.01.2015 19:26:57] mediainfo: Plugin will not work. rTorrent user can't access external program (mediainfo).
[13.01.2015 19:26:58] DataDir plugin: rTorrent user can't access php interpreter. Plugin will not work.
[13.01.2015 19:26:58] Unpack plugin: rTorrent user can't access 'unrar' program.

I havent modified anything yet in the script.
(14th Jan, 2015 10:34 AM)acrylic.cow Wrote: [ -> ]Hi,

I also did a fresh install from the latest xbian image, and fellow all the step and getting all those error:

[13.01.2015 19:26:55] WebUI started.
[13.01.2015 19:26:57] rss: Some functionality will be unavailable. Webserver user can't access external program (curl).
[13.01.2015 19:26:57] scheduler: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] trafic: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] rss: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] retrackers: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] create: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] history: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] ratio: Some functionality will be unavailable. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] loginmgr: Some functionality will be unavailable. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] rutracker_check: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] autotools: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] unpack: Plugin will not work. rTorrent user can't access external program (php).
[13.01.2015 19:26:57] rss: Some functionality will be unavailable. rTorrent user can't access external program (curl).
[13.01.2015 19:26:57] screenshots: Plugin will not work. rTorrent user can't access external program (ffmpeg).
[13.01.2015 19:26:57] mediainfo: Plugin will not work. rTorrent user can't access external program (mediainfo).
[13.01.2015 19:26:58] DataDir plugin: rTorrent user can't access php interpreter. Plugin will not work.
[13.01.2015 19:26:58] Unpack plugin: rTorrent user can't access 'unrar' program.

I havent modified anything yet in the script.

Hi there,
Great script that worked for the most part apart from issues with my permissions and the issue the two previous people had.

I resolved them by installing unrar-free, php5-cli, mediainfo and ffmpeg (apt-get install unrar-free php5-cli mediainfo ffmpeg). I hope this is of benefit to someone.

Cheers
It is important to put rutorrent on mounted drive with exec enabled.
(20th Oct, 2014 05:08 AM)biker3 Wrote: [ -> ]
(29th Sep, 2014 10:04 AM)Crazy Wrote: [ -> ]Thank You for a Great script :-) I installed it on a Respbian and it works perfectly.

The ONLY problem I have is that the torrents are saved as root.

Where do I need to make the change so that torrents are downloaded as a user ?

Thanks :-)

Hi,

I've the same question. I suppose we need to do some change in /etc/init.d/rtorrent, because there's a USER var, but it is not usedConfused

In /etc/init.d/rtorrent change

start-stop-daemon --start --nicelevel $NICE --background --pidfile $PID_FILE --exec /usr/bin/dtach -- -n $TMP rtorrent -n -o import=$CONFIG_FILE

to

start-stop-daemon --start --chuid <YOUR_USER_HERE>:<YOUR_GROUP_HERE> --nicelevel $NICE --background --pidfile $PID_FILE --exec /usr/bin/dtach -- -n $TMP rtorrent -n -o import=$CONFIG_FILE

In my case, I used pi both for user and group (I'm on Raspbian), but if you are using Xbian maybe you want to use something like xbian:xbian.
Then, in .rtorrent.rc change

execute = {sh,-c,/bin/chgrp www-data /tmp/rtorrent.sock}
execute = {sh,-c,/bin/chmod g=rwx /tmp/rtorrent.sock}

to

execute = {sh,-c,/usr/bin/sudo /bin/chgrp www-data /tmp/rtorrent.sock}
execute = {sh,-c,/usr/bin/sudo /bin/chmod g=rwx /tmp/rtorrent.sock}

Cheers!
How to remove all and uninstall rtorrent?

Thank you.
Hi guys,

I've updated my rpi with the latest stable xbian distro and I'm not able to start rtorrent after that.

All I get is
Code:
cannot access `/tmp/rtorrent.dtach': No such file or directory
when I try to manually start the rtorrent daemon or when running the script.

Is there any step I can do manually to fix this? which may be the cause for this file to not have been created? any help? Smile
Just found out the answer to my own question Smile
During configuration I've set the listening port range to only one port like 75000 because it was the port opened in my router.
It seems that we really need to define a range. After setting it like:
Terminal
port_range = 75000-75000
I've started the rtorrent daemon and I didn't got the error..

Hope this helps anyone that may have the same issue.
Can anyone please share the script link seems to be down
Pages: 1 2 3 4
Reference URL's