Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
mkdir /opt/norduni/tools/
cd /opt/norduni/tools/
git clone https://github.com/fredrikt/nerds.git

Download neo4j-1.3 from http://neo4j.orgImage Removed.
Extract the file to, for example, /var/opt/norduni/dependencies/.

Code Block

cd /var/opt/norduni/dependencies/
tar xfz neo4j-1.3.tar.gz

Copy the startup script from /var/opt/norduni/scr/scripts/neo4j/ to /etc/init.d/ and then make neo4j start on boot.

Code Block

update-rc.d /et/init.d/neo4j defaults

You need to shut down port 7474 from anything except localhost.

Code Block

iptables -A INPUT -p tcp --dport 7474 -s localhost -j ACCEPT
iptables -A INPUT -p tcp --dport 7474 -j DROP

Save the rules and add the following line to your interface configuration so you will restore the rules on a reboot.

Code Block

bash -c "iptables-save > /etc/iptables.rules"

vi /etc/network/interfaces

iface eth0 inet static
    pre-up iptables-restore < /etc/iptables.rules

Symlink admin media and the virtual python environment to niweb.

...

Consume the recently produces JSON files with the NORDUni consume scripts.

.h2 Install Neo4j graph database

Neo4j 1.5 embedded with Python bindings (recommended)

Code Block

pip install neo4j-embedded

.h3 Neo4j 1.3 REST stand alone server

Download neo4j-1.3 from http://neo4j.orgImage Added.
Extract the file to, for example, /var/opt/norduni/dependencies/.

Code Block

cd /var/opt/norduni/dependencies/
tar xfz neo4j-1.3.tar.gz

Copy the startup script from /var/opt/norduni/scr/scripts/neo4j/ to /etc/init.d/ and then make neo4j start on boot.

Code Block

update-rc.d /et/init.d/neo4j defaults

You need to shut down port 7474 from anything except localhost.

Code Block

iptables -A INPUT -p tcp --dport 7474 -s localhost -j ACCEPT
iptables -A INPUT -p tcp --dport 7474 -j DROP

Save the rules and add the following line to your interface configuration so you will restore the rules on a reboot.

Code Block

bash -c "iptables-save > /etc/iptables.rules"

vi /etc/network/interfaces

iface eth0 inet static
    pre-up iptables-restore < /etc/iptables.rules