mihi-tr / Investigations-Setup

Setting up a ipython notebook server for investigation stuff.
0 stars 0 forks source link

Ipython notebook setup for investigations

Requirements

Installation

Virtualenv and pip

easy_install pip
pip install virtualenv

create and activate a virtualenv

virtualenv venv
source venv/bin/activate

Install ipython notebook

pip install -r requirements.txt

Install your database connector

If you do postgres this would be

pip install psycopg2

Not needed if you work with sqlite

Create a nbserver profile

ipython profile create nbserver --ipython-dir=.ipython

Setup for the profile

python profile_setup.py

Do you need the ftpd?

This scripts come with a very simple ftpd in python - if you need it (to transfer files in and out:

cp ftpd.yaml.tmpl ftpd.yaml

And edit ftpd.yaml to fit your users - sorry super simple so passwords are plaintext. (This is a NO Security setup).

Copy the sample procfile

cp Procfile.tmpl Procfile

Edit the Procfile to reflect your system

e.q whether you want to enable the ftpd or have the multiprocessing setup.

Start the notebook

honcho start

connect to your notebook

http://localhost:8888