Skip to content
phebal edited this page Aug 12, 2016 · 7 revisions

Increase /tmp size

Rack usess /tmp to store content of uploaded file. Newer distros use tmpfs for /tmp and it's limited to half of physical memory. To increase its size edit /etc/fstab:

none /tmp tmpfs size=8G 0 0

Increase jetty header buffer

Add to jetty.xml:

<Call name="addConnector">
  <Arg>
    <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
      ...
      <Set name="requestHeaderSize">16192</Set>
      ...

Adding a field

https://github.com/projecthydra/sufia/issues/904

File Characterization

Make sure to prepend ot the deploy user's PATH to /home/deploy/bin.

ffmpeg

https://trac.ffmpeg.org/wiki/CompilationGuide/Centos For AAC support needs to be compiled from source

ImageMagic

To get jp2 support see below and follow http://www.imagemagick.org/script/install-source.php#unix and http://www.imagemagick.org/script/advanced-unix-installation.php Pull build dependencies with sudo yum install ImageMagick-devel

sudo yum install openjpeg2-devel
./configure --prefix=/home/deploy/local --with-gslib --with-jp2 --with-perl --enable-shared --with-module
make -j2
sudo make install
sudo ldconfig /home/deploy/local/lib/
ln -sf /home/deploy/local/bin/* /home/deploy/bin/
hash -r

Libreoffice

Install:

libreoffice-headless
libreoffice