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

Environment setup

Make sure iptables have the following rules

*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [115:11795]
-A INPUT -p tcp -m multiport --ports 18080 -m comment --comment "110 allow matterhorn access" -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -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
COMMIT

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
wget http://www-us.apache.org/dist/tomcat/tomcat-7/v7.0.70/bin/apache-tomcat-7.0.70.zip
unzip apache-tomcat-7.0.70.zip
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 http://lucene.apache.org/solr/mirrors-solr-latest-redir.html

Extract the installation script

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

Install Solr as solr user

sudo bash ./install_solr_service.sh 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.

wget http://yumrepo-public.library.northwestern.edu/red5-1.0.1.tar.gz
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 https://raw.github.com/avalonmediasystem/avalon-installer/master/modules/red5/templates/red5_init_script.erb -O red5_init_script.sh
mv red5_init_script.sh /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