Posts Tagged ‘installation’

0

How to install Pandion IM App for all users

Thursday, April 29, 2010
posted by otioti

Download installer from聽http://pandion.im/pandion_setup.msi

Then, execute next command:

msiexec.exe /i pandion_setup.msi ALLUSERS=1 LAUNCHAPP=yes

Viewed on:聽http://pandion.pbworks.com/Installation-Guide

0

How-To deploy Mac OS X Server on a XServe without Video Card

Wednesday, March 24, 2010
posted by otioti

Well, we got our new XServe, but after that, I discovered that it doesn’t have any video card. So… how can I complete installation process?

Reading XServe User Guide, Chapter 2: Starting Up the Xserve, Local and Remote Software Setup, it explains we can configure and install server by different ways:

  • Screen Sharing: No way, it doesn’t work at the beginning
  • Server Assistant: No way, I can’t see anything without Video Card.
  • Apple Remote Desktop: Ok, but I don’t want to pay for something that I don’t use frequently.
  • VNC Viewer: No way, it isn’t installed on system, and i can’t activate it if i don’t run Screen Sharing Service
  • Connect to the serial port on XServe: Yep, I tried to access to Xserve using serial port, but it didn’t work for me. I used XServe Setup Guide, and I noted Serial Port Specifications. We’ll need a 9-pin D connector, and connect that cable to us Macbook/iMac using a Serial-USB conventer. It will create a new device called /dev/ttyUSB0 o something like that. Late, we just open a Terminal (Applications->Terminal) and write screen /dev/ttyUSB0. But, as I said, it didn’t work for me.

Ok, now I repeat: How can I connect to the server to configure it?

Easy, you’ll need:

  • Connect first network interface to your network, and ensure you have any dhcp service running on it.
  • Wait for dhcp lease and note IP that Xserve has configured.
  • Serial Number of your Xserve: From XServe User Guide: “Slide out the system information tag from the back panel by pulling the small tab.“

Next, access to the server using SSH: ssh root@ip_xserve , and enter Serial Number as password. Then, we’ll start Screen Sharing service:

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users admin -privs -all -restart -agent -menu

Ok, now we have Screen Sharing service running and we can use VNC Viewer app to access to server. On linux:

vncviewer ip_xserve

It will ask for a password, and we’ll enter Serial Number. Finally, we could finish installation process.

After reboot, Screen Sharing services won’t start. We’ll access again trought SSH and execute last command:

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users admin -privs -all -restart -agent -menu

But, now we’ll need a Mac OS X to connect to server, because on Linux i received errors like in this thread: http://discussions.apple.com/thread.jspa?threadID=1912914. This is caused of VNC support isn’t activated running Apple Remote Desktop Agent.

So, using a Mac OS X, Finder->Go->Connect to Server and write vnc://ip_xserve. We could use root user with SerialNumber as password, or user created on Server Installation Assistant.

Enjoy 馃檪

0

Integraci贸n OCS Inventory & GLPI

Tuesday, February 2, 2010
posted by otioti

Por facilidad del despliegue, se realiza la instalaci贸n en una Fedora Core 12

Dependencias comunes:

  • Apache version 1.3.33 or higher / Apache version 2.0.46 or higher.
    • Mod_perl version 1.29 or higher.
    • Mod_php version 4.3.2 or higher.
  • PHP 4.3.2 or higher, with ZIP and GD support enabled.
  • PERL 5.6 or higher.
    • Perl module XML::Simple version 2.12 or higher.
    • Perl module Compress::Zlib version 1.33 or higher.
    • Perl module DBI version 1.40 or higher.
    • Perl module DBD::Mysql version 2.9004 or higher.
    • Perl module Apache::DBI version 0.93 or higher.
    • Perl module Net::IP version 1.21 or higher.
    • Perl module SOAP::Lite version 0.66 or higher (optional)
  • MySQL version 4.1.0 or higher with InnoDB engine active.
  • Make utility such as GNU make.

