Friday, 26 September 2014

How to install VM player on Ubuntu 14.04

How to install  VM player on Ubuntu 14.04


VMware Player allows you to run entire operating systems in a virtual machine, which runs on top of Ubuntu or Windows. To the guest operating system (the one running inside the virtual machine), it appears as though it were running on its own PC. The host operating system runs the VMware Player, which provides the guestwith resources like network access. It can be downloaded for free from VMware.
Virtual machines configured with an operating system and applications ready to perform a specific function are called virtual appliances. An appliance can be created using certain VMware products, or you can download ready-made appliances. A wide variety of appliances (both certified and other-wise) are available from VMware's Appliance Marketplace.
If you are a Windows (or other operating system) user looking for an official Ubuntuappliance to run, you will want to read only the last section.
If you are an Ubuntu user who wishes to install or use the VMware Player software, continue reading.

Installing VMware Player on Ubuntu 14.04

  1. Install required packages build-essential and linux-headers:
    1. sudo apt-get install build-essential linux-headers-$(uname -r)
  2. Download the latest VMware player e.g. VMware-Player-6.0.2-1744117.x86_64.bundle (download the bundle version, not the rpmone) and run it as root using gksudo. You'll get a graphical installer that installs VMware player for you.
  • gksudo bash ~/Downloads/VMware-Player-6.0.2-1744117.x86_64.bundle
Note: this assumes the location of your Downloads folder is /home/$USER/Downloads. *If nothing appears, you may need to make the file executable. You can do so with this command:
chmod +x ~/Downloads/VMware-Player-6.0.2-1744117.x86_64.bundle
(again, with the assumption of your Downloads folder location). After completion, VMware player is installed and should show up in the menu under ApplicationsSystem ToolsVMware Player (for Unity users, it should come up in the search results for vmware player).
As well, you may notice that when trying to create a new virtual machine, vmware player will complain on the terminal output(if it was started from the terminal as vmplayer) that:
VMware Player is installed, but it has not been (correctly) configured for your running kernel. To (re-)configure it, your system administrator must find and run "". For more information, please see the VMware Player documentation. is not present anymore in the latest vmware-player versions (seems to have been superseded by vmware-modconfig). If you have this problem you may instead need to check if you have a /etc/vmware/not_configured file and, if so, delete it.

Tuesday, 23 September 2014

Installing OpenIMSCore on Ubuntu

First install the prerequisites for OpenIMSCore

sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install bison
sudo apt-get install curl
sudo apt-get install debhelper cdbs lintian build-essential fakeroot devscripts pbuilder dh-make debootstrap dpatch flex libxml2-dev libmysqlclient15-dev ant docbook-to-man
sudo apt-get install ipsec-tools
sudo apt-get install subversion
sudo apt-get install mysql-server-5.5

To install JDK 7:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

#It'll keep your java 7 installation up to date.

#To automatically set up the Java 7 environment variables JAVA_HOME and PATH:

sudo apt-get install oracle-java7-set-default

------ Download openIMScore-------------------
sudo mkdir /opt/OpenIMSCore
cd /opt/OpenIMSCore

sudo mkdir ser_ims
sudo svn checkout

------- problem on ubuntu 12 and solve it by this code----------------

sudo sed -i '/include <curl\/types.h>/d' ser_ims/lib/lost/client.h

------ installing IMScore-------
cd ser_ims
sudo make install-libs all
cd ..

------------- Compile FHoSS----------
sudo mkdir FHoSS
sudo svn checkout FHoSS

cd FHoSS
sudo ant compile deploy
sudo sed -i 's/JAVA_HOME\/bin\/java/JAVA_HOME\/usr\/bin\/java/g' deploy/
cd ..

--------------- Copy databases to sql server---------
mysql -u root -p -h localhost < ser_ims/cfg/icscf.sql
mysql -u root -p -h localhost < FHoSS/scripts/hss_db.sql
mysql -u root -p -h localhost < FHoSS/scripts/userdata.sql

---- Configure DNS--------------
- To install DNS on ubuntu
sudo apt-get install bind9
sudo cp ser_ims/cfg/open-ims.dnszone /etc/bind/

sudo sed -i '3azone "open-ims.test" {\n\ttype master;\n\tfile "\/etc\/bind\/open-ims.dnszone";\n};' /etc/bind/named.conf.local

sudo sed -i '2a127.0.0.1\topen-ims.test' /etc/hosts

- To restart DNS server
sudo /etc/init.d/bind9 restart
------------- copy start up files-------------
sudo cp ser_ims/cfg/*.cfg ./
sudo cp ser_ims/cfg/*.xml ./
sudo cp ser_ims/cfg/*.sh ./

------ Start up your servers----------
sudo ./
sudo ./
sudo ./
cd FHoSS/deploy
sudo sh

----- to access the FHoSS use this URL----------

How to Intsall SiPp on Ubuntu


SIPp is a  stress or performance test tool / traffic generator for the SIP protocol. It can work in both Scenarios (UAC /UAS) and establishes and releases multiple calls with the INVITE and BYE methods.It can also reads Custom XML scenario files describing from very simple to complex call flows. It features the dynamic display of statistics about running tests (call rate, round trip delay, and message statistics), periodic CSV statistics dumps, TCP and UDP over multiple sockets or multiplexed with retransmission management and dynamically adjustable call rates.

SIPp can also send media (RTP) traffic through RTP echo and RTP /pcap replay. Media can be audio or video.

SIPp can be used to test various real SIP equipment like SIP proxies, B2BUAs, SIP media servers, SIP/x gateways, SIP PBX, ... It is also very useful to emulate thousands of user agents calling your SIP system.

How to install:

  • Using apt get:
    • Sipp comes as ubuntu pakage, you can  install sipp using following command.
      • Update the package index:
      • sudo apt-get update
      • Install sip-tester deb package:
      • sudo apt-get install sip-tester

When you run above command you can able run sipp as service from any on ubuntu. with  above steps the sipp version installed will be

           SIPp v3.2-PCAP, version unknown, built Dec  3 2011, 14:49:41.

If you want latest SIPp version then you need to follow below steps.

  • Install from Source code:

    • Download the latest release from
    • Install Dependencies :
      • Install following prerequisites before start compilation
        • sudo apt-get install dh-autoreconf
        • sudo apt-get install ncurses-dev
        • sudo apt-get install build-essential
        • sudo apt-get install libssl-dev libpcap-dev
        • sudo apt-get install libncurses5-dev
        • sudo apt-get install libsctp-dev lksctp-tools
    • Download Source: Consider you have to install SIPp v3.4.1
      • Install Dependencies.
      • cd /home/user/Desktop
      • mkdir sipp
      • tar -xvzf v3.4.1.tar.gz
      • You have four options to compile SIPp:
        • Without TLS (Transport Layer Security), SCTP or PCAP support: - This is the recommended setup if you don't need to handle SCTP, TLS or PCAP.
            • # cd sipp-3.4.1
            • # ./configure
            • # make
        • With TLS support, you must have installed OpenSSL library (>=0.9.8) (which may come with your system). Building SIPp consists only in adding the "--with-openssl" option to the configure command:
            • # cd sipp-3.4.1
            • # ./configure --with-openssl
            • # make
        • With PCAP play support:
            • # cd sipp-3.4.1
            • # ./configure --with-pcap
            • # make
        • With SCTP support:
            • # cd sipp-3.4.1
            • # ./configure --with-sctp
            • # make
      • You can also combine these various options, e.g.:
        • # cd sipp-3.4.1
        • # ./configure --with-sctp --with-pcap --with-openssl
        • # make
 After doing this you will get sipp binary in /home/user/Desktop/sipp/sipp-3.4.1 Directory.

to check Sipp version simply run ./sipp -v in currecnt directory (sipp-3.4.1).

If u have followed last option the version will be

SIPp v3.4.1-TLS-SCTP-PCAP-RTPSTREAM built Sep 23 2014, 12:39:45.