Knowledge:Linux Debian

From OpenKM Documentation
Revision as of 18:58, 28 August 2013 by Pavila (talk | contribs) (Download and install application)

Jump to: navigation, search

User and service

 $ sudo adduser --disabled-password openkm
 $ sudo adduser openkm admin
 $ sudo vim /etc/init.d/tomcat

Script from http://wiki.openkm.com/index.php/Configure_Tomcat_service

 $ sudo chmod 755 /etc/init.d/tomcat
 $ sudo update-rc.d tomcat defaults

Required packages

Install basic packages:

 $ sudo apt-get install apache2 rdiff-backup ghostscript msttcorefonts imagemagick
 $ sudo apt-get install libreoffice clamav unzip python-software-properties

Install Java JDK (Ubuntu 12.04 - Precise Pangolin):

 $ sudo add-apt-repository ppa:webupd8team/java
 $ sudo apt-get update
 $ sudo apt-get install oracle-java6-installer

Uninstall OpenJDK packages:

 $ dpkg -l | grep openjdk
 $ dpkg -l | grep icedtea
 $ sudo apt-get purge openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib
 $ sudo apt-get autoremove

Download and install application

Descargar y descomprimir la aplicación (password eMpg8eIjY5):

 $ wget http://openkm.com/download/okm/Tomcat-7.0.27.zip
 $ wget http://openkm.com/download/okm/OpenKM-6.2.20.zip

MySQL support

First of all, installation:

 $ sudo apt-get install mysql-server

Check if your MySQL installation has InnoDB engin enabled:

 $ mysql -h localhost -u root -p
 mysql> show engines;

Edit /etc/mysql/my.cnf and under [mysqld] section in your ini file, add:

 default-storage-engine = innodb

Now create databases and user:

 $ mysql -h localhost -u root -p
 mysql> CREATE USER openkm@localhost IDENTIFIED BY '*secret*';
 mysql> CREATE DATABASE okmdb DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin;
 mysql> GRANT ALL ON okmdb.* TO openkm@localhost WITH GRANT OPTION;

Extensiones

INSERT INTO OKM_EXTENSION (EXT_UUID, EXT_NAME) VALUES ('25af39c0-580f-431c-8852-0b6430b4dc1d', 'Stapling');
INSERT INTO OKM_EXTENSION (EXT_UUID, EXT_NAME) VALUES ('54743940-0761-11e0-81e0-0800200c9a66', 'Stamp');
INSERT INTO OKM_EXTENSION (EXT_UUID, EXT_NAME) VALUES ('05838826-bf84-4259-8c73-227e03e91ad4', 'Google Docs');
INSERT INTO OKM_EXTENSION (EXT_UUID, EXT_NAME) VALUES ('808e7a42-2e73-470c-ba23-e4c9d5c3a0f4', 'Live Edit');
INSERT INTO OKM_EXTENSION (EXT_UUID, EXT_NAME) VALUES ('87f250d5-526d-4d8a-96ee-1e5be7910bd8', 'HTML Editor');

INSERT INTO OKM_PROFILE_MSC_EXTENSION (PEX_ID, PEX_EXTENSION) values (1, '25af39c0-580f-431c-8852-0b6430b4dc1d');
INSERT INTO OKM_PROFILE_MSC_EXTENSION (PEX_ID, PEX_EXTENSION) values (1, '54743940-0761-11e0-81e0-0800200c9a66');
INSERT INTO OKM_PROFILE_MSC_EXTENSION (PEX_ID, PEX_EXTENSION) values (1, '05838826-bf84-4259-8c73-227e03e91ad4');
INSERT INTO OKM_PROFILE_MSC_EXTENSION (PEX_ID, PEX_EXTENSION) values (1, '808e7a42-2e73-470c-ba23-e4c9d5c3a0f4');
INSERT INTO OKM_PROFILE_MSC_EXTENSION (PEX_ID, PEX_EXTENSION) values (1, '87f250d5-526d-4d8a-96ee-1e5be7910bd8');

Server report

Haciendo uso de inxi podemos sacar un resumen de la configuración del servidor:

 $ sudo apt-get install gawk pciutils
 $ wget -Nc smxi.org/inxi
 $ chmod +x inxi
 $ sudo ./inxi -F

Altas administrativas

Ir a OpenKM Licenses y asociar el nombre del cliente al UUID de la instalación.