Posts

Showing posts from 2014

How to Install Asterisk 11 on CentOS 6

For this install I am using Asterisk 11.0.0 and will be compiling from source on CentOS 6.5. 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 want to resolve 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 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 DAHDI 2.6, libpri 1.4 and Asterisk 11. wget http://downloa

Installing g.729 Codec.

Image
Move to the Asterisk modules directory. By default, it’s the following: cd /usr/lib/asterisk/modules Now the tricky part, find out which binary you need to get the right module for the right processor of your server. This almost always stumps me, and I always end up downloading roughly two or three codecs before I get the right one. Here’s something to help you out, so you don’t have to make these mistakes: uname -a This let’s you know what type of server you got… But it’s reallllly complicated if you don’t know what you’re looking for! Linux 2.boom.boom.pow.server 2.6.18-348.1.1.el5xen #1 SMP Tue Jan 22 17:00:37 EST 2013 x86_64 x86_64 x86_64 GNU/Linux Ok, so this will help you out ALOT MORE than the above. I don’t know what half of that stuff even means!! cat /proc/cpuinfo The above command will give you something like this: [root@myserver ~]# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Duo CPU

Installing phpMyAdmin in Ubuntu

Image
Installing phpMyAdmin in Ubuntu Installing phpMyAdmin in Ubuntu is fairly easy. It involves using  apt-get ,   determining the web server you want to configure it for, which in this case is  apache2   and having the password of the  MySQL  database user you are configuring it for. You will also have to add a line of code in your  apache2  configuration so it knows to include  phpMyAdmin  it in it’s web server. Installing phpMyAdmin So lets get started, let’s begin with installing phpMyAdmin through the terminal. Type the following line  to start  installing phpMyAdmin. sudo apt-get  install  phpmyadmin Continue  with typing  Y  once the  installation  prompts you with  Do you want to continue [Y/n]?  Like in the image below. Now we are prompted with selecting our web server, in our case we are selecting  apache2  like shown below. Select  <Yes>  as we  just want a basic installation like shown below. Enter in your MySQL’s root user password like sho

Reset CentOS Root Password Onpremise

Forgotten root Password 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: 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. You are presented with a prompt that looks similar to the following: grub append> ro root=LABEL=/ 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 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# You can now change the root password by typing passwd root You will be asked to re-type the password for verification. Once you ar

How do I login as root in UBUNTU

Simulate a root environment.   If you really need root access, you can simiulate root using sudo. This will provide you with unhindered root access, which means a mistyped command could destroy your system. Enter the command  sudo passwd root . This will create a password for your root account, essentially "enabling" it. Make sure you don't forget this password. Enter the command  sudo -i . You will be asked for your root password. Your prompt will change from  $  to  # , indicating you have root access. To disable root access, enter the command  sudo passwd -dl root .

How to Configure Postfix to Use Gmail SMTP on Ubuntu

Image
If you want to use a Gmail account as a free SMTP server on your Ubuntu-Linux server, you will find this article useful. This guide is tested with Ubuntu 12.04. If you face any issue, feel free to use comments-section below. Relaying Postfix mails via smtp.gmail.com: First, install all necessary packages: sudo apt-get install postfix mailutils libsasl2-2 ca-certificates libsasl2-modules If you do not have postfix installed before, postfix configuration wizard will ask you some questions. Just select your server as  Internet Site  and for FQDN use something like  mail.example.com Then open your postfix config file: vim /etc/postfix/main.cf and following lines to it: relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_CAfile = /etc/postfix/cacert.pem smtp_use_tls = yes You might have noticed that we haven’t specified our Gmail username and password in above

Hardware Requirements For VICIDIAL/GoAutoDial

Minimum Hardware requirements for VICIDIAL "There may be a suggestion, but not a requirement." VICIDIAL/GoAutoDial runs on a Pendtium 4 machine and also on a Xeon Quad Processor based System. Depending on the size of your ViciDial Setup you need a different amount of servers with different setups. Typical setups would be 100 seat : Database Server x 1 [The more powerful , the better] Xeon Quad Core  32 GB DDR3-1600 ECC SDRAM 4 x 600 GB SAS HDD (15K RPM) SAS 4 Port RAID Card Dialer Server x 3 Xeon Quad Core 8 GB DDR3-1600 ECC SDRAM 1 TB SATA HDD (7200 RPM) Web Server x 1 Xeon Quad Core 16 GB DDR3-1600 ECC SDRAM 1 TB SATA HDD (7200 RPM)

How to Install Asterisk 11 on Ubuntu 12.04 LTS

For this install I am using Asterisk 11.0.1 and will be compiling from source on Ubuntu 12.04.1. Before you begin the install process you will want to be sure that your server OS is up to date. When the update completes the server will reboot. apt-get update && apt-get upgrade -y && reboot Next you will want to resolve basic dependencies. ( More information on Asterisk dependencies .) apt-get install build-essential wget libssl-dev libncurses5-dev libnewt-dev libxml2-dev linux-headers-$(uname -r) libsqlite3-dev uuid-dev Download the source tarballs. These commands will get the current version of DAHDI, libpri and Asterisk. cd /usr/src/ wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz Extract the files from the tarballs tar zxvf dahdi