Accedemos al sistema, y actualizamos el mismo:

yum update

Instalamos y configuramos la mysql:

yum install mysql
service mysqld start
chkconfig mysqld on

Ejecutamos:

mysql_secure_installation

configuramos la contrase帽a de root y deshabilitamos el acceso an贸nimo.

Instalamos OCS Inventory:

yum install ocsinventory
service httpd restart
chkconfig httpd on

Accedemos a la siguiente url: http://ourserver.com/ocsreports/install.php

Introducimos las credenciales del usuario root que hemos configurado anteriormente.

Pulsamos en Send. A continuaci贸n comprobar谩 la viabilidad de configurar OCS Inventory en el sistema. Si nos devuelve alg煤n error, deberemos revisarlo y solventarlo.

Si no existe ning煤n error, procederemos a pulsar en el bot贸n Send. A continuaci贸n se generar谩 el usuario admin con contrase帽a por defecto admin.

Accederemos al sistema introduciendo dichas credenciales por defecto.

Realizaremos las siguientes configuraciones: pulsar en el icono de la llave inglesa / Configuraci贸n y luego en la pesta帽a de Servidores:

  • LOGLEVEL = On
  • PROLOG_FREQ = 24
  • AUTO_DUPLICATE_LVL = Model +聽 Serial + Mac Address.
  • TRACE_DELETED = On (required by GLPI).
  • SESSION_VALIDITY_TIME = 600 (session duration, the empty value provided is not valid).

Modificamos el usuario de la base de datos que conecta OCS聽 con la DB ocsweb:

# mysql -uroot -prootsecret
mysql> UPDATE mysql.user SET Password = PASSWORD('ocssecret') WHERE User = 'ocs';
mysql> FLUSH PRIVILEGES;
mysql> exit

Modificamos el fichero /etc/httpd/conf.d/ocsinventory-server.conf:

PerlSetVar OCS_DB_PWD ocssecret

el fichero /etc/ocsinventory/ocsinventory-reports/dbconfig.inc.php:

$_SESSION["PSWD_BASE"]="ocssecret"

Ejecutamos:

service httpd reload

Instalamos OCSInventory-agent en Gentoo:

Se adjunta el ebuild necesario para construir el agente de OCSInventory para Gentoo. Para el resto de sistemas, se puede descargar de la web oficial.

Descargamos el adjunto y se coloca en /usr/local/app-admin/ocsinventory-agent/.

Luego se emerge el paquete:

聽
emerge -q ocsinventory-agent

Es recomendable tener instalado smartmontools:

emerge -q smartmontools

Modificamos el fichero /etc/ocsinventory-agent/ocsinventory-agent.cfg y seteamos:

server=ourserver.com

Instalaci贸n y configuraci贸n de GLPI

Se generar谩n dos usuarios MySQL, el primero llamado glpi para el usado de la aplicaci贸n GLPI, y un segundo, synchro, que ser谩 usado para el proceso de sincronizaci贸n OCS<->GLPI

Accederemos como root en MySQL y ejecutaremos los siguientes comandos:

# mysql -uroot -p
mysql> CREATE USER 'glpi'@'%' IDENTIFIED BY 'glpisecret';
mysql> GRANT USAGE ON *.* TO 'glpi'@'%' IDENTIFIED BY 'glpisecret';
mysql> CREATE DATABASE IF NOT EXISTS `glpi` ;
mysql> GRANT ALL PRIVILEGES ON `glpi`.* TO 'glpi'@'%';
mysql> CREATE USER 'synchro'@'%' IDENTIFIED BY 'syncsecret';
mysql> GRANT USAGE ON *.* TO 'synchro'@'%' IDENTIFIED BY 'syncsecret';
mysql> GRANT SELECT ON `ocsweb`.* TO 'synchro'@'%';
mysql> GRANT DELETE ON `ocsweb`.`deleted_equiv` TO 'synchro'@'%';
mysql> GRANT UPDATE (`CHECKSUM`) ON `ocsweb`.`hardware` TO 'synchro'@'%';
mysql> FLUSH PRIVILEGES;
mysql> exit

