Monthly Archives: June 2012

-bash: dahdi_tool: command not found + dahdi-tools-2.4.1 + CENTOS 5.5/6.2


[root@ecentrixpress]# yum install newt-devel slang-devel

[root@ecentrixpress]#cd /usr/src/dahdi-tools-2.4.1

[root@ecentrixpress]#./configure && make && make install && make config

install -D dahdi.init /etc/rc.d/init.d/dahdi
install -D ifup-hdlc /etc/sysconfig/network-scripts/ifup-hdlc
/sbin/chkconfig –add dahdi
DAHDI has been configured.

Thanks

Install Perl perl-5.16.0.tar.gz


#!/bin/bash
tar /home/post/perl-update/perl-5.16.0.tar.gz -zxvf /usr/src/perl-5.16.0.tar.gz -C /usr/src/
cd /usr/src/perl-5.16.0
./Configure -d -Dusethreads
make
make test
make install

Option -d : automatic accept

Dusethreads : support thread -> x86_64-linux-thread-multi

[root@ecentrixpress src]# which perl
/usr/local/bin/perl

/usr/local/bin/perl -MCAPN -e ‘shell’

o conf urllist http://192.168.0.253/project/CPAN => from repo local cpan

o conf commit

cpan[1]>install DBI

cpan[2]>install Data::UUID

cpan[3]>install Device::Gsm::Sms

cpan[4]>install Log::Log4perl

cpan[5]>install DBD::mysql

[root@ecentrixpress src]# /usr/local/bin/perl -V

/usr/local/lib/perl5/site_perl/5.16.0/x86_64-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.16.0
/usr/local/lib/perl5/5.16.0/x86_64-linux-thread-multi
/usr/local/lib/perl5/5.16.0

sms-perl.pl

#!/usr/local/bin/perl
#============================================================================#
# add library path as needed! #
#============================================================================#
use lib ‘/home/ecentrix/sms/’;
use lib ‘/usr/local/lib/perl5/5.16.0/x86_64-linux-thread-multi’;
use lib ‘/usr/local/lib/perl5/site_perl/5.16.0/x86_64-linux-thread-multi’;

#============================================================================#
use DBI;
use Data::UUID;
use Wavecom;
use POSIX;
use Time::HiRes qw(sleep);
use threads;
use threads::shared;
use Device::Gsm::Sms;
use Device::Modem;
use Log::Log4perl qw(get_logger :levels);
my $STOP_DAEMON : shared = 0;
my $log;
my $VERSION = ‘1.0.1’;

Thanks

RPM QUERY | %{NAME}-%{VERSION}-%{RELEASE} %{ARCH}


[root@localhost Packages]# rpm -qa –queryformat “%{NAME}-%{VERSION}-%{RELEASE}-%{ARCH}\n”

[root@localhost Packages]# rpm -q –queryformat “%{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n” nmap-5.21-4.el6.x86_64

for i in `cat /tmp/i386`;
do
echo $i;
mv /distro/eCentrix/Packages/$i /tmp/packagei386/
done

 

for i in `rpm -qa –qf “%{NAME} %{VENDOR}\n” |\
grep -i centos | awk ‘{ print $1 }’`
do yum -y reinstall $i
done

http://www.rpm.org/max-rpm/s1-rpm-query-parts.html

Isntall Lame On centos 6.2 64 bit


lame -b 32 –resample 8 -a <wavefilename> <mp3filename>

rpm -Uvh http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

yum clean all

yum search lame

yum install lame

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: