Difference between revisions of "Knowledge:Linux CentOS"
(→Altas administrativas) |
(→Oracle JDK) |
||
(20 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
$ sudo vim /etc/init.d/tomcat | $ sudo vim /etc/init.d/tomcat | ||
− | Script from | + | Script from [[Configure Tomcat service linux]]. |
$ sudo chmod 755 /etc/init.d/tomcat | $ sudo chmod 755 /etc/init.d/tomcat | ||
− | $ sudo | + | $ sudo chkconfig tomcat --level 2345 on |
== Required packages == | == Required packages == | ||
Line 17: | Line 17: | ||
=== Oracle JDK === | === Oracle JDK === | ||
Versión 32 bits: | Versión 32 bits: | ||
− | $ wget --no- | + | $ wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-i586.rpm" -O dk-7u60-linux-i586.rpm |
− | $ rpm -Uvh jdk- | + | $ rpm -Uvh jdk-7u60-linux-i586.rpm |
Versión 64 bits: | Versión 64 bits: | ||
− | $ wget --no- | + | $ wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-x64.rpm" -O jdk-7u60-linux-x64.rpm |
− | $ rpm -Uvh jdk- | + | $ rpm -Uvh jdk-7u60-linux-x64.rpm |
Luego para poner este Java como por defecto: | Luego para poner este Java como por defecto: | ||
Line 28: | Line 28: | ||
$ alternatives --install /usr/bin/java java /usr/java/latest/bin/java 20000 | $ alternatives --install /usr/bin/java java /usr/java/latest/bin/java 20000 | ||
$ alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 20000 | $ alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 20000 | ||
+ | |||
+ | El valor por defecto se puede cambiar así: | ||
+ | |||
+ | $ alternatives --config java | ||
+ | $ alternatives --config javac | ||
+ | |||
+ | Y para probar que se está usando el JDK de Oracle: | ||
+ | |||
+ | $ java -version | ||
=== Compilar Cuneiform === | === Compilar Cuneiform === | ||
Line 37: | Line 46: | ||
$ wget http://downloads.naulinux.ru/pub/NauLinux/6.2/x86_64/sites/School/SRPMS/cuneiform-multilang-1.1.0-1.el6.src.rpm | $ wget http://downloads.naulinux.ru/pub/NauLinux/6.2/x86_64/sites/School/SRPMS/cuneiform-multilang-1.1.0-1.el6.src.rpm | ||
− | $ yum install cmake ImageMagick-c++-devel | + | $ yum install rpm-build cmake make gcc-c++ ImageMagick-c++-devel |
$ rpmbuild --rebuild cuneiform-multilang-1.1.0-1.el6.src.rpm | $ rpmbuild --rebuild cuneiform-multilang-1.1.0-1.el6.src.rpm | ||
Line 43: | Line 52: | ||
$ rpm -ivh rpmbuild/RPMS/x86_64/cuneiform-multilang-1.1.0-1.el6.x86_64.rpm | $ rpm -ivh rpmbuild/RPMS/x86_64/cuneiform-multilang-1.1.0-1.el6.x86_64.rpm | ||
+ | |||
+ | Existen versiones ya compiladas para CentOS 6.4 disponibles: | ||
+ | |||
+ | * http://openkm.com/download/okm/cuneiform-centos-6.4-i386.zip | ||
== Download and install application == | == Download and install application == | ||
Descargar y descomprimir la aplicación (password eMpg8eIjY5): | Descargar y descomprimir la aplicación (password eMpg8eIjY5): | ||
− | $ wget http://openkm.com | + | $ wget http://download.openkm.com/okm/Tomcat-7.0.27.zip |
− | $ wget http://openkm.com | + | $ wget http://download.openkm.com/okm/OpenKM-6.4.14.zip |
== MySQL support == | == MySQL support == | ||
Line 54: | Line 67: | ||
$ sudo yum install mysql-server | $ sudo yum install mysql-server | ||
+ | $ sudo chkconfig mysqld --level 2345 on | ||
Set root password: | Set root password: | ||
Line 64: | Line 78: | ||
mysql> show engines; | mysql> show engines; | ||
− | Edit /etc | + | Edit '''/etc/my.cnf''' and under '''[mysqld]''' section in your ini file, add: |
default-storage-engine = innodb | default-storage-engine = innodb | ||
Line 97: | Line 111: | ||
$ chmod +x inxi | $ chmod +x inxi | ||
$ sudo ./inxi -F | $ sudo ./inxi -F | ||
+ | |||
+ | == Otros == | ||
+ | * HTop -> http://pkgs.repoforge.org/htop/ | ||
== Altas administrativas == | == Altas administrativas == |
Latest revision as of 10:17, 16 July 2014
User and service
$ sudo adduser openkm $ sudo vim /etc/init.d/tomcat
Script from Configure Tomcat service linux.
$ sudo chmod 755 /etc/init.d/tomcat $ sudo chkconfig tomcat --level 2345 on
Required packages
Install basic packages:
$ yum install libreoffice* ImageMagick
Oracle JDK
Versión 32 bits:
$ wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-i586.rpm" -O dk-7u60-linux-i586.rpm $ rpm -Uvh jdk-7u60-linux-i586.rpm
Versión 64 bits:
$ wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-x64.rpm" -O jdk-7u60-linux-x64.rpm $ rpm -Uvh jdk-7u60-linux-x64.rpm
Luego para poner este Java como por defecto:
$ alternatives --install /usr/bin/java java /usr/java/latest/bin/java 20000 $ alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 20000
El valor por defecto se puede cambiar así:
$ alternatives --config java $ alternatives --config javac
Y para probar que se está usando el JDK de Oracle:
$ java -version
Compilar Cuneiform
Si ya está instalado, desinstalar:
$ yum remove cuneiform-multilang
Ahora instalamos los fuentes y compilamos:
$ wget http://downloads.naulinux.ru/pub/NauLinux/6.2/x86_64/sites/School/SRPMS/cuneiform-multilang-1.1.0-1.el6.src.rpm $ yum install rpm-build cmake make gcc-c++ ImageMagick-c++-devel $ rpmbuild --rebuild cuneiform-multilang-1.1.0-1.el6.src.rpm
Los RPMs compilados se encontrarán en "rpmbuild/RPMS/x86_64/". Ahora instalamos el paquete:
$ rpm -ivh rpmbuild/RPMS/x86_64/cuneiform-multilang-1.1.0-1.el6.x86_64.rpm
Existen versiones ya compiladas para CentOS 6.4 disponibles:
Download and install application
Descargar y descomprimir la aplicación (password eMpg8eIjY5):
$ wget http://download.openkm.com/okm/Tomcat-7.0.27.zip $ wget http://download.openkm.com/okm/OpenKM-6.4.14.zip
MySQL support
First of all, installation:
$ sudo yum install mysql-server $ sudo chkconfig mysqld --level 2345 on
Set root password:
$ /usr/bin/mysqladmin -u root password 'new_password'
Check if your MySQL installation has InnoDB engin enabled:
$ mysql -h localhost -u root -p mysql> show engines;
Edit /etc/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 yum install gawk pciutils $ wget -Nc smxi.org/inxi $ chmod +x inxi $ sudo ./inxi -F
Otros
- HTop -> http://pkgs.repoforge.org/htop/
Altas administrativas
- Ir a OpenKM Licenses y asociar el nombre del cliente al UUID de la instalación.
- Dar de alta en hoja de registro de clientes.
Más info: