jueves, 27 de diciembre de 2012

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.