Install Razuna on Linux


#1

Linux

Razuna has been tested on Ubuntu (Server) 10.x, 11.x and 12.x. Thought there is nothing against running it on older versions as well. Furthermore, we’ve tested it with RedHat 6.x and CentOS 5.x & 6.x.

Install Java

If you haven’t installed Java already, then please issue the following command below.

Ubuntu
apt-get install software-properties-common
apt-get install python-software-properties
apt-add-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java8-installer

RedHat 6.x

cd /opt
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u75-b13/jdk-7u75-linux-x64.tar.gz"
tar xzf jdk-7u75-linux-x64.tar.gz
 
alternatives --install /usr/bin/java java /opt/jdk1.8.0_66/bin/java 2
alternatives --config java

Edit environment variables

Not a installation requirement per se, but we’ve seen that some Ubuntu servers throw environment variables errors. Simply edit the /etc/environment file and add:

Ubuntu
JAVA_HOME=/usr/lib/jvm/java-8-oracle

Make sure to have /urs/local/bin in your PATH environment as well!

Install Ghostscript

Ghostscript
Do not install Ghostscript with packages anymore as they are outdated. Follow the instructions below to install Ghostscript.

wget http://downloads.ghostscript.com/public/binaries/ghostscript-9.15-linux-x86_64.tgz
tar xzvf ghostscript-9.15-linux-x86_64.tgz
cd /usr/bin/
mv gs gs--
ln -s /opt/ghostscript-9.15-linux-x86_64/gs-915-linux_x86_64 gs

If you rather compile from source you can download the latest version Ghostscript at http://ghostscript.com/releases/. Note: You need to download the source and not the pre-packaged one!

After unpacking follow it with a:

./configure

and a:

make && make install

Make a symbolic link in “/usr/bin” for Ghostscript with:

ln -s /usr/local/bin/gs /usr/bin/gs

Install ImageMagick

Get the latest version from http://www.imagemagick.org. Then install or check that all the needed libraries are installed with:

On most systems you should be able to do a simple:

Ubuntu
apt-get install imagemagick

or for RedHat

RedHat
yum install ImageMagick

Install ImageMagick from source

If you need to install from source you can follow the steps below:

yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel

Then configure ImageMagick with (command should be on one line):

configure --prefix=/usr/local --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes \
--with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes

Followed by a:

make && make install

If all worked well you should see something like this when issuing the command:

convert --version
Version: ImageMagick 6.5.7-5 2009-11-08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

Install FFMpeg

Please visit the dedicated pages FFmpeg installation pages:

FFmpeg Installation for Ubuntu
FFMpeg Installation on CentOS and RedHat

Install Exiftool

Go to http://owl.phy.queensu.ca/~phil/exiftool/ and download the latest version.

Once downloaded all you need to do is:

perl Makefile.PL
make
make test
make install

(Each line is a separate command)

Note: Some Perl installations may not contain the necessary files to complete the first step above. But no worries: You can install ExifTool manually by moving ‘exiftool’ and the ‘lib’ directory to any directory in your current PATH (ie. /usr/bin). More information is available over at http://owl.phy.queensu.ca/~phil/exiftool/.

Install DCRaw & ufraw (optional)

Razuna is able to work with RAW images from different digital cameras. In order for Razuna to work with RAW images you will need to install “DCRAW” and “ufraw”. To install those two libraries either download and compile them install them from your distribution repositories. Under Ubuntu this is done with:

Ubuntu
apt-get install dcraw
apt-get install ufraw

RedHat

yum install dcraw

Install MP4Box (optional)

MP4Box helps with automatic streaming for certain videos. It is part of the gpac package. Install it with:

Ubuntu

apt-get install gpac

RedHat

yum install gcc
yum install zlib*
yum install freeglut.x86_64  freeglut-devel.x86_64
wget http://repo.bstack.net/mp4box/gpac-0.4.5.tar.gz
wget http://repo.bstack.net/mp4box/gpac_extra_libs-0.4.5.tar.gz
tar -zxvf gpac-0.4.5.tar.gz
tar -zxvf gpac_extra_libs-0.4.5.tar.gz
mkdir /usr/local/src/gpac
mkdir /usr/local/src/gpac/extra_lib
cd gpac_extra_libs
cp -r * /usr/local/src/gpac/extra_lib
cd ..
cd gpac
chmod +x configure
./configure
make lib
make apps
make install lib
make install
cp bin/gcc/libgpac.so /usr/lib

Troubleshooting

You might run into the error “MP4Box: error while loading shared libraries: libgpac.so: cannot open shared object file: No such file or directory”. Problem is that the shared library was compiled, but is not installed to /usr/local/lib. Solution is:

cd gpac
install -m644 bin/gcc/libgpac.so /usr/local/lib/libgpac.so
chmod +x /usr/local/lib/libgpac.so
ldconfig

Setup Razuna standalone

If you have not already done so, download the latest Razuna release from http://razuna.org. We recommend to extract Razuna to the “/opt” directory, but you are free to place it wherever you see fit. The Razuna standalone server comes with Tomcat pre-configured.

Start the Razuna server

The final task left to do now is to startup the application server. In order to do so, navigate to the “bin” directory of the Razuna folder (/opt/razuna/tomcat/bin/) and start the server with:

./startup.sh

Navigate to Razuna

Once the server has successfully started you should navigate to http://localhost:8080/razuna and you will be presented with the Firsttime Wizard to finish setup.


Razuna WAR Installation
#2

FFMPEG link don’t works


#3

This Java installer package archive has been discontinued.

https://launchpad.net/~webupd8team/+archive/ubuntu/java

The Oracle JDK License has changed for releases starting April 16, 2019.

The new Oracle Technology Network License Agreement for Oracle Java SE is substantially different from prior Oracle JDK licenses. The new license permits certain uses, such as personal use and development use, at no cost – but other uses authorized under prior Oracle JDK licenses may no longer be available. Please review the terms carefully before downloading and using this product. An FAQ is available here: https://www.oracle.com/technetwork/java/javase/overview/oracle-jdk-faqs.html

Oracle Java downloads now require logging in to an Oracle account to download Java updates, like the latest Oracle Java 8u211 / Java SE 8u212. Because of this I cannot update the PPA with the latest Java (and the old links were broken by Oracle).

For this reason, THIS PPA IS DISCONTINUED (unless I find some way around this limitation).