View previous topic :: View next topic |
Author |
Message |
semiRocket Member
Joined: 28 Jul 2009 Posts: 26
|
Posted: Tue Sep 01, 2009 2:52 pm Post subject: rtorrent / wtorrent |
|
|
Hi,
Searching the web for a better torrent client / webui [1], I found out that everyone recommends this combination, so I was thinking, maybe you can add as optional download add-on, if not in the main install.
Or maybe Deluge or any other Console UI / Web UI client with some 'Eye Candy' UI alternative to TFlux. rtorrent is maybe better, because it's low resource usage, and popularity.
[1] http://filesharefreak.com/2009/07/13/utorrent-torrentflux-wtorrent-a-comparison-of-seedbox-uis/ |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Tue Sep 01, 2009 6:08 pm Post subject: |
|
|
I've heard before about rtorrent didn't excited me much in the past, I'll check what's new, of course with the web gui, I hope wtorrent doesn't have java dependencieson the server.
Thanks for the input.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
semiRocket Member
Joined: 28 Jul 2009 Posts: 26
|
Posted: Tue Sep 01, 2009 9:05 pm Post subject: |
|
|
Ok, thanks
EDIT: Since you're on to, check out the rutorrent Web UI too.
Last edited by semiRocket on Tue Sep 01, 2009 9:19 pm; edited 1 time in total |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Tue Sep 01, 2009 9:17 pm Post subject: |
|
|
Starts to annoy me already I had to install new packages that means adding
libsigc++
libtorrent
xmlrpc-c
rtorrent
scgi
mod_scgi
wtorrent
packages to sms
It has nice web GUI though I'll test it though, it might be on /extra/packages/rtorrent
The only issue with torrentflux it's that doesn't support DHT other than that it's quite fast.
But since almost anyone it's downloading from private trackers that do not support DHT I don't think it's a problem.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
semiRocket Member
Joined: 28 Jul 2009 Posts: 26
|
Posted: Tue Sep 01, 2009 9:32 pm Post subject: |
|
|
Well I wouldn't say that BitTornado/TFlux have issues, but more some limitations that I personally don't like. For example once the torrent is started it can't be controlled anymore untill is stopped. If it's stopped seed ratio is not remembered once restarted. Starting a new process for every new torrent and finally disability to control global speeds. Which I think is important for home server.
Quote: | I'll test it though, it might be on /extra/packages/rtorrent |
Ok, that would be great
Thank you |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sat Sep 05, 2009 6:50 pm Post subject: |
|
|
Well after testing rtorrent, I decided to add it on extra/rtorrent+wtorrent.
It's a good alternative I guess. What's included...
Code: | libsigc++-2.2.4.1-i486-1sms.txz
libtorrent-0.12.4-i486-1sms.txz
lighttpd-1.4.23-i486-1sms.txz
rtorrent-0.8.4-i486-1sms.txz
xmlrpc_c-1.06.35-i486-1sms.txz |
For versions prior to SMS-1.4.6 you will need screen package. from slackware/ap available in SMS-Current tree.
The server runs from lighttpd in port 81 so you can access the wtorrent from http://sms:81/.
The only change in your system is the alter of php.ni to uncomment
"cgi.fix_pathinfo=1" (done automatically from install script)
The lighttpd package contains wtorrent r99 and a startup script /etc/rc.d/rc.lighttpd but it's for changes only since /etc/rc.d/rc.rtorrent starts and stops lighttpd as well, so if you want to start at boot place an entry "/etc/rc.d/rc.rtorrent start" in your rc.local.
rtorrent runs as user administrator, with /home/administrator/.rtorrent.rc and handles /home/administrator/.wtorrent_users file
user: admin
pass: admin
Default download directory /var/smb/samba
but you can change those the first time you access http://sms:81/install.php.
When you are done remember to delete install.php and uncomment
Code: | url.access-deny = ("~", ".inc", ".db", ".tpl.php", ".cls.php",) |
in /etc/lighttpd/lighttpd.conf if it's not already.
xmlrpc_c package contains PHP-XMLRPC also.
happy leeching
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
semiRocket Member
Joined: 28 Jul 2009 Posts: 26
|
Posted: Sun Sep 06, 2009 2:04 am Post subject: |
|
|
Thank you,
I have installed the packages from 'extra/rtorrent+wtorrent' and 'slackware/ap/screen-4.0.3-i486-1.txz'
Can't get rtorrent up, though. By script or manually.
Issuing the folowing command gets:
Code: | shell$> rtorrent
rtorrent: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.10' not found (required by /usr/lib/libtorrent.so.11) |
I have no idea what that means.
I'm running SMS 1.4.4. |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sun Sep 06, 2009 8:42 am Post subject: |
|
|
Upgrade to cxxlibs-6.0.10-i486-1.txz from SMS-1.4.5 or SMS-Current tree here
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
semiRocket Member
Joined: 28 Jul 2009 Posts: 26
|
Posted: Sun Sep 06, 2009 2:51 pm Post subject: |
|
|
Ok, I can run the rtorrent now by typing rtorrent, but can't still bring it up using rc.rtorrent script.
Issuing: Code: | su administrator
screen -d -m rtorrent |
just runs silently, Looking if rtorrent is running it's not: Code: | shell$> ps aux | grep rtorrent
1005 17692 0.0 0.3 2204 632 pts/0 S+ 15:45 0:00 grep rtorrent
|
If I run rtorrent by command: Code: | su administrator
rtorrent |
I still can't login using browser. If I click on 'Try configuration' in install.php it shows:
Quote: | Error: cannot connect to rtorrent, please check host, folder and port values (and user/password if you have auth set up). |
Looking through configuration files, it seems all fine to me.
Any idea how to debug this? |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sun Sep 06, 2009 4:03 pm Post subject: |
|
|
Use the script to start rtorrent (/etc/rc.d/rc.rtorrent).
"/etc/rc.d/rc.rtorrent start"
On the install.php (through http://sms:81/install.php) check
port 81 (by default it's 80)
authentication true ( by default it's false)
user: admin
pass:admin
download directory /var/smb/samba (by default it's /data)
and try configuration, you shouldn't have any problem.
If it's OK put on the right a username and a password and press 'save configuration'.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
semiRocket Member
Joined: 28 Jul 2009 Posts: 26
|
Posted: Sun Sep 06, 2009 4:18 pm Post subject: |
|
|
Yes, I tried "/etc/rc.d/rc.rtorrent start" as root, and it gives me
Code: | lighttpd is running with pid 16766
Starting rtorrent |
But 'rtorrent' or 'screen' is not running according to "ps aux"
I have tried anyway setting up install.php according to your settings and is the same as before. |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sun Sep 06, 2009 4:23 pm Post subject: |
|
|
edit /etc/rc.d/rc.rtorrent and replace
su administrator -c 'screen -d -m rtorrent' &> /dev/null
with
su administrator -c 'screen -d -m rtorrent' &> /dev/null | tee -a /var/log/lighttpd/rtorrent.log
and issue a
/etc/rc.d/rc.rtorrent restart
and do a
tail /var/log/lighttpd/rtorrent.log
to see if there is an error
If you run 'rtorrent' as root do you get an error?
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
semiRocket Member
Joined: 28 Jul 2009 Posts: 26
|
Posted: Sun Sep 06, 2009 4:33 pm Post subject: |
|
|
Nope, it's empty.
Code: | shell$> /etc/rc.d/rc.rtorrent restart
Stoping lighttpd
rm: cannot remove `/var/run/lighttpd.pid': No such file or directory
Stopping rtorrent
Starting lighttpd
Starting rtorrent
|
|
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sun Sep 06, 2009 4:38 pm Post subject: |
|
|
If you type rtorrent as root do you get any error?
By typing rtorrent as root you should enter the console interface of rtorernteven if .rtorrent.rc is missing.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
semiRocket Member
Joined: 28 Jul 2009 Posts: 26
|
Posted: Sun Sep 06, 2009 4:43 pm Post subject: |
|
|
Yes I can do that by both user 'root' and user 'administrator'
Logs in rtorrent interface:
As root:
(17:40:52) Using 'epoll' based polling.
(17:40:52) Could not read resource file: ~/.rtorrent.rc
As administrator:
(17:41:50) Using 'epoll' based polling.
(17:41:50) XMLRPC initialized with 496 functions.
(17:41:50) The SCGI socket is bound to a specific network device yet may still pose a security risk, consider using 'scgi_local'. |
|
Back to top |
|
|