Changes between Version 1 and Version 2 of FATE/Fateserver


Ignore:
Timestamp:
Feb 22, 2014, 5:59:11 AM (6 years ago)
Author:
Timothy_Gu
Comment:

Add guide

Legend:

Unmodified
Added
Removed
Modified
  • FATE/Fateserver

    v1 v2  
    99everything work on your own work PC.
    1010
    11 WIP!! <!-- Ask Ramiro about his old instructions />
     111. Get Apache httpd. On Debian derivatives do
     12   {{{#!sh
     13   sudo apt-get install apache2
     14   }}}
     152. Get fateserver (from now on I'll assume fateserver is located under
     16   `/var/www/fateserver`).
     17   {{{#!sh
     18   cd /var/www
     19   git clone git://git.ffmpeg.org/fateserver
     20   }}}
     21
     223. Make /var/www/fateserver the root of the server. This is OS-dependant, but
     23   on Ubuntu you have to modify
     24   `/etc/apache2/sites-available/000-default.conf`: From
     25   {{{
     26   DocumentRoot /var/www
     27   }}}
     28   to
     29   {{{
     30   DocumentRoot /var/www/fateserver
     31   }}}
     32
     334. Allow CGI to be executed in Apache, add this to `/etc/apache2/apache2.conf`:
     34   {{{
     35   LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so
     36   <Directory /var/www/fateserver>
     37           Options +ExecCGI
     38           AddHandler cgi-script .cgi .pl
     39   </Directory>
     40   }}}
     41
     425. Create an user for people to report using ssh with.
     43   {{{
     44   sudo adduser fate
     45   }}}
     46
     476. In that user's .ssh/authorized_keys, add one entry for each submitter with
     48   the following:
     49   {{{
     50   command="FATEDIR=/var/www/fateweb FATE_USER=<some identifier of your choice for that submitter> /var/www/fateweb/fate-recv.sh" <submitter's public key>
     51   }}}
     52
     53   This makes sure they get identified for fateweb and they can only run that
     54   one command, so they don't get a shell.
     55
     567. Edit FATE.pm, set the $fatedir variable to the fateweb path
     57   {{{#!perl
     58   our $fatedir = "/var/www/fateweb";
     59   }}}
     60
     61Note:
     62fateserver can't be on a sub-dir.
     63So it must be something like fate.ffmpeg.org, but can't be ffmpeg.org/fate.
     64Otherwise the links are wrong and it won't load the CSS.
     65Some tools are also needed on the server, like xz.
     66
     67Thanks to Ramiro Polla for writing this guide. Major update by Timothy Gu.