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

randac56

Member
May 25, 2018
915
0
16
I plan to update this tutorial soon. Just going through a house move so once Im all settled in a few weeks I should have some more time.
 

peshua19

Member
May 25, 2018
897
0
16
What about a tuto for Debian Squeeze 64bit?

I would apreciate...

cHEERs
Works great on squeeze 64bit.
You should search for some updates of basic packages and it will be fine.

However, I use sftp with dir permissions cause some issues with pure-ftpd
 

saroos1

Member
May 25, 2018
718
0
16
you can set a mask setting in .rtorrent.rc to match your directory settings for sftp if you wish.
 

simur612

Member
May 25, 2018
879
0
16
Thanks subvertbeats!

I use your guide to install libtorrent-0.13.0 and rtorrent-0.9.0 on my Ubuntu 10.04 box, it works great!
 

randac56

Member
May 25, 2018
915
0
16
Hi, I have a problem with "rtorrent startup script".

error:
cat: 0.77€ (/home/MYUSERNAME/.rtorrent.rc): No existe el fichero o el directorio
cannot find readable session directory from config /home/MYUSERNAME/.rtorrent.rc. check permissions

When I open with "rtorrent" in terminal, I don't have any problems (works with this session, directories, etc).

Any solutions? thanks.
 

peshua19

Member
May 25, 2018
897
0
16
Thanks for the tutorial, really helped with setting up a local rutorrent server.

Few notes for anyone that's attempting to install this now:

Some of the necessary basic packages aren't available because they're deprecated or other reasons so the command should be

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 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 libwww-perl curl
When getting the latest releases of libtorrent and rtorrent it pays to go to http://libtorrent.rakshasa.no/downloads/ and actually see what the latest release is. I found that using libtorrent-0.12.6 meant being unable to compile in 64-bit ubuntu, luckily looking up the error took me to a bug report where the devs said a newer release fixed it.
So at the beginning of Part 2 use

Code:
cd ~/
mkdir source
cd source
svn co https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/advanced/ xmlrpc-c
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.0.tar.gz
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.0.tar.gz
tar -xvzf libtorrent-0.13.0.tar.gz
tar -xvzf rtorrent-0.9.0.tar.gz
rm *.tar.gz
and then change it in the making side of things as well

Code:
cd ../libtorrent-0.13.0
./autogen.sh
./configure
make
sudo make install

cd ../rtorrent-0.9.0
./autogen.sh
./configure --with-xmlrpc-c
make
sudo make install

sudo ldconfig
Finally, it would appear that the search plugin for rutorrent is no longer there so you can skip that line in Part 3

Code:
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/search

I didn't go on to add multiple users but I assume that all still works fine since everything is done locally.

Thanks again for the great guide!
 

saroos1

Member
May 25, 2018
718
0
16
I've a problem setting up rtorrent

I'm running Ubuntu 10.04 64bits
libtorrent 0.13
rtorrent 0.9.0

if i run: #rtorrent it seems to work.
but when i run : #sudo /etc/init.d/rtorrent start

i get the following error:

Quote
stokp@ks361489:/etc/init.d$ sudo /etc/init.d/rtorrent start
cat: 0.76 € (/home/stokp/.rtorrent.rc): No such file or directory
cannot find readable session directory from config /home/stokp/.rtorrent.rc. check permissions

I've my folders like this:

Quote
/home/stokp/
/home/stokp/downloads
/home/stokp/rtorrent/session
/home/stokp/rtorrent/watch​


the directories on the .rtorrent.rc