Instalaremos glpi con yum y reiniciamos el servicio httpd:

# yum install glpi
# service httpd reload

Por 煤ltimo, se realiza la creaci贸n del schema de la DB y la configuraci贸n de la aplicaci贸n:

Accederemos a la url http://outserver.com/glpi y seguimos los siguientes pasos:

  1. Seleccionamos el idioma: Espa帽ol (es_ES)
  2. Aceptamos la licencia GPL
  3. Iniciamos la instalaci贸n
  4. Comprobamos que los prerequisitos se cumplen.
  5. Introducimos los par谩metros de la conexi贸n a la mysql:
    1. Direcci贸n a la base de datos
    2. Usuario: glpi
    3. Contrase帽a: glpisecret (o la que hayamos introducido)
  6. Seleccionamos la base de datos glpi
  7. Tomamos nota de los usuarios creados:
  8. Los logins y claves predeterminados son:
    1. glpi/glpi para la cuenta administrador
    2. tech/tech para la cuenta de t茅cnico
    3. normal para la cuenta normal
    4. post-only/post-only para la cuenta postonly
  9. Accedemos con el usuario glpi

Activaci贸n y configuraci贸n del modo OCSNG:

Una vez identificados dentro de GLPI como administrador, procederemos a configurar la sincronizaci贸n de OCS->GLPI.

Dentro del Men煤, pulsaremos en Setup->General, a continuaci贸n pulsaremos en la pesta帽a Restricciones, y activamos el modo OCSNG, pulsamos en enviar.

Configuramos el servidor:

  • Pulsamos Menu->Configuraci贸n->OCSNG mode
  • Seleccionamos el servidor creado durante la instalaci贸n: localhost
  • Configuramos el nombre
  • El nombre de la base de datos: ocsweb
  • El usuario de la base de datos: synchro
  • La contrase帽a del usuario: synchrosecret
  • Pulsamos en enviar.

Deber谩 devolver un mensaje que indique se ha creado la conexi贸n satisfactoriamente.

A continuaci贸n, configuraremos la informaci贸n que ser谩 importada de OCS a GLPI:

  • Monitores : Importaci贸n 煤nica basada en el serial number
  • Perif茅ricos: Importanci贸n 煤nica
  • Impresoras: Importaci贸n 煤nica
  • Software: Importaci贸n 煤nica
  • Vol煤menes: S铆
  • Utilizar el diccionario de software de OCS: No
  • Registro de Windows: Si
  • N煤mero de elementos a sincronizar usando cron: 0 (usaremos otra soluci贸n)
  • Pulsaremos en enviar.

Comprobamos en :

  • Menu->Utilidades->OCSNG
  • Pulsaremos en el enlace “Importaci贸n de ordenadores nuevos”

En la lista que aparezca, deberemos poder ver aquellos servidores los cuales tengan instalado y configurado correctamente el agente de OCS. NO los importe, ya que lo realizaremos mediante un modo autom谩tico.

Sistema autom谩tico de sincronizaci贸n OCSNG:

Instalaremos el siguiente plugin: Mass import from OCSNG

Nos desconectamos de GLPI e instalamos el plugin:yum install glpi-mass-ocs-import

Conectamos de nuevo a GLPI, y configuramos al plugin.

Clicamos en Configuraci贸n->Plugins. Pulsamos en el enlace Instalar. Pulsamos Activar y al final pulsamos en el enlace “Importaci贸n masiva desde OCS*”.*

En la siguiente pantalla, seleccionamos el servidor localhost, pulsamos en aceptar y luego habilitamos la sincronizaci贸n.