Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Installing jod on Ubuntu. Based on the Docker configuration available at
Install Oracle JDK7
cd /opt
wget -O ''
#unzip -d /usr/local/src
unzip -d /opt
# edit /opt/jodconverter-tomcat-2.2.2/bin/ and make sure the JAVA_HOME variable points to the JDK 7
# Example: JAVA_HOME=/usr/lib/jvm/java-7-oracle
#ln -s /usr/local/src/jodconverter-tomcat-2.2.2/bin/ /usr/bin/jod
ln -s /opt/jodconverter-tomcat-2.2.2/bin/ /usr/bin/jod
# /usr/local/src/jodconverter-tomcat-2.2.2/webapps/converter/WEB-INF
cd /opt/jodconverter-tomcat-2.2.2/webapps/converter/WEB-INF
wget -O applicationContext.xml
cd /opt/jodconverter-tomcat-2.2.2/conf
# edit server.xml and change ports if needed
cd /opt/jodconverter-tomcat-2.2.2/bin/
wget -O start-jod
chmod +x start-jod
ln -s /opt/jodconverter-tomcat-2.2.2/bin/start-jod /usr/bin/start-jod
# edit start-jod and add **#!/bin/sh** in the first line
# also change the libreoffice path if needed
# /opt/libreoffice5.1/program/soffice
In my tests, the best LibreOffice version I found was 5.1
So, in order to download and install it, follow the steps bellow:
tar xf LibreOffice*.tar.gz
cd "$(find . -type d -name "LibreOffice*")"
rm *gnome-integration*.deb &&\
rm *kde-integration*.deb &&\
rm *debian-menus*.deb &&\
sudo dpkg -i *.deb
## In the Alfresco side:
Build the project
Follow the installation as described in the project's page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment