DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st July 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default rtorrent and rtGUI

I install rtorrent and rtGUI for web interface control
I want download some DVD*s with torrent , but after I start some download my power lose I my system turn off . when I turn ON my system and run rtorrent , I see I have to start Download again and rtorrent do not continue downloading and I have to have fresh download , how I can use rtorrent with resume??

How I enable resume support with rtorrent ???
Reply With Quote
  #2   (View Single Post)  
Old 1st July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,074
Thanked 198 Times in 156 Posts
Default

Did you set the "session" option in rtorrent.rc?
See rtorrent(1).
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 1st July 2008
Darwimy Darwimy is offline
Port Guard
 
Join Date: Jun 2008
Location: Germany
Posts: 36
Thanked 2 Times in 2 Posts
Default

I use rTorrent and rtgui a lot, although it has some drawbacks. The first is that the version of xmlrpc-c used with rTorrent on FreeBSD does not support 64 bit integers. You will recognize this by negative traffic shown in rtgui. You will have to get the latest version of xmlrpc-c from the developer's subversion repository and hack the rtorrent port.

Furthermore for rTorrent and rtgui you may want to start it automatically on system startup. Use the following startup script (place it in /usr/local/etc/rc.d/ and set rtorrent_enable=YES in your rc.conf):

It requires the sysutils/screen port.

Code:
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: rtorrent
# REQUIRE: DAEMON
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
# SET THEM IN THE /etc/rc.conf FILE
#

. /etc/rc.subr

name="rtorrent"
rcvar=`set_rcvar`

load_rc_config $name

: ${rtorrent_enable="NO"}
: ${rtorrent_user="your user"}
: ${rtorrent_config="/usr/home/your user/.rtorrent.rc"}

rtorrent_flags="-n -o import=${rtorrent_config} ${rtorrent_flags}"

command="/usr/local/bin/screen"
flags="-d -m rtorrent ${rtorrent_flags}"
procname="rtorrent"

run_rc_command "$1"
Reply With Quote
  #4   (View Single Post)  
Old 29th September 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by Jmdbh View Post
I use rTorrent and rtgui a lot, although it has some drawbacks. The first is that the version of xmlrpc-c used with rTorrent on FreeBSD does not support 64 bit integers. You will recognize this by negative traffic shown in rtgui. You will have to get the latest version of xmlrpc-c from the developer's subversion repository and hack the rtorrent port.

Furthermore for rTorrent and rtgui you may want to start it automatically on system startup. Use the following startup script (place it in /usr/local/etc/rc.d/ and set rtorrent_enable=YES in your rc.conf):

It requires the sysutils/screen port.

Code:
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: rtorrent
# REQUIRE: DAEMON
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
# SET THEM IN THE /etc/rc.conf FILE
#

. /etc/rc.subr

name="rtorrent"
rcvar=`set_rcvar`

load_rc_config $name

: ${rtorrent_enable="NO"}
: ${rtorrent_user="your user"}
: ${rtorrent_config="/usr/home/your user/.rtorrent.rc"}

rtorrent_flags="-n -o import=${rtorrent_config} ${rtorrent_flags}"

command="/usr/local/bin/screen"
flags="-d -m rtorrent ${rtorrent_flags}"
procname="rtorrent"

run_rc_command "$1"
Thanks
Can you write nice howto for run rtGUI in FreeBSD , I search with google but I can not find good howto
all of them are about Linux
Reply With Quote
  #5   (View Single Post)  
Old 29th September 2008
deemon's Avatar
deemon deemon is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Estonia
Posts: 50
Thanked 6 Times in 5 Posts
Default

Use the linux howto-s and apply common sense.
__________________
Fhtagn nagh Yog-Sothoth
Reply With Quote
  #6   (View Single Post)  
Old 29th September 2008
Darwimy Darwimy is offline
Port Guard
 
Join Date: Jun 2008
Location: Germany
Posts: 36
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by deemon View Post
Use the linux howto-s and apply common sense.
It took me several days to figure out how to do this on FreeBSD.

Especially xmlrpc-c is a pain, as no current version exists. net/xmlrpc-c-devel has been added recently, but is still outdated. Current versions are only available from subversion repository and don't build on FreeBSD out-of-the box.

But the basic steps are:
  1. Install xmlrpc-c-devel first
  2. Install rtorrent-devel with xmlrpc support
  3. Install your favourite www server (I use lighttpd)
  4. Install PHP
  5. Install rtgui (this will install required PHP modules as well)
  6. Deinstall rtgui and download and install the latest version from its homepage manually.
  7. Install screen and the startup script I posted ealier.

