Showing posts with label Installation. Show all posts
Showing posts with label Installation. Show all posts

Monday, 30 March 2015

opensips control panel installation (source : packetpub)

OpenSIPS Control Panel

This tool, also known as opensips-cp, is the new graphical user interface for the SIP proxy. It was designed to be the primary tool to provision parameters for the OpenSIPS modules in the database.
GUI for OpenSIPS 1.6
The screenshot shows the tools available for OpenSIPS Control Panel. This tool is focused on the provisioning of system parameters. As it is usual for the VoIP providers to develop their own interface with the end users, the tools to manage end users are not available. Developed using PHP, opensips-cp currently features the following modules:
  • CDRviewer
  • dialplan
  • domains
  • dispatcher
  • drouting
  • load balancer
  • Mi
  • Monit
  • nathelper
  • pdt
  • Permissions
  • siptrace
  • smonitor

Installation of opensips-cp

The step-by-step instructions to install opensips-cp in a server with Debian 5.0 are as follows:
Installation instructions change very often. For updates, check the opensips-cp project's website athttp://opensipscp.sourceforge.net/.
Step 1: Install Apache and PHP as follows:
apt-get install apache2 php5
Step 2: Install php5-mysql and php5-xmlrpc packages, and set the right parameters in the php.ini file. (It has been done for you to save time.)
apt-get install php5-mysql php5-xmlrpc php-pear
vi /etc/php5/apache2/php.ini
Please verify that you have set the short_open_tag = On ; option in your php.ini file.
Step 3: Download opensips-cp and untar the file.
Download opensips-cp from http://opensips-cp.sourceforge.net/index.php?req=download (or copy from DVD) and copy the opensip-cp_3.0.tgz file to /var/www as follows:
cd /var/www
wget http://sourceforge.net/projects/opensips-cp/files/opensipscp/
3.0/opensips-cp_3.0.tgz/download
tar -xzvf opensips-cp_3.0.tgz
chown www-data:www-data opensips-cp -R
Step 4: Install MDB2.
pear install MDB2
pear install MDB2#mysql
pear install log
Step 5: Configure Apache for OpenSIPS Control Panel. Edit the apache2.conf file.
vi /etc/apache2/apache2.conf
After doing so, include the following line below the last line:
Alias /cp "/var/www/opensips-cp/web"
Also, change the owner of the log file:
chown www-data:www-data /var/www/opensips-cp/config/access.log
Step 6: Install the cdr table schema:
cd /var/www/opensips-cp/web/tools/cdrviewer
mysql -D opensips -p < cdrs.sql
mysql -u root -p
mysql> use opensips
mysql -D opensips -p < opensips_cdrs_1_6.mysql
Step 7: Edit the cron_job/generate-cdrs.sh file and change the MySQL connection data (hostname, username, password, and database) as follows:
cd /var/www/opensips-cp/cron-job
vi generate_cdrs.sh
Step 8: Edit the /etc/crontab file and add the following line for a three-minute interval:
vi /etc/crontab
*/3 * * * * root /var/www/opensips-cp/cron_job/generate-cdrs.sh
Step 9: For the smonitor module, you must add two tables to the OpenSIPS database:
cd /var/www/opensips-cp/web/tools/smonitor
mysql -p opensips <tables.sql
Step 10: Add a cron job that collects data from the OpenSIPS machine(s). Here is a cron job that collects data at a one-minute interval. (This interval is not arbitrary. It must be set to one minute by design.)
vi /etc/crontab
* * * * * root php /var/www/opensips-cp/cron_job/get_opensips_stats.php >
/dev/null
The cron jobs do not need to run as root. You might want to change the user.
Step 11: Restart OpenSIPS and Apache.

Installing Monit

Monit is a system-monitoring utility that allows an admin to easily monitor files, processes, directories, or devices on your system. It can also be used for automatic maintenance/repairs by executing particular commands when errors arise. Providing instructions on how to install Monit is beyond the scope of this article, but we have provided some here in order to avoid errors when you select the Monit tool in the OpenSIPS-CP.
The step-by-step instructions are as follows:
Step 1: To install Monit on your server, simply use apt-get:
apt-get install monit
Step 2: Once installed, you'll find the main configuration file.
vi /etc/monit/monitrc
  set daemon 120
  set logfile syslog facility log_daemon
  set alert root@localhost
  set httpd port 2812 and
  use address yourdomain.com
  allow localhost # allow localhost to connect to the server and
  allow youripaddress # allow 192.168.1.2 to connect to the server,
  # You can give only one per entry
  allow admin:monit # user name and password for authentication.
  check process opensips with pidfile /var/run/opensips.pid
  #Below is actions taken by monit when service got stuck.
  start program = "/etc/init.d/opensips start"
  stop program = "/etc/init.d/opensips stop"
  # Admin will notify by mail if below of the condition satisfied.
  if cpu is greater than 70% for 2 cycles then alert
  if cpu > 90% for 5 cycles then restart