Quote
directory = /home/stokp/downloads
session = /home/stokp/rtorrent/session
schedule = watch_directory,5,5,load_start=/home/stokp/rtorrent/watch/*.torrent​


i've the premissions okay i think, result of: ls -a -l
Quote
drwxr-xr-x 7 stokp stokp 4096 2012-04-27 14:53 .
drwxr-xr-x 4 root root 4096 2012-04-27 13:36 ..
-rw------- 1 stokp stokp 954 2012-04-27 14:02 .bash_history
-rw-r--r-- 1 stokp stokp 220 2012-04-27 13:36 .bash_logout
-rw-r--r-- 1 stokp stokp 3353 2012-04-27 13:36 .bashrc
drwx------ 2 stokp stokp 4096 2012-04-27 13:37 .cache
drwxr-xr-x 2 stokp stokp 4096 2012-04-27 14:53 downloads
-rw-r--r-- 1 stokp stokp 1320 2002-12-05 01:58 jcameron-key.asc
-rw-r--r-- 1 stokp stokp 675 2012-04-27 13:36 .profile
-rw------- 1 stokp stokp 1024 2012-04-27 14:18 .rnd
drwxr-xr-x 4 stokp stokp 4096 2012-04-27 14:53 rtorrent
-rw-r--r-- 1 stokp stokp 5027 2012-04-27 14:52 .rtorrent.rc
drwxr-xr-x 5 stokp stokp 4096 2012-04-27 14:38 source
drwxr-xr-x 3 stokp stokp 4096 2012-04-27 14:20 .subversion​


and ls -a -l in the folder rtorrent
Quote
drwxr-xr-x 4 stokp stokp 4096 2012-04-27 14:53 .
drwxr-xr-x 7 stokp stokp 4096 2012-04-27 14:53 ..
drwxr-xr-x 2 stokp stokp 4096 2012-04-27 14:54 session
drwxr-xr-x 2 stokp stokp 4096 2012-04-27 14:53 watch​


thanks in advance for your help, im very lost on how to fix this =/
 

simur612

Member
May 25, 2018
879
0
16
Hi everybody !

Thanks for this great tuto !

I have one little problem...

All work perfectly but the rtorrent dont start automaticly.

I check the rtorrent startup script and I test it with the line :

Code:
sudo /etc/init.d/rtorrent startand rtorrent start...

But if I reboot the server, I launch rutorrent interface, he tell le the rtorrent is not connected.
I go to SSH to start it with
Code: [Select]
sudo rtorrentand that work !

Any idea ?
 

peshua19

Member
May 25, 2018
897
0
16
Try
Code:
chkconfig rtorrent onor edit /etc/rc.d/rc.local and add this line
Code:
/etc/init.d/rtorrent start
(That's CentOS - other distros may vary)
 

saroos1

Member
May 25, 2018
718
0
16
Great tutorial, but I have an issue I just can't figure out, rutorrent just doesn't want to "see" the rtorrent screen session that htop is telling me is active:

Quote
CPU[| 0.7%] Tasks: 5, 0 thr; 1 running
Mem[|||||||||| 136/1960MB] Load average: 0.00 0.01 0.05
Swp[ 0/510MB] Uptime: 00:16:11

PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
2999 xxxx 20 0 26352 1484 872 S 0.0 0.1 0:00.00 SCREEN -dm -S rtorrent
3006 xxxx 20 0 22516 4484 1612 S 0.0 0.2 0:00.49 /bin/bash
3378 xxxx 20 0 71264 1720 924 S 0.0 0.1 0:00.02 sshd: plato@pts/1
3379 xxxx 20 0 26168 8240 1704 S 0.0 0.4 0:00.85 -bash
4963 xxxx 20 0 25104 2212 1416 R 0.0 0.1 0:00.03 htop​


rutorrent is giving me this error when I try to connect:

Quote
No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file.​


I have checked all the ports and everything appears to be fine. The really funny things is that when I launch rtorrent manually via the terminal rutorrent connects and everything works fine


Quote
*** rTorrent 0.9.0/0.13.0 - xxx.xxx.xxx:#### ***
[View: main]

( 9:28:46) Using 'epoll' based polling.
( 9:28:46) Using 'epoll' based polling.
( 9:28:46) Started logging to 'console'.
( 9:28:46) XMLRPC initialized with 972 functions.
( 9:28:46) The SCGI socket is bound to a specific network device yet may still pose a security risk, consider using 'scgi_local'.
( 9:28:46) Closed XMLRPC log.
[Throttle off/off KB] [Rate 0.0/ 0.0 KB] [Port: 55998] [U 0/0] [D 0/0] [H 0/32] [S 0/2/768] [F 0/128]​


I assume whatever is going on must be relatively simple, since everything works perfectly when I launch rtorrent in the terminal, but I'm stumped s to what is actually wrong.

Any help would be appreciated.
 

randac56

Member
May 25, 2018
915
0
16
That's what I thought this was "SCREEN -dm -S rtorrent" so there should be an "rtorrent" line there as well?
 

peshua19

Member
May 25, 2018
897
0
16
That is the name of your screen session, run "screen -R rtorrent" to reattach to it, you can start rtorrent from there and CTRL A, D to detach once it's up and running.
 

lisas4567

Member
May 25, 2018
773
0
16
starting rtorrent at boot is simply 1 line in your crontab entry.
no need for some gigantic pile of init poo
 

saroos1

Member
May 25, 2018
718
0
16
Installed this together with rtorrent-PS 0.9.2 today on a new Ubuntu 12.04 box. Everything works, but there were a few warnings during installation of the required packages:

Code:
Package cpp-4.1 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

Package gcc-4.1 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 'cpp-4.1' has no installation candidate
E: Unable to locate package g++-4.1
E: Couldn't find any package by regex 'g++-4.1'
E: Package 'gcc-4.1' has no installation candidate
E: Unable to locate package libkdb5-4
E: Unable to locate package libneon26
E: Unable to locate package libssp0-dev
E: Unable to locate package libstdc++6-4.1-dev
E: Couldn't find any package by regex 'libstdc++6-4.1-dev'
I disregarded them, which apparently went fine. Perhaps I'll take time to find out what the correct names in more recent distros are.
 

simur612

Member
May 25, 2018
879
0
16
I followed the multi-user bit to a tee but when I login with other users its seems like its the same rutorrent share across all users. I was hoping for a completely separate setup for each user