Operating System Ubuntu11.10 download source code mkdir/opt/OpenIMSCorecd/opt/OpenIMSCoremkdirser_imssvncheckouthttp: // svn.berlios.de/svnroot/repos/openimscor Operating System
- Ubuntu 11.10
Download source code
- mkdir /opt/OpenIMSCore
- cd /opt/OpenIMSCore
-
- mkdir ser_ims
- svn checkout http://svn.berlios.de/svnroot/repos/openimscore/ser_ims/trunk ser_ims
-
- mkdir FHoSS
- svn checkout http://svn.berlios.de/svnroot/repos/openimscore/FHoSS/trunk FHoSS
Install necessary software packages
- Sudo apt-get install bison flex libxml2 libxml2-dev bind9
- Sudo apt-get install mysql-server libmysqlclient15-dev
- Sudo apt-get install ant libcurl4-nss-dev
- Sun-java5-jdk Installation Reference http://www.linuxidc.com/Linux/2011-04/34075.htm
Compile
- Compile JavaDiameterPeer to generate jdp. jar. The jdp. jar downloaded by svn has a problem.
- Cd JavaDiameterPeer/trunk
- Ant compile
- Ant jar // generate jdp. jar in the class directory
- Overwrite the compiled jdp. jar file in OpenIMSCore/FHoSS/lib.
-
- Compile OpenIMSCore
- Cd/opt/OpenIMSCore
- Cd FHoSS
- Ant compile deploy
- Cd ..
- Cd ser_ims
- Make install-libsAll
- Cd ..
Configure DNS
- sudo cp /opt/OpenIMSCore/ser_ims/cfg/open-ims.dnszone /etc/bind/
- vi /etc/bind/named.conf.local
- zone “open-ims.test” {
- type master;
- file “/etc/bind/open-ims.dnszone”;
- };
- sudo /etc/init.d/bind9 restart
Configure OpenIMSCore
- cd /opt/OpenIMSCore
- mysql -u root -p < FHoSS/scripts/hss_db.sql
- mysql -u root -p < FHoSS/scripts/userdata.sql
- mysql -u root -p < ser_ims/cfg/icscf.sql
- cp ser_ims/cfg/*.cfg .
- cp ser_ims/cfg/*.xml .
- cp ser_ims/cfg/*.sh .
Run OpenIMS Core
- Modify the domain name and IP address. Otherwise, the default listening IP address of the service is 127.0.0.1.
- Root @ www.linuxidc.comOpen-Ims:/opt/OpenIMSCore # locate aggregator. sh
- Root @ www.linuxidc.comOpen-Ims:/opt/OpenIMSCore #./aggregator. sh
- DomainName:Open-Ims. test
- IP Adress: 192.168.1.202
- FileToChange ["All"ForEverything, "exit"ToQuit]:All
- Root @ www.linuxidc.comOpen-Ims:/opt/OpenIMSCore # cd FHoSS/
- Root @ www.linuxidc.comOpen-Ims:/opt/OpenIMSCore/FHoSS # ../aggregator. sh
- DomainName:Open-Ims. test
- IP Adress: 192.168.1.202
- FileToChange ["All"ForEverything, "exit"ToQuit]:All
Run scripts
- /Opt/OpenIMSCore/pcscf. sh
- /Opt/OpenIMSCore/icscf. sh
- /Opt/OpenIMSCore/scscf. sh
- /Opt/OpenIMSCore/FHoSS/deploy/startup. sh
- Open the browser and enter http: // 192.168.1.202: 8080. the user name and password are: hss/hss.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2