Child pages
  • How to install DOMS system for kulturarvs-DEVEL or on your own machine

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: bash syntax for all code blocks

...

Clean up an existing monkey-test install (if it exists)
Code Block
languagebash
 cd ~/domsmonkeytest/summarise/sites/doms ; bin/stop_resident.sh ; cd ../../../ ; rm -rf summarise 
Code Block
languagebash
 cd ~/domsmonkeytest/develtestbed/tomcat/bin ; ./shutdown.sh 

    Wait for Tomcat to disappear from a   ps ax | grep tomcat

Code Block
languagebash
 cd ~/ ; rm -rf domsmonkeytest 
Install DOMS core (including Ingester)
Code Block
languagebash
 cd ~/ ; mkdir -p domsmonkeytest ; cd domsmonkeytest 
Code Block
languagebash
 scp fedora@alhena:/fedora/develkulturarv/testbed-0.10.22-testbed+ingester.zip .
Code Block
languagebash
 unzip testbed-0.10.22-testbed+ingester.zip ; cd testbed-0.10.22/bin ; ./install.sh ../../develtestbed
Code Block
languagebash
 cd ../../develtestbed/ingester/radio-tv-0.0.6 ; bash bin/ingest.sh -h files/preingestfiles/2007

...

Install IP Rolemapper
Code Block
languagebash
 cd ~/domsmonkeytest ; scp fedora@alhena:/fedora/DomsReleases/iprolemapping/0.0.7/ipRoleMapping-0.0.7-bin.zip ./ ; unzip ipRoleMapping-0.0.7-bin.zip 
Code Block
languagebash
 mkdir ~/domsmonkeytest/develtestbed/services/conf/iprolemapper ; cp ~/domsmonkeytest/ipRoleMapping-0.0.7/data/ipRoleMappingService/ipRangesAndRoles.xml ~/domsmonkeytest/develtestbed/services/conf/iprolemapper/ ;
 cp ~/domsmonkeytest/ipRoleMapping-0.0.7/data/ipRoleMappingService/log4jproperties.xml ~/domsmonkeytest/develtestbed/services/conf/iprolemapper/ 
Code Block
languagebash
 cd ~/domsmonkeytest/develtestbed/tomcat/conf/Catalina/localhost/ ; gedit context.xml.default 

    before </Context> insert

Code Block
languagebash
    <!-- IP role mapper -->
    <Parameter name="dk.statsbiblioteket.doms.iprolemapper.webservice.IPRoleMapperService.configurationFile"
               value="${user.home}/domsmonkeytest/develtestbed/services/conf/iprolemapper/ipRangesAndRoles.xml" override="false"/>
    <Parameter name="dk.statsbiblioteket.doms.iprolemapper.log4jConfigurationFilePath"
               value="${user.home}/domsmonkeytest/develtestbed/services/conf/iprolemapper/log4jproperties.xml" override="false"/>

    and save the file.

Code Block
languagebash
 cd ~/domsmonkeytest/develtestbed/services/conf/iprolemapper ; gedit ipRangesAndRoles.xml 

    remove all iprange elements, except the last. Change both begin- and end-IPs to your own IP (which you find with ifconfig)

Code Block
languagebash
 cp ~/domsmonkeytest/ipRoleMapping-0.0.7/wars/iprolemapping.war ~/domsmonkeytest/develtestbed/services/webapps/ 
Code Block
languagebash
 cd ~/domsmonkeytest/develtestbed/tomcat/bin ; ./shutdown.sh 

    Wait for Tomcat to disappear from a   ps ax | grep tomcat

Code Block
languagebash
 ./startup.sh 
Install Summa backend
Code Block
languagebash
 cd ~/domsmonkeytest ; svn co "https://merkur.statsbiblioteket.dk/svn/summarise/trunk" summarise
 cd summarise/sites/doms ; bin/synchronize.sh ; mkdir data index suggest ; DEBUG=1 bin/setup.sh -v ; bin/deploy.sh -v
 gedit config/storage_doms.xml

    below DOMSWebserviceURL define instead

Code Block
languagebash
 http://localhost:7880/centralWebservice-service/central/?wsdl 

    and save the file.

