We have prepared a bash shell script that starts all the necessary components on one machine. We will use this script throughout this quickstart manual to allow you to get a feel for what the system can do and how it works without having to deal with issues of distributing to other servers.
Base system required
For the quick startup, NetarchiveSuite requires:
- A Linux system with a minimum of 2GB free diskspace. (The minimum diskspace can be configured, but this is a reasonable minimum amount of space in which to store the harvested data.) Note that for the quickstart, you must be able to run a browser on the machine that you run the system on - this is an artifact of the quickstart system and is not the case in the full system. Root access is not required.
- Running Ant application - Java based build tool like make
- Sun Java SE (Standard Edition) JDK version 1.6.0_19 (or later) running on the Linux system.
Newer versions of Sun Java 1.6 will probably work, but have not been tested. The latest download version of Sun Java 6 SE is "JDK 6 Update 24" (03 February 2011).
To check that you have the right version of Java do the following
- start a terminal login to the linux system as a ordinary user
check java version is version 1.6.0_19 (or higher) by writing:
you should then see something like
Download of the newest release is described here
Create a directory for the download e.g. directory
- Download the relevant NetarchiveSuite zip and put it in the netarchive directory you created earlier.
Note: Instead of downloading a NetarchiveSuite.zip you can also build it yourself from the svn trunk:
NetarchiveSuite uses JMS for inter-process communication. JMS is the Java Messaging Service, which provides asynchronous communication between processes. You do not need any knowledge of JMS to use NetarchiveSuite. However you need to make sure that there are not already JMS brokers running on your system using PORT 7676.
Currently only the open-source version of Sun's JMS implementation is supported, since some functionality of other implementations does not match our assumptions well.
To download and install it, do the following:
- Open this link in a browser window http://download.java.net/mq/open-mq/4.4u1/b7-final/
- Click the Linux Link under version 4.4 Binary Downloads to download a file openmq4_4-installer-Linux_X86.zip (or later version)
- Save the download file to the netarchive directory you created earlier
Goto the directory
Unpack the zip file (this creates a directory openmq4_4-installer), and run the X-Windows installer. The installer ask you to choose an install-home (choose netarchive/MessageQueue), and a JDK.
Set necessary environment variables: IMQ_HOME, IMQ_VARHOME, IMQ_ETCHOME)
Run imqbroker in order to create settings file
starts and that the last message is
stop the imqbroker by pressing
edit settings to allow for enough listeners to a queue by doing
uncomment and specify count=20 for listeners by changing line
To start it, do the following:
Download following files to the netarchive directory:
The first script is a simple script for doing all the steps during deployment. It takes a NetarchiveSuite package ('.zip'), a configuration file (the second file), and a temporary installation directory as arguments (in the given order). The different ports used by the application for communication are included in the deploy_standalone_example.xml file.
In the configuration file all the applications are placed on one machine, e.g. the current machine (localhost)
When the installation script is run it will unpack the installation files into the netarchive/deploy directory and install NetarchiveSuite into the /home/test/QuickStart directory (using ssh). It assumes that user 'test' already exists. Remember to check, that a Sun JVM is in the path for the test (instead of GNU java compiler, that is default with some Linux'es.). If you already have a Quickstart installation, the existing bitarchive, database and admin.data files will be untouched. You must explicit remove any previous installation, if you want a clean empty installation.
Note that if you have not setup your automatic ssh test user login (using key based login), you need to login some times before the installation finish successfully. You must also have permission to ssh and scp to test@localhost ( try e.g ssh test@localhost)
The script creates a deployment folder named "Quickstart" in e.g. /home/test/Quickstart, which contains methods for starting and stopping NetarchiveSuite, and starts the whole NetarchiveSuite. The files to run the installation will be placed in the ~/netarchive/deploy dir
- Start a web browser. Note that it is important that the browser is started on the same machine as the simple harvest script is run on
- Setup the browser to proxy on port 8070 and exclude localhost and the hostname (used by the Heritrix GUI) e.g. in firefox:
- Write following url in the started browser http://localhost:8074/HarvestDefinition
- You can now see the webinterface in the browser. You can now create, run and browse according to the following or the User Manual
- You can stop and start the entire NAS system with:
- If you want to try other deploy examples, then go to "Examples of deploy configuration files" in the Installation Manual.