Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Guide: rTorrent + ruTorrent installation
Thank you for your donation

Pages (4): « Previous 1 2 3 4 Next »
Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Guide: rTorrent + ruTorrent installation
29th Aug, 2014, 06:21 AM
Post: #31
warent Offline
Registered
Posts: 1
Joined: Aug 2014
Reputation: 0
RE: Guide: rTorrent + ruTorrent installation
(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!
Find all posts by this user
29th Sep, 2014, 10:04 AM
Post: #32
Crazy Offline
Registered
Posts: 1
Joined: Sep 2014
Reputation: 0
RE: Guide: rTorrent + ruTorrent installation
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 :-)
Find all posts by this user
20th Oct, 2014, 05:08 AM
Post: #33
biker3 Offline
Registered
Posts: 1
Joined: Oct 2014
Reputation: 0
RE: Guide: rTorrent + ruTorrent installation
(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
Find all posts by this user
8th Nov, 2014, 11:53 PM
Post: #34
Moodkiller Offline
Registered
Posts: 1
Joined: Nov 2014
Reputation: 0
RE: Guide: rTorrent + ruTorrent installation
Ok before I mess this up, thought I would ask. Currently I get these errors when I open ruTorrent
Spoiler (Click to View)
Code:
[09.11.2014 02:28:30] WebUI started.
[09.11.2014 02:28:33] rutracker_check: Plugin will not work. Webserver user must have execute access to the rtorrent session directory (/media/HDD1/Torrents/session/).
[09.11.2014 02:28:33] autotools: Plugin will not work. rTorrent user can't access external program (php).
[09.11.2014 02:28:33] unpack: Plugin will not work. rTorrent user can't access external program (php).
[09.11.2014 02:28:33] loginmgr: Some functionality will be unavailable. rTorrent user can't access external program (php).
[09.11.2014 02:28:33] create: Plugin will not work. rTorrent user can't access external program (php).
[09.11.2014 02:28:33] rutracker_check: Plugin will not work. rTorrent user can't access external program (php).
[09.11.2014 02:28:33] history: Plugin will not work. rTorrent user can't access external program (php).
[09.11.2014 02:28:33] rss: Plugin will not work. rTorrent user can't access external program (php).
[09.11.2014 02:28:33] trafic: Plugin will not work. rTorrent user can't access external program (php).
[09.11.2014 02:28:33] retrackers: Plugin will not work. rTorrent user can't access external program (php).
[09.11.2014 02:28:33] ratio: Some functionality will be unavailable. rTorrent user can't access external program (php).
[09.11.2014 02:28:33] scheduler: Plugin will not work. rTorrent user can't access external program (php).
[09.11.2014 02:28:33] screenshots: Plugin will not work. rTorrent user can't access external program (ffmpeg).
[09.11.2014 02:28:33] mediainfo: Plugin will not work. rTorrent user can't access external program (mediainfo).
[09.11.2014 02:28:35] DataDir plugin: rTorrent user can't access php interpreter. Plugin will not work.
[09.11.2014 02:28:35] Unpack plugin: rTorrent user can't access 'unrar' program.

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)
Spoiler (Click to View)
Code:
SCRIPT_NAME='rtorrent_pi.sh'
AUTHOR='koper89'
LOGFILE="/tmp/rtorrent_install.log"
USER='pi'

# WWW SETTINGS
WWW_DIRECTORY='/var/www'         # Do not include a slash at the end of the path

# RTORRENT SETTINGS
RTORRENT_USER='pi'            # Permissions
RTORRENT_GROUP='pi'           # Permissions
MAX_PEERS_SEED='50'
MIN_PEERS_SEED='2'
MAX_PEERS='50'
MIN_PEERS='2'
PORT_RANGE='61040-61050'
MAX_UPLOADS='30'
DOWNLOAD_RATE='0'
UPLOAD_RATE='0'
MAX_DOWNLOADS_DIV='0'
MAX_UPLOADS_GLOBAL='70'
MAX_DOWNLOADS_GLOBAL='50'
DHT='disable'
DHT_PORT='6881'
PEER_EXCHANGE='no'
SESSION_DIRECTORY='/media/HDD1/Torrents/session'
WATCH_DIRECTORY='/media/HDD1/Torrents/Torrents'
DOWNLOAD_DIRECTORY='/media/HDD1/Torrents'
RTORRENT_CONFIG='/home/pi'
RTORRENT_SOCKET='/tmp/rtorrent.sock'
NICE='7'                        #Nicelevel of rtorrent

