miércoles, julio 17, 2013

Linux:Compresores de Archivos

TAR: Compresor de archivos
[root@localhost ~]# tar cvf backuptar.tar anaconda-ks.cfg install.log install.log.syslog
anaconda-ks.cfg
install.log
install.log.syslog
[root@localhost ~]# ls -l
total 224
-rw-------. 1 root root   1609 jun 27 10:57 anaconda-ks.cfg
-rw-r--r--. 1 root root  61440 jul 17 21:29 backuptar.tar
-rw-r--r--. 1 root root  45518 jun 27 10:57 install.log
-rw-r--r--. 1 root root  10565 jun 27 10:55 install.log.syslog
[root@localhost ~]# tar tvf backuptar.tar
-rw------- root/root      1609 2013-06-27 10:57 anaconda-ks.cfg
-rw-r--r-- root/root     45518 2013-06-27 10:57 install.log

Para descomprimir tar -xvf backuptar.tar


GZIP: A diferencia de tar, comprime y absorve el archivo comprimido.

[root@localhost ~]# gzip anaconda-ks.cfg install.log install.log.syslog
[root@localhost ~]# ls -l
total 44
-rw-------. 1 root root   977 jun 27 10:57 anaconda-ks.cfg.gz
-rw-r--r--. 1 root root 10475 jun 27 10:57 install.log.gz
-rw-r--r--. 1 root root  1602 jun 27 10:55 install.log.syslog.gz
[root@localhost ~]# gunzip anaconda-ks.cfg.gz
[root@localhost ~]# ls -l
total 44
-rw-------. 1 root root  1609 jun 27 10:57 anaconda-ks.cfg
-rw-r--r--. 1 root root 21454 jul 17 21:20 backup.tar.gz
-rw-r--r--. 1 root root 10475 jun 27 10:57 install.log.gz
-rw-r--r--. 1 root root  1602 jun 27 10:55 install.log.syslog.gz

TAR + GZIP: Comprimiendo varios archivos en un backup.tar.gz

[root@localhost ~]# ls -l
total 68
-rw-------. 1 root root  1609 jun 27 10:57 anaconda-ks.cfg
-rw-r--r--. 1 root root 45518 jun 27 10:57 install.log
-rw-r--r--. 1 root root 10565 jun 27 10:55 install.log.syslog
[root@localhost ~]# tar czvf backup.tar.gz anaconda-ks.cfg install.log install.log
anaconda-ks.cfg
install.log
install.log
[root@localhost ~]# ls -l
total 92
-rw-------. 1 root root  1609 jun 27 10:57 anaconda-ks.cfg
-rw-r--r--. 1 root root 21454 jul 17 21:20 backup.tar.gz
-rw-r--r--. 1 root root 45518 jun 27 10:57 install.log
-rw-r--r--. 1 root root 10565 jun 27 10:55 install.log.syslog
[root@localhost ~]# tar -tvf backup.tar.gz
-rw------- root/root      1609 2013-06-27 10:57 anaconda-ks.cfg
-rw-r--r-- root/root     45518 2013-06-27 10:57 install.log
-rw-r--r-- root/root     45518 2013-06-27 10:57 install.log

Para descomprimir tar -xzvf backup.tar.gz

jueves, julio 04, 2013

NGINX

NGINX+PHP: http://www.howtoforge.com/installing-nginx-with-php5-and-php-fpm-and-mysql-support-on-centos-6.4-p2

jueves, junio 27, 2013

Paginas:
http://diversidadyunpocodetodo.blogspot.com/2013/04/debian-7-wheezy-despues-instalar-guia-configuracion-software-AMD-codecs.html
http://www.e-compugraf.com/Blog-s-y-documentacion/Blogs/jmedina/Como-configurar-y-usar-APT-atras-de-un-Proxy-HTTP-en-Ubuntu-o-Debian
http://askubuntu.com/questions/134666/what-is-the-easiest-way-to-enable-php-on-nginx
http://blog.jam.net.ve/2011/01/04/instalando-nginx-con-soporte-php5-en-ubuntu/
ruby
http://cicolink.blogspot.com/2011/06/how-to-install-ruby-on-rails-3-with.html
http://miguelangellv.wordpress.com/2011/01/30/sphinx-buscador-para-tu-web/

miércoles, junio 12, 2013

Temas a investigar Device maper MultiPath y pvscan
Como Comunicar proyectos desde Linux con MsSQL  FREETDS
http://blog.jorgeivanmeza.com/2009/04/instalacion-de-freetds-para-el-acceso-a-mssql-desde-php-en-linux-debian-5/

