Posts Tagged ‘install’

This is long time draft before being published,,,,

You may known that OpenSIPS is the project continuation of OpenSER, tough Kamailio is said to be closer to OpenSER. But after all, it’s all about taste,,lol 😀

OpenSIPS will be best deployed on Sun machine running Solaris OS to obtain it’s best performance. But installing on Debian or Ubuntu machine will much easier. OpenSIPS modules depend on various package which is hard to get for Solaris. Debian or Ubuntu will be the best OS for installing practice. To get familiar with OpenSIPS, you’ll may need to practice installing too :D.

OpenSIPS is recommended to install with DNS. So that you wouldn’t have a lot of changes to move the system from a machine to another. These steps I’ve used to build a presence system server with TLS enabled. If you don’t need any presence enabled, you may leave mi_xmlrpc, xcap_client, presence, presence_xml, presence_mwi, presence_dialoginfo, pua, pua_bla, pua_mi, pua_usrloc, pua_xmpp,  pua_dialoginfo, and TLS=1 commented.
It’s hard to find a good OpenSIPS installation tutorial, so I try to write these steps which is work for me. Hopefully these steps will help you much 😀

1. sudo apt-get install bison bison++ bisonc++
2. sudo apt-get install flex
3. sudo apt-get install libsctp1
4. sudo apt-get install mysql-server
5. sudo apt-get install libmysqlclient-dev
6. sudo apt-get install libxml2-dev
7. sudo apt-get install libexpat1-dev
8. sudo apt-get install libradius-ng2 libradius-ng-dev
9. sudo apt-get install libcurl3-dev
10. sudo apt-get install libxmlrpc-c3 libxmlrpc-c3-dev
11. sudo apt-get install libperl-dev
12. sudo apt-get install libsnmp-dev
13. sudo apt-get install libconfuse0 libconfuse-dev
14. sudo apt-get install build-essential
15. sudo tar xvfz opensips-1.5.0-tls_src.tar.gz
16. edit opensips-1.5.0-tls/Makefile/
change : #TLS=1
to : TLS=1
remove : – jabber
– cpl-c
– xmpp
– rls
– mi_xmlrpc
– xcap_client
– db_mysql
– presence
– presence_xml
– presence_mwi
– presence_dialoginfo
– pua
– pua_bla
– pua_mi
– pua_usrloc
– pua_xmpp
– pua_dialoginfo
– perl
– snmpstats
– peering
– carrierroute
from : exclude_modules=
17. sudo make
18. sudo make install
19. sudo cp opensips-1.5.0-tls/packaging/debian-etch/opensips.default /etc/default/opensips
sudo cp opensips-1.5.0-tls/packaging/debian-etch/opensips.init /etc/init.d/opensips
20. sudo nano /etc/default/opensips
change : RUN_OPENSIPS=no
21. sudo nano /etc/init.d/opensips
change : DAEMON=/usr/sbin/opensips
to : DAEMON=/usr/local/sbin/opensips
22. sudo chmod +x /etc/init.d/opensips
23. sudo groupadd opensips
sudo useradd -g opensips opensips
24. sudo mkdir /var/run/opensips
sudo chmod 777 /var/run/opensips
25. sudo chmod 777 /usr/local/etc/opensips/
26. sudo apt-get install bind9
27. sudo nano /etc/bind9/named.conf
add : zone “” {
type master;
file “/etc/bind/db.opensips”;

zone “” {
type master;
file “/etc/bind/db.18.14.10″;
28. Create new RR file

sudo nano /etc/bind9/db.opensips
write :

; BIND data file for
$TTL 604800
@ IN SOA (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
29.  Create new RR file

sudo nano /etc/bind9/db.18.14.10
add :

; BIND data file for
$TTL 604800
@ IN SOA (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
30. sudo nano /etc/bind9/named.conf.option
add : recursion no;
in : option { }
31. sudo /etc/init.d/bind9 restart
32. sudo nano /usr/local/etc/opensips/opensipsctlrc
uncomment : #
# DBHOST=localhost
# DBNAME=opensips
# DBRWUSER=opensips
# DBRWPW=”opensipsrw”
# DBROUSER=opensipsro
# DBROPW=opensipsro
# USERCOL=”username”
uncomment and change :
# PID_FILE=/var/run/
to : PID_FILE=/var/run/opensips/
33. sudo mysqladmin -u root password ‘root’
34. sudo opensipsdbctl create
35. sudo nano /usr/local/etc/opensips/opensips.cfg
uncomment : #loadmodule “”
#loadmodule “”
#loadmodule “”

#modparam(“usrloc”, “db_mode”, 2)
#modparam(“usrloc”, “db_url”,
# “mysql://opensips:opensipsrw@localhost/opensips”)

#modparam(“auth_db”, “calculate_ha1”, yes)
#modparam(“auth_db”, “password_column”, “password”)
#modparam(“auth_db”, “db_url”,
# “mysql://opensips:opensipsrw@localhost/opensips”)

comment : modparam(“usrloc”, “db_mode”, 0)
36. sudo nano mysql -u root -p
mysql> GRANT ALL PRIVILEGES ON *.* TO opensips@localhost IDENTIFIED BY ‘opensipsrw’;
mysql> GRANT ALL PRIVILEGES ON *.* TO opensips@ IDENTIFIED BY ‘opensipsrw’;
37. start opensips, choose one of these method:
1. sudo opensipsctl start
2. sudo /etc/init.d/opensips start
38. sudo opensipsctl add 1001 1001

You can use any kind of SIP client you have. These install will be default enable your SIP chat.

Comment me if you have any error on installation. Feel free to try 😀

This is the counter for my recent post, LOL… 😀
Nano is one of friendly text editor usually included on most Linux distribution. Nano is not included on Solaris 10 installation -tough you do entire disk install, LOL. But, nano can be installed later manually. These few simple steps will make your nano home 😀 :

1. Go to, choose your Solaris version and machine platform. Machine platform could be x86 or SPARC. Choose the right one

2. Once you choosen your Solaris version and machine platform, you will be entering new page with suitable to your OS and platform

3. Left-click on nano package

4. I assume you use SPARC machine. This is the view after you click on nano package

5. Click on nano package to download it

6. Click on dependencies needed based on the notes above (ncurses, libiconv, libintl, libgcc-3.4.6)

7. Install the dependencies first:

#gunzip -d ncurses-5.6-sol10-sparc-local.gz

#pkgadd -d ncurses-5.6-sol10-sparc-local

#gunzip -d libiconv-1.11-sol10-sparc-local.gz

#pkgadd -d libiconv-1.11-sol10-sparc-local

#gunzip -d libintl-3.4.0-sol10-sparc-local.gz

#pkgadd -d libintl-3.4.0-sol10-sparc-local

#gunzip -d libgcc-3.4.6-sol10-sparc-local.gz

#pkgadd -d libgcc-3.4.6-sol10-sparc-local

8. Finally, install the nano package

#gunzip -d nano-2.0.9-sol10-sparc-local.gz

#pkgadd -d nano-2.0.9-sol10-sparc-local

9. Next, you can’t use your nano yet untill you add your PATH variables

#export PATH=$PATH:/usr/local/bin

This is because nano installation put it’s binary files on /usr/local/bin which Solaris default PATH is not included it in.

Enjoy your nano 😀 !

Sign up for PayPal and start accepting credit card payments instantly.

Few days ago I have been sucessfully Solaris 10u6 on Sun Sparc v240 machine. It takes me few hours to be familiar with the machine.  V240 machine is one which has no graphic adapter (VGA) by its package. You cannot do installation by direct management. But don’t worry. V240 – just like other server machines –  is built up with one ethernet management port. We need one ethernet to RS232 cable to remote this machine using HyperTerminal. Here are the steps:

1. Make sure you have proper ethernet to RS232 cable and one PC/Laptop with RS232 connector

2. Connect the cable to the management port on v240 and another end to the RS232 connector on PC/laptop

3. Turn on the server, turn on HyperTerminal on PC/Laptop

4. Create new connection on HyperTerminal. Enter connection name and choose one icon you like. Choose proper port used by RS232 connection, klik restore default to use default connection preference

5. While the HyperTerminal connecting to the machine, insert Solaris 10 installation DVD to v240 dvd-rom

6. At anytime after HyperTerminal successfull connect to v240,  press ctrl+break

7. Wait ok prompt emerge. OK prompt will looked like this: OK>

8. Enter command for rebooting the machine with installation dvd with this command: boot cdrom

9. Wait until system reboot and search boot sequence to cdrom.

10. Follow installation instruction, use F2 to go to the next screen.

Sign up for PayPal and start accepting credit card payments instantly.