I have one machine with Debian that runs rtorrent + rutorrent for a long time.
But I want to put Slackware on that machine also.
I'm testing rutorrent on Slackware on two other machines. The first one was only for curiosity/learning and the other is the real test.
In the process I wrote my steps.
I don't know if this is right or if is stable. I'm testing it.
But this my small how-to
Quote:
1. XML-RPC installation
$ sbopkg -i xmlrpc-c
And
$ command -v xmlrpc-c-config
The result it will be something like
/usr/bin/xmlrpc-c-config
2. Edit rtorrent.SlackBuild
Add the previous result to the .Slackbuild file like this
...
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--build=$ARCH-slackware-linux \
--with-xmlrpc-c=/usr/bin/xmlrpc-c-config
make
...
Run it! And install it.
3. Edit .rtorrent.rc
# To use rtorrent with some web GUI's such as rutorrent or wtorrent
#
scgi_port = 127.0.0.1:5000
4. Edit /etc/httpd/httpd.conf and add at the end
ProxyPass /RPC2 scgi://127.0.0.1:5000
And make a few changes to support php and vhosts.
5. Edit /etc/httpd/extra/httpd-vhosts.conf
# main server
<VirtualHost *:80>
ServerName server
DocumentRoot /srv/httpd/htdocs
</VirtualHost>
<VirtualHost *:80>
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot "/var/www/htdocs/rutorrent"
<Directory "/var/www/htdocs/rutorrent">
AllowOverride AuthConfig
Require all granted
</Directory>
</VirtualHost>
6. Install rutorrent
Unzip zip file to /var/www/htdocs/rutorrent/
Create /var/www/htdocs/rutorrent/.htaccess
AuthType Basic
AuthGroupFile /dev/null
AuthName "Restricted Access"
AuthUserFile /home/user/html/rutorrent/.htpasswd
Require user your_user
Run htpasswd -c /home/user/html/rutorrent/.htpasswd your_user
chown -R apache:apache /var/www/htdocs/rutorrent/
|
This is a try and error method.
And I'm testing it.