Skip to content
afred edited this page Jun 18, 2014 · 21 revisions

Notes

FITS retrieves xml metadata from the files you upload to HydraDAM, which allows you to harvest pre-existing metadata such as the file type.

Steps

  1. Change to the install directory.
mkdir -p /opt/install && cd /opt/install
  1. Get FITS.
wget http://fits.googlecode.com/files/fits-0.6.2.zip
  1. Install fits.sh.

    unzip fits-0.6.2.zip  
    sudo chmod +x fits-0.6.2/fits.sh  
    sudo cp -r fits-0.6.2/* /usr/local/bin/  
  2. Simlink FITS to fits.sh

sudo ln -s /usr/local/bin/fits.sh /usr/local/bin/fits

The final output for the steps above should look similar to this (with the ... indicating system generated code that has been intentionally left out of these instructions):

[your_username@ip ~]$ mkdir -p /opt/install && cd /opt/install
[your_username@ip install]$ wget http://fits.googlecode.com/files/fits-0.6.2.zip
--2014-02-01 15:32:07--  http://fits.googlecode.com/files/fits-0.6.2.zip
Resolving fits.googlecode.com... 74.125.142.82, 2607:f8b0:400d:c06::52
Connecting to fits.googlecode.com|74.125.142.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 51140408 (49M) [application/zip]
Saving to: “fits-0.6.2.zip”

100%[======================================>] 51,140,408  15.3M/s   in 3.8s

2014-02-01 15:32:11 (12.9 MB/s) - “fits-0.6.2.zip” saved [51140408/51140408]

[your_username@ip install]$ unzip fits-0.6.2.zip
Archive:  fits-0.6.2.zip
  creating: fits-0.6.2/
  creating: fits-0.6.2/lib/
  creating: fits-0.6.2/lib/droid/
# ...
[your_username@ip install]$ sudo cp -r fits-0.6.2/* /usr/local/bin/
[your_username@ip install]$ sudo ln -s /usr/local/bin/fits.sh /usr/local/bin/fits
[your_username@ip install]$ fits
Invalid CLI options
usage: fits
 -h         print this message
 -i <arg>   input file or directory
 -o <arg>   output file
 -r         process directories recursively when -i is a directory
 -v         print version information
 -x         convert FITS output to a standard metadata schema
 -xc        output using a standard metadata schema and include FITS xml

Verification Steps

  1. Confirm FITS.
fits

# The output should state “Invalid CLI options” and the fits usage notes.
  1. Test your FITS installation on the test.jpg you created when you tested FFmpeg.
fits –i test.jpg

# This should return a bunch of xml about your screenshot.

Next Step

Proceed to Clone the git repo & install gems or return to the Overview page.

Clone this wiki locally