Title: [2011.12.15] How to Install the BT Client rtorrent And Webui rutorrent/wtorrent into Ubuntu Linux [Print this page] author: 夢 time: 2011-12-11 18:23 Title: [2011.12.15] How to Install the BT Client rtorrent And Webui rutorrent/wtorrent into Ubuntu Linux
Test OS:ubunt 10.04 desktop 32bits、11.04 server 32 bits and 11.10 server 64bits Conclusion:The processure of installation is successful until now and work ok.
A-------------------------------------------------------------preassemble-------------------------------------------------------------
First to remind the reader, when you try to install the webui, this tutorial suggest reader use the lighttpd http server.
If you must use the apache2, please ignore the part of installing webui.
After install the lighttpd, reader need pay attention the proftpd.
If you had already installed other ftp client and had not wanted to install other clients, you can stop to install other ftp client.
And if reader use the OpenVZ 64bits VPS(ex ubuntu 11.04 server 64bits ), I suggest you stop use apt-get to install proftpd.
When the system config the proftpd, the error may happn.
If you want to use proftpd on the 64bits platform, I suggest the reader complier the proftpd source code and make install the source code.
Besides, I suggest the reader change different with 22 port inavoid stranger attach.
Then,restart...
sudo /etc/init.d/proftpd restart
Copy the Code
If reader need the root login premission, you can delet the word root in ftpusers file
If you open the premission to be root login please pay attention your system security.
sudo vi /etc/ftpusers
Copy the Code
C-------------------------------------------------------------adduser-------------------------------------------------------------
Consider the security of the system, we can add a new user and let the user can't invoke the root premission, only use to rtorrent and webui.
This step is not necessary.Actually, if the reader use this new user can't invike the root premission to implement rtorrent or webui,
you may think not convient when you want to invoke root premission by sudo comment temporarily.
sudo adduser rt //add user 'rt' on ubuntu platform
sudo chown rt:users /home/rt
Copy the Code
If reader use other linux system (like centos...etc), the commend is a little different .please google...
D-------------------------------------------------------------create folder-------------------------------------------------------------
If you use the user, rt , to use rtorrent, you need create three folders under 'home'.
Reader need log in a account can invoke root premission to finish the process of rtorrent installation.
I used to create a folder 'code' to download the source code and tar decompress the packet to install these sofeware.
Below I will complier and make/install the source.Reader can refer my command and inference about other cases from one instance.
Install libtorrent/rtorrent(old version libtorrent0.12.9/rtorrent0.8.9)
If user want to install the new version libtorrent/rtorrent, you can see the next block.
./configure --with-xmlrpc-c&&sudo make&&sudo make install
sudo ldconfig
Copy the Code
Put the .rtorrent.rc file under the home folder and change the server IP and relative folder locations to match your server.
Please refer this .rtorrent.rc or this script past
Or reader can refer the official homepage to write the script yourself.
G-------------------------------------------------------------install wtorrent(ubuntu 12.04 may not work fine,Debian is no problem)-------------------------------------------------------------
No matter the webui client is wtorrent or urtorrent,it can use the scgi:socket or scgi:port type to link rtorrent.
Below I will try to talk about the sdgi:port method.
A part of the lighttpd script is using by rutorrent.At this moment we must mark these content to prove the wtorrent running success.
Search '#rutorrent:password'and'#rutorrent:ssl' and mark these two block script.
(sudo tar xzvf wtorrent.tar.gz)(if use wtorrent.tar.gz, see below content)
sudo chown -R www-data:www-data wtorrent
sudo /etc/init.d/lighttpd restart
Copy the Code
link to your home page
http://host/wtorrent/install.php
Copy the Code
Reader must write the four items of this page especially the point 2 and 3.
1.Language
2.Folder to save uploaded torrents
3.Default folder to save torrent data
4.User
5.Password
Copy the Code
If reader create the same folder name as befor and use the account rt to run rtorrent, then...
Folder to save uploaded torrents: /home/rt/rt-torrents/
Default folder to save torrent data: /home/rt/rt/
Copy the Code
After fix the information, reader must try configuration and save configuration.Then reader can use the wtorent webui.
http://host/wtorrent
Copy the Code
BTW, I suggest reader use the wtorrent_official_upgrade_20111119.7z compress pack I create, because I fix a few bug.
If reader persist use official wtorrent,
you can change to decompress the wtorrent.tar.gz file replace wtorrent_official_upgrade_20111119.7z.
Unofficial organization also provide their wtorrent_plus_final.zip
and I also fix some issue and compress it myself wtorrent_plus_final_unofficial_upgrade_20111119.7z.
Reader can select one of these four version wtorrent.
The below pictures are the official wtorrent interface and unofficial wtorrent interface.
H-------------------------------------------------------------install rutorrent-------------------------------------------------------------
( If the step J excute after the step H , the plugin error message may still keep and warn the user forever.
The user can select to do the setp J first or after executing the step finish then install the rutorrent again.
Because of user will find the error message after executing the rutorrent at the first time, this tutorial still keep the normal setp in turn).
The same as the step G ,download and locate the files to '/var/www'.
Below rutorrent is old version.
If the links were dead, reader need get the links of the last version rutorrent yourself from the official website.
Because of we stilldon't set the password and ssl encryption,
mark the above lighttpd script line 98 to line 115 to let me check to rutorrent can run successfully.
restart the lighttpd
sudo /etc/init.d/lighttpd restart
sudo ldconfig
Copy the Code
http://host/rutorrent
Copy the Code
We still don't install some softwares, so some rutorrent plugins can't use and descript in record liking below warning information.
After the password and ssl set ok, I will tell reader how to active this plugins.
[19.11.2011 15:04:17] WebUI started. <tell us xmlrpc-c and rtorrent complier/make install successfully、libtorrent and rutorrent run ok>
[19.11.2011 15:04:25] rss: Some functionality will be unavailable. Web-server user can't access external program (curl).
[19.11.2011 15:04:25] mediainfo: Plugin will not work. Web-server user can't access external program (mediainfo).
[19.11.2011 15:04:25] autotools: Plugin will not work. rTorrent's user can't access external program (php).
[19.11.2011 15:04:25] create: Plugin will not work. rTorrent's user can't access external program (php).
[19.11.2011 15:04:25] unpack: Plugin will not work. rTorrent's user can't access external program (php).
[19.11.2011 15:04:25] rss: Plugin will not work. rTorrent's user can't access external program (php).
[19.11.2011 15:04:25] retrackers: Plugin will not work. rTorrent's user can't access external program (php).
[19.11.2011 15:04:25] trafic: Plugin will not work. rTorrent's user can't access external program (php).
[19.11.2011 15:04:25] ratio: Some functionality will be unavailable. rTorrent's user can't access external program (php).
[19.11.2011 15:04:25] scheduler: Plugin will not work. rTorrent's user can't access external program (php).
[19.11.2011 15:04:25] rss: Some functionality will be unavailable. rTorrent's user can't access external program (curl).
[19.11.2011 15:04:27] DataDir plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[19.11.2011 15:04:28] Unpack plugin: rTorrent's user can't access unrar program.
[19.11.2011 15:09:18] torrent <tell us torrent files can be uploaded by rutorrent web user interface>
Copy the Code
I-------------------------------------------------------------implement password and ssl for rutorrent-------------------------------------------------------------
Cancel the line 98 to line 115 mark of lighttpd script. rt is user name.
Than, we add password and ssl to protect the transmission and use rtorrent client by rutorrent webui.
https://host/rutorrent
Copy the Code
If there is a warning of https ssl certicicate happened and it like below screen, ignore it and continue to enter the webui is ok.
J-------------------------------------------------------------install other sofewares-------------------------------------------------------------
We use PPA to install mediainfo
sudo vi /etc/apt/sources.list
Copy the Code
Add mediainfo sources in sources.list(for example:ubuntu 10.04 desktop,other os please refer o the mediainfo official website
deb http://ppa.launchpad.net/shiki/mediainfo/ubuntu lucid main
deb-src http://ppa.launchpad.net/shiki/mediainfo/ubuntu lucid main
Copy the Code
sudo add-apt-repository ppa:shiki/mediainfo
sudo apt-get update
sudo apt-get update
apt-cache search mediainfo <double check databese list the mediainfo>
Config the filemanager at rutorrent/plugins/filemanager/conf.php
$pathToExternals['rar'] = '/usr/local/bin/rar';
Copy the Code
If the usr give up to download the filemanager plugin, the rutorrent recorder can't show the sentance " FILE MANAGER ignited".
The rutorrent interface like below screen.
V3.3
V3.4
Because of I add the new plugin "filemanager", when user open rutorrent gui, the information will show "FILE MANAGER ignited" at the begain.
###THE END###
PS1---------------------------------------------------------------------------------------------------------------------------------------------- Because of the wtorrent often use scgi:port mode,the above installation step use scgi:port mode.
If reader want to change to use th scgi:socket,you need rtorrent.rc、lighttpd.conf、config.php(rutorrent) at the same time
Besides, the wtorrent and rutorrent must user the smae method(If these two methods can seperate for two webui,tell me how to do, please.)
Reader can refer the 'rutorrent/confconfig.php' line 30 and lighttpd.conf line 90 and rtorrent.rc script line 64 to fix these script description.
PS2---------------------------------------------------------------------------------------------------------------------------------------------- Although the rutorent and wtorrent webui can install and use for rtorrent at the same time,
rutorrent can interfere the wtorrent interface
If you upload torrents by rutorrent webui then the worrent interface will in disorder though it fuction is correct.
BTW,the wtorrent delet function only can delet the list item and it can't delet the files in our hard disk.
If you use wtorrent to delet rtorrent item, you also need use ftp to delet hd files when you want to delet these files credibly.
PS3----------------------------------------------------------------------------------------------------------------------------------------------
In step G I provide some kinds of wtorrent and give some fixed version of wtorrent.
I seriously suggest the reader use the wtorrent I fixed, because some issue can effect you to use the wtorrent function.
PS4----------------------------------------------------------------------------------------------------------------------------------------------
In other website provide another method to invode fastcgi script
if [ -e /etc/lighttpd/conf-available/10-fastcgi-php5.conf ]; then
sudo /usr/sbin/lighty-enable-mod fastcgi-php5
else
sudo /usr/sbin/lighty-enable-mod fastcgi
fi
Copy the Code
Because I find we may not use the method in newer lighttpd, I stop use this method.
If reader is interested in this method, you can try yourself and mark lighttpd script line 55.
(search lighttpd.conf '#fastcgi (low lighttpd version?)' to get more information)
PS5----------------------------------------------------------------------------------------------------------------------------------------------
I provide two fastcgi script and list in lighttpd line 56 to 79.
(search lighttpd.conf '#fastcgi another script slection' to get more information)
Reader can select one of these two script, they are both can run successfully.