Install Freeswitch on Ubuntu Server

I have started learning Freeswitch today and will document all the thing which I need to run the Freeswitch in this way I can keep track of my learning path and at the same time have reference guide for myself and others.

Freeswitch can be installed on Linux and Windows. It is up to the user which platform he is comfortable with. I personally prefer linux. I have choose Ubuntu Server 10.04 32-bit to run on my VirtualBox.

Let get start with the Installation.

Step 1.
Download Ubuntu Server 10.04 from “” and and install the base system with ssh only to manage it remotely.

Step 2.
Install Freeswitch from repository.
For Ubuntu Server version 10+ run this command first.
2.a. freeswitch@localhost~: sudo apt-get install pkg-config
2.b. Run following command from linux prompt
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:freeswitch-drivers/freeswitch-nightly-drivers
sudo apt-get update
sudo apt-get install freeswitch freeswitch-lang-en freeswitch-sounds-en-us-callie-8000
Freeswitch installed at /opt/freeswitch/

Step 3.
Fix the permissions
chown -R user:group /opt/freeswitch

Step 4.
Enable the freeswitch by editing the file called freeswitch located at /etc/default to true

Step 5.
To run Freeswitch use this command.
Goto directory /opt/freeswitch/bin/ and run
you will get the prompt
Run some command to test such as


Find server’s serial number from command line – linux

To get service/serial number from command in linux run command below. The first result is the service tag which usually in alphanumeric.

switch to root level

[server@abc1 ~] # dmidecode | egrep -i “serial|product”

output example:

Product Name: PowerEdge R710
Serial Number: AB8CDE1
Product Name: 0abc13
Serial Number: ..ABC123CDE2345XYZ.
Serial Number: AB23XYZ
Serial Number: Not Specified
Serial Number: Not Specified
Port Type: Serial Port 11204A Compatible

Hope this will save your trip to datacentre.


Reference:  How to Find Dell Service Tag

Install Virtualbox on Centos

I finally found good working guide of package installation of virtualbox 3.1.x on Centos 5.4 . I would like to share this thing with one who is looking for it. Hope will help.

Step 1:
First we have to get Sun’s public rpm key:

[root@~]# wget -q
[root@~]# rpm --import sun_vbox.asc
[root@~]# rm -f sun_vbox.asc

Step 2:
Now we have to enable the VirtualBox OpenSUSE repository on our system:

[root@~]# cd /etc/yum.repos.d/
[root@~]# wget

Step 3:
Install VirtualBox 3.1.x

[root@~]# yum install VirtualBox-3.1

Step 4:
Now you must add the user that will run VirtualBox (admin in this example) to the vboxusers group:

[root@~]# /usr/sbin/usermod -G vboxusers admin

VirtualBox is now installed and ready to be used.

To access virtualbox goto Applications->System Tools->Sun VirtualBox



USB devices greyed out in Virtualbox [Solved] – Centos

On my Centos 5.4 I installed Virtualbox and run Windows XP guest OS on it. After installation it showed available USB devices but all were greyout or disabled. After searching for the solution on net for 2 days i finally get it working by  following the steps below.


Findout gid number by typing

# grep vboxusers /etc/group

you will get output like this


Note down the number between :XXX: in this case it is 501

Step 2:

Now make sure none of the usb devices attached to the PC.

goto root level and run the follwoing commands

[root@~]# umount /proc/bus/usb
[root@~]# mount -n -t usbfs /proc/bus/usb /proc/bus/usb -o devgid=501,devmode=664

put devgid value  which you get above.

Step 3:

Now open your virtubalbox and run the OS, you will see all your USB devices enabled.



Hat Tips: Virtualbox Forum

How to Enable SSH in ESXi – VMware

By default you cannot SSH in VMware ESXi. Follow the steps below to enable SSH on ESXi

1. On ESXi server’s administration window where you see <F2> Configure and <F12> Shutdown/Restart options, prese ALT+F1 to enter into CLI mode

2. type  unsupported then enter.

3. on password type unsupported (if you haven’t set any password otherwise use the one which you have set) hit enter

4. Now on CLI prompt go to directory /etc

# cd /etc

5. Open config file called inetd.conf and go to the line where it show #SSH, remove # then save this file and exit

# vi inetd.conf

6. Run following command

# ps -a | grep inetd

7. which shows process id 1234 (this process id would be different for each server)

8. Kill that process

# kill 1234

9. Run inetd command


Open SSH and login to your ESXi server.




Enable SSH for ESXi

How to install Asterisk on CentOS? Package installation.

Follow these steps to install Asterisk (Open source PBX) on CentOS.

Step 1.

Make sure following packages were installed on CentOS/

  • kernel-devel OR kernel-smp-devel
  • bison
  • openssl-devel

To installed above packages run following commands

sudo yum install kernel-devel
sudo yum install bison
sudo yum install openssl-devel

Step 2.

Now add atrpms repository for Asterisk Installation

  • Create the file called atrpms.repo
sudo vim /etc/yum.repos.d/atrpms.repo

put following in the file

name=CentOS $releasever - $basearch - ATrpms

Step 3.

Run update command

sudo yum -y update

Step 4.

Now run following command to installed Asterisk

sudo yum install asterisk

After installation completed run following commands to check Asterisk status.

To check Asterisk Status

sudo /etc/init.d/asterisk status

To Start Asterisk

sudo /etc/init.d/asterisk start

To Stop Asterisk

sudo /etc/init.d/asterisk stop

To Restart Asterisk

sudo /etc/init.d/asterisk restart

5. Asterisk CLI

Go to asterisk directory and then use command -rvvv

                      cd /etc/asterisk/
                      asterisk]# asterisk -rvvvv

where ‘v’ indicates verbosity

Good Luck!


How to install Asterisk on CentOS server