====== Install LibreOffice in CentOS ====== ===== Steps to install LibreOffice in CentOS ===== Note: Stop god process before installing. wget http://download.documentfoundation.org/libreoffice/stable/5.4.4/rpm/x86_64/LibreOffice_5.4.4_Linux_x86-64_rpm.tar.gz sudo yum remove openoffice* libreoffice* tar -xvf LibreOffice_5.4.4_Linux_x86-64_rpm.tar.gz cd /tmp/LibreOffice_5.4.4_Linux_x86-64_rpm/RPMS/ sudo yum localinstall *.rpm ===== Application Level Changes ===== ==== Development Environment ==== cd /deploy/systasks ./god.sh stop vi /deploy/crossbow/current/config/environments/development.rb update: OFFICE_HOME = "/opt/libreoffice5.4" vi /deploy/crossbow/current/config/development.god update: OFFICE_PATH = "/opt/libreoffice5.4/program" cd /deploy/crossbow/current/ touch tmp/restart.txt cd /deploy/systasks ./god.sh start ==== Staging Environment ==== cd /deploy/systasks ./god.sh stop vi /deploy/crossbow/current/config/environments/staging.rb update: OFFICE_HOME = "/opt/libreoffice5.4" vi /deploy/crossbow/current/config/staging.god update: OFFICE_PATH = "/opt/libreoffice5.4/program" cd /deploy/crossbow/current/ touch tmp/restart.txt cd /deploy/systasks ./god.sh start ==== Production Environment ==== cd /deploy/systasks ./god.sh stop vi /deploy/crossbow/current/config/environments/production.rb update: OFFICE_HOME = "/opt/libreoffice5.4" vi /deploy/crossbow/current/config/production.god update: OFFICE_PATH = "/opt/libreoffice5.4/program" cd /deploy/crossbow/current/ touch tmp/restart.txt cd /deploy/systasks ./god.sh start ====== Uninstall Libreoffice and Intsall OpenOffice(Rollback steps) ====== ===== Steps to install OpenOffice in CentOS ===== wget http://jaist.dl.sourceforge.net/project/openofficeorg.mirror/4.0.1/binaries/en-US/Apache_OpenOffice_4.0.1_Linux_x86-64_install-rpm_en-US.tar.gz sudo yum remove openoffice* libreoffice* tar -xvf Apache_OpenOffice_4.0.1_Linux_x86-64_install-rpm_en-US.tar.gz cd en-US/RPMS/ sudo yum localinstall *.rpm desktop-integration/openoffice4.0-redhat-*.rpm ===== Application Level Changes ===== ==== Development Environment ==== cd /deploy/systasks ./god.sh stop vi /deploy/crossbow/current/config/environments/development.rb update: OFFICE_HOME = "/opt/openoffice4" vi /deploy/crossbow/current/config/development.god update: OFFICE_PATH = "/opt/openoffice4/program" cd /deploy/crossbow/current/ touch tmp/restart.txt cd /deploy/systasks ./god.sh start ==== Staging Environment ==== cd /deploy/systasks ./god.sh stop vi /deploy/crossbow/current/config/environments/staging.rb update: OFFICE_HOME = "/opt/openoffice4" vi /deploy/crossbow/current/config/staging.god update: OFFICE_PATH = "/opt/openoffice4/program" cd /deploy/crossbow/current/ touch tmp/restart.txt cd /deploy/systasks ./god.sh start ==== Production Environment ==== cd /deploy/systasks ./god.sh stop vi /deploy/crossbow/current/config/environments/production.rb update: OFFICE_HOME = "/opt/openoffice4" vi /deploy/crossbow/current/config/production.god update: OFFICE_PATH = "/opt/openoffice4/program" cd /deploy/crossbow/current/ touch tmp/restart.txt cd /deploy/systasks ./god.sh start