<commit_before>libnatasha
==========

Natasha - Network Able to Transmit Amid Severly Hostile Activity 


Installation Instructions
=======================

download libsodium and install according to instructions

Install the following packages:
- python-dev
- python-pip
- libffi-dev

Then run:
```
sudo pip install pynacl
sudo easy-install GitPython
```


Add the following to your path:

```
export PATH=$PATH:/path/to/libnatasha
```

Finally, copy settings.conf.sample to settings.conf and change the settings to match your node's deployment schema


Manual Configuration Steps
========================

on host:
```
rsync -avz nodeX-deploy node-address.local:~/
```

on node (as root):
```
echo nodeX > /etc/hostname
nano /etc/hosts
```
replace 
```127.0.1.1       raspberrypi```
with
```127.0.1.1       nodeX```

Reboot. After reboot:

```
mv ~/nodeX-deploy ~/plp
sudo cp ~/libnatasha/install/gollum-server /etc/init.d/
sudo chmod 755 /etc/init.d/gollum-server
cp ~/libnatasha/install/config.rb ~/plp/config.rb
sudo update-rc.d gollum-server defaults

```<commit_msg>Adding lightty conf to readme<commit_after>libnatasha
==========

Natasha - Network Able to Transmit Amid Severly Hostile Activity 


Installation Instructions
=======================

download libsodium and install according to instructions

Install the following packages:
- python-dev
- python-pip
- libffi-dev

Then run:
```
sudo pip install pynacl
sudo easy-install GitPython
```


Add the following to your path:

```
export PATH=$PATH:/path/to/libnatasha
```

Finally, copy settings.conf.sample to settings.conf and change the settings to match your node's deployment schema


Manual Configuration Steps
========================

on host:
```
rsync -avz nodeX-deploy node-address.local:~/
```

on node (as root):
```
echo nodeX > /etc/hostname
nano /etc/hosts
```
replace 
```127.0.1.1       raspberrypi```
with
```127.0.1.1       nodeX```

Reboot. After reboot:

```
mv ~/nodeX-deploy ~/plp
sudo cp ~/libnatasha/install/gollum-server /etc/init.d/
sudo chmod 755 /etc/init.d/gollum-server
cp ~/libnatasha/install/config.rb ~/plp/config.rb
sudo update-rc.d gollum-server defaults

```

Generate your certificate and key. (Add script to make this easier later.) Then:

```
cat the.pem the.key > server.pem
sudo cp server.pem /etc/lighttpd/server.pem
sudo cp /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.old
sudo cp ~/libnatasha/install/lighttpd.conf /etc/lighttpd/lighttpd.conf
sudo /etc/init.d/lighttpd restart
```
{'fraction_non_alphanumeric': 0.1596806387225549, 'fraction_numerical': 0.011976047904191617, 'mean_word_length': 4.145790554414784, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4057095', 'n_tokens_mistral': 924, 'n_tokens_neox': 822, 'n_words': 242}