I just wanted to say a MASSIVE THANK you for this script and your help with making the windows file readable in unix.
I must have followed 5 or 6 guides and got rtorrent working on all but rutorrent would never connect.
Now i have everything running perfectly using a kimsufi server with ubuntu 12.04 x64.
Thanks again for this.
EDIT
Can you show me how I can have a password on my rutorrent access and using https please?
I tried following some of the steps here -
http://forums.rutorrent.org/?topic=256.0 under configure apache but when i go to restart the apache2 service i get:
Code: [Select]
user:~$ sudo /etc/init.d/apache2 restart
Syntax error on line 27 of /etc/apache2/sites-enabled/000-default:
Invalid command 'AuthDigestDomain', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
OK got it all workin now!
For anyone else who is new to unix(!!) i followed a few guides.
Start off here -
http://forums.rutorrent.org/?topic=256.0
Do everything up to Install necessary basic packages (don't do this bit). This will mean that you have created a new user and disabled root access.
Now follow kabeleon's guide here (remember if you have copied the script from windows then you need to run the dos2unix script:
Code: [Select]
sudo aptitude install dos2unix
dos2unix redtorrent.sh
Now run kabeleon's script
Code: [Select]
sudo sh redtorrent.sh <rtorrent-user>
This will take quite some time. When done you should configure the rtorrent.rc file.
Code: [Select]
sudo nano .rtorrent.rc
I only use one user for rutorrent so I have left most things unchanged except:
Quote
upload_rate = 0
download_rate = 0
Control + o to save and Control + x to quit
Now you need to create a username and password for rutorrent or anyone can log onto it. I have managed to do mine by using various guides but a lot of this is taken from subvertbeats guide.
Code: [Select]
sudo openssl req -new -x509 -days 365 -nodes -newkey rsa:2048 -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
chmod 600 /etc/apache2/apache.pem
Code: [Select]
sudo htdigest -c /etc/apache2/htpasswd rutorrent <username>
Code: [Select]
sudo nano /etc/apache2/sites-available/default
Now copy the following and paste to replace the contents of the file we're editing.
Then replace both instances of <servername or IP> with your real servername or IP address
Quote
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
<Location /rutorrent>
AuthType Digest
AuthName "rutorrent"
AuthDigestDomain /var/www/rutorrent/ http://<servername or IP>/rutorrent
AuthDigestProvider file
AuthUserFile /etc/apache2/htpasswd
Require valid-user
SetEnv R_ENV "/var/www/rutorrent"
</Location>
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
SSLEngine on
SSLCertificateFile /etc/apache2/apache.pem
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
<Location /rutorrent>
AuthType Digest
AuthName "rutorrent"
AuthDigestDomain /var/www/rutorrent/ http://<servername or IP>/rutorrent
AuthDigestProvider file
AuthUserFile /etc/apache2/htpasswd
Require valid-user
SetEnv R_ENV "/var/www/rutorrent"
</Location>
</VirtualHost>
Code: [Select]
sudo a2ensite default-ssl
Code: [Select]
sudo nano /etc/apache2/ports.conf
Replace the contents of that file with the text below
Quote
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
NameVirtualHost *:443
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
Code:
sudo a2enmod auth_digest
Code:
sudo a2enmod ssl
Code:
sudo /etc/init.d/apache2 restart
That's it!! The very last thing to do is to run rtorrent in screen mode so that it continues to run when you quit your ssh session.
Code:
screen -d -m -S rtorrent rtorrent
I hope this helps people!
Credits go to subvertbeats and kabeleon