Code Block
languagebash
 bin/start_resident.sh ; cd ~/domsmonkeytest/summarise/sites/doms/ ; ls -als log/*fatal* 

    if any of the listed fatal-logs are of non-zero size, repeat the start_resident line above and check again.

Code Block
languagebash
 bin/ingest_full.sh
 DEBUG=1 bin/index_full.sh

 

  

 

Install Wowza with plugins

...

  1. Get a license key by filling the form http://www.wowzamedia.com/pro10s.php
  2. Install Wowza version 2.2.3
    1. On OSX
      1. Get the install package

        Code Block
        languagebash
         scp wowza@iapetus:/home/wowza/releases/binary_packages/WowzaMediaServer-2.2.3.dmg ~/Download
      2. Double click the installer and follow the on-screen instructions
    2. On Linux
      1. Get the install package for either as a Debian or RPM package (Warning: the DEB installer will overwrite prior versions.)

        Code Block
        languagebash
         scp wowza@iapetus:/home/wowza/releases/binary_packages/WowzaMediaServer-2.2.3.deb.bin.sh ~/Download
        Code Block
        languagebash
         scp wowza@iapetus:/home/wowza/releases/binary_packages/WWowzaMediaServer-2.2.3.rpm.bin.sh ~/Download
      2. Then install the package:

        Code Block
        languagebash
        cd ~/Download ; sudo chmod +x WowzaMediaServer-2.2.3.deb.bin.sh
        sudo ./WowzaMediaServer-2.2.3.deb.bin.sh
Install Wowza plugin
  1. On OSX
    1. Shutdown Wowza

      Code Block
      languagebash
      /Library/WowzaMediaServer-2.2.3/bin/shutdown.sh
    2. Save previous configurations (OSX)

      Code Block
      languagebash
      cp -r /Library/WowzaMediaServer-2.2.3/conf/doms ~/tmp
      cp -r /Library/WowzaMediaServer-2.2.3/conf/domslive ~/tmp
    3. Fetch release package

      Code Block
      languagebash
      scp fedora@alhena:/fedora/DomsReleases/wowzaplugin/1.0rc4/doms-wowza-install-package-1.0rc4.zip ~/Download/
    4. Extract:

      Code Block
      languagebash
      unzip ~/Download/doms-wowza-install-package-1.0rc4.zip -d ~/tmp
    5. Deploy

      Code Block
      languagebash
      cp -r ~/tmp/DOMS-Wowza-plugin-1.0rc2_install-package /Library/WowzaMediaServer-2.2.3/
    6. Update configuration in the files

      Code Block
      languagebash
      /Library/WowzaMediaServer-2.2.3/conf/doms/doms-wowza-plugin.properties
      Code Block
      languagebash
      /Library/WowzaMediaServer-2.2.3/conf/domslive/domslive-wowza-plugin.properties 
    7. Start Wowza

      Code Block
      languagebash
      /Library/WowzaMediaServer-2.2.3/bin/startup.sh
  1. On Linux
    1. Shutdown Wowza

      Code Block
      languagebash
      cd /usr/local/WowzaMediaServer-2.2.3/bin/ ; ./shutdown.sh
    2. Save previous configurations

      Code Block
      languagebash
      cp -r /usr/local/WowzaMediaServer-2.2.3/conf/doms ~/tmp
      cp -r /usr/local/WowzaMediaServer-2.2.3/conf/domslive ~/tmp
    3. Fetch release package

      Code Block
      languagebash
      scp fedora@alhena:/fedora/DomsReleases/wowzaplugin/1.0rc4/doms-wowza-install-package-1.0rc4.zip ~/Download/
    4. Extract:

      Code Block
      languagebash
      mkdir ~tmp/doms-wowza-install-package-1.0rc4 ; unzip ~/Download/doms-wowza-install-package-1.0rc4.zip -d ~/tmp/doms-wowza-install-package-1.0rc4/
    5. Deploy

      Code Block
      languagebash
      sudo cp -r ~/tmp/doms-wowza-install-package-1.0rc4/* /usr/local/WowzaMediaServer-2.2.3/
    6. Update configuration in the files

      Code Block
      languagebash
      sudo gedit /usr/local/WowzaMediaServer-2.2.3/conf/doms/doms-wowza-plugin.properties

          replace the two relevant lines with

      Code Block
      languagebash
      ticketInvalidFile=${com.wowza.wms.context.VHostConfigHome}/usr/local/WowzaMediaServer-2.2.3/data/rck_10mins.flv
      ticketCheckerLocation=http://localhost:7880/authchecker
      
      Code Block
      languagebash
      sudo gedit /usr/local/WowzaMediaServer-2.2.3/conf/domslive/domslive-wowza-plugin.properties 

          replace the two relevant lines in the same way.

    7. Start Wowza

      Code Block
      languagebash
      cd /usr/local/WowzaMediaServer-2.2.3/bin/ ; ./startup.sh
Install BES

...

Install Web frontend
  1. Setup configuration for the web frontend. Edit file ${user.home}/kultur.properties with the following content

    Code Block
    languagebash
    summasearch=http://localhost:57308/doms/search/services/SearchWS?wsdl
    summastorage=http://localhost:57308/doms/storage/services/StorageWS?wsdl
    
    iprolemapping=http://localhost:7950/iprolemapping/
    authchecker=http://localhost:7880/authchecker-service/
    
    broadcastservice=http://localhost:9311/bes_DEVEL/
    broadcastserviceextraction=http://localhost:9311/bes_DEVEL_EXTRACTION/
    
  1. Checkout domsportal module

    Code Block
    languagebash
    cd ~/domsmonkeytest ; svn co "https://merkur.statsbiblioteket.dk/svn/domsportal/trunk" domsportal
    Code Block
    languagebash
    cd domsportal
  1. Get needed libraries

    Code Block
    languagebash
    ant getLibs
  1. Compile and run in local tomcat on port 7070

    Code Block
    languagebash
    ant tomcat.start
  1. Open in browser: http://localhost:7070/kultur/
  1. When done stop tomcat

    Code Block
    languagebash
    ant tomcat.stop