viernes, mayo 31, 2013

Nomenclatura Informatica

Hola, en esta oportunidad les comentare un poco de nomenclatura usada en los servidores, bueno a muchos nos ha pasado que por fin decidimos poner en orden toda nuestra red y no sabemos por donde empezar, pues lo primero que debes hacer es identificar tus servicios, te recomiendo leer los libros ITIL para ese objetivo.
Bueno como dice el titulo de esta entrada "Nomclatura Informatica", como no hay un estandar, cada quien pone el nombre que quiere, el problema esta cuando las redes crecen, es ahi  donde todo se vuelve inadministrable. En mi caso decidi empezar por la nomeclatura de mis equipos y encontre estas nomenclaturas propuestas(En la parte inferior esta la leyenda de la nomenclatura):

Ejemplo 1:
Pais + Empresa + SO + Entorno + Servicio + Nro
* PE-EC-L-DEV-BD-001
* PE-EC-W-PRO-WEB-001
* US-AW-L-PRE-FTP-001

Ejemplo 2:
Tipo_ModelNumber_ModelType_SerialNumber
* Server-9119-590-SN12A345B
* PC-1000-590-SN12A345B

Ejemplo 3:
Location Code + OS Type + Environment + Service Code + Sequence ID
* LIM-W-PRE-DB-001

Observaciones:
El entorno, no se debe poner por seguridad, pero es decision de cada uno.

Pais:
PE - Peru
US - Estados Unidos

Ciudad:
LIM - Lima
AQP - Arequipa
TJL - Trujillo

Empresa:
AWS - Amazon
ELC - El Comercio
ORB - Orbis

Ubicacion:
DTC - Data Center
CLD - Cloud

Hardware:
SRV - Servidor
PCO - Computadora Personal
LAP - Laptop
IMP - Impresora

Marca:
IBM
DEL
sHP

NRO Modelo:
Instancia:

SO
W00 - Windows 2000
W03 - Windows 2003
W08
W12
LRH - Linux Red Hat
LFC - Linux Fedora Core
LCS - Linux Centos
LDB - Linux Debian

SO
W - Windows
L - Linux

Entorno:
DEV
PRE
PRO

Servicios:
FLL - Firewall
BLC - Balanceo de Carga
BKP - Backup
FTP - FTP
FS - Filesystem
MX - Mail
WKS – Workstations
PRT – Impresoras
TTL – Servidor Terminal
PDC – Controladores de dominio
WEB – Servidor Web
SMS – Servidor SMS
APP – Servidor de Aplicaciones
CLN – Nombre de Cluster
SPG – Servidores de proposito general
TFS – Team Foundation Server
FSS – Servidor dedicado de archivos
PRS – Servidor de Impresion dedicado
WFE – SharePoint Web Front end
IDX – Index server (SharePoint / otros)

ID: #### (4 Digitos)

Aplicaciones
LN - Lotus Note
PY - Python
PHP - PHP

BD:
SQL- SQL Server
ORA - Oracle
MSQL - Servidor MySQL
DB2 - DB2
IFM - Informix
SQLL - SQL Lite
MON - Mongo DB

Framework:
ZF - Zend Framework
CI - Code Igniter
SY - Symfony
JG - Jango

CMS:
WPS - WordPress
DRU - Drupal
PSH - Presta ShoP
WKM - WIKI media
XZR - XZero

Personalmente hice mi nomenclatura de acuerdo a mis necesidades y utilize esta:

Pais + Ciudad + Empresa Propietaria+ Ubicacion + Hardware + Marca + Nro Modelo + Instancia + SO + Entorno + Servicio + ID


* PE-LIM-EC-DTC-SRV-HP-T110-ALPHA-LFC-PRO-SBD-0001
* PE-LIM-EC-DTC-SRV-IBM-I300-ALPHA-LFC-PRE-WEB-0001

A muchos les puede pareces muy extensa, pero la utilizare para mi caso, sin embargo muchos prefieren utilzar alias como los siguientes y que corresponden a mi ejemplo de nomenclatura
* SRV-L-SBD01
* SRV-W-WEB01 

OBS: Por un tema de estandar es recomendable que todos los prefijos contengan la misma cantidad de caracteres. 

Actualmente estoy metido en Cloud y uso la siguiente nomenclatura:
  • AWS-WEB-001
  • AWS-BDR-001 
  • RSP-WEB-001
  • GIG-FTP-001
  • AWS-FSI-001
Donde:
AWS: Amazon Web Services
RSP: RackSpace
GIG: Gigas