Step 3: After modifying the configuration file, you should check for the syntax to make sure that everything is correct. To do this, run:
# monit -t
Step 4: Edit the /etc/default/monit file and change the parameters as follows:
# You must set this variable to for 1 monit to start
startup=1
# To change the intervals which monit should run uncomment
# and change this variable.
# CHECK_INTERVALS=180

Configuring OpenSIPS Control Panel

Step 1: Configure the database access parameters. Edit the db.inc.php file, which is valid for all modules. You may change the database parameters for a single module inside the module configuration section.
For example:
cd /var/www/opensips-cp/config
vi db.inc.php
  //database host
  $config->db_host = "localhost";
  //database port - leave empty for default
  $config->db_port = "";
  //database connection user
  $config->db_user = "root";
  //database connection password
  $config->db_pass = "opensips";
  //database name
  $config->db_name = "opensips";
  if ($config->db_port != "")$config->db_host=$config->db_host":"
  $config->db_port;
Step 2: Configure the FIFO access in the boxes.global.inc.php file:
cd /var/www/opensips-cp/config/
vi boxes.global.inc.php
  $box_id=0;
  // mi host:port pair || fifo_file
  $boxes[$box_id]['mi']['conn']="/tmp/opensips_fifo";
  // monit host:port
  $boxes[$box_id]['monit']['conn']="127.0.0.1:2812";
  $boxes[$box_id]['monit']['user']="admin";
  $boxes[$box_id]['monit']['pass']="monit";
  $boxes[$box_id]['monit']['has_ssl']=0;
  // description (appears in mi , monit )
  $boxes[$box_id]['desc']="Primary SIP server";
  $boxes[$box_id]['assoc_id']=1;
  // enable local smonitor charts on this box : 0=disabled 1=enabled
  // (cron)
  $boxes[$box_id]['smonitor']['charts']=1;
Step 3: Access http://server_ip_address/cp and check each module for the correct functionality.

Friday, 27 February 2015

Installing TeamViewer on ubuntu 14.04/12.04

To install Teamviewer in ubuntu 14.04 just follow the run below commands

sudo dpkg --add-architecture i386 sudo apt-get update wget http://www.teamviewer.com/download/teamviewer_linux.deb sudo dpkg -i teamviewer_linux.deb sudo apt-get install -f

Tuesday, 10 February 2015

Install Clementine on ubuntu 14.04/12.04/13.04 system | Install Clementine music player using apt


Install Clementine:

You can add the Clementine PPA and receive updates by running the command below in a terminal window (Press Ctrl+Alt+T to open the terminal):
sudo apt-add-repository ppa:me-davidsansome/clementine
So far, the PPA supports Ubuntu 14.04, Ubuntu 13.10, Ubuntu 12.10, and Ubuntu 12.04.

After added the PPA, install the player via the commands below or check for updates via System Updater:

sudo apt-get update 
sudo apt-get install clementine

Sunday, 11 January 2015

Install RabbitVCS svn Client in Ubunutu 12.04/12.10/13.04/13.10/14.04/14.10


Run the Terminal and go to the root with command: sudo su
We have to add the PPA or source list repository with the following command:

add-apt-repository ppa:rabbitvcs/ppa
Update your software package repositories with:

apt-get update
Then install RabbitVCS and support software package with the following commands:
apt-get install rabbitvcs-nautilus3
apt-get install rabbitvcs-gedit
apt-get install rabbitvcs-cli
apt-get install thunar-vcs-plugin

We must to install package rabbitvcs-thunar, but it package need thunarx-python version 0.3.0-1. Default software package thunarx-python in version 0.2.0, so we must to setup thunarx-python 0.3.0. How to install thunarx-python 0.3.0-1 in Ubuntu 12.04 LTS?

First step add the PPA to enable repository

add-apt-repository ppa:nilarimogard/webupd8
Update software package repositories:

apt-get update
Then install package thunarx-python
apt-get install thunarx-python
After install package thunarx-python 0.3.0-1, next install rabbitvcs-thunar with:
apt-get install rabbitvcs-thunar
After installation is complete, logout and log back in for changes to take effect.

Tuesday, 28 October 2014

Mysql server and Mysql client Installation on Ubuntu 12.04/14.04 Machine


First, remove the current version of MySQL you're already using:
$ sudo apt-get purge mysql-client-core-5.5
Now, to install MySQL, run the following command from a terminal prompt:
$ sudo apt-get install mysql-server
$ sudo apt-get install mysql-client
During the installation process you will be prompted to enter a password for the MySQL root user.
Once the installation is complete, the MySQL server should be started automatically. You can run the following command from a terminal prompt to check whether the MySQL server is running:
$sudo netstat -tap | grep mysql
When you run this command, you should see the following line or something similar:
tcp        0      0 localhost.localdomain:mysql           *:* LISTEN -
If the server is not running correctly, you can type the following command to start it:
$ sudo /etc/init.d/mysql restart
You can edit the /etc/mysql/my.cnf file to configure the basic settings: log file, port number, etc.

