NetVision-Technik

NetVision-Technik (http://www.netvision-technik.de/forum/index.php)
-   Webanwendungen (http://www.netvision-technik.de/forum/forumdisplay.php?f=13)
-   -   [Tutorial] rTorrent mit WebUI unter Debian (http://www.netvision-technik.de/forum/showthread.php?t=6281)

Zero111 16.10.2011 01:00

wenn du lust und zeit hast können wir uns morgen mal zusammensetzen und mal drüber schauen..

Fluegelstuermer 16.10.2011 01:08

Wäre super....ich bin am Ende und brauche dringend schlaf... Mit https kann es nix zu tuen haben, oder?

Zero111 16.10.2011 01:45

eigentlich nicht

Fluegelstuermer 16.10.2011 08:55

Guten Morgen...so mehr als 10 Stunden mit de Problem befasst, weiter gehts :( Hier vielleicht ein Fehler zu entdecken? $scgi_port = 5005; $scgi_host = "127.0.0.1"; Path: /var/www/rutorrent/conf/users/xxxxxxxxx.config.php

Code:

# Maximum and minimum number of peers to connect to per torrent.
min_peers = 5
max_peers = 20

# Same as above but for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 5
max_peers_seed = 20

# Maximum number of simultanious uploads per torrent.
max_uploads = 5

# Global upload and download rate in KiB. "0" for unlimited.
upload_rate = 50000
download_rate = 50000

# Default directory to save the downloaded torrents.
directory = /var/www/rutorrent/share/users/MEINNAME/torrents

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /root/_PATH_LIBS/rtorrent-0.8.6/users/MEINNAME/session

# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=/var/www/rutorrent/share/users/MEINNAME/torrents/*.torrent
schedule = untied_directory,5,5,close_untied=/var/www/rutorrent/share/users/MEINNAME/torrents/*.torrent
schedule = tied_directory,5,5,start_tied=/var/www/rutorrent/share/users/MEINNAME/torrents/*.torrent
#on_finished = move_complete,"execute=mv,-u,$d.get_base_path=/var/www/rutorrent/share/users/MEINNAME/torrents/ ;d.set_directory=/var/www/rutorrent/share/users/MEINNAME/torrents/"
on_start    = link1,"create_link=tied,,.started"
on_stop    = link1,"delete_link=tied,,.started"
on_finished = link1,"create_link=tied,,.finished"
on_erase    = link1,"delete_link=tied,,.finished"

# SCGI
scgi_port = localhost:5005
umask = 000

# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=100M

# Stop torrents when reaching upload ratio in percent,
# when also reaching total upload in bytes, or when
# reaching final upload ratio in percent.
# example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
#schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"
schedule = ratio,30,30,"stop_on_ratio=500"

# The ip address reported to the tracker.
ip = (habe ich meine Server IP eingefügt)
   
# The ip address the listening socket and outgoing connections is
# bound to.
bind = XXX.XXX.XXX.XXX

# Port range to use for listening.
port_range = 50001-50001

# Start opening ports at a random position within the port range.
port_random = no

# 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 = no

# Alternative calls to bind and ip that should handle dynamic ip's.
#schedule = ip_tick,0,1800,ip=XXX.XXX.XXX.XXX
#schedule = bind_tick,0,1800,bind=XXX.XXX.XXX.XXX

# 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 = allow_incoming,enable_retry,prefer_plaintext
encryption = allow_incoming,try_outgoing,enable_retry


# 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 = 49300

# Enable peer exchange (for torrents not marked private)
peer_exchange = yes

#
# 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

#http_capath=/etc/ssl/certs

_PATH_LIBS ist wirklich ein Verzeichnnis bei mir...nicht wundern...
Ist da ein fehler zu sehen?

Zero111 16.10.2011 11:25

Das erste was mir auffällt ist

bind = XXX.XXX.XXX.XXX

da muss deine serverip stehen

Fluegelstuermer 16.10.2011 11:53

Kann mir jemand sagen, wie ich alles deinstallieren kann?
Welche Ordner gelöscht werden müssten damit ich alles nochmal von neu machen kann?



Zero111 16.10.2011 17:40

Ich möchte noch was annmerken

Der Link zu c-ares ist ein deadlink..
Im schritt 8 fehlt das ./configure vor dem make
der wget link zu rutorrent und _getdir sind ungültig (das sind html files auf die wget zugreift)
umbennen des rutorrent verzeichnis nach den entpacken ist nicht nötig da das verzeichnis bereits den namen rutorrent trägt

Darüberhinaus ist mir aufgefallen dass es probleme gibt wenn _USER großbuchstaben enthält. also kleinbuchstaben nehmen

Und wie ich oben bereits erwähnte sollten die Links zu rutorrent alle auf die neue V3.3 angepasst werden

Anleitung kann man sonst 1:1 auf Ubuntu 10.4 x86/x64 (mit installierter lib32) anwenden

Fluegelstuermer 17.10.2011 15:58

Habe folgendes Problem mit Schritt 15. /ect/init.d/rtorrent

Code:

[/# the full path to the filename where you store your rtorrent configuration
config="/home/${user}/_PATH_LIBS/rtorrent-0.8.6/_PATH_RT/users/${user}/rtorrent.rc"

Soll der link jetzt zur config.php führen, oder zur rtorrent.rc?
zwischen "home" und "_PATH_LIBS" ist dieser User befehl...muss der weg?
und was ist mit dem "userstring"?
Also nach meinem home=root verzeichnis kommt keine Userabfrage...wie soll ich den Link jetzt editieren?

bl0bb 17.10.2011 20:25

In der angehängten rtorrent Datei steht das:
config="_PATH_RT/users/${user}/rtorrent.rc"

Da muss nur _PATH_RT ersetzt werden, also der Pfad zum rTorrent Verzeichnis, wo die Verzeichnisse der einzelnen User und deren rtorrent.rc Dateien liegen.
Wo das bei dir ist, und wie du auf dieses Konstrukt in deinem Beitrag kommst, vermag ich nicht zu sagen. Und ${user} ist eine Variable, da im Aufruf neben der Aktion auch der Username enthalten sein muss. Das sollte also nicht entfernt werden... Zudem steht das alles im Schritt 15a - einfach mal genau lesen.


@Zero111
Zitat:

Der Link zu c-ares ist ein deadlink.. & der wget link zu rutorrent und _getdir sind ungültig
Links ändern sich mit der Zeit. Ich denke jeder sollte es alleine schaffen, veraltete Links gegen neue zu ersetzen ;)

Zitat:

Im schritt 8 fehlt das ./configure vor dem make
Fehlt... da unnötig.

Zitat:

umbennen des rutorrent verzeichnis nach den entpacken ist nicht nötig da das verzeichnis bereits den namen rutorrent trägt
Mag sein, habe ich nie wirklich drauf geachtet, da ich mir eher selten die Ordnerstruktur anschaue.

Zitat:

Darüberhinaus ist mir aufgefallen dass es probleme gibt wenn _USER großbuchstaben enthält
Stimmt. Ist mir bis jetzt noch nie aufgefallen, da ich nie Großbuchstaben im Namen nutze. Scheint wohl ein Bug im ruTorrent zu sein.

Fluegelstuermer 18.10.2011 12:16

Ok.Danke. Bekomme beim Start der rtorrent (/etc/init.d/rtorrent) folgende fehlermeldung:
Could not read resource file: ~/.rtorrent.rc

So sieht meine rtorrent.rc (/root/_PATH_LIBS/rtorrent-0.8.6/users/obrauer) aus
Code:

# Maximum and minimum number of peers to connect to per torrent.
min_peers = 5
max_peers = 20

# Same as above but for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 5
max_peers_seed = 20

# Maximum number of simultanious uploads per torrent.
max_uploads = 5

# Global upload and download rate in KiB. "0" for unlimited.
upload_rate = 50000
download_rate = 50000

# Default directory to save the downloaded torrents.
directory = /var/www/rutorrent/share/users/obrau/torrents

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /root/_PATH_LIBS/rtorrent-0.8.6/users/obrau/session

# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=/var/www/rutorrent/share/users//obrau/torrents/*.torrent
schedule = untied_directory,5,5,close_untied=/var/www/rutorrent/share/users/obrau/torrents/*.torrent
schedule = tied_directory,5,5,start_tied=/var/www/rutorrent/share/users/obrau/torrents/*.torrent
#on_finished = move_complete,"execute=mv,-u,$d.get_base_path=/var/www/rutorrent/share/users/obrau/torrents/ ;d.set_directory=/var/www/rutorrent/share/users/obrau/torrents/"
on_start    = link1,"create_link=tied,,.started"
on_stop    = link1,"delete_link=tied,,.started"
on_finished = link1,"create_link=tied,,.finished"
on_erase    = link1,"delete_link=tied,,.finished"

# SCGI
scgi_port = xxx.xxx.xxx.xxx:5005
umask = 000

# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=100M

# Stop torrents when reaching upload ratio in percent,
# when also reaching total upload in bytes, or when
# reaching final upload ratio in percent.
# example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
#schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"
schedule = ratio,30,30,"stop_on_ratio=500"

# The ip address reported to the tracker.
ip = xxx.xxx.xxx.xxx
   
# The ip address the listening socket and outgoing connections is
# bound to.
bind = xxx.xxx.xxx.xxx.

# Port range to use for listening.
port_range = 50001-50001

# Start opening ports at a random position within the port range.
port_random = no

# 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 = no

# Alternative calls to bind and ip that should handle dynamic ip's.
#schedule = ip_tick,0,1800,ip=XXX.XXX.XXX.XXX
#schedule = bind_tick,0,1800,bind=XXX.XXX.XXX.XXX

# 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 = allow_incoming,enable_retry,prefer_plaintext
encryption = allow_incoming,try_outgoing,enable_retry


# 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 = 49300

# Enable peer exchange (for torrents not marked private)
peer_exchange = yes

#
# 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

#http_capath=/etc/ssl/certs

_PATH_LIBS= dieses Verzeichnis habe ich wirklich erstellt!!!!!
xxx.xxx.xxx.xxx=habe ich durch meine server IP ersetzt.

Kann da jemand einen Fehler finden? Warum kann er die rtorrent.rc nicht starten?
Hier ein Screenpic:
Free Storage for your Image Files | Upload Your Image Files | Free Tool for Image files
http://www.pichost.co.za/v/d6L5c


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:58 Uhr.

Powered by vBulletin® Version 3.8.9 (Deutsch)
Copyright ©2000 - 2024, vBulletin Solutions, Inc.