install.sh 546 B

123456789101112131415161718
  1. echo "# Installing Maven"
  2. apt-get update
  3. apt-get -y -q install default-jdk maven unzip
  4. echo "# Installing Tika"
  5. mkdir install
  6. curl https://codeload.github.com/apache/tika/zip/trunk -o trunk.zip
  7. unzip trunk.zip
  8. cd tika-trunk
  9. mvn -DskipTests=true clean install
  10. cp tika-server/target/tika-server-1.*-SNAPSHOT.jar /srv/tika-server-1.*-SNAPSHOT.jar
  11. echo "#Installing tesseract"
  12. apt-get -y -q install tesseract-ocr tesseract-ocr-deu tesseract-ocr-eng
  13. echo "# Cleaning up"
  14. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /setup /build