<commit_before>### INSTALLATION GUIDE

At this time sqlChain is only tested on Linux servers. It may work on other platforms but I don't have them to test and probably won't put effort into that in the near future. 

There is a new sqlchain-init script that handles most of the configuration and DB init details. 

Tested on a clean Ubuntu 14.04 Amazon EC2 instance (ami-feed08e8). I used a spot m4.large instance which costs only 1.4 cents/hour to test (plus data transfer out, which seems to be pretty substanial, and maybe the main cost). 

### Getting Started - Step by Step

First, you need Bitcoin Core and some standard Ubuntu packages for MySQL and Python.

```
sudo apt-get install software-properties-common python-software-properties libev-dev libevent-dev   # may not need but won't hurt
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind mysql-server libmysqlclient-dev python-pip python-dev build-essential
```

Then you can install sqlChain from PyPi the easy way, includes dependencies and demo API web pages.

    sudo pip install sqlchain

That creates binaries in /usr/local/bin and puts python stuff where it should normally go.

The easy way to create the DB and configure and co-ordinate both bitcoin core and sqlchain daemons:<commit_msg>add vultr link to install guide<commit_after>### INSTALLATION GUIDE

At this time sqlChain is only tested on Linux servers. It may work on other platforms but I don't have them to test and probably won't put effort into that in the near future. 

There is a new sqlchain-init script that handles most of the configuration and DB init details. 

Tested on a clean Ubuntu 14.04 Amazon EC2 instance (ami-feed08e8). I used a spot m4.large instance which costs only 1.4 cents/hour to test (plus data transfer out, which seems to be pretty substanial, and maybe the main cost). 

A better test platform is [Vultr.com](http://www.vultr.com/?ref=7087266) and they also accept Bitcoin payments. Faster and cheaper, though not quite as advanced block storage and scripting. If you try it then please use my [affiliate link](http://www.vultr.com/?ref=7087266) - gives me a some much needed server credit for testing.

### Getting Started - Step by Step

First, you need Bitcoin Core and some standard Ubuntu packages for MySQL and Python.

```
sudo apt-get install software-properties-common python-software-properties libev-dev libevent-dev   # may not need but won't hurt
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind mysql-server libmysqlclient-dev python-pip python-dev build-essential
```

Then you can install sqlChain from PyPi the easy way, includes dependencies and demo API web pages.

    sudo pip install sqlchain

That creates binaries in /usr/local/bin and puts python stuff where it should normally go.

The easy way to create the DB and configure and co-ordinate both bitcoin core and sqlchain daemons:
{'fraction_non_alphanumeric': 0.054072321730314295, 'fraction_numerical': 0.012166272389320717, 'mean_word_length': 4.238938053097345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5640051', 'n_tokens_mistral': 842, 'n_tokens_neox': 766, 'n_words': 428}