February 2012
2 posts
G.729 Codec FreeSWITCH
Intel G.729 Codec on FreeSWITCH == Introduction == Intel Primive Performance (IPP) Library is available at no cost for educational, research and non-commercial purpose. We compile a new FreeSWITCH module for G729 codec based on IPP libraries. == Method == Install Required Packages sudo apt-get install build-essential uuid-dev The G729 IPP module for Asterisk is better...
FreeSWITCH Timing
FS maintains its own clock because system clock can change suddenly. If NTP is enabled on your server then FS should be synced with system clock at least once every day or once every hour, as the need may be.
Use command fsctl sync_clock More details here http://wiki.freeswitch.org/wiki/Mod_commands
To get the current time here freeswitch command
fs_cli -x “strftime_tz...
January 2012
1 post
Install FreeSWITCH on CentOS
yum install libtool bison libjpeg-devel
git clone git://git.freeswitch.org/freeswitch.git
cd freeswitch
./bootstrap.sh
./configure
Edit modules.conf and uncomment any commented module that you might need. For eg, Flite and UniMRCP for TTS and ASR, etc.
make && make install
make sounds-install moh-install
cp build/freeswitch.init.redhat /etc/init.d/freeswitch
Edit...
December 2011
2 posts
Floating Point Arithmetic in Shell
echo “scale=2; 2.51+2.51” | bc 5.02
CentOS Asterisk iptables
Add the following rules to /etc/sysconfig/iptables
-A INPUT -i lo -j ACCEPT -A INPUT -m state —state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p tcp -m tcp —dport 22 -j ACCEPT -A INPUT -p udp -m udp —dport 5060 -j ACCEPT -A INPUT -p udp -m udp —dport 10000:20000 -j ACCEPT -A INPUT -p udp -m udp —dport 4000:4999 -j ACCEPT -A INPUT -p udp -m udp —dport 4569 -j...
October 2011
16 posts
Shell Remove blank space filenames
find | while read fname; do newname=`echo $fname | sed -e ‘s/ /_/g’`; mv “$fname” “$newname”; done
Linux Format new Hard Disk
Source: http://www.ehow.com/how_1000631_hard-drive-linux.html
Preparation
1
When you format a computer hard drive, you will lose everything that is on the drive. Therefore, it is very important to back up anything you might later want.
2
To format a secondary drive, you will need root access. All commands used in this tutorial are run from a command line (terminal) as root. You may also...
CentOS Install SugarCRM
yum install php-mbstrings php-imap
Edit /etc/php.ini
memory_limit = 48MB
upload_max_filesize = 12M
/etc/init.d/httpd restart
chown -R apache.apache /var/www/html/*
In order to run SugarCRM schedulers add the following line in crontab
* * * * * cd /var/www/html/SugarCE-Full-6.3.0RC1; php -f cron.php > /dev/null 2>&1
Mysql change user password
Source: http://www.cyberciti.biz/faq/mysql-change-user-password/
First, login to MySQL server, type following command at shell prompt to login as root $ mysql -u root -p
2) Use mysql database (type command at mysql> prompt, do not include string “mysql>”): mysql> use mysql;
3) Change password for user tom: mysql> update user set password=PASSWORD("NEW-PASSWORD-HERE")...
Install ffmpeg centos
Source: http://www.boonex.com/n/How_to_install_ffmpeg_on_centos_5
The most easy way to install ffmpeg in CentOS is with yum. First of all, edit /etc/yum.repos.d/CentOS-Base.repo and add those lines at bottm of file: [dag] name=Dag RPM Repository for Centos baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=0
enabled=1
Then, run command: yum install ffmpeg Or, you...
Asterisk iptables
Source: http://www.selbytech.com/2010/04/how-to-setup-iptables-for-asterisk-1-6-2-on-centos-5-4/
First things first, I want to point out, if you’re not careful when you’re setting up your iptables settings, there’s a very real possibility of blocking all remote access to your server. If you’re working on your server remotely, be very careful, and be sure to read all of this article before...
Recover MySQL root Password
Source: http://www.cyberciti.biz/tips/recover-mysql-root-password.html
If you simple want to change root password then
$ mysqladmin -u root password NEWPASSWORD
Otherwise, if you do not know the root password then
You can recover MySQL database server password with following five easy steps.
Step # 1: Stop the MySQL server process.
Step # 2: Start the MySQL (mysqld) server/daemon...
Install php 5.2 centos
Source: http://wiki.centos.org/HowTos/PHP_5.1_To_5.2
Summary
This guide describes how to upgrade the standard PHP 5.1.x packages in CentOS 5.x 32-bit to the current development versions 5.2.x. These instructions were created using CentOS 5.3 32-bit and with the following PHP packages installed:
# rpm -qa |grep php
php-common-5.1.6-15.el5.i386
php-cli-5.1.6-15.el5.i386
...
Install Apache on Centos Rackspace
Source: http://www.rackspace.com/knowledge_center/index.php/CentOS_-_Apache_and_PHP_install
CentOS - Installing Apache and PHP5
CentOS comes with Apache v.2.2.3 and PHP v.5.1.6 and they are easily installed via the default CentOS Package Manager, yum.
The advantage of using yum (as opposed to installing via source code) is that you will get any security updates (if and when distributed) and ...
Configure jabber gtalk asterisk
#apt-get instal libgnutls-dev
Download, compile and install iksemel - xml parser and jabber protocol library
http://code.google.com/p/iksemel/downloads/list
Do not worry about the warning message, apparently iksemel does not compile with libgnutls2+ because of absence of gnutls-config but that is okay.
Compile and install asterisk after ensuring that jabber, gtalk channels and resources are...
Start Process at Linux Boot
How to start a new process at Linux Boot automatically ?
All commands in /etc/rc.d/rc.local are executed AFTER the init scripts, so adding your shell process to this script is a quick method.
The formal alternative is to put appropriate start/stop scripts in /etc/init.d and then make symbolic links in /etc/rc.d/init.d
Reverse SSH tunnel or connecting to computer...
Source: http://www.alexonlinux.com/reverse-ssh-tunnel-or-connecting-to-computer-behind-nat-router
Introduction
Few days ago I encountered a problem. How do you connect to a computer behind NAT router? Any NAT router is also a firewall. Sometimes you do have access to firewall configuration and can set up port forwarding. Yet often it is complicated and even impossible. Common situation is...
SSH without password
Source: http://linuxproblem.org/art_9.html
Your aim
You want to use Linux and OpenSSH to automize your tasks. Therefore you need an automatic login from host A / user a to Host B / user b. You don’t want to enter any passwords, because you want to call ssh from a within a shell script.
How to do it
First log in on A as user a and generate a pair of authentication keys. Do not enter a...
Install Asterisk CentOS
#yum install gcc-c++ make gnutls-devel kernel-devel kernel ncurses-devel
#reboot; if new kernel is installed
# cd /usr/src
#wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.7.0.tar.gz
#tar xvzf asterisk-1.8.7.0.tar.gz
#cd asterisk-1.8.7.0
#./configure —disable-xmldoc
#make menuselect
select cdr mysql in addons if needed
#make all
#make install
#make...
PHP cURL Tutorial
Source: http://www.catswhocode.com/blog/10-awesome-things-to-do-with-curl
http://morethanseven.net/2007/01/20/posting-to-twitter-using-php.html
cURL, and its PHP extension libcURL, are tools which can be used to simulate a web browser. In fact, it can for example, submit forms. In this article, I’m going to show you 10 incredible things that you can do using PHP and cURL.
New to cURL? If...
cURL Tutorial
Source: http://www.codediesel.com/tools/6-essential-curl-commands/
cURL is a command line tool for doing all sorts of interesting and essential URL manipulations and data transfers. The original goal of the program was to transfer files programmatically via protocols such as http, ftp, gopher, sftp, ftps, scp, tftp, and many others, via a command line interface. The main benefit of using the...
September 2011
12 posts
Install Asterisk Stats
Asterisk Stats has now been renamed as CDR-stats and is available at http://www.cdr-stats.org/
However, an older version in PHP is available for download at Areski’s Asterisk Stats and locally mirrored at Asterisk Stats
Here is how to Install this older PHP version of Asterisk Stats.
1. Install mysql client library
On centos
#yum install mysql-devel
On debian
#apt-get install...
Centos Single CD Install and Networking
Here is how to do Single CD Install and Networking configuration from command line of Centos
1. Install Centos Single CD
Download CD from here. Please check if you need 32-bit or 64-bit CD
http://isoredirect.centos.org/centos/5/isos/i386/
http://isoredirect.centos.org/centos/5/isos/x86_64/
You need to download only the First CD named *-bin-1of8.iso
(The following is taken from here...
T9 Source Code in Bash
You can download the source code from here
Shell Source code for T9
And the sample dictionary with T9 hashing for faster search from here
Sample Dictionary
The source code is reproduced below
#!/bin/bash # This script still makes it simpler to implement the t9 by adapting the t9.dic # Abhishek Singh Bailoo: 17th Sep, 2011 # Adapted from...
TTS API
Web-based APIs
Google TTS API
News about Google TTS API
Call YumPhone Number 07662-308-307 to listen to what Google API sounds like on the phone. It is US English accent.
iSpeech API
Ericsson TTS API
SDK APIs
Cepstral API
app_cepstral for Asterisk
Install app_cepstral on Asterisk
app_cepstral for Asterisk
FreeBSoft TTS API
Nextup useless Windows API !
Mobile
Android TTS API...
How to BackUp your website ?
wget -m -k -K -E http://www.domain-name.com
How to Reset MySQL root password →
How to reset your MySQL password.
Health Jini on Mobile Phone
Listen to Mobile Radio Health Jini on 07662-308-106.
You can listen interactively to hours of audio content on best health practices and medical care tips. If needed, you can dial a doctor and consult.
Update: Mobile Radio Health Jini on Toll Free Number 1800-110-106
If you cannot reach toll free number, then try 011-25-130-106
Subscribe to Osho World
To subscribe and receive updates, quotes, SMS, audio from the mystical World of Osho, please give a missed call to 07662-308-318.
4 tags
Installation Securing VoIP With Linux →
There you have it, a Firewall, PBX and Internet Telephony all in one box and for the price of a $500.00 dollar card and a generic white box computer. You could install your main server machine, a backup machine and still save money! All you need is a E1/T1 and you’re off and running.
Open Source VPN →
First off, it’s open source with a good track record. It allows us to pick the authentication and encryption method we wanted to use since it’s based on OpenSSL. We also liked it because it allowed us to build UDP based VPN tunnels. This is important when dealing with VoIP.
4 tags
Virtual Private Asterisk →
How to have a secure Asterisk Install and run multiple instances of Asterisk on a single machine, aka, Virtual Private Asterisk.
Reverse SSH tunnel or connecting to computer... →
How to connect to your machine which is behind a NAT router and does not have a static IP address ? Use reverse ssh with GatewayPorts enabled as explained here.
August 2011
2 posts
Planet Earth: A Simulation of Life and Universe
!!! Work in Progress !!!
References:
http://en.wikipedia.org/wiki/Simulated_reality
http://www.bottomlayer.com/bottom/argument/Argument4.html
http://www.seti.org.au/spacecom/SimUniverseV1.htm
http://www.systems-thinking.org/simulation/contsim.htm
http://www.inf.ethz.ch/personal/cellier/Pubs/Soft/sim_75.html
Abstract:
This work presents for the first time the results of a simulation...