|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
|
Thread Tools | Display Modes |
|
||||
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. |
|
|||
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" |
|
||||
Quote:
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 |
|
|||
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:
Configurations are: For your .rtorrent.rc: Code:
scgi_port = 127.0.0.1:5000 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 ) ) ) Code:
// Connect string for your local RPC/rTorrent connection: $rpc_connect="http://localhost/RPC2"; |
|
||||
Quote:
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 |
|
|||
Quote:
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. |
Thread Tools | |
Display Modes | |
|
|
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 |