Skip to content
Braalfa edited this page Jan 11, 2016 · 35 revisions

Installing could be done in several ways, differ on your environment, your development preferences and purpose of installing even.

For Use in Production

For Development

1). With Netbeans

Open the Maven project with Netbeans ( Netbeans 8.0 or higher recommended ), do a build with dependencies and then you can Run, netbeans will deploy the application to the Glassfish server.

Netbeans should automatically create the JDBS connections and connection pools, JMS Resources, JMS Factories, etc.
If it is not the case, then have to configure them manually.

Use Open Required Projects option to open the ear, ejb and web projects.

2). Manual installation process

Installing Packages

For setting up and deploying the app you need the following packages:

#####For fixing seluth kit dependency:

Install Java:

sudo apt-get update

sudo apt-get install python-software-properties

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install openjdk-7-jdk

Install Maven:

sudo apt-get install mvn

sudo apt-get install mvn2

#####For setting up the database:

Install Mysql:

sudo apt-get install mysql-client-core-5.5

sudo apt-get install mysql-server-core-5.5

sudo apt-get install mysql-server-5.5

sudo apt-get install mysql-server

sudo apt-get install mysql-client

#####For building the sleuthkit:

sudo apt-get install git

sudo apt-get install automake

sudo apt-get install libtool

sudo apt-get install build-essential

#####For Deploying OpenDF

Install Glassfish:

wget download.java.net/glassfish/4.0/release/glassfish-4.0.zip

apt-get install unzip

unzip glassfish-4.0.zip -d /opt

Fixing seluth kit dependency

Use the following code to fix seluth kit dependency .

mvn install:install-file -Dfile=sleuthkit/bindings/java/dist/Tsk_DataModel.jar -DgroupId=org.sleuthkit -DartifactId=Tsk_DataModel -Dversion=4.1.3 -Dpackaging=jar

Then do a mvn clean install.

Setting up the database

Create a user with "OpenDFU" user name @ localhost that identified by 123.

Check to see whether all the tables inside the OpenDF database is already created and whether they are visible to the user OpenDFU. If the tables are missing use the sql statements inside db/OpenDF.sql file to create the tables manually.

Then use opendf and grant all on opendf to that user.

Detailed instructions for setting up the database including all necessary commands can be found in db/README.md.

Building the sleuthkit
  1. Open a terminal in the root OpenDF directory.
  2. Run cd scripts/ && ./build_sleuthkit

                OR

  1. Open a terminal and change the directory to the sleuthkit directory.
  2. Run the following commands one by one.

./bootstrap

./configure

make

sudo make install

Deploying OpenDF

Start a glassfish domain and deploy by asadmin deploy "OpenDF\OpenDF-ear\targetOpenDF-ear-1.0-SNAPSHOT.ear" and the default port is 8080.

Should you get any errors when analyzing the files check whether you have the file libtsk.so inside sleuthkit/tsk/.libs and if so add the directory path as a PATH variable.

If u are using bash,the command should be

echo 'export PATH=$PATH:/your_path_to_libtsk.so' >> ~/.bashrc

Then deploy the OpenDF-ear.

For Just Sneak Peek

1). Using Vagrant

You can simply use the Vagrant to spawn an OpenDF instance on a Virtualbox VM. If you have Vagrant you can charm the vagrant up command.