Configurations are:

For your .rtorrent.rc:
Code:
scgi_port = 127.0.0.1:5000
Note: It is easier to use a network connection, if you run rtorrent as a different user than the www server, but it is less secure than a unix socket.

Note: To have rtgui show the hard disk space correctly you have to use absolute path in you .rtorrent.rc and the www server must not run chroot or jailed.

For lighttpd.conf:
Code:
#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
fastcgi.server             = ( ".php" =>
                               ((
                                 "socket" => "/tmp/php-fastcgi.socket",
                                 "bin-path" => "/usr/local/bin/php-cgi"
                               ))
                            )

#### SCGI module
## used for rtorrent
scgi.server = (
                "/RPC2" =>
                  ( "127.0.0.1" =>
                    (
                      "host" => "127.0.0.1",
                      "port" => 5000,
                      "check-local" => "disable",
                      "disable-time" => 0
                    )
                  )
              )
And finally for rtgui's config.php:
Code:
// Connect string for your local RPC/rTorrent connection:
$rpc_connect="http://localhost/RPC2";
Maybe I should post this in How-To section?
Reply With Quote
  #7   (View Single Post)  
Old 30th September 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by Jmdbh View Post
It took me several days to figure out how to do this on FreeBSD.

Especially xmlrpc-c is a pain, as no current version exists. net/xmlrpc-c-devel has been added recently, but is still outdated. Current versions are only available from subversion repository and don't build on FreeBSD out-of-the box.

But the basic steps are:
  1. Install xmlrpc-c-devel first
  2. Install rtorrent-devel with xmlrpc support
  3. Install your favourite www server (I use lighttpd)
  4. Install PHP
  5. Install rtgui (this will install required PHP modules as well)
  6. Deinstall rtgui and download and install the latest version from its homepage manually.
  7. Install screen and the startup script I posted ealier.

Configurations are:

For your .rtorrent.rc:
Code:
scgi_port = 127.0.0.1:5000
Note: It is easier to use a network connection, if you run rtorrent as a different user than the www server, but it is less secure than a unix socket.

Note: To have rtgui show the hard disk space correctly you have to use absolute path in you .rtorrent.rc and the www server must not run chroot or jailed.

For lighttpd.conf:
Code:
#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
fastcgi.server             = ( ".php" =>
                               ((
                                 "socket" => "/tmp/php-fastcgi.socket",
                                 "bin-path" => "/usr/local/bin/php-cgi"
                               ))
                            )

#### SCGI module
## used for rtorrent
scgi.server = (
                "/RPC2" =>
                  ( "127.0.0.1" =>
                    (
                      "host" => "127.0.0.1",
                      "port" => 5000,
                      "check-local" => "disable",
                      "disable-time" => 0
                    )
                  )
              )
And finally for rtgui's config.php:
Code:
// Connect string for your local RPC/rTorrent connection:
$rpc_connect="http://localhost/RPC2";
Maybe I should post this in How-To section?
Thanks
but I use apache and want connect to my system from another place for example when I am in university I can use it and when I am in office I can use it again
Reply With Quote
  #8   (View Single Post)  
Old 1st October 2008
Darwimy Darwimy is offline
Port Guard
 
Join Date: Jun 2008
Location: Germany
Posts: 36
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by mfaridi View Post
Thanks
but I use apache and want connect to my system from another place for example when I am in university I can use it and when I am in office I can use it again
Apache with PHP should be fairly easy to set up. For SCGI the http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide has a few hints.

If you want to access it from "the internet" make sure to require authentication by Apache. Rtgui does not do this!

On my server rtgui is not accessible from "the internet" because my server is behind some firewall. Instead I connect to the server using ssh and then set up a tunnel. Rtgui works fine this way.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web interface for rTorrent Beastie FreeBSD Ports and Packages 0 24th August 2009 11:53 AM
Can start rtorrent like apache and mysql when system boot mfaridi FreeBSD Ports and Packages 0 26th November 2008 09:27 AM
rtorrent: Could not lock session directory: "/Torrents/Downloading/rtorrent.session/ mfaridi FreeBSD Ports and Packages 2 26th November 2008 06:47 AM
RtGUI load very slow mfaridi FreeBSD Ports and Packages 0 25th November 2008 01:47 PM


All times are GMT. The time now is 11:15 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick