<commit_before> * Email: <EMAIL>; WWW: http://www.mysociety.org
 *
 * $Id: INSTALL.txt,v 1.10 2009-10-02 13:17:59 francis Exp $
 * 


These instructions are based on getting the FOI site up and running on
Ubuntu and/or Debian.

It was last run using the Hardy Heron version of Ubuntu and on the
Parallels debian instance (2.6.18-4-686).

Commands are intended to be run via the terminal or over ssh.

1. Package Installation
-----------------------

Firstly, in a terminal, navigate to the whatdotheyknow folder where this
install guide lives.

Install the packages that are listed in config/packages using apt-get eg:

> sudo apt-get install `cat config/packages`

Some of the required packages only exist in the mysociety debian archive (or we
have updated versions there), so you will want to add that to your
/etc/apt/sources.list:
  
  deb http://debian.mysociety.org etch main non-free contrib
  deb-src http://debian.mysociety.org etch main non-free contrib

libgems-ruby1.8 has recently been replaced by rubygems1.8, so you may need to
update the packages file to reflect this, depending on your version.


2. Configure Database 
---------------------

There has been a little work done in trying to make the code work with
other databases (e.g. SQLite), but the preferred database is PostgreSQL.

If you don't have it installed:
  apt-get install postgresql postgresql-client

Now we need to set up the database config file to contain the name,
username and password of your postgres database.<commit_msg>Mention that version are in packages file<commit_after> * Email: <EMAIL>; WWW: http://www.mysociety.org
 *
 * $Id: INSTALL.txt,v 1.10 2009-10-02 13:17:59 francis Exp $
 * 


These instructions are based on getting the FOI site up and running on
Ubuntu and/or Debian.

It was last run using the Hardy Heron version of Ubuntu and on the
Parallels debian instance (2.6.18-4-686).

Commands are intended to be run via the terminal or over ssh.

1. Package Installation
-----------------------

Firstly, in a terminal, navigate to the whatdotheyknow folder where this
install guide lives.

Install the packages that are listed in config/packages using apt-get e.g.:

> sudo apt-get install `cut -d " " -f 1 config/packages`

Some of the files also have a version number listed in config/packages - check
that you have appropriate versions installed. Some also list "|" and offer
a choice of packages.

Some of the required packages only exist in the mysociety debian archive (or we
have updated versions there), so you will want to add that to your
/etc/apt/sources.list:
  
  deb http://debian.mysociety.org etch main non-free contrib
  deb-src http://debian.mysociety.org etch main non-free contrib


2. Configure Database 
---------------------

There has been a little work done in trying to make the code work with
other databases (e.g. SQLite), but the preferred database is PostgreSQL.

If you don't have it installed:
  apt-get install postgresql postgresql-client

Now we need to set up the database config file to contain the name,
username and password of your postgres database.
{'fraction_non_alphanumeric': 0.08809293320425944, 'fraction_numerical': 0.01903839948370442, 'mean_word_length': 3.397163120567376, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4954937', 'n_tokens_mistral': 935, 'n_tokens_neox': 851, 'n_words': 439}