Child pages
  • How to install DOMS system for kulturarvs-DEVEL or on your own machine
Skip to end of metadata
Go to start of metadata

The quick and dirty guide to installing the different DOMS-system-components on DEVEL or for monkey-testing on your own machine.

Please let each step finish before continuing to the next.

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

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

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

    Continue with  files/preingester/2008, files/preingester/2009 and files/preingester/2010  if you need more objects in the DOMS. If you need a quick ingest, do  cd files/preingester/2007 ; ls -1 | grep -v 00-00_dr1 | xargs rm ; cd ../../..  just before the ingest.

Install DigiTV

    Not needed for monkey-testing (pre-ingested objects for testing included in the above).

Install IP Rolemapper
 cd ~/domsmonkeytest ; scp fedora@alhena:/fedora/DomsReleases/iprolemapping/0.0.7/ ./ ; unzip 
 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/ 
 cd ~/domsmonkeytest/develtestbed/tomcat/conf/Catalina/localhost/ ; gedit context.xml.default 

    before </Context> insert

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

 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)

 cp ~/domsmonkeytest/ipRoleMapping-0.0.7/wars/iprolemapping.war ~/domsmonkeytest/develtestbed/services/webapps/ 
 cd ~/domsmonkeytest/develtestbed/tomcat/bin ; ./ 

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

Install Summa backend
 cd ~/domsmonkeytest ; svn co "" summarise
 cd summarise/sites/doms ; bin/ ; mkdir data index suggest ; DEBUG=1 bin/ -v ; bin/ -v
 gedit config/storage_doms.xml

    below DOMSWebserviceURL define instead


    and save the file.

 bin/ ; 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.

 DEBUG=1 bin/



Ingest + index (update)

DEBUG=1 bin/ 

Ingest + index (test = 50 records only)

DEBUG=1 bin/
DEBUG=1 bin/

Test front end (search for "*"): http://localhost:57308/doms/


Install Wowza with plugins

Install VLC by downloading it at and follow the installation instructions for the relevant OS on the page. (See if you already have VLC with a vlc --version)
Install Wowza Streaming Server:

  1. Get a license key by filling the form
  2. Install Wowza version 2.2.3
    1. On OSX
      1. Get the install package

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

         scp wowza@iapetus:/home/wowza/releases/binary_packages/ ~/Download
         scp wowza@iapetus:/home/wowza/releases/binary_packages/ ~/Download
      2. Then install the package:

        cd ~/Download ; sudo chmod +x
        sudo ./
Install Wowza plugin
  1. On OSX
    1. Shutdown Wowza

    2. Save previous configurations (OSX)

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

      scp fedora@alhena:/fedora/DomsReleases/wowzaplugin/1.0rc4/ ~/Download/
    4. Extract:

      unzip ~/Download/ -d ~/tmp
    5. Deploy

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

    7. Start Wowza

  1. On Linux
    1. Shutdown Wowza

      cd /usr/local/WowzaMediaServer-2.2.3/bin/ ; ./
    2. Save previous configurations

      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

      scp fedora@alhena:/fedora/DomsReleases/wowzaplugin/1.0rc4/ ~/Download/
    4. Extract:

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

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

      sudo gedit /usr/local/WowzaMediaServer-2.2.3/conf/doms/

          replace the two relevant lines with

      sudo gedit /usr/local/WowzaMediaServer-2.2.3/conf/domslive/ 

          replace the two relevant lines in the same way.

    7. Start Wowza

      cd /usr/local/WowzaMediaServer-2.2.3/bin/ ; ./
Install BES


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

  1. Checkout domsportal module

    cd ~/domsmonkeytest ; svn co "" domsportal
    cd domsportal
  1. Get needed libraries

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

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

    ant tomcat.stop
  • No labels