lunes, 19 de octubre de 2015

Instalación de Docker en Debian 8




1.- # apt-get update

2.- # apt-get install wget

3.- # wget -qO- https://get.docker.com/ | sh

4.- Testing:  # docker run hello-world


Fuente: Docker.com  

martes, 13 de octubre de 2015

Instalación de PHP 5.4.45 en Centos 7


1.-  Agregar repositorios EPEL y  Webtatic:


# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

2.- Instalar PHP 54w:

# yum install php54w

3.- Instalar "yum replace plugin" y ejecutar el upgrade correspondiente :

# yum install yum-plugin-replace
# yum replace php-common --replace-with=php54w-common

4.- Instalar módulos "opcode cache":

# yum install php54w-pecl-apc
# yum install php54w-pecl-zendopcache



Fuente: Webtatic

lunes, 12 de octubre de 2015

Instalar LAMP en Centos 7


Apache:

1.- # yum install httpd
     # systemctl start httpd.service
     # systemctl enable httpd.service
     # firewall-cmd --permanent --zone=public --add-service=http

     # firewall-cmd --permanent --zone=public --add-service=https
     # firewall-cmd --reload


Mysql:

2.- # yum install mariadb-server mariadb
     # systemctl start mariadb.service
     # systemctl enable mariadb.service
     # mysql_secure_installation

PHP y módulos:

3.- # yum install php
     # yum install php-mysql
     # yum install php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel




Fuente: HowtoForge


martes, 29 de septiembre de 2015

Desactivar Network Manager y configurar interfaces manualmente en Debian


1.- Desactivando network-manager


$ sudo /etc/init.d/network-manager stop
$ sudo update-rc.d network-manager remove


2.- Configurar interfaces:

$ sudo vi /etc/network/interfaces

auto eth0
    iface eth0 inet static
        address 192.0.2.7
        netmask 255.255.255.0
        gateway 192.0.2.254



Fuente:
Wiki Debian
ToqueCanela

martes, 15 de septiembre de 2015

Agregar repositorios en RHEL


1.- Instalar yum-utils

#yum install yum-utils


2.- Verificar que repositorios se tienen inistalados y a cuales se tiene acceso:

#yum repolist
#subscription-manager repos --list


3.- Agregar el repositorio deseado, ejemplo:

#yum-config-manager --enable rhel-6-server-optional-rpms

4.- Actualizar los repositorios del sistema:

#yum update




Fuente:

Red Hat Access

Configurar interface de red (IPV4) en RHEL 7 mediante "nmcli"


1.- Verificar si esta activado y en funcionamiento el demonio de NetworkManager:

systemctl status NetworkManager

2.- Verificar el estado de las interfaces:

nmcli devices status
nmcli -p con

3.- Crear un profile para la conexión:

nmcli connection add type ethernet con-name MyConnection ifname eth0

4.- Configurar las caracteristicas del profile:

nmcli con mod MyConnection ipv4.addresses "192.168.1.2"
nmcli con mod MyConnection ipv4.gateway "192.168.1.254"
nmcli con mod MyConnection ipv4.dns "8.8.8.8 4.2.2.2"
nmcli con mod MyConnection ipv4.method "manual"


5 .- Verificar la configuración del profile creado:

nmcli -p con show MyConnection




Fuente:

Red Hat Network

Registrar y suscribir un equipo con Red Hat Enterprise Linux(RHEL)


1.- En un paso:

subscription-manager register --username --password --auto-attach


2.- En dos pasos:

* subscription-manager register
* subscription-manager attach --auto



Fuente:

Red Hat Network