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

peshua19

Member
May 25, 2018
897
0
16
chown means "change owner" -R means affect all files recursively, username:username is for "user:group" permissions and the last "username" is a directory

so it might be easier to understand like this:


chown -R user:group directory/
 

saroos1

Member
May 25, 2018
718
0
16
This maybe a bit late since this tutorial came out but i am having some difficulties with this part. When adding new users for the config files to be copied over to the new user i created it comes up with file or directory does not exist but i copied the code below into putty every time i try different alternatives it throws back the same response.

Code:
sudo cp ~/.rtorrent.rc /home/<second_username>
sudo chown <second_username>:<second_username> /home/<second_username>
Please advice on where i am going wrong please asap as i need to get this box up and ready in a few days. A swift response would be very gratefully appreciated.

Thanks

Dj
 

randac56

Member
May 25, 2018
915
0
16
Yes this file exist for both users i have that is the one above root newuser1 and the newuser2 the one created after initial install i created and edited the file mentioned for both users so far still command does not work error file or directory does not exist maybe i missed something

Thanks

Dj
 

lisas4567

Member
May 25, 2018
773
0
16
Both commands are returning the error bud this is where it stops i cant add user config for 2nd users to rutorrent. Or the primary user


Dj
 

saroos1

Member
May 25, 2018
718
0
16
then you're doing something wrong.


explain EXACTLY what you're trying to do.

give me the exact commands you are using in code blocks and tell me exactly what you need done, and i will correct your mistakes
 

simur612

Member
May 25, 2018
879
0
16
http://imgur.com/9HBKc.png

I seem to be getting this after setting everything up. Any torrents I add do seem to be added to rTorrent and will appear in my /home/downloads/<foouser> directory they just don't in ruTorrent (which is where they're being added through).

Apache's error log shows
Quote
[Sun Jul 18 18:49:37 2010] [error] [client 192.168.1.175] (EAI 5)No address associated with hostname: scgi: apr_sockaddr_info_get() error, referer: https://ganymede.local/rutorrent/
[Sun Jul 18 18:50:19 2010] [error] [client 192.168.1.175] (EAI 5)No address associated with hostname: scgi: apr_sockaddr_info_get() error, referer: https://192.168.1.180/rutorrent/

I tried the hostname and IP of the computer I'm testing on and both seem to get the same error

I had trouble setting everything up except when I had to add a line to ld.so.conf and run ldconfig to resolve some other error about a library.

Any ideas?


edit: Well, I tried it anyhow on my nettop and this time it worked without any errors.
 

randac56

Member
May 25, 2018
915
0
16
thanks for the great tutorial


i have inherited a dedi from my cousin which went overseas and it is currently setup with an older version of rtorrent. Might wanna try to format the whole server and try to install using the guide

1 question though, how do i configure pureftpd to a normal ftp and NOT sftp or ftps?
the reason for this being bad experience dl speed over encrypted ftp using filezilla which is my current setup. When i was using a seedbox i used to max out my home line dl by using fdm to dl off ftp so i prefer that setup.

thanks in advance for the help
 

saroos1

Member
May 25, 2018
718
0
16
Thank for this great HowTo. Really ... thank.

Here are some suggestions to add to this guide
  • Install vnstat + vnstat PHP. (Traffic statistic)
  • Install munin. (server statistic)
  • Install fail2ban to monitor sshd and pure-ftpd. (Security)
  • Force HTTPS for all web services. (Security)
  • Use Linux quota on /home. (HowTo)
    Torrent just go in pause mode when quota is reaches.
  • Assign one IP by services on your box. Server, ftpd and p2p. (Admin mind =

    For p2p, see "ip=" and "bind=" variables in .rtorrent.rc.
  • Run ruTorrent plugins when rTorrent start (HowTo)
I search a way to limit / control upload bandwidth in p2p mode only.
This should be done in multi-user environment, for all.
I find tc command, tcss and tcng ...
 

simur612

Member
May 25, 2018
879
0
16
Thank for this great HowTo. Really ... thank.

Here are some suggestions to add to this guide
  • Install vnstat + vnstat PHP. (Traffic statistic)
  • Install munin. (server statistic)
  • Install fail2ban to monitor sshd and pure-ftpd. (Security)
  • Force HTTPS for all web services. (Security)
  • Use Linux quota on /home. (HowTo)
    Torrent just go in pause mode when quota is reaches.
  • Assign one IP by services on your box. Server, ftpd and p2p. (Admin mind =

    For p2p, see "ip=" and "bind=" variables in .rtorrent.rc.
  • Run ruTorrent plugins when rTorrent start (HowTo)
I search a way to limit / control upload bandwidth in p2p mode only.
This should be done in multi-user environment, for all.
I find tc command, tcss and tcng ...
Last i checked using quota with rtorrent caused serious issues.
(rtorrent locks up and shoots to 100% cpu)


to control bandwidth you might look at using FreeBSD instead, and then use pf/altq
 

randac56

Member
May 25, 2018
915
0
16
I tested quota under Debian Lenny.
I will give another try.

Maybe if preload_type is used this cause a crash.
Mine was set to 0.
 

peshua19

Member
May 25, 2018
897
0
16
I tested quota under Debian Lenny.
I will give another try.

Maybe if preload_type is used this cause a crash.
Mine was set to 0.
it doesn't crash, it simply locks up and shoots to 100% cpu.

There is a quota plugin which solves this problem but it costs money.
 

saroos1

Member
May 25, 2018
718
0
16
thank you very much for this really usefull guide really well put together helpped me loads now i can ditch torrent flux
 

simur612

Member
May 25, 2018
879
0
16
when i change the directory name from rutorrent to any other name i get these errors in rutorrent

17.09.2010 10:03:33] WebUI started.
[17.09.2010 10:03:33] Bad response from server: (500 [error,getplugins])
[17.09.2010 10:03:33] Bad response from server: (500 [error,getuisettings])

any ideas

thanks in advance
 

lisas4567

Member
May 25, 2018
773
0
16
i am getting error in starting
Code:
****@****:~$ sudo apt-get install apache2 apache2.2-common apache2-utils autoconf automake autotools-dev binutils build-essential bzip2 ca-certificates comerr-dev cpp cpp-4.1 dpkg-dev file g++ g++-4.1 gawk gcc gcc-4.1 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 libneon26 libpcre3 libpq5 libsigc++-2.0-dev libsqlite0 libsqlite3-0 libssl-dev libssp0-dev libstdc++6-4.1-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
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
apache2.2-common is already the newest version.
apache2-utils is already the newest version.
binutils is already the newest version.
bzip2 is already the newest version.
ca-certificates is already the newest version.
cpp is already the newest version.
file is already the newest version.
gawk is already the newest version.
libapr1 is already the newest version.
libaprutil1 is already the newest version.
libexpat1 is already the newest version.
libidn11 is already the newest version.
libmagic1 is already the newest version.
libncurses5 is already the newest version.
libpcre3 is already the newest version.
libsqlite3-0 is already the newest version.
Note, selecting gcc-4.1 instead of libssp0-dev
libxml2 is already the newest version.
lynx is already the newest version.
m4 is already the newest version.
make is already the newest version.
mime-support is already the newest version.
openssl is already the newest version.
perl is already the newest version.
perl-modules is already the newest version.
screen is already the newest version.
ssl-cert is already the newest version.
ucf is already the newest version.
Package unrar is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package unrar has no installation candidate
****@****:~$

please tell me how can i fix this error