Differences between revisions 7 and 9 (spanning 2 versions)
Revision 7 as of 2009-11-05 13:39:38
Size: 2448
Editor: HenrikKirk
Comment:
Revision 9 as of 2009-11-06 09:20:40
Size: 2756
Editor: HenrikKirk
Comment:
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
''$ svn checkout --username '''developername''' https://gforge.statsbiblioteket.dk/svn/netarchivesuite/trunk/ netarchivesuite_trunk/'' ''$ svn checkout --username '''developername''' https://gforge.statsbiblioteket.dk/svn/netarchivesuite/trunk/ ~/netarchivesuite_trunk/''
Line 13: Line 13:
''$ cd netarchivesuite_trunk/''

''$ mkdir wayback''
''$ cd ~/netarchivesuite_trunk/''
Line 25: Line 23:
=== Download Apache Tomcat http://tomcat.apache.org/, version 6.XX is recommended. And prepare wayback webapp === === Download Apache Tomcat http://tomcat.apache.org/, version 6.XX is recommended. And prepare wayback webapp. ===
Line 27: Line 25:
''$ mv ROOT.war '''tomcat_root_dir'''/webapps/'' Download and unpack Tomcat to ~/tomcat/
Line 29: Line 27:
Make sure Tomcat loads ''conf/wayback/settings.xml''. This can be done my add the following line to '''tomcat_root_dir'''/bin/catalina.sh ''$ mv ROOT.war ~/tomcat/webapps/''
Line 31: Line 29:
''CATALINA_OPTS='-Ddk.netarkivet.settings.file='''tomcat_root_dir'''/webapps/ROOT/WEB-INF/settings.xml' Make sure Tomcat loads ''conf/wayback/settings.xml''. This can be done my add the following line to ~/tomcat/bin/catalina.sh

''CATALINA_OPTS='-Ddk.netarkivet.settings.file=~/tomcat/webapps/ROOT/WEB-INF/settings.xml'
Line 49: Line 49:
''$ cp netarchivesuite_trunk/conf/wayback/standalone_archive.xml ~/standalone/'' ''$ cp ~/netarchivesuite_trunk/conf/wayback/standalone_archive.xml ~/standalone/''
Line 53: Line 53:
''$ cp netarchiveiute_trunk/NetarchiveSuite.zip ~/standalone'' ''$ cp ~/netarchiveiute_trunk/NetarchiveSuite.zip ~/standalone''
Line 63: Line 63:
''$ cd '''tomcat_root_dir'''/'' ''$ cd ~/tomcat/''
Line 68: Line 68:

=== Clean up things ===

Stop Tomcat:
''$ ~/tomcat/''

''$ ./bin/shutdown.sh''

Stop archive:
''$ cd ~/standalone/STANDALONE/''

''$ ./killall_NATIONAL_LIBRARY.sh''

Remove Stuff

''$ rm -r ~/tomcat/''

''$ rm -r ~/standalone''

''$ rm -r ~/netarchiveiute_trunk''

Optional remove ''/arcs'' and ''/wayback''

Relaese test Wayback

Execute step '''1-3''' of the quick start manual.

Download NetarchiveSuite from trunk (after code freeze) and make wayback war file:''

The following commands can be run directly from a terminal. *remember to change the text in bold.

$ svn checkout --username developername https://gforge.statsbiblioteket.dk/svn/netarchivesuite/trunk/ ~/netarchivesuite_trunk/

$ cd ~/netarchivesuite_trunk/

$ wget http://downloads.sourceforge.net/project/archive-access/wayback/1.4.2/wayback-1.4.2.tar.gz?use_mirror=dfn -O wayback-1.4.2.tar.gz

$ tar xzf wayback-1.4.2.tar.gz

$ ant jarfiles

$ ant -f wayback.build.xml warfile

Download Apache Tomcat http://tomcat.apache.org/, version 6.XX is recommended. And prepare wayback webapp.

Download and unpack Tomcat to ~/tomcat/

$ mv ROOT.war ~/tomcat/webapps/

Make sure Tomcat loads conf/wayback/settings.xml. This can be done my add the following line to ~/tomcat/bin/catalina.sh

CATALINA_OPTS='-Ddk.netarkivet.settings.file=~/tomcat/webapps/ROOT/WEB-INF/settings.xml'

Make ARC and CDX files and setup standalone archive.

Make CDX files

$ ./wayback/bin/{warc-/arc--indexer} [-identity] PATH [CDX_PATH]

Sort cdx files, eg. by using the sort command in linux, and move the sorted file to /wayback/file.sorted.cdx

Move ARC files to /arcs/filedir/

Start an local JMS broker with username 'admin' and password 'admin'.

$ mkdir ~/standalone

$ ant releasezipball

$ cp ~/netarchivesuite_trunk/conf/wayback/standalone_archive.xml ~/standalone/

Change relevant settings in standalone/standalone_archive.xml like deployGlobal.thisPhysicalLocation.deployInstallDir and deployGlobal.thisPhysicalLocation.deployMachineUserName.

$ cp ~/netarchiveiute_trunk/NetarchiveSuite.zip ~/standalone

$ cd ~/standalone/

Downlad RunNetarchiveSuite.sh from http://netarchive.dk/suite/Installation_Manual_3.10/AppendixC?action=AttachFile&do=get&target=RunNetarchiveSuite.sh and save it in ~/standalone/

$ ./RunNetarchiveSuite.sh NetarchiveSuite.zip standalone_archive.xml STANDALONE

Start Tomcat and browse the archive

$ cd ~/tomcat/

$ ./bin/startup.sh

Goto http://localhost:8080/wayback in a browser and browser some material the the ARC/CDX files.

Clean up things

Stop Tomcat: $ ~/tomcat/

$ ./bin/shutdown.sh

Stop archive: $ cd ~/standalone/STANDALONE/

$ ./killall_NATIONAL_LIBRARY.sh

Remove Stuff

$ rm -r ~/tomcat/

$ rm -r ~/standalone

$ rm -r ~/netarchiveiute_trunk

Optional remove /arcs and /wayback

TEST12 (last edited 2011-08-23 11:47:25 by JonasFrellesen)