Thursday, 19 March 2015

How to install asterisk 11 on centos tutorial

Originally posted on  Digium's Blog:

This is  asterisk tutorial, you can copy these commands and then paste in centos terminal,
For this install I am using Asterisk 11.0.0 and will be compiling from source on CentOS 6.3. This tutorial should also work on Fedora and RHEL (Red Hat Enterprise Linux) systems with little or no modification.

First, you will want to be sure that your server OS is up to date.
yum update -y    

Disable SELinux by changing “enforcing” to “disabled” in /etc/selinux/config. Use a text editor or copy and paste this command.
sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config   

After you update and disable SELinux, you’ll need to reboot.
reboot 

Next, you will need to install  basic dependencies. (More information on Asterisk dependencies.)
yum install -y make wget openssl-devel ncurses-devel  newt-devel libxml2-devel kernel-devel gcc gcc-c++ sqlite-devel libuuid-devel
Change into the /usr/src/ directory to store your source code.
cd /usr/src/

Download the source tarballs. These commands will get the current release of Asterisk 11.
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz

Extract the files from the tarballs. 
tar zxvf asterisk*

Change to the Asterisk directory.
cd /usr/src/asterisk*

In the next step, running the “configure” script will vary depending on whether your system is 32-bit or 64-bit.  When the menuselect command runs, select your options, then choose “Save and Exit” and the install will continue.
Use this command if you are installing Asterisk on 32bit CentOS.
./configure && make menuselect && make && make install

Use this command if you are installing Asterisk on 64bit CentOS.
./configure --libdir=/usr/lib64 && make menuselect && make && make install

Optional: If you ran into errors you will want to clean the install directory before recompiling.
make clean && make distclean

Once you have an error-free install, if this is not upgrade then copy the sample files from the configs subdirectory into /etc/asterisk.
make samples

Then add the Asterisk start script to the /etc/init.d/ directory
make config

Start Asterisk.
service asterisk start

Connect to the Asterisk CLI.
asterisk -rvvv

And now you have Asterisk 11 running on CentOS 6! If you’d like to continue configuring Asterisk you can check out this guide to setting up basic pbx functionality or leave a comment to share your thoughts below!





About  Shabbir Abbasi
i am an electronics professional and loves to write what i knows. i loves linux,
you can comment bellow  your questions and i will try to answer you as soon as possible, Thanks 

Saturday, 14 March 2015

how to choose a right ups(inverter) for home

in these days most common question is  How to choose a best UPS(inverter) ?
answer is first you need to know types of ups(inverters), There are many types inverters available in pakistan, but we will  talk about    1 pure sine wave  2 modified sine wave
Pure Sine wave : Pure Sine Wave UPS(inverters) provide electrical power similar to the utility power you receive from the outlets in your home or office, which is highly reliable and does not produce electrical noise interference associated with modified sine wave inverters, you can run your sensative load without problums like mobile chargers , fans without any sounds, computers  etc




Modified Sine Wave : modified sine wave inverters are cheap(inexpensive) then pure sine wave inverters and do not offer the same perfect electrical output like home utility. electrical noise of these inverters are  cause to produce sounds like hum in fans and can demage your fan regulater and mobile chargers ,but you can run most appliances of your home,

Power Requirement: it is very simple if u hate with calculations, easy way is

2 fan + 2 tube lights = 500va
3 fan + 3 tube lights = 800va
4 fan + 4 tube lights = 1100va
So if you want to run 3 fans, 3 tube lights ,  you would need 800VA inverter.
Battery  Selection
if u want to run 3 fans with 3 lights for 3 hours you must select 150ah batery
if u want to run 4 fans with 4 lights for 3 hours you must select 200ah batery
wrong battery can demage your inverter
Read more about electronics on Electronicabc.com