Thursday, 16 October 2014

Install JSON-C in Ubuntu and Debian based linux distro's

json-c is a C library for manipulating JSON data in C/C++. It can be downloaded from here. But if you are working in Ubuntu or other debian based systems you can execute the following commands
$ sudo apt-get install libjson0 libjson0-dev
If you want to debug your programs and see the various steps for debugging, you can also install the libjson – debug symbols package
$ sudo apt-get install libjson0-dbg

Thursday, 5 June 2014

RTP proxy installation from debian Package and Configuration

About RTPproxy :

The RTPproxy is a high-performance software proxy for RTP streams that can work together with SER, OpenSER or Sippy B2BUA. Originally created for handling NAT scenarious it can also act as a generic media relay as well as gateway RTP sessions between IPv4 and IPv6 networks. RTPproxy was developed by Maxim Sobolev and now is being actively maintained by the Sippy Software, Inc..

The RTPproxy supports some advanced features, such as remote control mode, allowing building scalable distributed SIP VoIP networks. The nathelper module included into the SER or OpenSER SIP Proxy software as well as Sippy B2BUA allow using multiple RTPproxy instances running on remote machines for fault-tolerance and load-balancing purposes.

Installation :

apt-get install rtpproxy

Now it will create one file in /etc/init.d/ folder this is init file we need configure this file. other file is /etc/default/rtpproxy file.

Configuring /etc/init.d/rtpproxy :

/etc/init.d/rtpproxy file look like this.
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=rtpproxy
GROUP_USER=opensips
DESC="RTP relay"
DAEMON=/usr/bin/$NAME
USER=$NAME
GROUP=$GROUP_USER
PIDFILE="/var/run/$NAME/$NAME.pid"
PIDFILE_DIR=`dirname $PIDFILE`
CONTROL_SOCK="udp:127.0.0.1:7890"
IP_ADDR="your server IP Address" 

edit CONTROL_SOCK and IP_ADDR and also check DAEMON path is it pointing to correct location or not.

Starting Rtpproxy :


/etc/init.d/rtpproxy start

Checking :

check if rtpproxy is running or not by below command.
ps -ef | grep rtpproxy                                                                                                                        
it will show output like this

rtpproxy 936 0 21:43 ? 00:00:00 /usr/bin/rtpproxy -l  YourSERVERIP -s udp:127.0.0.1 7890 -u rtpproxy opensips -p /var/run/rtpproxy/rtpproxy.pid

Congratulations your successfully configured RTP proxy.

Friday, 30 May 2014

Openfire Installation Guide 2

Openfire is a real time collaboration (RTC) server licensed under Open Source Apache License. It uses the only widely adopted open protocol for instant messaging, XMPP (also called Jabber). In other word, OpenFire is free open source application used for building a chat server.
In this article we will use OpenFire to build a chat server on ubuntu. In this article I use:
  1. Ubuntu 12.04
  2. Oracle Java Development Kit (JDK)
  3. MySQL
  4. OpenFire
Please note that all the command invoked on terminal are using root privilege!

Preparation

It is always a good choice to update and upgrade your system. To do so, do following:

Update / Install Latest JDK

We will use Oracle JDK instead of OpenJDK. First we need to uninstall OpenJDK (purge it!)
Once the purge complete, install Oracle JDK

Database

The database used here is MySQL server. If you haven’t install it, you can invoke following command to install it.
Now, login to mysql
Next, create a database by these series of SQL command:
and then quit. Note that you can change the password identification for user openfire.

Installing OpenFire

Download the latest OpenFire package for Debian-based Linux. The latest version of OpenFire (per September 15th, 2013) is 3.8.2 which can be downloaded here.
Or, you can install it directly.
Now, replace java-6-sun with java-7-oracle (we have install java-7-oracle, right?)

Set Firewall

Now, set the firewall to allow packet traffic for ports used by openfire.

Configuration

Now we will configure the OpenFire by web.
Open your browser and go to http://Your-IP:9090 where Your IP is your server IP.
Click continue until you reach setting for database connection (we omit other default setting). Choose Standard Database Connection. Now you will get a form. Fill the form with setting we use on previous sections. For example:
  • Database Driver Presets = MySQL
  • JDBC Driver Class = com.mysql.jdbc.Driver
  • Database Url = jdbc:mysql://localhost:3306/dbopenfire
  • Username = openfire
  • Password = <the password you set>
  • Minimum connections = 5
  • Maximum connections = 25
  • Connection Timeout = 1.0 Days
On profile setting, choose default and click on continue.
Now set the administrator account. You pick the password by yourself, and should be different from database password.
The configuration is finished.

E-mail Newsletter

Sign up now to receive breaking news and to hear what's new with us.

Recent Articles

© 2014 VOIP4Learn. WP themonic converted by Bloggertheme9. Powered by Blogger.
TOP