NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Etz
Mar 21, 2012Aspirant
ruTorrent 3.3 + rTorrent by WhoCares
Can someone explain, how to configure download directories and other settings?
It always defaults back to factory settings if you reboot ReadyNAS or restart addon.
It`s a known behaviour of ruTorrent GUI: http://forums.rutorrent.org/index.php?topic=570.0
Also I couldnt find corresponding rtorrent.rc file anywhere in my unit, so where are the default settings actually kept? :roll:
Basically my problem is, that it always defaults download directory to /c/media , which I have deleted because I use different share names... (Downloads for example) :?
It always defaults back to factory settings if you reboot ReadyNAS or restart addon.
It`s a known behaviour of ruTorrent GUI: http://forums.rutorrent.org/index.php?topic=570.0
Also I couldnt find corresponding rtorrent.rc file anywhere in my unit, so where are the default settings actually kept? :roll:
Basically my problem is, that it always defaults download directory to /c/media , which I have deleted because I use different share names... (Downloads for example) :?
34 Replies
Replies have been turned off for this discussion
- invader980Aspiranti copied urs to see if i could just get it up and running to start then i was going to edit it to my liking
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# Maximum and minimum number of peers to connect to per torrent.
#min_peers = 40
#max_peers = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)
#min_peers_seed = 10
#max_peers_seed = 50
# Maximum number of simultanious uploads per torrent.
#max_uploads = 15
# Global upload and download rate in KiB. "0" for unlimited.
#download_rate = 0
#upload_rate = 0
# Default directory to save the downloaded torrents.
directory = /c/raid/extra/partial
# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /c/.rtorrent/session
# 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=
# Close torrents when diskspace is low.
#schedule = low_diskspace,5,60,close_low_diskspace=100M
# The ip address reported to the tracker.
#ip = 127.0.0.1
# The ip address the listening socket and outgoing connections is
# bound to.
#bind = 127.0.0.1
#bind = rakshasa.no
# Port range to use for listening.
port_range = 31667-31767
# Start opening ports at a random position within the port range.
port_random = yes
# Check hash for finished torrents. Might be usefull until the bug is
# fixed that causes lack of diskspace not to be properly reported.
check_hash = yes
# Set whetever the client should try to connect to UDP trackers.
#use_udp_trackers = yes
# Alternative calls to bind and ip that should handle dynamic ip's.#schedule = ip_tick,0,1800,ip=rakshasa
#schedule = bind_tick,0,1800,bind=rakshasa
# Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
#
# The example value allows incoming encrypted connections, starts unencrypted
# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
#
#encryption = require,enable_retry,prefer_plaintext
encryption = require
# Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
#
dht = disable
# UDP port to use for DHT.
#
# dht_port = 6881
# Enable peer exchange (for torrents not marked private)
#
# peer_exchange = yes
# chmod rwx for everybody
system.umask.set = 0000
# Schedules to watch folders
schedule = watch_directory_1,11,20,"load_start=/c/raid/extra/rtorrent/watch/*.torrent,d.set_custom1=/c/raid/extra/downloads/"
schedule = watch_directory_2,12,20,"load_start=/c/raid/extra/rtorrent/watch/music/*.torrent,d.set_custom1=/c/raid/extra/music/"
# Move completed downloads to preset target
system.method.set_key = event.download.finished,move_complete,"d.set_directory=$d.get_custom1=;execute=mv,-u,$d.get_base_path=,$d.get_custom1="
#
# Do not modify the following parameters unless you know what you're doing.
#
# Hash read-ahead controls how many MB to request the kernel to read
# ahead. If the value is too low the disk may not be fully utilized,
# while if too high the kernel might not be able to keep the read
# pages in memory thus end up trashing.
#hash_read_ahead = 10
# Interval between attempts to check the hash, in milliseconds.
#hash_interval = 100
# Number of attempts to check the hash while using the mincore status,
# before forcing. Overworked systems might need lower values to get a
# decent hash checking rate.
#hash_max_tries = 10
whats strange is i got it to start ( with errors ) befor i edited "start.sh"
#!/bin/bash
#
# This should contain necessary code to start the service
screen -dmS "rtorrent" start-stop-daemon -S -m --pidfile /var/run/RUTORRENT.pid -c admin:admin -q --nicelevel 19 -x /etc/frontview/addons/bin/RUTORRENT/RUTORRENT_service
RTOR=`ps ax | grep rtorrent | grep -v SCREEN | grep -v grep | awk '{ print $1 }'`
if [ "$RTOR" != "" ]; then
echo $RTOR > /var/run/RUTORRENT.pid
fi
after editing that it stoped starting all together
reading the code i cant see y it wouldnt start ...
im going to try a fresh install and re-mod see if i have success
also ... im not to familiar with linux but the instructions to save the rc file to :~admin/.rtorrent.rc
i assumed theres a home folder of some sort named ~admin/ not to sure but the instructions in the rc file recommended a save to:~/.rtorrent.rc
i saved to both (lack of better decision) lol
ps: working on permission right now to rule that out ..... ive already edited the .rc file simply commented out the watch dr lines ill set that later with the addon and used real dir for the save folders - Dewdman42Virtuosotake out the nice level thing. I took it out of mine since then too. I don't think that's the problem though.
Could be file permissions. Make sure the related files are either owned by admin or with permissions for admin to read at runtime.
You also see that my rtorrent.rc file has a few directory names specified and you will need to edit those to actual dirs on your system where you intend to have default downloads and sessions saved. Then make sure those dirs exist. - Dewdman42Virtuosoin answer to your question about ~admin/.rtorrent.rc.
In unix you can refer to your own home dir with the '~'. So if you were going to save the file to the home dir of the current user, you'd say ~/.rtorrent.rc.
However in unix if you put a username after the tilde, then its referring to the home dir of that user.
Check /etc/passwd to see what the home dir is for your admin user. On my system it was /home/admin - invader980AspirantMy Procedure ( maybe i did something wrong u can spot) :
1) rtorrent.rc - Created and saved in /c/media (copy of urs)
2) Putty into my nas & copy the file into place:NAS-8B-81-B8:~# cp /c/media/rtorrent.rc ~admin/.rtorrent.rc
also copied to ~/.rtorrent.rc
3) move to /etc/frontview/addons/bin/RUTORRENT/ to edit RUTORRENT_service (i copy it to /c/media/ edit and copy back )
NAS-8B-81-B8:~# cd /etc/frontview/addons/bin/RUTORRENT/
NAS-8B-81-B8:/etc/frontview/addons/bin/RUTORRENT# ls
running.sh RUTORRENT_service start.sh stop.sh
NAS-8B-81-B8:/etc/frontview/addons/bin/RUTORRENT# cp RUTORRENT_service /c/media/
*edit* file in windows (wordpad) and save as:
#!/bin/bash
. /etc/default/services
. /etc/frontview/addons/ui/RUTORRENT/rutorrent.config
rm /tmp/rutorrent.sock
/usr/bin/rtorrent -o scgi_local=/tmp/rutorrent.sock
Copy back and run rutorrent
NAS-8B-81-B8:/etc/frontview/addons/bin/RUTORRENT# cp /c/media/RUTORRENT_service RUTORRENT_service
NAS-8B-81-B8:/etc/frontview/addons/bin/RUTORRENT#
3) /c/.rtorrent/session created
rutorrent starts (with errors) :
"[24.06.2012 20:41:27] WebUI started.
[24.06.2012 20:41:27] Bad link to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file."
but the service is running (looks like it) ....
So i op out of the start up script editing and try the command "rtorrent" ( to check if its up) i get the following error :NAS-8B-81-B8:/etc/frontview/addons/bin/RUTORRENT# rtorrent
rtorrent: Error in option file: ~/.rtorrent.rc:1: Invalid start of command name.
After deleting ~/.rtorrent.rc rtorrent starts with this error :
(21:08:32) Could not read resource file: ~/.rtorrent.rc
but rutorrent wont .... Somthings wrong .. i dono were to start lol - invader980AspirantOk So file permissions 777 for both files .... same error
- Dewdman42Virtuosolike I said, you have to edit the rtorrent.rc file and change some of the paths, you can't just use exactly what I used. Fix that. Check all the permissions
- Dewdman42Virtuosoalso, the way to start rtorrent is to use frontview to start and stop it.
- invader980AspirantFigured out the problem with the rc file .... Simply editing it in windows ruined the line returns and such i had to download an editer to edit the file correctly ...
.. i am usding front view to start and stop rtorrent ...
assumming the same thing happend with start up i also re-made RUTORRENT_service .. im up and running ( i think will have to test the session part is working)
WOOT WOOT --- told u i was a linux noob lol learned alot tho :
for other noobs out there = i used Komodo Edit 7.0 to edit the files and u have to change the file prefrences /line ending to UNIX (\n) to prevent issues if u edited the files in windows
thanks for trying to help me Dewdman i know its frustration when the user should know better :) lol - Dewdman42VirtuosoI would reccomend for the future you use apt-get to install pico or vim so you can edit the files directly on unix. glad you got it working
- wizzardAspirantI need a second pair of eyes to se what I have done wrong. I have earlier had rtorrent running on ubuntu
Symtoms:
- Torrents will not autoload from watched catalogs
- Torrents can not be started, they are stuck in PAUSED (Save as catalog is "./" acording to rutorrent)
- If I restart torrents are gone from rtorrent.
My .rtorrent.rcs is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# Maximum and minimum number of peers to connect to per torrent.
#min_peers = 40
#max_peers = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)
#min_peers_seed = 10
#max_peers_seed = 50
# Maximum number of simultanious uploads per torrent.
#max_uploads = 15
# Global upload and download rate in KiB. "0" for unlimited.
#download_rate = 0
#upload_rate = 0
# Default directory to save the downloaded torrents.
directory = /c/media/temp/download/
# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /c/.rtorrent/session
# 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=
# Close torrents when diskspace is low.
#schedule = low_diskspace,5,60,close_low_diskspace=100M
# The ip address reported to the tracker.
#ip = 127.0.0.1
# The ip address the listening socket and outgoing connections is
# bound to.
#bind = 127.0.0.1
#bind = rakshasa.no
# Port range to use for listening.
port_range = 6890-6990
# Start opening ports at a random position within the port range.
port_random = yes
# Check hash for finished torrents. Might be usefull until the bug is
# fixed that causes lack of diskspace not to be properly reported.
check_hash = yes
# Set whetever the client should try to connect to UDP trackers.
#use_udp_trackers = yes
# Alternative calls to bind and ip that should handle dynamic ip's.#schedule = ip_tick,0,1800,ip=rakshasa
#schedule = bind_tick,0,1800,bind=rakshasa
# Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
#
# The example value allows incoming encrypted connections, starts unencrypted
# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
#
#encryption = require,enable_retry,prefer_plaintext
encryption = require
# Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
#
dht = disable
# UDP port to use for DHT.
#
# dht_port = 6881
# Enable peer exchange (for torrents not marked private)
#
# peer_exchange = yes
# chmod rwx for everybody
system.umask.set = 0000
# Schedules to watch folders
schedule = watch_directory_1,11,20,"load_start=/c/media/temp/default/*.torrent,d.set_custom1=/c/media/default/"
schedule = watch_directory_2,12,20,"load_start=/c/media/temp/music/*.torrent,d.set_custom1=/c/media/Music/"
schedule = watch_directory_3,12,20,"load_start=/c/media/temp/tv/xx/*.torrent,d.set_custom1=/c/media/Tv/xx/"
schedule = watch_directory_4,12,20,"load_start=/c/media/temp/tv/xx/*.torrent,d.set_custom1=/c/media/Tv/xx/"
schedule = watch_directory_5,12,20,"load_start=/c/media/temp/tv/xx/*.torrent,d.set_custom1=/c/media/Tv/xx/"
schedule = watch_directory_5,12,20,"load_start=/c/media/temp/tv/xx/*.torrent,d.set_custom1=/c/media/Tv/xx/"
schedule = watch_directory_6,12,20,"load_start=/c/media/temp/tv/xx/*.torrent,d.set_custom1=/c/media/Tv/xx/"
schedule = watch_directory_7,12,20,"load_start=/c/media/temp/tv/xx/*.torrent,d.set_custom1=/c/media/Tv/xx/"
schedule = watch_directory_8,12,20,"load_start=/c/media/temp/tv/xx/*.torrent,d.set_custom1=/c/media/Tv/xx/"
schedule = watch_directory_9,12,20,"load_start=/c/media/temp/tv/xx/*.torrent,d.set_custom1=/c/media/Tv/xx/"
schedule = watch_directory_10,12,20,"load_start=/c/media/temp/tv/xx/*.torrent,d.set_custom1=/c/media/Tv/xx/"
schedule = watch_directory_11,12,20,"load_start=/c/media/temp/tv/xx/*.torrent,d.set_custom1=/c/media/Tv/xx/"
schedule = watch_directory_12,12,20,"load_start=/c/media/temp/tv/xx/*.torrent,d.set_custom1=/c/media/Tv/xx/"
# Move completed downloads to preset target
system.method.set_key = event.download.finished,move_complete,"d.set_directory=$d.get_custom1=;execute=mv,-u,$d.get_base_path=,$d.get_custom1="
#
# Do not modify the following parameters unless you know what you're doing.
#
# Hash read-ahead controls how many MB to request the kernel to read
# ahead. If the value is too low the disk may not be fully utilized,
# while if too high the kernel might not be able to keep the read
# pages in memory thus end up trashing.
#hash_read_ahead = 10
# Interval between attempts to check the hash, in milliseconds.
#hash_interval = 100
# Number of attempts to check the hash while using the mincore status,
# before forcing. Overworked systems might need lower values to get a
# decent hash checking rate.
#hash_max_tries = 10
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!