-
Notifications
You must be signed in to change notification settings - Fork 7
Installation: fits
afred edited this page Jun 18, 2014
·
21 revisions
FITS retrieves xml metadata from the files you upload to HydraDAM, which allows you to harvest pre-existing metadata such as the file type.
- Change to the install directory.
mkdir -p /opt/install && cd /opt/install
- Get FITS.
wget http://fits.googlecode.com/files/fits-0.6.2.zip
-
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/
-
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
- Confirm FITS.
fits
# The output should state “Invalid CLI options” and the fits usage notes.
- 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.
Proceed to Clone the git repo & install gems or return to the Overview page.