Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • OPTIONAL:
    • clone the baseOS image as puppet-YYMMDD
  • Use the installation notes from https://github.com/avalonmediasystem/avalon-installer
    • When setting FACTER_* environment variables, set
      • FACTER_avalon_dropbox_password to "changeme"
      • FACTER_avalon_hostname to "localhost.localdomain"
  • HACK: dropbox permissions
    • add avalon to the dropbox group
    • verify that /var/avalon/dropbox is mode 2775
  • HACK: maintain permissions for dropbox
    • create script /usr/local/bin/fix_dropbox_permissions with this content:

      Code Block
      languagebash
      #!/bin/bash
      chown -R avalon:dropbox /var/avalon/dropbox
      find /var/avalon/dropbox -type f -exec chmod 664 "{}" ";"
      find /var/avalon/dropbox -type d -exec chmod 2775 "{}" ";"

      and set the mode to 755.

    • set the cronjob to run every minute by adding this line:

      Code Block
      * * * * * /usr/local/bin/fix_dropbox_permissions

...

  • OPTIONAL:
    • clone the puppet image as democontent-YYMMDD
  • Register the archivist1@example.com user in Avalon, and log in as that user.
    • this account is removed when the system is prepared for delivery.
  • Get the demo fixtures bundle

    Code Block
    cd /tmp
    wget http://avalonmediasystem.org/downloads/DemoFixturesBatch.tar.gz
    tar xvzf DemoFixturesBatch.tar.gz
    chown -R avalondrop.dropbox DemoFixturesBatch
    mv DemoFixturesBatch /var/avalon/dropbox

    Monitor progress at http://<whatever>:18080 or within Avalon.

  • Modify /var/www/avalon/current/app/views/catalog/_home_text.html.erb and replace sample content with something like:

    Code Block
    languagehtml/xml
     <ul class="thumbnails">
    	<li class="span3"><h5>Featured Video</h5><a href="<%= media_object_path('avalon:1') %>" class="thumbnail" ><%= image_tag "DemoFixturesThumbnails/400x300/organScreenshot.jpg", alt: "Featured Video" %></a></li>
    	<li class="span3"><h5>Featured Video</h5><a href="<%= media_object_path('avalon:2') %>" class="thumbnail" ><%= image_tag "DemoFixturesThumbnails/400x300/lunchroom_manners.jpg", alt: "Featured Video" %></a></li>
    	<li class="span3"><h5>Featured Audio</h5><a href="<%= media_object_path('avalon:3') %>" class="thumbnail" ><%= image_tag "DemoFixturesThumbnails/400x300/gustav_mahler.jpg", alt: "Featured Audio" %></a></li>
    </ul>

    Thumbnail images can be downloaded from http://avalonmediasystem.org/downloads/DemoFixturesThumbnails.tar.gz and should be unpacked into /var/www/avalon/current/app/assets/images.  The values "avalon:1" to "avalon:3" should be changed to the appropriate container IDs.

  • Reload the avalon application by running

    Code Block
    touch /var/www/avalon/current/tmp/restart.txt

    and verify the changes are correct.

  • Fix the section titles of the audio example:

    • edit the item

    • click on the "Manage Files" tab
    • change the filenames to "CD 1" (for agz3068a.wav) and "CD 2" (for agz3068b.wav)
    • click Save
  • Fix access permissions on all three items:
    • edit each item
      • click on the "Access Control" tab
      • click on the "Available to the general public" radio button
      • click Save
      • Click the 'Publish" button if it is available on the item view (Lunchroom Manners).
  • Remove source data

    Code Block
    rm /tmp/DemoFixturesBatch.tar.gz
    rm -rf /var/avalon/dropbox/DemoFixturesBatch

...