OpenIMSCore in Ubuntu

Embed Size (px)

DESCRIPTION

How to set up OpenIMSCore in Ubuntu

Citation preview

  • Steps to install OpenIMSCore in Ubuntu (Tried in Kubuntu 12.04):

    sudo apt-get update sudo apt-get install ant mysql-server mysql-client mysql-common bison flex libxml2

    libxml2-dev libmysqlclient-dev openjdk-6-jdk libcurl4-gnutls-dev build-essential subversion Download the latest version of bind9 from https://www.isc.org/downloadables/11 (ar tar.gz

    archive) OR sudo apt-get install bind9 sudo mkdir /opt/OpenIMSCore cd /opt/OpenIMSCore mkdir FHoSS mkdir ser_ims sudo svn checkout http://svn.berlios.de/svnroot/repos/openimscore/FHoss FHoss sudo svn checkout http://svn.berlios.de/svnroot/repos/openimscore/ser_ims ser_ims Next step is to download X-Lite for Ubuntu. But now it is not free for download. Download

    similar software "ekiga" from http://ftp.gnome.org/pub/gnome/sources/ekiga/3.2/ (latest version is at the bottom) {Later, how to compile and install this is given in the link: http://wiki.ekiga.org/index.php/Compiling_Ekiga }

    Install "nslookup" via apt-get

    Settings for the network:

    These are examples.

    Domain Name: group5imslab12.inIP address: 192.168.1.100Subnet: 255.255.0.0

    The three files that have to be modified in Ubuntu initially:1. /etc/network/interfaces2. /etc/hosts3. /etc/resolv.conf

    The screenshots are below (modify these files in a similar way, according to your network settings).

    Do the following before modifying the above 3 files: sudo service network-manager stop sudo ifconfig eth0 192.168.1.100/16 up

  • /etc/network/interfaces

    (Ignore the lines starting with #, they are comments)

    /etc/hosts

  • /etc/resolv.conf

    Add the following lines (modified according to your settings):

    search group5imslab12.indomain group5imslab12.in

    nameserver 192.168.1.100nameserver 127.0.0.1

    Restart the network by the command:

    sudo /etc/init.d/networking restart

    You will be able to ping pcscf, icscf, scscf, localhost now

    Configuring Bind:

    Edit /etc/bind/named.conf similar to the following screenshot:

  • Now, add open-ims.dnszone and open-ims-rev.dnszone files at /etc/bind. Easeiest way to do is copy "open-ims.dnszone" file from /opt/OpenIMSCore/ser_ims/cfg to /etc/bind and edit it.

    (sudo cp /opt/OpenIMSCore/ser_ims/cfg/open-ims.dnszone /etc/bind)

    (Then copy the contents of this new "open-ims.dnszone" file at /etc/bind to another file "open-ims-rev.dnszone" at same location)

    Contents of "open-ims.dnszone":

  • Contents of "open-ims-rev.dnszone":

    Copy open-ims.dnszone to /opt/OpenIMSCore/ser_ims/cfg:

    cp /etc/bind/open-ims.dnszone /opt/OpenIMSCore/ser_ims/cfg

    Restart bind server:

    sudo /etc/init.d/bind9 restart

    If the bind server fails to start, it might mean that there is some error in the last two files.

    Check whether DNS has been configured with nslookup command:

    nslookup group5imslab12.innslookup 192.168.1.100

    The output will look something like:

  • Final Steps

    Go to /opt/OpenIMSCore/

    1. Go inside ser_ims/cfg directory ( cd /ser_ims/cfg/ )2. Run configurator.sh ( sh configurator.sh )3. Enter Domain Name: < your domain name>4. Enter IP Address: < Your IP Address>(in our case we entered group5imslab12.in and ip 192.168.1.100)5. Apply changes to all.(This step will change domain name and ip address in the following files: icscf.cfg,icscf_pg.sql, icscf.sql, icscf.thig.cfg, icscf.xml, pcscf.cfg, pcscf.xml, persist_my.sql,persist_pg.sql, scscf.cfg, scscf.xml)6. Change to the following directory:( cd /opt/OpenIMSCore/FHoSS/scripts )7. Change domain name in userdata.sql to your domain. (Replace "open-ims.test" with your domain, wherever it is present in the file. Replace "127.0.0.1" to "192.168.1.100"8. Change to the following directory( cd /opt/OpenIMSCore/FHoSS/config/ )9. Change Domain name in DiameterPeerHSS.xml to your domain name.10. Move to the following directory:Cd /opt/OpenIMSCore/ser_imsmake install-libs all11. cd /opt/OpenIMSCore/FHoSSant compile deploy12. Now make Database as:You are at /opt/OpenIMSCoremysql u root p < ser_ims/cfg/icscf.sqlmysql u root p < FHoSS/scripts/hss_db.sqlmysql u root p < FHoSS/scripts/userdata.sql13. Copy the following files into /opt/OpenIMSCorecp ser_ims/cfg/*.cfg cp ser_ims/cfg/*.xmlcp ser_ims/cfg/*.sh

  • 14. Start OpenIMSCore (in 4 different terminals):./pcscf.sh./scscf.sh./icscf.shcd FHoSS/deploy/./startup.sh15. Open FHoSS web Consolehttp://localhost:8080/hss.web.console/User Name: hssAdminpassword: hss16. Go to user identities -> Public User Identities -> search17. Click on search, you will see two default users:Alice and bob18. Now you are ready with your IMS Core for the experiments.