Difference between pages "X Window System" and "Package:Rutorrent"

(Difference between pages)
(Created page with "=== X.Org === In order to use a graphical environment it's necessary to install X.Org, which is an implementation of the X Window system. Before we start it's a good idea t...")
 
m (more details)
 
Line 1: Line 1:
=== X.Org ===
+
{{Ebuild
 +
|Summary=ruTorrent is a front-end for the popular Bittorrent client rTorrent
 +
|CatPkg=www-apps/rutorrent
 +
|Homepage=http://code.google.com/p/rutorrent/
 +
}}
  
In order to use a graphical environment it's necessary to install X.Org, which is an implementation of the X Window system.
+
rutorrent is a front end to {{package|net-p2p/rtorrent}} and is designed to look like utorrent =D
  
Before we start it's a good idea to make sure that your system is configured correctly. If you've installed your kernel using the <tt>binary</tt> USE flag, chances are that your video card is already supported.
+
{{console|body=###i## emerge www-apps/rutorrent}}
  
In order for Portage to know which video card(s) you want to support, you'll need to add a line to your <tt>make.conf</tt>.
+
===prereqs===
<console>
+
*Install your web server {{package|www-servers/nginx}}, and get {{package|dev-lang/php}} with the fpm use flag running first.
# ##i##nano -w /etc/portage/make.conf
+
*you must turn on scgi_pass within rtorrents.
...
+
VIDEO_CARDS="intel"
+
</console>
+
  
In the example above we're using Intel integrated graphics drivers. Examples of valid entries include <tt>radeon</tt> for AMD Radeon cards, and <tt>nouveau</tt> or <tt>nvidia</tt> for NVIDIA cards. If you haven't yet switched to the <tt>desktop</tt> profile it's a good idea to do it now.
+
===configuration===
 +
first figure out what php you're using
  
Next comes the actual installation:
+
{{console|body=###i##eselect php list fpm
<console>
+
[1]  php5.5 *
# ##i##emerge xorg-x11
+
###i## eselect php list cgi
</console>
+
[1]  php5.5 *
 +
###i## eselect php list apache2
 +
[1]  php5.5 *
 +
###i## eselect php list cli
 +
[1]  php5.5 *
 +
}}
  
Now we need to test to make sure X.Org is working properly. To test it we will install twm, a simple window manager which has traditionally served as the standard window manager for X.Org. In Funtoo Linux it is included in the core X.Org meta-package <tt>x11-apps/xinit</tt>, but is not installed by default.
+
edit the respective php.ini
  
It is possible to install twm directly by merging <tt>x11-wm/twm</tt> but for the sake of this tutorial we will install the meta-package, which includes a few extra utilities which may come in handy. There are two ways to do this depending on whether you want it to be installed temporarily or permanently. If you just want it to test X.Org use the following command:
+
were going to configure for nginx.
<console>
+
# ##i##USE="-minimal" emerge -1 xinit
+
</console>
+
  
The <tt>minimal</tt> USE flag is used in some ebuilds to install the bare minimum needed to get a working system. By passing <tt>USE="-minimal"</tt> to the command line before <tt>emerge</tt>, we are telling Portage to disable the flag and install the complete package. The <tt>-1</tt> (<tt>--oneshot</tt>) following <tt>emerge</tt> tells Portage not to add the package to [[#Updating your system|<tt>world</tt>]]. This is useful when installing packages which are automatically pulled in as dependencies by other packages.
+
=== optional security lock down stuff ===
 +
{{warning|possibly broken, untested}}
 +
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/
 +
}}
  
If you want the package installed permanently you will need to add a line to <tt>package.use</tt>:  
+
=== nginx config===
<console>
+
{{file|name=/etc/nginx/sites-available/localhost|lang=|desc=nginx configuration|body=
# ##i##mkdir -p /etc/portage
+
server {
# ##i##echo x11-apps/xinit -minimal >> /etc/portage/package.use
+
listen 127.0.0.1:80;
</console>
+
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;
  
Next we reinstall <tt>x11-apps/xinit</tt>:
+
        location ~ \.php$ {
<console>
+
                fastcgi_pass 127.0.0.1:9000;
# ##i##emerge -1N xinit
+
include fastcgi.conf;
</console>
+
                #fastcgi_pass unix:/var/run/php5-fpm.sock;
 +
        }
  
Once that's done, we're able to finally test X.Org:
+
          location /rutorrent {
 +
              include scgi_params;
 +
              scgi_pass localhost:5000;
 +
          }
 +
}
 +
}}
  
<console>
+
then start nginx
# ##i##startx
+
{{console|body=###i## /etc/init.d/nginx restart}}
</console>
+
  
If everything is well, a simple GUI along with an analog clock and a terminal will appear.
+
point browser to
  
[[Category:First Steps]]
+
http://127.0.0.1/rutorrent
 +
 
 +
or
 +
 
 +
http://localhost/rutorrent
 +
 
 +
{{note|tested without rtorrent running, and without editing the php.ini, web app runs fine.}}
 +
 
 +
 
 +
 
 +
{{PageNeedsUpdates}}
 +
{{EbuildFooter}}

Revision as of 06:47, March 8, 2015

www-apps/rutorrent


Source Repository:Gentoo Portage Tree
Homepage

Summary: ruTorrent is a front-end for the popular Bittorrent client rTorrent


News

Drobbins

How We're Keeping You At the Center of the Funtoo Universe

Read about recent developments that keep you, our users, at the forefront of our focus as Funtoo moves forward.
10 April 2015 by Drobbins
Mgorny

New OpenGL management in Funtoo

Funtoo is switching to an improved system for managing multiple OpenGL providers (Mesa/Xorg, AMD and NVIDIA). The update may involve blockers and file collisions.
30 March 2015 by Mgorny
Drobbins

Subarch Profiles are coming...

Subarch profiles are on their way! Learn more here.
29 March 2015 by Drobbins
View More News...

Rutorrent

Tip

This is a wiki page. To edit it, 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 Rtorrent and is designed to look like utorrent =D

# emerge www-apps/rutorrent


prereqs

  • Install your web server Nginx, and get PHP with the fpm use flag running first.
  • you must turn on scgi_pass within rtorrents.

configuration

first figure out what php you're using

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


edit the respective php.ini

were going to configure for nginx.

optional security lock down stuff

Warning

possibly broken, untested

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;
           }
}

then start nginx

# /etc/init.d/nginx restart


point browser to

http://127.0.0.1/rutorrent

or

http://localhost/rutorrent

Note

tested without rtorrent running, and without editing the php.ini, web app runs fine.