Differences between revisions 3 and 4
Revision 3 as of 2009-11-04 15:35:22
Size: 1827
Editor: HenrikKirk
Comment:
Revision 4 as of 2009-11-05 08:41:16
Size: 2277
Editor: HenrikKirk
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Download NetarchiveSuite from trunk (after code freeze) and make wayback war file. Execute step '''1-3''' of the quick start manual.

''
Download NetarchiveSuite from trunk (after code freeze) and make wayback war file:''
Line 5: Line 7:
''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 7: Line 9:
''cd netarchivesuite_trunk/'' ''$ cd netarchivesuite_trunk/''
Line 9: Line 11:
''mkdir wayback'' ''$ mkdir wayback''
Line 11: Line 13:
''wget http://downloads.sourceforge.net/project/archive-access/wayback/1.4.2/wayback-1.4.2.tar.gz?use_mirror=dfn -O wayback/wayback-1.4.2.tar.gz'' ''$ 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''
Line 13: Line 15:
''ant jarfiles'' ''$ tar xzf wayback-1.4.2.tar.gz''
Line 15: Line 17:
''ant -f wayback.build.xml warfile'' ''$ ant jarfiles''
Line 17: Line 19:
''$ ant -f wayback.build.xml warfile''
Line 18: Line 21:
cp ~/wayback/bin/wayback-webapp-1.4.1.war ./wayback Download Apache Tomcat http://tomcat.apache.org/, version 6.XX is recommended.

''$ mv ROOT.war '''tomcat_root_dir'''/webapps/''

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

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

---------------------

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/

$ mkdir wayback

$ 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.

$ mv ROOT.war tomcat_root_dir/webapps/

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

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


# create suiteble settings.xml $ cp settings.xml wayback/prod/conf/settings_0.8.xml

  • # jms broker
  • # server # username/userpassword

$ ant -f warback.build.xml warfile

$ cd /tmp/wayback/ $ mkdir files1; mkdir files2

# populate index

  • # place these sorted cdx'es according to CDXcollection.xml see further down.

# make sure you have acces to a JMS broker and a arc repository

  • # local archive
  • # edit standalone_archive.xml
    • # place arc files in 'archive path' + /filedir/

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

hent en tomcat 6.0.20 cd tomcat $ cp ~/netarchive_suite/trunk/ROOT.war $TOMCAT/webapps/

# edit CDXCollection.xml $ cd $TOMCAT/webapps/ROOT/ # include in load path eg. by inserting in ./bin/catalina.sh CATALINA_OPTS='-Ddk.netarkivet.settings.file=~/settings.xml' in first line $ emacs CDXCollection.xml $ edit wayback.xml - make sure that port and URL is corresponding with server

# fire up localhost:8080/wayback/ in local browser $ cd $TOMCAT/ $ ./bin/startup.sh # *maybe need to copy tools.jar into tomcat/lib/

attachment:wayback_netarchivesuite_settings.tar

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