...
This guide is written for Ubuntu 10.04.
For neo4j-embedded:
Code Block |
---|
sudo apt-get install nginx git-core python-virtualenv postfix openjdk-6-jdk build-essential postgresql python-psycopg2 libpq-dev python-dev |
For neo4j-rest-client:Make a virtual python environment.
Code Block |
---|
cd /opt/python_environments/ sudo virtualenv apt-get install apache2 libapache2-mod-wsgi git-core python-virtualenv postfix openjdk-6-jre-headless postgresql python-psycopg2 libpq-dev python-dev -no-site-packages norduni |
Install needed python modulesFor both neo4j versions:
Make a virtual python environment.
Code Block |
---|
sudo su cdsource /opt/python_environments/norduni/bin/activate sudopip virtualenv --no-site-packages norduni |
Install needed python modules.
Code Block |
---|
sudo su source python_environments/norduni/bin/activate pip install django ipaddr install django ipaddr argparse pexpect markdown psycopg2 lucene-querybuilder gunicorn |
Add the following python modules if you are running the Neo4j stand alone server:
Code Block |
---|
pip install httplib2
|
Get the NORDUni files:
For neo4j-embedded:
Code Block |
---|
cd /var/opt/
git clone git://git.nordu.net/norduni.git
|
Get the NORDUni filesFor neo4j-rest-client:
Code Block |
---|
cd /var/opt/ git clone git://git.nordu.net/norduni.git git checkout operation |
...
Get the NERDS files:
Code Block |
---|
mkdir /opt/norduni/tools/ cd /opt/norduni/tools/ git clone https://github.com/fredrikt/nerds.git |
...
Code Block |
---|
NIWEB_ROOT = '/opt/norduni/src/niweb/' NIWEB_MEDIA_URL = '/static/' # Database settings DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'norduni', 'USER': 'postgres', 'PASSWORD': 'secret', 'HOST': 'localhost' } } # Neo4j settings NEO4J_RESOURCE_URI = '/opt/norduni/dependencies/neo4jdb/' |
Here you can end if you want to run a local installation of NOCLook.
Deploying NOCLook
Comment out the static media url in /opt/norduni/src/niweb/urls.py.
...
Set up a GIT repository for the JSON files produced by the NERDS producers and make a clone in /var/opt/. We have NORDUnet has a GIT repository called nistore
and we have made a clone found at it is cloned to /var/opt/nistore/.
Produce JSON files with the producers you want.
Consume the recently produces JSON files with the NORDUni consume scripts.
Neo4j
...
>1.5 embedded with Python bindings
...
Install JPype and Neo4j-embedded.
Download jpype. (http://sourceforge.net/projects/jpype/files/)
...