Project

General

Profile

Library req » History » Version 17

Version 16 (Konrad Meier, 11/11/2011 04:26 PM) → Version 17/39 (Konrad Meier, 11/11/2011 05:27 PM)

h1. Library requirement

h2. Python Library

h3. PJSUA Library

pjsua is an open source command line SIP user agent (softphone) that is used as the reference implementation for PJSIP, PJNATH, and PJMEDIA. Despite its simple command line appearance, it does pack many features!

This library use for SIP handler. More information about this library you will found in this site http://www.pjsip.org/pjsua.htm

How to use it and how to install will explain here: [[SIP| SIP Handler]]

h3. SSH

Secure Shell (SSH) is a network protocol for secure data communication, remote shell services or command execution and other secure network services between two networked computers that it connects via a secure channel over an insecure network: a server (running an SSH server program) and a client (running an SSH client program).[1] The protocol specification distinguishes two major versions that are referred to as SSH-1 and SSH-2.

Instalation

<pre>
sudo apt-get install ssh
</pre>

We need to configure ssh connection to the client without typing password. This will be done with copying public key into the client. For more information how to configure, you can find in this tutorial "3 Steps to Perform SSH Login Without Password Using ssh-keygen & ssh-copy-id" by RAMESH NATARAJAN http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/

h3. install easy_install

<pre>
sudo apt-get install python-setuptools python-dev build-essential
</pre>

h3. Setproctitle

The library allows a process to change its title (as displayed by system tools such as ps and top).

Changing the title is mostly useful in multi-process systems, for example when a master process is forked: changing the children's title allows to identify the task each process is busy with. The technique is used by PostgreSQL and the OpenSSH Server for example.

The procedure is hardly portable across different systems. PostgreSQL provides a good multi-platform implementation: this module is a Python wrapper around PostgreSQL code.
Installation

You can use easy_install to install the module: to perform a system-wide installation use:

<pre>
sudo easy_install setproctitle
</pre>

If you are an unprivileged user or you want to limit installation to a local environment, you can use the command:

<pre>
easy_install -d /target/path setproctitle
</pre>

Notice that easy_install requires /target/path to be in your PYTHONPATH.

Module content

The module exports the following functions:

<pre>
setproctitle(title)
</pre>

Set title as the title for the current process.

<pre>
getproctitle()
</pre>

Return the current process title.

More information about this library. http://pypi.python.org/pypi/setproctitle

h3. Serial port library

The serial port library is required for the cell phones to communicate with the server
computer and the BeagleBoards. The required library for Python can be installed by typing the following command:

<pre>
sudo apt-get install python-serial
</pre>

h3. MySQLdb

MySQLdb is an thread-compatible interface to the popular MySQL database server that provides the Python database API.
_mysql is a low-level API similiar to the MySQL C API. ZMySQLDA is a Database Adapter for Zope2.

If you want to write applications which are portable across databases, use MySQLdb, and avoid using this module directly. _mysql provides an interface which mostly implements the MySQL C API. For more information, see the MySQL documentation. The documentation for this module is intentionally weak because you probably should use the higher-level MySQLdb module. If you really need it, use the standard MySQL docs and transliterate as necessary.

h3. pChart library

The pChart library is within our installation les and does not require to be installed individually. The library is only required if one uses the web interface and requires the generated resulting image. The library is open source and does not require any licensing. However, if one needs to learn how the library works, information can be found on the pChart web page http://www.pchart.net/

h2. PhpMyadmin

phpMyAdmin is a very famous MySQL mangement software package. To use it you should install and configure PHP, Apache and php mysql.
The easy way to install PhpMyadmin is installing from package using Apt-get command.
<pre>
sudo apt-get install phpmyadmin
</pre>

For detailed instructions on using repositories and package managers, please go to the site: https://help.ubuntu.com/community/phpMyAdmin

h2. MySQL Server

MySQL is a fast, multi-threaded, multi-user, and robust SQL database server. It is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.

h3. Installation

To install MySQL, run the following command from a terminal prompt:
<pre>
sudo apt-get install mysql-server
</pre>

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. More information, please see: https://help.ubuntu.com/11.04/serverguide/C/mysql.html

h1. Installation guide from Konrad

SSH
<pre>
apt-get install apache
</pre>

Python:
<pre>
apt-get install python python-serial python-setuptools python-dev build-essential
easy_install setproctitle
</pre>

Apache + php:
<pre>
apt-get install apache2
apt-get install libapache2-mod-php5
a2enmod php5
/etc/init.d/apache2 restart
</pre>

MySQL:
<pre>
apt-get install mysql-server python-mysqldb
</pre>

PJSUA
<pre>
wget http://www.pjsip.org/release/1.12/pjproject-1.12.tar.bz2
tar --bzip2 -xvf pjproject-1.12.tar.bz2
./configure && make dep && make
cd pjsip-apps/src/python/
make
sudo make install
</pre>