Posts

Showing posts from April, 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