DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
Installing r torrent and rutorrent on ubuntu server
1. 04/09/13
Installing rTorrent and ruTorrent on Ubuntu Server | Ben Vassie
Ben Vassie
Documenting my adventures with Linux
Installing rTorrent and ruTorrent on
Ubuntu Server
Posted on 1 May 2013
I’ve always wanted to install rTorrent and ruTorrent but been put off by the fact that you
have to compile pretty much every component, after reading a few tutorials I decided to give
it a go and document it as I went along.
To save us adding sudo before each command we will change to the root user
sudo su
Install the required dependencies
apt-get install subversion build-essential automake libtool libcppunit-dev
Install Apache and enable the Simple Common Gateway Interface (SCGI)
apt-get install apache2 php5 php5-cli php5-curl libapache2-mod-scgi
ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.
Install XML-RPC
cd /tmp
svn checkout http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c
cd xmlrpc-c
./configure --disable-cplusplus
make
make install
Install libTorrent
vassie.me/installing-rtorrent-and-rutorrent-on-ubuntu-server
1/6
2. 04/09/13
Installing rTorrent and ruTorrent on Ubuntu Server | Ben Vassie
cd /tmp
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.2.tar.gz
tar xvf libtorrent-0.13.2.tar.gz
cd libtorrent-0.13.2
./autogen.sh
./configure
make
make install
Install rTorrent
cd /tmp
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.2.tar.gz
tar xvf rtorrent-0.9.2.tar.gz
cd rtorrent-0.9.2
./autogen.sh
./configure --with-xmlrpc-c
make
make install
ldconfig
Configure rTorrent
exit # Return to your normal user
cd # Return to you home directory
wget https://gist.github.com/vassie79/5495074/raw/db591696606da72cfcb5f2c6d94dc30bdbf3391e
Contents of .rtorrent.rc shown below
Click To Expand Code
Depending on your requirements, hardware, connection speed etc. you may want to edit
the setting in .rtorrent.rc .
Create required directories for rTorrent, if you want to change the directory names and/or
paths, remember to also edit .rtorrent.rc
mkdir -p ~/rtorrent/.session
mkdir ~/rtorrent/watch
mkdir ~/rtorrent/download
Install ruTorrent
sudo su
cd /tmp
wget https://rutorrent.googlecode.com/files/rutorrent-3.5.tar.gz
tar xvf rutorrent-3.5.tar.gz
mv rutorrent /var/www
wget https://rutorrent.googlecode.com/files/plugins-3.5.tar.gz
tar xvf plugins-3.5.tar.gz
mv plugins /var/www/rutorrent
vassie.me/installing-rtorrent-and-rutorrent-on-ubuntu-server
2/6
3. 04/09/13
Installing rTorrent and ruTorrent on Ubuntu Server | Ben Vassie
rm -rf /var/www/rutorrent/plugins/darkpal # Depreciated plugin
chown -R www-data:www-data /var/www/rutorrent
Secure ruTorrent
a2enmod ssl
a2enmod auth_digest
a2enmod scgi
openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout
chmod 600 /etc/apache2/apache.pem
Create a username and password for ruTorrent by changing username below to a
username of your choice. Also change hostname to match the hostname of the server
you are installing rTorrent on
htdigest -c /etc/apache2/passwords hostname username
You will prompted to enter create a password for your user
cd /etc/apache2/sites-available/
rm -rf default
wget https://gist.github.com/vassie79/5495059/raw/2e052e9b9465b83321306eb5055e1ade77bfe56a
Contents of default shown below
Click To Expand Code
You will need to edit the default file after downloading it
nano default
Change hostname after AuthName to match the hostname of the server you are
installing rTorrent on (you need to edit both entries)
a2ensite default-ssl
/etc/init.d/apache2 reload
Enable Byobu, this will allow us to run rTorrent in a screen session
exit # Return to your normal user
cd # Return to you home directory
byobu-enable
Once Byobu has been enabled, press F2 to create a new session, then launch rTorrent
rtorrent
vassie.me/installing-rtorrent-and-rutorrent-on-ubuntu-server
3/6
4. 04/09/13
Installing rTorrent and ruTorrent on Ubuntu Server | Ben Vassie
You can then press F6 to detach from the session and logout, rTorrent will continue to
run and you can access it via http://ipaddress/rutorrent , you will prompted for a
username and password, enter what was used when securing ruTorrent.
This entry was posted in Linux, Ubuntu Server and tagged rTorrent, ruTorrent by Ben.
Bookmark the permalink [http://vassie.me/installing-rtorrent-and-rutorrent-onubuntu-server] .
16 comments
0
★
Leave a message...
Post as Leonir Lopes
Leonir Lopes
My Disqus
a minute ago
•
Share
⤤
Community
⚙
Best
For those using PUTTY
SCREEN is an alternative to the BYOBU
Install screen:
# apt-get install screen
Start rTorrent in a detached shell using screen:
# screen -fa -d -m rtorrent
(To start rTorrent automatically after reboots, add the above command
to /etc/rc.local)
▽ △
jobam
Edit
•
Reply
Share ›
2 months ago
no it does't work:
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Where is the right locayion of the rtorrent.rc file?
Reply
Mod
>
B en
Share ›
jobam • 2 months ago
▽ △
.rtorrent.rc should be in your home directory
Reply
▽ △
vassie.me/installing-rtorrent-and-rutorrent-on-ubuntu-server
Share ›
4/6
5. 04/09/13
Installing rTorrent and ruTorrent on Ubuntu Server | Ben Vassie
jobam
•
2 months ago
This is my problem:
(20:17:35) Using 'epoll' based polling.
(20:17:35) Using 'epoll' based polling.
(20:17:35) Using 'epoll' based polling.
(20:17:35) Could not read resource file: ~/.rtorrent.rc
[Throttle off/off KB] [Rate 0.0/ 0.0 KB] [Port: 6889] [U 0/0] [D 0/0] [H 0/3
Reply
B en
Share ›
Mod
jobam • 2 months ago
>
▽ △
That's normal (I believe) the "epoll" messages should disappear
shortly after launching rtorrent. Is rtorrent running OK?
Reply
▽ △
S c ot t B ell
•
Share ›
2 months ago
Must have taken a wrong turn, my terminal window is constantly
scrolling:
uî¿ 12.04.2 0:* 19â¼ 3d23h 0.02 2x3.5GHz 3.9G11% 2013-07-10 08:06:
No idea what I have done :S
Reply
Mod
>
B en
Share ›
Scott Bell • 2 months ago
▽ △
Are you connecting to your server using Putty?
Share ›
S c ot t B ell
>
Reply
Ben • 2 months ago
▽ △
I have sat down and attempted this again this morning.
I have pasted in the commands line by line as I think
some were being missed out yesterday with pasting
them in the entire chunks that you have them presented.
It is looking a lot better now and I am able to load
rutorrent on my main PC via the web interface.
Reply
>
▽ △
S c ot t B ell
Share ›
Ben • 2 months ago
In this instance yes, I was using putty.
I was mistyping some of the commands into the vSphere
console window.
B en
Mod
Share ›
>
▽ △
vassie.me/installing-rtorrent-and-rutorrent-on-ubuntu-server
Reply
Scott Bell • 2 months ago
5/6
6. 04/09/13
Installing rTorrent and ruTorrent on Ubuntu Server | Ben Vassie
B en M o d
Scott Bell • 2 months ago
>
Putty and Byobu don't get on that well
http://askubuntu.com/questions...
•
3 months ago
▽ △
Raafat
Reply
Share ›
Thank you really was a great article
Reply
▽ △
x enc ored
•
Share ›
3 months ago
Didn't work for me ,I am running Virtualmin on my server if that has
anything to do with it.
Reply
>
B en
Share ›
xencored • 3 months ago
▽ △
What error are you getting?
▽ △
frees t y lin135
Reply
•
Share ›
4 months ago
Worked great for me using beaglebone black running ubuntu server
13.04. Thanks a ton!
▽ △
t ux fic t ion
Reply
•
Share ›
4 months ago
Trying it now, thanks.
Reply
▽ △
vassie.me/installing-rtorrent-and-rutorrent-on-ubuntu-server
Share ›
6/6