Page tree

Versions Compared

Key

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

...

  • Using VirtualBox:
    • 1 Core
    • 3G RAM
    • 500G System Disk (VDI, Dynamically Allocated)
    • Set network to "Attached to Bridged Adapter"

Base OS Install

  • Centos 6.4 x86-64
  • English language and keyboard
  • hostname: localhost.localdomain (the default)
    • if it is localhost it should set it to the dhcp hostname provided.
  • eth0:
    • Clear "Device MAC address"
    • Connect automatically
    • IPv4 Settings
      • Automatic (DHCP)

  • set timezone to america/indiana/indianapolis, clock uses utc
  • root password is 'changeme'
  • partitioning:
    • custom layout
      • /dev/sda1:  500M ext4 mounted as /boot
      • /dev/sda2:  (remainder of disk) Physical volume
      • Volume Group:  vg_avalon
        • PVs: /dev/sda2
        • LV lv_swap 2G
        • LV lv_root (remainder of disk) ext4 mounted as /
  • Desktop install
  • Reboot / Firstboot
    • Leave all of the defaults, except...
    • Do Not create a new user
  • Log in as root
    • do not check "do not show me this again" to the "you are running as root" dialog.  Just close it.
    • yum update
    • open these ports in the firewall:
      • tcp/22
      • tcp/80
      • tcp/1935
      • tcp/18080
    • clean up eth0 configuration in /etc/sysconfig/network-scripts/ifcfg-eth0:
      • remove UUID
      • remove any DHCP_CLIENT_ID
  • OPTIONAL:
    • shut down the VM
    • at this point the vm is at "baseOS" and can be used as a cloning point
Note

There is a bug in virtual box VirtualBox with IPv6 handling over a bridged network.  When the bug is present the top transfer speeds for IPv6 are around 18kb/s.  Since RHEL (and derivatives) prefer IPv6 when looking up hosts, it is not uncommon to get an IPv6 host address for updates.  To disable IPv6 on the guest add these lines to /etc/sysctl.conf.  VirtualBox 4.2.12 was supposed to fix it but I'm not sure it has.

Code Block
net.ipv6.conf.all.disable_ipv6 = 1
 netnet.ipv6.conf.default.disable_ipv6 = 1

...

  • 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

Demo Content

  • OPTIONAL:
    • clone the puppet image as democontent-YYMMDD
  • Get the demo fixtures bundle

    Code Block
    cd /tmp
    wget http://dlib.indiana.edu/~cjcolvar/DemoFixturesBatch.tar.gz     #We need a better place to serve this from
    tar xvzf DemoFixturesBatch.tar.gz
    chown -R avalondrop.dropbox DemoFixturesBatch
    mv DemoFixturesBatch /var/avalon/dropbox

    Monitor progress at http://<whatever>:18080.  

  • 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 "thumbnail.name.pngDemoFixturesScreens/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 "thumbnail.name.pngDemoFixturesScreens/400x300/lunchroom_manners.jpg", alt: "Featured Video" %></a></li>
    	<li class="span3"><h5>Featured Video<Audio</h5><a href="<%= media_object_path('avalon:3') %>" class="thumbnail" <%= image_tag "thumbnail.name.pngDemoFixturesScreens/400x300/gustav_mahler.jpg", alt: "Featured VideoAudio" %></a></li>
    </ul>

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

  • 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:
  • Remove source data

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

...