This documentation has not been updated for Release 4.0.0 yet. Please see the one host (all-in-one) Manual Installation Instructions.
Intended as guidance for production environments with different hosts for most tasks, these instructions provide a recipe for building only the Solr piece of an Avalon system from scratch on CentOS or Red Hat Enterprise Linux. Recipes for the other components for Avalon may be found here. Fedora (standalone), MySQL (standalone), Web (standalone), Red5 (standalone), and Matterhorn (standalone).
Instructions for building every component on one host (all-in-on) please see here: Manual Installation Instructions.
Ready the Installation Environment
This package has libyaml-devel which is required by ruby and not provided by Redhat.
Make sure a valid hostname is resolvable
The default hostname is “avalon.dev”, so name the machine this and enter it into /etc/hosts
The Avalon Media System requires several ports to be open to client browsers.
Here are the port settings that will need to be configured:
The preferred method is to create a shell script that will do the work for you. Here is an example script that you should look through and customize as needed: avalon-iptables-config.sh
If you're connected over ssh, it might kick you off.
Save your script to /etc/sysconfig/avalon-iptables-config.sh, make it executable and run it.
If you run into connection issues you can disable the iptables, by running "service iptables stop". This will completely drop your firewall. When finished troubleshooting run "service iptables start".
Add the NUL repository
Create the NUL repository config file:
Append the following code:
Install and place the NUL GPG key in the proper location:
Install development libraries and packages for building Ruby
Install Apache Tomcat with the nulrepo-public repository configured and enabled.
on line 70, change the Tomcat connector port from 8080 to 8983:
Add Tomcat manager user
By default, no user has access to the Tomcat Manager App.
Define a user in tomcat-users.xml with access to the manager-gui role. Below is a very basic example.
See if you can log in to the manager app at http://<server host name>:8983/manager/html
Try it out on your local machine and on another machine. If you can't reach the app from another machine, your iptables might need to be changed to allow access.
Avalon makes use of Solr through the Blacklight gem for faceting and relevance-based searching.
Download the solr tarball and unpack it
Download Solr from http://www.apache.org/dyn/closer.cgi/lucene/solr/4.2.0
Add XML configurations
Edit /etc/tomcat/Catalina/localhost/solr.xml and add
Edit /usr/local/solr/solr.xml and insert
Download and Install Avalon specific Solr files from github
If you have successfully installed Solr you should be able to access the dashboard page at http://<server host name>:8983/solr
If you can't access the dashboard, check the tomcat logs in /usr/local/tomcat/logs/. Catalina.out and localhost.<date>.log usually provide the best information.
Restarting the Server
Before you restart your Avalon server, you'll want to make sure all of the services necessary to run Avalon will start automatically after the restart. Run these commands once and you should be set: