martes, 12 de julio de 2016

Installation of Dell Open Manage Server Administrator






1.- Download

Dell Support


2.- Install

Unzip:  OM-SrvAdmin-Dell-Web-A00.exe

Run:  Windows/setup.exe

Installation of numpy, scipy and matplotlib on Debian (python2)



1.- Installing dependencies


apt-get update
apt-get install  python-setuptools python-pip python-dev python-virtualenv libblas-dev liblapack-dev libatlas-base-dev gfortran libfreetype6-dev pkg-config


3.- Installing scipy, numpy, matplotlib

pip install scipy numpy
apt-get install python-matplotlib


4.- Testing

import numpy as np
import matplotlib.pyplot as plt

X = np.linspace(-np.pi, np.pi, 256, endpoint=True)
C, S = np.cos(X), np.sin(X)

plt.plot(X, C)
plt.plot(X, S)

plt.show()



Links:
Scipy Lectures

Installation of Python3, scipy, numpy and matplotlib on Debian 8





1.- Download and Install Python3

wget  https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz

tar xvf Python-3.5.2
cd Python-3.5.2
./configure
make
make test
make install


2.- Installing dependencies


apt-get update
apt-get install  python-setuptools python-pip python-dev python-virtualenv libblas-dev liblapack-dev libatlas-base-dev gfortran libfreetype6-dev pkg-config


3.- Installing scipy, numpy, matplotlib

pip3.5 install --upgrade pip
pip3.5 install scipy numpy matplotlib


4.- Testing

import numpy as np
import matplotlib.pyplot as plt

X = np.linspace(-np.pi, np.pi, 256, endpoint=True)
C, S = np.cos(X), np.sin(X)

plt.plot(X, C)
plt.plot(X, S)

plt.savefig('test.pdf')



Links:
Scipy Lectures


martes, 28 de junio de 2016

Install Networkx python software package





1.- Install python2.7

wget https://centos(version).iuscommunity.org/ius-release.rpm
rpm -i ius-release.rpm
yum -y install python27 python27-devel python27-pip python27-setuptools python27-virtualenv --enablerepo=ius


2,. Install networkx:

pip2.7 install networkx


3.- Install nose, scipy and numpy (testing networkx)

pip2.7 install nose scipy numpy


4.- Test:

python2.7

>>import networkx
>>networkx.test()



Referencia:

NetworkX

Follow me in Elastix





1.- Edit Extension "Add Follow me settings" :

2.- Edit "Follow me lists" :

Number + #

3.- Edit "Destination if no answer" :

Extensions + No.Ext



Referencia:

Elastix Tech

viernes, 24 de junio de 2016

Disk cloning




1.- Linux commands for hard disk information:

- hdparm -i /dev/sda

- lshw


2.- Linux commands for clone disk:

Option 1: dd if=/dev/sdb of =/dev/sdc bs=100M

Install pv (apt-get install pv):

Option 2: dd if=/dev/sdb  | pv |  of=/dev/sdc bs=100M



3- Monitor status Option 1:

pkill -USR1 dd
watch -n5 'sudo pkill -USR1 dd'


miércoles, 1 de junio de 2016

Teamviewer en Linux





1.- Descargar software Teamviewer

2.- Para que inicie al loguearse en una sesión hay que agregarlo a los demonios de inicio dentro de la cuenta que lo ejecutará:

user$ genome-session-properties




lunes, 30 de mayo de 2016

Capturar llamadas en Asterix






1.- Cualquier extensión del mismo callgroup, comando por default: *8

2.- Comando para extensión en especifico: **+#Ext

3.- Cuando no acepta la sintáxís por default hay que cambiar en la configuración del PBX al siguiente comando : *+#Ext


Fuente: Julio Restrepo

Resetting WRT54G to Factory Defaults





1. Press and hold the reset button for 30 seconds.

2. Then, unplug the power keep holding down the reset button for
another 30 Seconds.

3. Plug back the power back in, and keep holding down the reset button
for 30 Seconds.

4. Release the reset button.

Admin: root
Passwd: admin






Fuente: Community Linksys

jueves, 21 de abril de 2016

Monitor printers with Nagios


1.- Descargar plugin

2.- Agregarlo al directorio plugins de nagios ya darle permisos de ejecución:

# chmod o+x check_snmp_printer

3.- Agregar el comando correspondiente al archivo commands.cfg de Nagios:


