manual instalacion elastix 2.3.0

Post on 28-Oct-2014

847 Views

Category:

Documents

4 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Ing. Jose Miguel Cabrera Septiembre 2012

MANUAL PASO A PASO

INSTALACION DE SERVIDOR LINUX ELASTIX 2.3.0

EN UNA PC CON WINDOWS USANDO UNA MAQUINA VIRTUAL

Requisitos para la instalación:

Vmware Workstation 8 o superior

Archivo ISO del instalador de Elastix 2.3.0

Paciencia

Septiembre – 2012 Ing. Jose Miguel Cabrera

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

Este paso puede tardar entre 20 a 60 minutos dependiendo de la memoria ram y procesador del equipo.

Al concluir se reiniciara el equipo de manera automática y debe dejarse que inicie desde el disco duro

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

EJECUTAR LOS SIGUIENTES COMANDOS

chkconfig --list | grep 5:activo | awk '{ print $1 }' > servicios.txt

cat servicios.txt

for i in $(cat servicios.txt); do chkconfig $i off; done

chkconfig network on

chkconfig sshd on

chkconfig crond on

chkconfig syslog on

chkconfig haldaemon on

chkconfig messagebus on

chkconfig asterisk on

chkconfig dahdi on

chkconfig elastix-firstboot on

chkconfig elastix-updaterd on

chkconfig httpd on

chkconfig dhcpd on

chkconfig mysqld on

mkdir -p {bin,conf,targz,rpms}

cd /root/bin

vi tailm

tail -n 30 -f /var/log/messages

chmod +x /root/bin/tailm

vi /etc/bashrc

alias l='ls -lhF'

vi /etc/sysconfig/network

VLAN=yes

Ing. Jose Miguel Cabrera Septiembre 2012

vi /etc/asterisk/modules.conf

; Don't load skinny (tcp port 2000)

noload => chan_skinny.so

; Don't load MGCP (udp port 2727)

noload => chan_mgcp.so

; Don't load dundi (udp port 4520)

noload => pbx_dundi.so

; Don't load Unistim (udp port 5000)

noload => chan_unistim.so

; Don't load IAX2 (udp port 4569)

noload => chan_iax2.so

vi /etc/httpd/conf/httpd.conf

Listen 192.168.77.254:80

vi /etc/httpd/conf.d/ssl.conf

Listen 192.168.77.254:443

vi /etc/my.cnf

bind-address = 127.0.0.1

vi /etc/asterisk/manager.conf

bindaddr = 127.0.0.1

vi /etc/asterisk/sip.conf

[general]

localnet=192.168.77.0/24

bindaddr=192.168.77.254

vi /etc/ssh/sshd_config

ListenAddress 192.168.77.254

vi /var/www/html/panel/op_server.cfg

listen_addr=127.0.0.1

amportal restart

service sshd restart

service httpd restart

service asterisk restart

service mysqld restart

netstat -lnp | grep asterisk

netstat -lnp | grep httpd

Ing. Jose Miguel Cabrera Septiembre 2012

vi /etc/rc.d/rc.firewall #!/bin/sh echo ## SCRIPT de IPTABLES ##Declaramos una variable $IPT para utlizarla mas adelante IPT="/sbin/iptables" echo -n Aplicando Reglas de Firewall... ## FLUSH de reglas $IPT -F $IPT -X $IPT -Z $IPT -t nat -F echo -n Estableciendo politica por defecto.... ## Establecemos politica por defecto $IPT -P INPUT ACCEPT $IPT -P OUTPUT ACCEPT $IPT -P FORWARD ACCEPT $IPT -t nat -P PREROUTING ACCEPT $IPT -t nat -P POSTROUTING ACCEPT ############################################## ########### PREROUTUING ############## ############################################## ############################################## ########### INPUT ############## ############################################## $IPT -A INPUT -i lo -j ACCEPT $IPT -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT ############################################## ########### OUTPUT ############## ############################################## ############################################## ########### FORWARD ############## ############################################## $IPT -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT $IPT -A FORWARD -p icmp -j ACCEPT ############################################## ########### POSTROUTUING ############## ############################################## echo " OK" # Fin del script service iptables save echo

Ing. Jose Miguel Cabrera Septiembre 2012

Dar permiso de ejecucion chmod +x /etc/rc.d/rc.firewall Ejecutar el firewall sh /etc/rc.d/rc.firewall Que el servicio se inicie al levantar el Servidor chkconfig iptables on

top related