jueves, 27 de diciembre de 2012

Ubuntu Server 12.04 64-bit with Zoneminder 1.25.0

En este Link hay una receta de cocina para Instalar Zoneminder 1.25.0
En Ubuntu Server 12.04 LTS (32 o 64)

Si necesita camaras IP puedo conseguir a muy buen precio..

http://www.zoneminder.com/wiki/index.php/Ubuntu_Server_12.04_64-bit_with_Zoneminder_1.25.0_the_easy_way

Change Default Zoneminder Events Directory

nano /etc/sysctl.conf


add
kernel.shmall = 134217728
kernel.shmmax = 134217728

rm /usr/share/zoneminder/events
rm /usr/share/zoneminder/images
rm /usr/share/zoneminder/temp

mkdir /zoneminder
mkdir /zoneminder/images
mkdir /zoneminder/events
mkdir /zoneminder/temp

ln -s /zoneminder/images /usr/share/zoneminder/images
ln -s /zoneminder/events /usr/share/zoneminder/events
ln -s /zoneminder/temp /usr/share/zoneminder/temp

chown www-data:www-data -R /zoneminder/

reboot

miércoles, 17 de octubre de 2012

IredMail POP3.IMAP.Connection.without.STARTTLS

Since iRedMail-0.8.0, all clients are forced to use IMAPS and POPS (via STARTTLS) for better security by default. If you want to enable POP3/IMAPS without STARTTLS, please update below two parameters in dovecot.conf and restart Dovecot service:

File: dovecot.conf
disable_plaintext_auth=no
ssl=yes

Again, it's strongly recommended to use only POP3S/IMAPS for better security.

lunes, 15 de octubre de 2012

Mikrotik Router Board and RouterOS

Instalacion  y Configuracion

http://www.scribd.com/doc/94118713/Fundamentos-Basicos-Del-Sistema-Mikrotik-Routeros

Ver Espacio utilizado Linux

If you want to list all the subdirectory sizes under /home, run the following command: 

# du -sh /home/*

martes, 18 de septiembre de 2012

Reset Root Password Linux Centos


Help! I forgot my root password. How do I log in now?
You can log in using single-user mode and create a new root password.
To enter single-user mode, reboot your computer. If you use the default boot loader, GRUB, you can enter single user mode by performing the following:
  1. At the boot loader menu, use the arrow keys to highlight the installation you want to edit and type [A] to enter into append mode.
  2. You are presented with a prompt that looks similar to the following:
    grub append> ro root=LABEL=/
    
  3. Press the Spacebar once to add a blank space, then add the word single to tell GRUB to boot into single-user Linux mode. The result should look like the following:
    ro root=LABEL=/ single
    
  4. Press [Enter] and GRUB will boot single-user Linux mode. After it finishes loading, you will be presented with a shell prompt similar to the following:
    sh-2.05b#
    
  5. You can now change the root password by typing
    passwd root
    
    You will be asked to re-type the password for verification. Once you are finished, the password will be changed. You can then reboot by typing reboot at the prompt; then you can log in to root as you normally would.

miércoles, 11 de julio de 2012

For the rate by min in Elastix Billing

For the rate by min in Elastix billing, do the following:

Go to /var/www/html/modules/billing_report
Edit index.php

Locate the following lines (249 and 260):

$charge=(($cdr[8]/60)*$datos_tarifa['rate'])+$datos_tarifa['offset'];
$charge=(($cdr[8]/60)*$rate)+$rate_offset;


And replace by:

$charge=(ceil($cdr[8]/60)*$datos_tarifa['rate'])+$datos_tarifa['offset'];
$charge=(ceil($cdr[8]/60)*$rate)+$rate_offset;

jueves, 10 de mayo de 2012

Reset Admin Password (Untangle)

To reset the password for an administrator's account:
  1. Ensure that the Untangle Server is turned on.
  2. Connect a monitor, keyboard, and mouse to the Untangle Server. The monitor displays the Untangle Client.
  3. In the Navigation bar, click the Recovery Utilities button.
  4. When the Recovery window appears, click the Yes button. A terminal window appears.
  5. Scroll to Reset Administrative Accounts, and hit Enter. The following question appears: Reset administrative accounts to factory defaults (admin/passwd)?.
  6. Select Yes. The Untangle Server resets the password and informs you of the newly-assigned password. Once you log in to the Untangle Server using that newly-assigned password, the Untangle Client forces you to assign a new password.

jueves, 26 de abril de 2012

Install Gnome3 Ubuntu 12.04

sudo apt-get install gnome-shell gnome-theme-standard gnome-tweak-tool gnome-contacts gnome-sushi dconf-tools

If you want the most extensions to work with Gnome Shell 3.4 I'll suggest PPA: http://ppa.launchpad.net/webupd8team/gnome3/ubuntu
As most of the extensions on gnome extensions site is not updated for Gnome Shell 3.4.


To uninstall Unity completely and run Gnome Shell only:

sudo apt-get purge appmenu-gtk appmenu-gtk3 appmenu-qt indicator-appmenu
 unity-lens-music unity-lens-applications unity-greeter unity-common unity-asset-pool unity-2d-launcher unity-2d libunity-misc4 libunity-2d-private0 gir1.2-unity-4.0 liboverlay-scrollbar-0.2-0 liboverlay-scrollbar3-0.2-0 overlay-scrollbar appmenu-gtk appmenu-gtk3 appmenu-qt indicator-appmenu compiz compiz-plugins-main-default libcompizconfig0

