Difference between revisions of "Knowledge:Linux Debian"

From OpenKM Documentation
Jump to: navigation, search
m (Download and install application)
(Required packages)
Line 19: Line 19:
 
Install Java JDK (Ubuntu 12.04 - Precise Pangolin):
 
Install Java JDK (Ubuntu 12.04 - Precise Pangolin):
  
   $ sudo vim /etc/apt/sources.list.d/sun-jdk.list
+
   $ sudo add-apt-repository ppa:webupd8team/java
 
 
Add this entry:
 
 
 
  deb http://openkm.com/download/okm/jdk/deb /
 
 
 
And now update and install:
 
 
 
 
   $ sudo apt-get update
 
   $ sudo apt-get update
   $ sudo apt-get install sun-java6-jdk sun-java6-fonts
+
   $ sudo apt-get install oracle-java6-installer
  
 
Uninstall OpenJDK packages:
 
Uninstall OpenJDK packages:
Line 34: Line 27:
 
   $ dpkg -l | grep openjdk
 
   $ dpkg -l | grep openjdk
 
   $ dpkg -l | grep icedtea
 
   $ dpkg -l | grep icedtea
   $ sudo apt-get purge icedtea-netx icedtea-6-jre-jamvm icedtea-6-jre-cacao openjdk-6-jre openjdk-6-jre-lib openjdk-6-jre-headless
+
   $ sudo apt-get purge openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib
 
   $ sudo apt-get autoremove
 
   $ sudo apt-get autoremove
  

Revision as of 09:42, 16 January 2013

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 aptitude install apache2 rdiff-backup ghostscript msttcorefonts imagemagick
 $ sudo aptitude 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.8.zip

MySQL support

First of all, installation:

 $ sudo aptitude 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;

Server report

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

 $ sudo aptitude 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.