Skip to content

Image Server Setup Fedora (AMD64)

Johannes Schachner edited this page Mar 13, 2022 · 1 revision

Setup

yum install ImageMagick libnsl
yum upgrade
wget http://131.130.131.9/download/djatoka.dist.tgz
cd /opt
tar -xf /root/djatoka.dist.tgz
mv djatoka.dist djatoka
adduser djatoka
chown -R djatoka:djatoka djatoka

Testing functionality

  • check basic functionality of djatoka using image magick components:
    cd /opt/djatoka/adore-djatoka-1.1/bin
    ./compress.sh -i ../etc/test.jpg -o ../etc/test.jp2
    ./extract.sh -i ../etc/test.jp2 -o ../etc/test-size1.jpg -l 1
    Verify that ../etc/test-size1.jpg exists and can be opened using an image viewer.
  • start djatoka server
    /opt/djatoka/adore-djatoka-1.1/bin/tomcat.sh start
  • check importing rountine:
    copy a tif-Image to data/import
    /usr/bin/curl "http://localhost:8080/jacq-servlet/ImageServer?id=1234&method=importImages&key=<your_key>"
    check if tif-image is now in archive and jp2-image is in resources

APACHE redirect

yum install httpd

  • now make a file (eg. djatoka.conf) in /etc/httpd/conf.d with
    <VirtualHost *:80>
        ProxyRequests On
        ProxyPass /djatoka/ http://localhost:8080/
        ProxyPassReverse /djatoka/ http://localhost:8080/
    </VirtualHost>
  • finalize by restarting APACHE
    systemctl restart httpd
Clone this wiki locally