define command{
        command_name check_snmp_printer
        command_line $USER1$/check_snmp_printer -H $HOSTADDRESS$ -C $ARG1$ -x $ARG2$ -w $ARG3$ -c $ARG4$


4.- Agregar el servicio a la impresora que se desea monitorear, estas son algunas opciones:

  • CONSUM {"string" | TEST | ALL} 
  • DEVICE 
  • DISPLAY 
  • MESSAGES 
  • MODEL 
  • PAGECOUNT 
  • STATUS 
  • TRAY {number(s) | TEST | ALL} 
  • VERSION 


Ejemplo:

define service{
        use                     generic-service
        host_name               My_Printer
        service_description     Printer Model
        check_command           check_snmp_printer!community!"MODEL"
}




Referencia:

Exchange Nagios

miércoles, 20 de abril de 2016

Centos Nagios install



1.- yum install nagios

2.- vi /etc/nagios/objects/contacts.cfg

 contact_name              admin
 email                           admin@localhost ;

 members                     admin


3.-   vi /etc/httpd/conf.d/nagios.conf

## Comment Lines

#   Order allow,deny
#   Allow from all

## Uncomment and Change lines

Order deny,allow
Deny from all
Allow from 127.0.0.1 192.168.1.0/24

4.-  htpasswd /etc/nagios/passwd nagiosadmin


5.- service nagios start
     chkconfig nagios on

6.- Conf check

 nagios -v /etc/nagios/nagios.cfg




Referencia:

Unixmen

jueves, 14 de abril de 2016

Boot CD/DVD VMware Hypervisor (vSphere)





1.- Insert CD/DVD

2.- Connect CD/DVD - Host Device

3.- Guest  - Send Ctrl-Alt-Del



martes, 29 de marzo de 2016

CUDA + TORQUE Example


#!/bin/bash
##PBS -l nodes=1:ppn=4
#PBS -l nodes=1:cuda
#PBS -l walltime=16:00:00
#PBS -N testIO
#PBS -o cuda_out.$PBS_JOBID
#PBS -e cuda_err.$PBS_JOBID
#PBS -r n
#PBS -V
##PBS -m abe
##PBS -M jouser@mines.edu
#-----------------------------------------------------
cd $PBS_O_WORKDIR

cp ~/NVIDIA_GPU_Computing_SDK/C/bin/linux/release/deviceQuery .

echo
echo running on: `cat $PBS_NODEFILE`

echo
echo " gives a report of the devices that were found"
./deviceQuery $lt; /dev/null


Referencia:

GECO Mines

viernes, 4 de marzo de 2016

Debian Cluster + OpenMPI





1.- Descargar software de Open-MPI.org

# wget https://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.2.tar.gz


2.- Instalar en todos los nodos:

# gunzip -c openmpi-1.10.2.tar.gz | tar xf -
# cd openmpi-1.10.2
# ./configure --prefix=/usr/local
# make all install

3.- Agregar variables de entorno:

# vi /etc/profile

Agregar:

export PATH=/usr/local/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

# source /etc/profile
#ldconfig


4.- Testing:

# mpirun --hostfile host_file mpi_hello_world



Referencias:




Debian + firmware bnx2/bnx2-mips



1.- Descargar el paquete con el firmware de:

packages.debian.org


2.- Instalar el paquete:

# dpkg -i firmware-bnx2.deb


3.- Reiniciar:

# shutdown -r now

miércoles, 3 de febrero de 2016

Error NFS nobody nobody



Paso 1: Revisar las bitacoras /var/log/messages

server$ tail -f /var/log/messages

Paso 2: Si aparece el error: "nss_getpwnam: name 'root@example.com' does not map into domain 'localdomain' "

Editar el archivo /etc/idmapd.conf  en el servidor y en los clientes con lo siguiente:

#Domain = local.domain.edu

cambiarlo por el dominio requerido, ejemplo:

Domain=foo.home


Paso 3: Reiniciar los servicios de NFS



Fuente: fedoraforum.org

miércoles, 20 de enero de 2016

Raid por software Centos


1.- Instalar mdadm

# yum install mdadm

2.- Crear raid con los discos instalados por ejemplo:

# mdadm --create --verbose /dev/md0 --level=linear --raid-devices=3 /dev/sdb /dev/sdc /dev/sdd

3.- Verificar el volumen creado:

# mdadm --detail /dev/md0

4.- Crear archivo de configuración:

# mdadm --detail --scan > /etc/mdadm.conf

5.-  Darle formato al volumen creado por ejemplo:

# mkfs.ext4 /dev/md0

6.- Montar en algun lugar el volumen creado por ejemplo:

#  mount /dev/md0 /home

7.- Editar el archivo fstab para que el sistema realice el automount del volumen al reiniciar el equipo por ejemplo:

# vi /etc/fstab

Agregar:

/dev/md0                /home                   ext4    defaults        0 0




Fuente:

viernes, 15 de enero de 2016

X11 connection rejected because of wrong authentication


Solución:

Paso 1: Conectarse al equipo exportando las fuentes (X):

ssh -X root@equipo


Paso 2:  Copiar archivo .Xauthority a /home de usuario:
cp ~/.Xauthority /home/usuario/

Paso 3: Verificar configuración del display

#echo $DISPLAY
localhost:10.0
#xauth list
localhost.localdomain/unix:11  MIT-MAGIC-COOKIE-1  310f1b02c1080e73059391c193a1881b
localhost.localdomain/unix:10  MIT-MAGIC-COOKIE-1  41843db100830a2aa352641ac47bb759

Paso 4: Copiar la cookie del display correspondiente (por ejemplo: localhost:10):

xauth add localhost.localdomain/unix:10  MIT-MAGIC-COOKIE-1  41843db100830a2aa352641ac47bb759


Fuente:

SuperUser

viernes, 8 de enero de 2016