Page tree

Versions Compared

Key

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

...

Code Block
% hostname
avalon.dev
% cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 avalon.dev

Add the NUL

...

repository 
Anchor
NUL
NUL

Create the NUL repository config file:

...

Code Block
yum groupinstall "Development Tools"

Install development packages for building Ruby

...

Code Block
yum install readline-devel zlib-devel libyaml-devel libffi-devel openssl-devel libxml2-devel libxslt-devel

...

Avalon uses MySQL for storing search queries, user data and roles, and as a backend back end for asynchronously sending requests to Matterhorn.

Install MySQL server 
Code Block
yum install mysql-server
service mysqld start

...

Code Block
#mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
.
..etc...
mysql>

Create a database for the Fedora Commons Repository software and add a user to it.  

...

Code Block
create database rails;
create user 'rails'@'localhost' identified by 'rails';
grant all privileges on rails.* to 'rails'@'localhost';
flush privileges;

Please see documentation for your version of MySQL Server for detailed syntax (http://dev.mysql.com/doc/refman/5.1/en/create-database.html )

Check your work and exit

Code Block
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| fedora3            |
| mysql              |
| rails              |
| test               |
+--------------------+
5 rows in set (0.00 sec)
mysql> select user, host from mysql.user;
+--------+--------------+
| user   | host         |
+--------+--------------+
| root   | 127.0.0.1    |
|        | 129.79.32.87 |
| root   | 129.79.32.87 |
|        | localhost    |
| fcrepo | localhost    |
| rails  | localhost    |
| root   | localhost    |
+--------+--------------+
7 rows in set (0.00 sec)

 

Fedora Commons repository

...


 
mysql> exit;
Bye

Please see documentation for your version of MySQL Server for detailed syntax (http://dev.mysql.com/doc/refman/5.1/en/create-database.html )


Fedora Commons repository
Download and run the fcrepo installer
Code Block
wget http://sourceforge.net/projects/fedora-commons/files/fedora/3.6.2/fcrepo-installer-3.6.2.jar/download

...


java -jar fcrepo-installer-3.6.2.jar

Enter values:

SettingValue
Installation type

...

custom
Fedora home directory

...

/usr/local/fedora

...

Fedora 

...

administrator password
fedoraPassword 
Fedora server host

...

localhost

...

Fedora application server context

...

fedora

...

Authentication 

...

requirement for 

...

API-A
false

...

SSL availability

...

true
SSL required for 

...

API-A
false

...

SSL required for 

...

API-M
true

...

Servlet engine

...

existingTomcat

...

Tomcat home

...

 directory
/usr/local/tomcat

...

Tomcat 

...

HTTP port

...

8983

...

Tomcat shutdown port

...

8005

...

Tomcat Secure 

...

HTTP port

...

8443

...

Keystore file

...

default

...

Keystore password
changeit

...

Keystore type

...

JKS
Database
mysql

...

MySQL 

...

JDBC driver

...

included

...

Database username

...

fcrepo

...

Database password

...

 

accept remaining defaults

 

...

fcrepo

accept remaining defaults then add permissions for Tomcat and restart Tomcat

Code Block
chown -R tomcat7:tomcat /usr/local/fedora

...


service tomcat restart

 

Install Red5 media server

Red5 is an open source alternative to Adobe Flash Media Server.

Code Block
useradd red5

...




wget http://red5.org/downloads/red5/1_0_1/red5-1.0.1.tar.gz

...


tar xvf red5-1.0.1.tar.gz

...


mv red5-server-1.0 /usr/local/red5

...



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

...




chown -R red5:red5 /usr/local/red5

...


chmod +x /etc/rc.d/init.d/red5

ffmpeg 

Install FFmpeg

Install prerequisite packages using yum and the NUL-public repository:

 

...

repository:

Code Block
SDL-devel
a52dec-devel 
bzip2-devel 
faad2-devel 
freetype-devel 
frei0r-plugins-devel 
gsm-devel 
imlib2-devel 
lame-devel 
libdc1394-devel
libraw1394-devel 
librtmp-devel  
libtheora-devel 
libva-devel 
libfaac-devel 
libvdpau-devel 
libstdc++-devel 
libvorbis-devel 
libvpx-devel
mediainfo  
opencore-amr-devel 
opencv-devel 
openjpeg-devel 
openssl-devel 
schroedinger-devel 
speex-devel 
texi2html
vo-aacenc-devel 
x264-devel 
xvidcore-devel 
yasm  
zlib-devel 

for the lazy:

Code Block
yum install SDL-devel 
a52dec-devel 
bzip2-devel 
faad2-devel 
freetype-devel 
frei0r-plugins-devel \
	gsm-devel 
imlib2-devel 
lame-devel  libdc1394-devel libfaac
libfaaclibraw1394-devel 
libraw1394librtmp-devel 
librtmplibtheora-devel  
libstdc++\
	libva-devel 
libvorbislibfaac-devel 
libtheoralibvdpau-devel 
libvalibstdc++-devel 
libvdpaulibvorbis-devel 
libvpx-devel \
	mediainfo   opencore-amr-devel  opencv-devel  openjpeg-devel 
openssl-devel 
schroedinger-devel \
	speex-devel 
texi2html vo-aacenc-devel  x264-devel  xvidcore-devel  yasm  
zlib-devel 

 

Install rpmdev-setuptree
Code Block
yum install rpmdevtools

 

As any non-root user, install ffmpeg srpm

...