Changes between Version 4 and Version 5 of FATE/Fateserver
- Timestamp:
- Mar 5, 2014, 2:48:29 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FATE/Fateserver
v4 v5 1 1 = fateserver = 2 2 3 fateserver is the server software used to power [http://fate.ffmpeg.org]. It is 4 written by FFmpeg in 2011, in Perl CGI. The main repo for fateserver is located 5 at [git://git.ffmpeg.org/fateserver], with a 6 [https://github.com/FFmpeg/fateserver GitHub mirror]. 3 fateserver is the server software used to power [http://fate.ffmpeg.org]. It is written by the FFmpeg Project in 2011, using Perl CGI. The main repo for fateserver is located at [git://git.ffmpeg.org/fateserver], with a [https://github.com/FFmpeg/fateserver GitHub mirror]. 7 4 8 == Instructions on Installing fateserver ==5 == Getting Started on Developing fateserver == 9 6 10 When you make a change in fateserver, it is always a good idea to test whether 11 everything work on your own work PC. 7 When you make a change in fateserver, it is always a good idea to test whether everything work on your own work PC. 8 9 In this guide, we assume that the source will be located under `/var/www/fateserver`, and the data gathered from clients under `/var/www/fateweb`. 12 10 13 11 1. Get Apache httpd. On Debian derivatives do … … 15 13 sudo apt-get install apache2 16 14 }}} 17 2. Get fateserver (from now on I'll assume fateserver is located under 18 `/var/www/fateserver`). 15 2. Change ownership of `/var/www` to the yourself so you can edit it. 16 17 This is only required if the fateserver source is located under a root-only directory like /var/www. 18 {{{#!sh 19 sudo chown -hR (yourusername):(yourusername) /var/www 20 }}} 21 22 3. Get fateserver and `mkdir` server data directory. 19 23 {{{#!sh 20 24 cd /var/www 21 25 git clone git://git.ffmpeg.org/fateserver 26 mkdir /var/www/fateweb 22 27 }}} 23 28 24 3. Make /var/www/fateserver the root of the server. This is OS-dependant, but 25 on Ubuntu you have to modify 26 `/etc/apache2/sites-available/000-default.conf`: From 29 3. Make /var/www/fateserver the root of the server. This is OS-dependant, but on Ubuntu you have to modify `/etc/apache2/sites-available/000-default.conf`: From 27 30 {{{ 28 31 DocumentRoot /var/www … … 42 45 }}} 43 46 44 5. Create an user for people to report using ssh with. 47 5. Create a new user for fateserver. 48 49 This is not required, and is only recommended if you want to really set up a FATE website. If you just want to test fateserver, you don't need to. 45 50 {{{ 46 51 sudo adduser fate 52 chown -hR fate:fate /var/www/fatweb 47 53 }}} 48 54 49 6. In that user's .ssh/authorized_keys, add one entry for each submitter with 50 the following: 55 6. In that user's `.ssh/authorized_keys`, add one entry for each submitter with the following: 51 56 {{{ 52 57 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> 53 58 }}} 54 59 55 This makes sure they get identified for fateweb and they can only run that 56 one command, so they don't get a shell. 60 This makes sure they get identified for fateweb and they can only run that one command, so they don't get a shell. 57 61 58 7. Edit FATE.pm, set the `$fatedir` variable to the fateweb path 62 This is only required if you created a fate user. 63 64 7. Edit FATE.pm, set the `$fatedir` variable to the fateweb path, if yours is different from the default (`/var/www/fateweb`): 59 65 {{{#!perl 60 our $fatedir = "/ var/www/fateweb";66 our $fatedir = "/your/path"; 61 67 }}} 62 68 63 Thanks to Ramiro Polla for writing this guide. Major updates made by Timothy Gu.69 8. Now if you go to [http://localhost], you will be able to see a FATE error page because you have not feed it data to display yet. 64 70 65 71 {{{ … … 67 73 68 74 '''Notes:''' 69 fateserver can't be on a sub-dir. 70 So it must be something like fate.ffmpeg.org, but can't be ffmpeg.org/fate. 71 Otherwise the links are wrong and it won't load the CSS. 75 fateserver can't be on a sub-dir, which means that it must be something like fate.ffmpeg.org, but can't be ffmpeg.org/fate; or the links are wrong and it won't load the CSS. 72 76 Some tools are also needed on the server, like xz. 73 77 }}} 78 79 Thanks to Ramiro Polla for writing the initial version of this guide. Major updates made by Timothy Gu.
