Changes between Version 1 and Version 2 of InstallationGuide
- Timestamp:
- 09/13/07 20:14:57 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuide
v1 v2 7 7 == Prerequisites == #prerequisites 8 8 9 * r torrent 0.7.89 * rTorrent 0.7.8 10 10 * compiled with "--with-xmlrpc-c" 11 11 * sigc++-2.0 12 * xmlrpc>= 1.0712 * XMLRPC-C >= 1.07 13 13 * some webserver 14 14 * php5, with the following extensions: … … 34 34 You'll need the following packages to install xmlrpc-c, libtorrent and rtorrent 35 35 * make 36 * libcurl-openssl-dev37 36 * pkg-config 38 37 * sigc++-2.0-dev 39 38 * libncurses-dev 39 * libcurl-openssl-dev 40 40 41 41 ==== Installing XMLRPC-C ==== #xmlrpc 42 42 43 To install xmlrpc, get the source from [http://sourceforge.net/project/showfiles.php?group_id=16847 The xmlrpc-cpage]43 To install xmlrpc, get the source from [http://sourceforge.net/project/showfiles.php?group_id=16847 The XMLRPC-C page] 44 44 In my case, i could only compile the 1.11.00 version (due to a known bug, you may try to configure with --disable-cplusplus, if the compiling stops with some syntax error) 45 45 Of course, you can try any version, over 1.07 (or any version over 1.00, but you'll get incorrect data for values bigger than 2^31-1^, since it does not support 64bit integers) 46 46 47 47 Follow the next steps: 48 `cd /usr/src 48 {{{ 49 cd /usr/src 49 50 wget http://dfn.dl.sourceforge.net/sourceforge/xmlrpc-c/xmlrpc-c-1.11.00.tgz 50 51 tar xvf xmlrpc-c-1.11.00.tgz … … 52 53 ./configure --disable-cplusplus 53 54 make 54 make install` 55 make install 56 }}} 55 57 56 58 ==== Installing libTorrent ==== #libtorrent 57 59 58 60 To install libtorrent, follow the next steps: 59 `mkdir /usr/src/libtorrent 61 {{{ 62 mkdir /usr/src/libtorrent 60 63 wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.11.8.tar.gz 61 64 tar xvf libtorrent-0.11.8.tar.gz … … 63 66 ./configure 64 67 make 65 make install` 68 make install 69 }}} 66 70 67 71 ==== Installing rTorrent ==== #rtorrent 68 72 69 73 To install rtorrent, follow the next steps: 70 `mkdir /usr/src/rtorrent 74 {{{ 75 mkdir /usr/src/rtorrent 71 76 wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.7.8.tar.gz 72 77 tar xvf rtorrent-0.7.8.tar.gz … … 74 79 ./configure --with-xmlrpc-c 75 80 make 76 make install` 81 make install 82 }}} 77 83 78 ==== Setting up rTorrent ==== 84 ==== Setting up rTorrent ==== #rtorrentsetup 79 85 80 86 If you don't have a .rtorrent.rc file, create one into your home directory. 81 You can find an example .rtorrent.rc file [http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc?rev=latest here].87 You can find an example [http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc?rev=latest .rtorrent.rc] file. 82 88 Open .rtorrent.rc, and edit it (for each user): 83 * add this line to your .rtorrent.rc `scgi_port = 127.0.0.1:12345`where 12345 can be replaced by your choice89 * add this line to your .rtorrent.rc "scgi_port = 127.0.0.1:12345" where 12345 can be replaced by your choice 84 90 * and restart rtorrent 85 91 * if you have more than one user, set a different port for each user's .rtorrent.rc file (be aware, to set different session directories for the users) … … 87 93 * make sure, you have your session directory set and it exists, so rtorrent will remember your torrents after it's restarted 88 94 89 Now, you can start rtorrent, and on the bottom, you should see something like this: 90 `(20:55:52) XMLRPC initialized with 356 functions.` 95 Now, you can start rtorrent. On the bottom, you should see something like this: 96 {{{ 97 (20:55:52) XMLRPC initialized with 356 functions. 98 }}} 91 99 92 100 === rTWi side === #rtwiside … … 106 114 * find row 44, and change it: 107 115 * replace "userX" with the actual linux username 108 * replace "1234567890abcdef1234567890abcdef12345678" with the sha1 hash of the choosen password for the webui (you can generate the sha1 hash here => http://www.johnmaguire.us/tools/hashcalc/index.php)116 * replace "1234567890abcdef1234567890abcdef12345678" with the sha1 hash of the choosen password for the webui (you can generate the sha1 hash [http://www.johnmaguire.us/tools/hashcalc/index.php online]) 109 117 * replace "12345", with the port, you've set in the user's .rtorrent.rc file 110 118 * keep the quotes in the last three steps 111 * if you have more than one user, you have to repeat these steps, for each one of them, so you'll get something like this: 112 ` $users = array( 113 "user1" => array( "pass" => "1234567890abcdef1234567890abcdef12345678", "port" => "12345" ), 114 "user2" => array( "pass" => "1234567890abcdef1234567890abcdef12345678", "port" => "12346" ), 115 "user3" => array( "pass" => "1234567890abcdef1234567890abcdef12345678", "port" => "12347" ), 116 );` 119 * if you have more than one user, you have to repeat these steps for each one of them, so you'll get something like this: 120 {{{ 121 $users = array( 122 "user1" => array( "pass" => "1234567890abcdef1234567890abcdef12345678", "port" => "12345" ), 123 "user2" => array( "pass" => "1234567890abcdef1234567890abcdef12345678", "port" => "12346" ), 124 "user3" => array( "pass" => "1234567890abcdef1234567890abcdef12345678", "port" => "12347" ), 125 ); 126 }}} 117 127 118 Important 128 '''Important! ''' 119 129 * all users, using this webui will need an "!rtwi_files" directory into their download directory (set by "directory = some/path" in the .rtorrent.rc) with 0777 rights 120 130 * the download directory should be inside your home directory (this might change later, as soon as i find out something secure) … … 123 133 == Troubleshooting == #troubleshooting 124 134 125 >XMLRPC-C 1.11 compilation stops with some syntax error 126 >>Configure with --disable-cplusplus135 '''XMLRPC-C 1.11 compilation stops with some syntax error''' 136 * Configure with --disable-cplusplus 127 137 128 >rTorrent compilation stops with an errer, which says, i have no libtorrent installed (No package 'libtorrent' found) 129 >>Find your libtorrent.pc file (try /usr/local/lib/pkgconfig), and set the PKG_CONFIG_PATH environmental variable to it's path (export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig)138 '''rTorrent compilation stops with an errer, which says, i have no libtorrent installed (No package 'libtorrent' found)''' 139 * Find your libtorrent.pc file (try /usr/local/lib/pkgconfig), and set the PKG_CONFIG_PATH environmental variable to it's path (export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig) 130 140 131 >rTorrent compilation stops with an error, which says, my libtorrent's version is an empty string (Requested 'libtorrent >= 0.11.8' but version of libtorrent is) 132 >>Upgrade you automake (you need 1.5+)141 '''rTorrent compilation stops with an error, which says, my libTorrent's version is an empty string (Requested 'libtorrent >= 0.11.8' but version of libtorrent is )''' 142 * Upgrade you automake (you need 1.5+) 133 143 134 >I can see the php code in the browser 135 >>Your php settings does not allows you to to have a php file named .html - change these settings, or rename the index.html to index.php, and set the $default_ext variable to "php" in rtwi's /includes/config.inc.php136 >>Php modul is not loaded by the webserver, take a look at your webserver's manual, to find out, how to enable it144 '''I can see the php code in the browser''' 145 * Your php settings does not allows you to to have a php file named .html - change these settings, or rename the index.html to index.php, and set the $default_ext variable to "php" in rtwi's /includes/config.inc.php 146 * Php modul is not loaded by the webserver, take a look at your webserver's manual, to find out, how to enable it 137 147 138 >I get some php errors about xsl... 139 >>Install (or if it's installed, than enable) the xsl php extension148 '''I get some php errors about XSL, or XSLT...''' 149 * Install (or if it's installed, than enable) the xsl php extension 140 150 141 >I get some php errors about xmlrpc... 142 >>Install (or if it's installed, than enable) the xmlrpc php extension151 '''I get some php errors about XMLRPC-C...''' 152 * Install (or if it's installed, than enable) the xmlrpc php extension 143 153 144 >I've set my username and my password in the config.inc.php, but i cannot log in 145 >>Did you use the password? you need to use the password's sha1 hash (you can generate one here =>you can generate the sha1 hash here => http://www.johnmaguire.us/tools/hashcalc/index.php)146 >>Enable cookies (or at least session cookies)154 '''I've set my username and my password in the config.inc.php, but i cannot log in''' 155 * Did you use the password? You should use the password's sha1 hash (you can generate the sha1 hash [http://www.johnmaguire.us/tools/hashcalc/index.php online]) 156 * Enable cookies (or at least session cookies) 147 157 148 >I get the "No connection" message in rtwi 149 >>Set the same port in your .rtorrent.rc file, at the scgi_port=, and in the rtwi's /includes/config.inc.php at your user's line 150 >>Check, if rtottent is listening on the port, you've set (netstat -na | grep 12345) 151 >>>If it is 152 >>>>Check your firewall 153 >>>>Recheck the port set in rtwi's incudes/config.inc.php 154 >>>Of it is not 155 >>>>Recheck your .rtorrent.rc - it should have a line like this: scgi_port = 127.0.0.1:12345 156 >>>>Try to set the scgi port in runtime (ctrl+x, then entre "scgi_port = 127.0.0.1:12345") 157 >>>>>If rtorrent stops with an error, that says xmlrpc is not supported, configure xmlrpc-c with --with-xmlrpc-c, and recompile 158 159 >The add torrent menu does not work (at all - it shows me an empty page) 160 >>Your download directory should be in your home directory 158 '''I get the "No connection" message in rTWi''' 159 * Set the same port in your .rtorrent.rc file, at the scgi_port=, and in the rTWi's /includes/config.inc.php at your user's line 160 * Check, if rTottent is listening on the port, you've set (netstat -na | grep 12345) 161 * '''It is''' 162 * Check your firewall 163 * Recheck the port set in rtwi's incudes/config.inc.php 164 * '''It is not''' 165 * Recheck your .rtorrent.rc - it should have a line like this: scgi_port = 127.0.0.1:12345 166 * Try to set the scgi port in runtime (Ctrl+X, then entre "scgi_port = 127.0.0.1:12345") 167 * If rtorrent stops with an error, that says xmlrpc is not supported, configure xmlrpc-c with --with-xmlrpc-c, and recompile