Page tree
Skip to end of metadata
Go to start of metadata

This documentation is very out of date.  If you are looking for instructions for setting up a development environment see the quickstart docker instructions.

Environment setup

Make sure iptables have the following rules

:OUTPUT ACCEPT [115:11795]
-A INPUT -p tcp -m multiport --ports 18080 -m comment --comment "110 allow matterhorn access" -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i eth1 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 3000 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8983 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 1935 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 1111 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8134 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A INPUT -p tcp -m state --state NEW -m tcp --dport 18080 -j ACCEPT
-A FORWARD -j REJECT --reject-with icmp-host-prohibited

Install OpenJDK 8

sudo yum install java-1.8.0-openjdk-headless.x86_64

Add system user avalon

sudo useradd -r avalon

Install Fedora 4.5.1

Install Tomcat 7 version 7.0.50 or later for compatibility with JDK8.

useradd tomcat
mv apache-tomcat-7.0.70 /usr/local
cd /usr/local
ln -s apache-tomcat-7.0.70 tomcat
vim conf/server.xml # Set application port to 8984
# Add tomcat service to /etc/init.d/
service tomcat start

Download Fedora war file and put it in tomcat webapps folder.

Configure Fedora data directory

JAVA_OPTS="${JAVA_OPTS} -Dfcrepo.home=/srv/avalon/fedora4"

Install Solr 6.1

Download Solr from

Extract the installation script

tar xzf solr-6.1.0.tgz solr-6.1.0/bin/ --strip-components=2

Install Solr as solr user

sudo bash ./ solr-6.1.0.tgz -i /usr/local -d /var/avalon/solr -u solr -s solr -p 8983

Now you can use solr service

sudo service solr status

Make sure Solr works by browsing http://yourdomain:8983

Install Red5

Create a red5 user.

useradd red5

Download and install Red5.

tar xvf red5-1.0.1.tar.gz
mv red5-server-1.0 /usr/local/red5

Download the init script and add it to the init.d directory.

wget -O
mv /etc/rc.d/init.d/red5

Give Red5 permissions to the red5 directory and the init script.

chown -R red5:red5 /usr/local/red5
chmod +x /etc/rc.d/init.d/red5
  • No labels