# RUTORRENT SETTINGS
PORT='9096'                     #port for rutorrent website http://localhost:PORT
PLUGINS='y'                     #install plugin pack with f.e. unpack (unrar)
PLUGINS_URL='http://dl.bintray.com/novik65/generic/plugins-3.6.tar.gz'
RUTORRENT_URL='http://dl.bintray.com/novik65/generic/rutorrent-3.6.tar.gz'

Folder creations commented out:
Spoiler (Click to View)
Code:
echo 'Creating rTorrent watch directory...'
#sudo mkdir -p "$WATCH_DIRECTORY" >>"$LOGFILE" 2>&1
sudo chown $RTORRENT_USER:$RTORRENT_GROUP "$WATCH_DIRECTORY" >>"$LOGFILE" 2>&1
#sudo chmod 777 "$SESSION_DIRECTORY" >>"$LOGFILE" 2>&1

echo 'Creating rTorrent session directory...'
sudo mkdir -p "$SESSION_DIRECTORY" >>"$LOGFILE" 2>&1
sudo chown $RTORRENT_USER:$RTORRENT_GROUP "$SESSION_DIRECTORY" >>"$LOGFILE" 2>&1
#sudo chmod 777 "$SESSION_DIRECTORY" >>"$LOGFILE" 2>&1

echo 'Creating rTorrent download directory...'
#sudo mkdir -p "$DOWNLOAD_DIRECTORY" >>"$LOGFILE" 2>&1
sudo chown $RTORRENT_USER:$RTORRENT_GROUP "$DOWNLOAD_DIRECTORY" >>"$LOGFILE" 2>&1
#sudo chmod 777 "$DOWNLOAD_DIRECTORY" >>"$LOGFILE" 2>&1

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
Find all posts by this user
26th Nov, 2014, 07:26 PM
Post: #35
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Guide: rTorrent + ruTorrent installation
@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

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
25th Dec, 2014, 09:37 AM
Post: #36
Adr990 Offline
Registered
Posts: 1
Joined: Dec 2014
Reputation: 0
RE: Guide: rTorrent + ruTorrent installation
(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
Find all posts by this user
31st Dec, 2014, 07:49 AM
Post: #37
Enderswood Offline
Registered
Posts: 4
Joined: Dec 2014
Reputation: 0
RE: Guide: rTorrent + ruTorrent installation
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 ? :/
Find all posts by this user
14th Jan, 2015, 10:34 AM
Post: #38
acrylic.cow Offline
Registered
Posts: 1
Joined: Jan 2015
Reputation: 0
RE: Guide: rTorrent + ruTorrent installation
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.
Find all posts by this user
30th Jan, 2015, 04:30 PM
Post: #39
lego72 Offline
Registered
Posts: 1
Joined: Jan 2015
Reputation: 0
RE: Guide: rTorrent + ruTorrent installation
(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
Find all posts by this user
4th Feb, 2015, 01:02 AM
Post: #40
koper89 Offline
Registered
Posts: 97
Joined: Jan 2014
Reputation: 8
RE: Guide: rTorrent + ruTorrent installation
It is important to put rutorrent on mounted drive with exec enabled.
Find all posts by this user
5th Feb, 2015, 06:11 AM
Post: #41
Stefano Badoino Offline
Registered
Posts: 1
Joined: Feb 2015
Reputation: 0
RE: Guide: rTorrent + ruTorrent installation
(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!
Find all posts by this user
13th Feb, 2015, 04:28 AM
Post: #42
Igor Dovečer Offline
Registered
Posts: 9
Joined: Feb 2015
Reputation: 0
RE: Guide: rTorrent + ruTorrent installation
How to remove all and uninstall rtorrent?

Thank you.
Find all posts by this user
23rd Apr, 2015, 09:01 PM
Post: #43
zarroba Offline
Registered
Posts: 2
Joined: Apr 2015
Reputation: 0
RE: Guide: rTorrent + ruTorrent installation
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
Find all posts by this user
30th Apr, 2015, 07:46 AM
Post: #44
zarroba Offline
Registered
Posts: 2
Joined: Apr 2015
Reputation: 0
RE: Guide: rTorrent + ruTorrent installation
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.
Find all posts by this user
3rd May, 2015, 05:22 PM
Post: #45
pramod9964 Offline
Registered
Posts: 12
Joined: Jun 2013
Reputation: 0
RE: Guide: rTorrent + ruTorrent installation
Can anyone please share the script link seems to be down
Find all posts by this user
« Next Oldest | Next Newest »
Pages (4): « Previous 1 2 3 4 Next »
Thread Closed 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th May, 2025, 11:39 PM Powered By MyBB, © 2002-2025 MyBB Group.