Ubuntu Seedbox with rtorrent | rutorrent | pureftpd | multi-user (optional)

saroos1

Member
May 25, 2018
718
0
16
simply edit the apache webroot or create a vhost

theres TONS of info available online about setting up apache
 

randac56

Member
May 25, 2018
915
0
16
Many thanks wonslung, I have done it with .htaccess & .htpasswd. and change:

</Directory>
<Directory /var/www/rutorrent/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None

TO

</Directory>
<Directory /var/www/rutorrent/>
Options Indexes FollowSymLinks MultiViews
AllowOverride AuthConfig


Thanks again.
 

simur612

Member
May 25, 2018
879
0
16
Well start a new thread. No-one's going to be looking for ipad problems in a thread about installing rutorrent.
 

lisas4567

Member
May 25, 2018
773
0
16
Hi and thanks for a simple and indeed VERY good guide.
I have one problem though. during the inital login at rutorrent the https "bar" is there, but after a completed login it disappers and says:

your connection to this site is only partially encrypted

Any ideas?

Problem solved:

It seems that the plugin tracklabels is the "bad guy" after deleting the plugin the site is now fully encrypted. Just a shame i cant se the "tracker list"
 

saroos1

Member
May 25, 2018
718
0
16
It load favicons from tracker sites directly. By http. As result - you have "partially encrypted connection". Add favicons for your trackers to tracklabels\trackers. Or ignore this message.
 

simur612

Member
May 25, 2018
879
0
16
I have now added those that weren't already present in the tracklabels\trackers folder, but still get the message "partially encrypted connection" when loading the plugin?
 

randac56

Member
May 25, 2018
915
0
16
I have now added those that weren't already present in the tracklabels\trackers folder, but still get the message "partially encrypted connection" when loading the plugin?
Try to update from SVN. If problem still present - put here info about your client OS and browser.
 

saroos1

Member
May 25, 2018
718
0
16
Hi. I got set up ok, and it worked for one torrent download, and ever since it has been stuck with the following error when I try to run rtorrent:

Code:
rtorrent: Error in option file: ~/.rtorrent.rc:74: Could not prepare socket for listening: Address already in use
My config file is the same as the example one (obviously with correct username inserted)

rutorrent seems to be working, albeit when you add a torrent it just vanishes.

Thanks in advance for any clues...
 

simur612

Member
May 25, 2018
879
0
16
that error tells you exactly what the problem is.

The socket is already in use.

This means you either have rtorrent running still OR you have a crashed rtorrent but haven't cleared the socket.

Do you use a unix socket? if so, make sure rtorrent isn't running, then delete the socket file.
 

peshua19

Member
May 25, 2018
897
0
16
For those who can't get dependencies to work:

Code:
sudo apt-get install apache2 apache2.2-common apache2-utils autoconf automake autotools-dev binutils build-essential bzip2 ca-certificates comerr-dev cpp dpkg-dev file g++ gawk gcc libapache2-mod-php5 libapache2-mod-scgi libapr1 libaprutil1 libc6-dev libcppunit-dev libcurl3 libcurl4-openssl-dev libexpat1 libidn11 libidn11-dev libkdb5-4 libgssrpc4 libkrb5-dev libmagic1 libncurses5 libncurses5-dev libpcre3 libpq5 libsigc++-2.0-dev libsqlite0 libsqlite3-0 libssl-dev libsvn1 libtool libxml2 linux-libc-dev lynx m4 make mime-support ntp ntpdate openssl patch perl perl-modules php5 php5-cgi php5-cli php5-common php5-curl php5-dev php5-geoip php5-sqlite php5-xmlrpc pkg-config python-scgi screen sqlite ssl-cert subversion ucf unrar zlib1g-dev pkg-config unzip htop screen irssi libwww-perl curl cpp-4.5 g++-4.5 libneon27 libstdc++6-4.5-dev libsp1-dev

also some suggested packages:
apache2-doc apache2-suexec apache2-suexec-custom autoconf2.13
autoconf-archive gnu-standards autoconf-doc irssi-scripts php-pear
libqttestrunner1c2a libcppunit-doc lynx-cur-wrapper ntp-doc php5-suhosin
sqlite-doc
 

lisas4567

Member
May 25, 2018
773
0
16
I know this is old but I am getting the exact same error.
I am not sure what is wrong but the script won't work, I tried corntab and that didn't work (maybe my settings were wrong)
I am not ubuntu 11.04 and I can't get this script to work, I know last time I installed I had the same issue but I was able fix it by going a post but now I can't seem to find it :/
 

saroos1

Member
May 25, 2018
718
0
16
Thank you LWERk for your post on repositories a few days ago. That solved one of my questions!!


Another kinda important one. Will this work on Ubuntu 11.04 server?

thanks all for the hard work! Tutorial is going well.
 

simur612

Member
May 25, 2018
879
0
16
Hi!

First of all, thank you for this guide. It has helped me out very well. I do have one nasty little problem that remains:

My rutorrent web gui is not password protected. I have followed this guide to the letter, and have reinstalled everything twice. But to no avail, the rutorrent web gui pops up in my (and other laptops) browser without asking for a login/password. The strange this is, when I connect to it without SSL (so: http://MY IP/rutorrent/ it asks for a login/password) but when I connect through SSL (http://httpS://MY IP/rutorrent/) it first gives a warning about an SSL certificate and when I press allow it goes straight to rutorrent. This is obviously something that I do not want.

This is my file (I edited out the IP obviously).
<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
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

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

<Location /rutorrent>
AuthType Digest
AuthName "gods"
AuthDigestDomain /var/www/rutorrent/ http://MY IP/rutorrent

AuthDigestProvider file
AuthUserFile /etc/apache2/passwords
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 None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
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

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
<Location /rutorrent>
AuthType Digest
AuthName "gods"
AuthDigestDomain /var/www/rutorrent/ http://MY IP/rutorrent

AuthDigestProvider file
AuthUserFile /etc/apache2/passwords
Require valid-user
SetEnv R_ENV "/var/www/rutorrent"
</Location>
</VirtualHost>​
As you can see, it's exactly the same as in the guide, I've changed nothing besides my IP. I find it weird that it does ask for a login/password when connecting without SSL, but with SSL it asks nothing. Anyone have any idea what could be the issue? Am I forgetting something? Is there another way to password protect http://httpS://MY IP/rutorrent so that not everyone can access it?


Thank you for your help!
 

randac56

Member
May 25, 2018
915
0
16
Excellent tutorial. Thanks a lot.
I'm not a linux pro but Ι installed successfully my user's r/rutorrent/pureftpd.

I ask only for some clarifications

1.rtorrent config:
sudo mkdir /home/downloads​
with that path are data stored at file system? I had an error previously with file system (device no more space).
I mean, am I ok with this or I should use "sudo mkdir /home/username/downloads" ?

2.Multi-user setup, rutorrent config
Code:
sudo chown -R www-data:www-data user
sudo chmod -R 777 user
Is that mean that I need to run it twice?
eg. sudo chown -R www-data:www-data username
sudo chmod -R 777 username
chown -R www-data:www-data second_username
sudo chown -R 777 second_username.

Thanks for any help
 

peshua19

Member
May 25, 2018
897
0
16
I done the first steps about locking down root now i can not get back on the server via putty or wincp change port and added new user