sudo apt-get purge lightdm
sudo apt-get install lightdm

Advisable: removing all local config files/folders/other local settings from "home" users. (I couldn't get Gnome Shell starting without doing this step at current state.

If you want to remove qt libs that are related to unity and other ubuntu applications:

sudo apt-get remove libqt4*

Note: if you have applications like vlc, ubuntuone and other qt depended. they will uninstalled as well.

jueves, 12 de abril de 2012

Asterisk Local Extension

[from-internal-block]               
exten => _1XXX,1,Log(DEBUG,Dialing local extension ${EXTEN})
exten => _1XXX,n,Dial(SIP/${EXTEN},${DIAL_TOUT},htwk)
exten => _1XXX,n,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?lbl_dial-ext_1:)
exten => _1XXX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?lbl_dial-ext_1:)
exten => _1XXX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?lbl_dial-ext_1:)
exten => _1XXX,n(lbl_dial-ext_0),Hangup()
exten => _1XXX,n(lbl_dial-ext_1),MailboxExists(${EXTEN})
exten => _1XXX,n,GotoIf($["${VMBOXEXISTSSTATUS}" = "FAILED"]?lbl_dial-ext_2:)
exten => _1XXX,n,VoiceMail(${EXTEN},u)
exten => _1XXX,n,GotoIf($["${VMSTATUS}" = "FAILED"]?lbl_dial-ext_3:)
exten => _1XXX,n,Goto(lbl_dial-ext_0)
exten => _1XXX,n(lbl_dial-ext_3),Log(ERROR,Caller ${CALLERID(all)}
failed to leave a voicemail for ${EXTEN} mailbox.)
exten => _1XXX,n,Goto(lbl_dial-ext_0)
exten => _1XXX,n(lbl_dial-ext_2),Hangup()

jueves, 23 de febrero de 2012

install iSymphony on elastix

wget http://www.i9technologies.com/support/internal/isymphonybuilds/2.2.0_2315/iSymphonyServer-2.2.0_2315-1.noarch.rpm

rpm -ivh iSymphonyServer-2.2.0_2315-1.noarch.rpm

cd /opt/isymphony/server
./config.sh


Type in:
/opt/openfire/jre






Make iSymphony start at boot:
nano /etc/rc.d/rc.local

Copy and paste this into the file

/opt/isymphony/server/shutdown.sh
/opt/isymphony/server/startup.sh

Install the free pbx module and your good to go

Otra Guia:

jueves, 19 de enero de 2012

The Perfect Server - CentOS 6.2 x86_64 With Apache2

http://www.howtoforge.com/perfect-server-centos-6.2-x86_64-with-apache2-ispconfig-3


http://www.howtoforge.com/quick-n-easy-lamp-server-centos-rhel

OpenSSH Installations under CentOS Linux

To install the server and client type:
# yum -y install openssh-server openssh-clients

Start the service:
# chkconfig sshd on
# service sshd start

miércoles, 4 de enero de 2012

Instalar Asterisk Monitor

Esta es una guia para Instalar Asterisk Monitor (MonAst) 3.0
en Elastix 2.2.0

Ingresamos en consola de la central asterisk y ejecutamos los siguientes comandos:

cd /root

 
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
 
yum install python-devel python-crypto pyOpenSSL zope
 
cd /usr/src
mkdir twist
cd twist
wget http://twistedmatrix.com/Releases/Twisted/11.0/Twisted-11.0.0.tar.bz2
tar jxvf Twisted-11.0.0.tar.bz2
cd Twisted-11.0.0
sudo python setup.py install
 
cd /usr/src
mkdir StarPy
cd StarPy
wget http://ignum.dl.sourceforge.net/project/starpy/starpy/1.0.0a13/starpy-1.0.0a13.zip 
unzip starpy-1.0.0a13.zip 
cd starpy-1.0.0a13 
python setup.py install
 
pear install HTTP_Client
cd /usr/src
mkdir monast 
cd monast 
wget http://kent.dl.sourceforge.net/project/monast/Monast%20for%20Asterisk%201.4%2C%201.6%20and%201.8/3.0b4/monast-3.0b4.tar.gz
tar zxvf monast-3.0b4.tar.gz
cd monast-3.0b4
./install.sh
 
MonAst base path [/opt/monast]:
MonAst HTML path [/var/www/html/monast]:
MonAst already instaled on this system. Overrite? [y/n]: y
MonAst instaled at /opt/monast
HTML files instaled at /var/www/html/monast
Instaling init.d scripts
I have demon monast started. I am trying to figure it out how to add extension under: y
 
Editamos:
 
nano /etc/asterisk/manager_custom.conf
 
Adicionamos:
 
[monast_user]                                                                                                                  
secret=12345                                                                                                                 
deny=0.0.0.0/0.0.0.0                                                                                                         
permit=127.0.0.1/255.255.255.0                                                                                          
writetimeout=100                                                                                                              
read=system,call,log,verbose,command,agent,user,config,originate,reporting                                
write=system,call,log,verbose,command,agent,user,config,originate,reporting
 
Editamos:
nano /etc/monast.conf
Modificamos valores de usuario, contraseña y direccion del pbx
Arrancamos el Servicio:
/etc/init.d/monast start
 
Entramos a Monast:
https://your_ip/monast