Skip to main content
Skip table of contents

LibreOffice OpenOffice installation for censhare Service-Client

censhare uses LibreOffice/OpenOffice to preview Word and Excel documents.


Linux LibreOffice


For more information, see download latest RPM.


create install folder

CODE
{ # as corpus@application_host test -d /opt/corpus/install | mkdir -p /opt/corpus/install  }

copy LibreOffice to corpus@application_host:install/

CODE
scp ~/Downloads/LibreOffice_*.tar.gz  corpus@application_host:install/

install packages

CODE
{ # as root@application_host
pkglist="cairo-devel cups-devel libpng-devel libXinerama libSM libICE"
test -f /etc/SuSE-release && {
zypper install $pkglist
} || {
   test -f /etc/redhat-release && {
      yum install $pkglist
      } } || {
      echo "Unknown OS. Please install $pkglist."
   }
}

identify software to install

CODE
{ # as root@application_host
    cd /opt/corpus/install
      loinst=$(\ls -1tr LibreOffice*.tar.gz | tail -1); test -z "$loinst" && {
        echo "nothing found to unpack..."
      } || {
        echo "'$loinst' becomes installed."
      }
}

extract and install

CODE
{ # as root@application_host tar xvfz $loinst; cd LibreOffice_*/RPMS && rpm -Uvih --force *rpm }

verify your LibreOffice installation

CODE
{ # as corpus@application_host
/opt/libreoffice5.2/program/soffice.bin --accept="socket,host=127.0.0.1,port=17777,tcpNoDelay=1;urp;" --nodefault --nofirststartwizard --nolockcheck --nologo --norestore --headless --nofirststartwizard
}

Port 17777 should be open.

Linux OpenOffice

For more information, see download latest English US release.

check OpenOffice is not installed already

CODE
{ # as root@application_host
rpm -qa | grep -i openoffice
}

no output=no office installed -> go on

create install and tools folder

CODE
{ # as corpus@application_host
test -d /opt/corpus/install | mkdir -p /opt/corpus/install; test -d /opt/corpus/tools | mkdir -p /opt/corpus/tools; 
}

copy OpenOffice to corpus@application_host:install/

CODE
scp Apache_OpenOffice_*.tar.gz  corpus@application_host:install/

identify software to install

CODE
{ # as root@application_host
    cd /opt/corpus/install
      OO=$(\ls -1tr Apache_OpenOffice*.tar.gz | tail -1); test -z "$OO" && {
        echo "nothing found to unpack..."
      } || {
        echo "'$OO' becomes installed."
      }
}

extract and install

CODE
{ # as root@application_host tar xvfz $OO; cd en-US/RPMS/ && rpm -Uvih --force --relocate /opt/=/opt/corpus/tools/ *rpm }

install glibc, netcat, freetype-devel

CODE
{ # as root@application_host
test -f /etc/SuSE-release && {
zypper install glibc netcat libXext libXt freetype-devel
} || {
   test -f /etc/redhat-release && {
      yum install glibc nc libXext libXt freetype-devel
      } } || {
      echo "unknown OS. Please install glibc, netcat, libXext, libXt, freetype-devel."
   }
}

verify your OpenOffice installation

CODE
{ # as corpus@application_host
/opt/corpus/tools/openoffice4/program/soffice -accept="socket,host=127.0.0.1,port=17777,tcpNoDelay=1;urp;" -nodefault -nofirststartwizard -nolockcheck -nologo -norestore -headless -nofirststartwizard
}

Port 17777 should be open

LEGACY: Solaris 11

enter directory and create folder

CODE
corpus:~>
test -d /opt/corpus/install/openoffice | mkdir -p /opt/corpus/install/openoffice && cd /opt/corpus/install/openoffice

download

CODE
corpus:~> wget http://www.openfoundry.org/of/download_path/osscd/3.4.0-1/Apache_OpenOffice_incubating_3.4.0_Solaris_x86_install_en-US.tar.gz

extract

CODE
corpus:~> tar xvfz Apache_OpenOffice_incubating_3.4.0_Solaris_x86_install_en-US.tar.gz

search for freetye and install The FreeType Project

CODE
corpus:~> pkg search freetype

install freetype

Example:

CODE
root:~> pkg install pkg:/system/library/freetype-2@2.4.9-0.175.1.0.0.24.1317

add packages

CODE
root:~> cd /opt/corpus/install/openoffice && pkgadd -R /opt/corpus/tools/ -d en-US/packages
corpus:~> cd /opt/corpus/tools/ && ln -s /opt/corpus/tools/opt/openoffice.org . && ln -s /opt/corpus/tools/opt/openoffice.org3

Verify your installation


LEGACY: Solaris 10


enter directory and create folder

CODE
test -d /data/install/openoffice | mkdir -p /data/install/openoffice && cd /data/install/openoffice

download

CODE
wget http://www.openfoundry.org/of/download_path/osscd/3.4.0-1/Apache_OpenOffice_incubating_3.4.0_Solaris_x86_install_en-US.tar.gz

extract

CODE
tar xvfz Apache_OpenOffice_incubating_3.4.0_Solaris_x86_install_en-US.tar.gz

install freetye including dependencies (zlib, libgcc, gcc)

For more information, see this www.sunfreeware.com.

CODE
local:~> scp /Volumes/Files/censhare/censhare-3rdParty/Sunfreeware/Sol10/freetype-2.4.2-sol10-x86-local.gz corpus@cust-srv:install/
root:~> cd /opt/corpus/install/ && pkgadd -d freetype-2.4.2-sol10-x86-local

add packages 

CODE
root:~> cd /opt/corpus/install/openoffice && pkgadd -d en-US/packages
corpus:~> cd /opt/corpus/tools/ && ln -s /opt/openoffice.org . && ln -s /opt/openoffice.org3

Verify your installation.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.