Difference between pages "Experimental branch" and "Package:Rutorrent"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
m
 
Line 1: Line 1:
{{fancywarning|Funtoo Experimental where we test bleeding-edge stuff, and we're not afraid to break things. Don't use experimental unless you are helping us test new features.}}
{{Ebuild
|Summary=ruTorrent is a front-end for the popular Bittorrent client rTorrent
|CatPkg=www-apps/rutorrent
|Homepage=http://code.google.com/p/rutorrent/
}}


== Status ==
rutorrent is a front end to {{package|net-p2p/rtorrent}} and is designed to look like utorrent =D


The experimental branch currently contains an updated version of gcc-4.6.2-r1, and an updated toolchain.eclass.
{{console|body=###i## emerge www-apps/rutorrent}}


===prereqs===
*Install your web server {{package|www-servers/nginx}}, and get {{package|dev-lang/php}} with the fpm use flag running first.
*you must turn on scgi_pass in the {{package|net-p2p/rtorrent}} config.


Future plans:
===configuration===
* funtoo profile integration
==== optional security lock down stuff ====
* udev and friends bump
{{warning|possibly broken, untested}}


== Experimental Timeline ==
first figure out what php you're using


* Mar 23, 2012 - experimental is now merged into master. Experimental follows master now.
{{console|body=###i##eselect php list fpm
* Between Jan and Mar, 2012 - experimental contains Nova cloud computing libraries.
[1]  php5.5 *
* Between Jan and Mar, 2012 - perl-5.14 is added but kept hard-masked as it breaks stage1 builds.
###i## eselect php list cgi
* Jan 28, 2012 - experimental now contains [[Progress_Overlay_Python]]
[1]  php5.5 *
* Dec 16, 2011 - experimental is now merged into master. Experimental follows master now.
###i## eselect php list apache2
* Sep 27, 2011 - experimental tree is created, used for new gcc-4.6.2 toolchain development and ebuild cleanup.
[1]  php5.5 *
###i## eselect php list cli
[1]   php5.5 *
}}


== Introduction ==
edit the respective php.ini


The Funtoo experimental branch is used by Funtoo Core Developers to try and test new features to be included in Funtoo stable and current branches when ready. Users that want to help the developers test those new features are welcome to switch to the experimental branch and report problems on IRC or the forum. However, problems may arise from using it and there is no guarantee that your system will stay usable.
Edit the open_basedir in
/etc/php/fpm-php5.5/php.ini
{{file|name=/etc/php/fpm-php5.5/php.ini|lang=|desc=php basedir|body=
open_basedir = /var/www/localhost/htdocs/rutorrent/conf:/var/www/localhost/htdocs/rutorrent/php:/var/www/localhost/htdocs/rutorrent/
}}


== Upgrading an existing Funtoo installation to experimental ==
=== nginx config===
<pre>
{{file|name=/etc/nginx/sites-available/localhost|lang=|desc=nginx configuration|body=
# rm -rf /usr/portage
server {
# nano -w /etc/make.conf
listen 127.0.0.1:80;
</pre>
server_name localhost;
access_log /var/log/nginx/localhost.access_log main;
error_log /var/log/nginx/localhost.error_log info;
root /var/www/localhost/htdocs;
index index.php index.cgi index.htm index.html;
autoindex on;


Add the following line (or modify it if it's already there):
        location ~ \.php$ {
<pre>
                fastcgi_pass 127.0.0.1:9000;
SYNC="git://github.com/funtoo/experimental-mini-2011.git"
include fastcgi.conf;
</pre>
                #fastcgi_pass unix:/var/run/php5-fpm.sock;
        }


=== First method ===
          location /rutorrent {
<pre>
              include scgi_params;
# emerge --sync     
              scgi_pass localhost:5000;
</pre>
          }
}
}}


Verify that the experimental tree has been properly installed:
restart nginx
{{console|body=###i## /etc/init.d/nginx restart}}


<pre>
point your browser to
# cat /usr/portage/.git/config
...
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git://github.com/funtoo/experimental-mini-2011.git
...
</pre>


You should see that the git repository is pointing to experimental-mini-2011.git.
http://127.0.0.1/rutorrent


If for any reason this method did not work, use the second method to manually clone the experimental branch.
or
=== Second method ===
<pre>
# rm -rf /usr/portage
# cd /usr
# git clone git://github.com/funtoo/experimental-mini-2011.git portage
# emerge --sync
</pre>


== Installation from an experimental branch stage3 ==
http://localhost/rutorrent
You can find some stage3s on the Funtoo mirror: [http://ftp.osuosl.org/pub/funtoo/funtoo-experimental/]. These stages are updated weekly, possibly more often during active experimental development.


== Building stage3s using Metro ==
{{PageNeedsUpdates}}
You may build your own stages of the experimental branch using [[Metro]]. The stages from the Funtoo mirror ([http://ftp.osuosl.org/pub/funtoo/funtoo-experimental/]) can be used as a seed. A funtoo-experimental target is available.
{{EbuildFooter}}
 
== History ==
 
=== Iteration 1 (Completed Dec 16, 2011) ===
 
Implementation and stabilization of a new set of toolchain packages:
 
* gcc-4.6.2
* binutils-2.21-r1
* linux-headers-2.6.39
* glibc-2.13-r4
* udev-171-r1
* patched lvm2-2.02.85
* Several patches to solve problems building with this toolchain
 
And some other features:
* [[Portage Dynamic Slot]]
* Modifications of Mesa, libdrm and radeon drivers to support each type of Radeon video card individually, as well as masked -9999 versions of those packages.
 
[[Category:Portage]]
[[Category:HOWTO]]
[[Category:Featured]]

Revision as of 06:51, March 8, 2015

Rutorrent

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.


rutorrent is a front end to net-p2p/rtorrent and is designed to look like utorrent =D

root # emerge www-apps/rutorrent

prereqs

configuration

optional security lock down stuff

   Warning

possibly broken, untested

first figure out what php you're using

root #eselect php list fpm
[1]   php5.5 *
root # eselect php list cgi
[1]   php5.5 *
root # eselect php list apache2
[1]   php5.5 *
root # eselect php list cli
[1]   php5.5 *

edit the respective php.ini

Edit the open_basedir in /etc/php/fpm-php5.5/php.ini

   /etc/php/fpm-php5.5/php.ini - php basedir
open_basedir = /var/www/localhost/htdocs/rutorrent/conf:/var/www/localhost/htdocs/rutorrent/php:/var/www/localhost/htdocs/rutorrent/

nginx config

   /etc/nginx/sites-available/localhost - nginx configuration
server {
	listen 127.0.0.1:80;
	server_name localhost;
	access_log /var/log/nginx/localhost.access_log main;
	error_log /var/log/nginx/localhost.error_log info;
	root /var/www/localhost/htdocs;
	index index.php index.cgi index.htm index.html;
	autoindex on;

        location ~ \.php$ {
                fastcgi_pass 127.0.0.1:9000;
		include fastcgi.conf;
                #fastcgi_pass unix:/var/run/php5-fpm.sock;
        }

           location /rutorrent {
               include scgi_params;
               scgi_pass localhost:5000;
           }
}

restart nginx

root # /etc/init.d/nginx restart

point your browser to

http://127.0.0.1/rutorrent

or

http://localhost/rutorrent