Powered By Blogger

Sunday, July 28, 2013

Install epel and rpmforge package in centos 6.4 32bit

Install Epel and Rpmforge repo's in centos 6.4 32 bit


check the version of your linux box .

#  uname -a
Linux samari.XXXX.com 2.6.32-358.14.1.el6.i686 #1 SMP Tue Jul 16 21:12:30 UTC 2013 i686 i686 i386 GNU/Linux


Install Epel repo

[root@samari ~]# wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6

100%[===================================>] 1,649       --.-K/s   in 0s    

[root@samari ~]# wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

100%[===============================>] 14,540      --.-K/s   in 0.001s

[root@samari ~]# rpm -ivh epel-release-6-8.noarch.rpm
warning: epel-release-6-8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing...                ########################################### [100%]
   1:epel-release           ########################################### [100%]

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

# Install  Rpmforge

[root@samari ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

100%[=====================================>] 12,732      --.-K/s   in 0.001s

2013-07-28 12:25:07 (11.2 MB/s) - ârpmforge-release-0.5.2-2.el6.rf.i686.rpmâsaved [12732/12732]

[root@samari ~]# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
[root@samari ~]# rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm
rpmforge-release-0.5.2-2.el6.rf.i686.rpm: (sha1) dsa sha1 md5 gpg OK

[root@samari ~]# rpm -ivh rpmforge-release-0.5.2-2.el6.rf.i686.rpm
Preparing...                ########################################### [100%]
   1:rpmforge-release       ########################################### [100%]


                                                                                                        Nerazan Adhikary

Tuesday, July 23, 2013

How to configure gsm modem in Linux with gammu

Installation of Gammu Gsm-utils in Centos 6.4 32bit

Download required packages

gammu installation

 Wget http://sourceforge.net/projects/gammu/files/gammu/1.31.0/gammu-1.31.0.tar.gz
 Tar-xzvf gammu-1.31.0.tar.gz
 Cd gammu-1.31.0
. / Configure
 Make install

Install other required packages

# yum install eject

# yum install comget  ( if you are not able to install comget from yum command
follow follow the process mentioned below.

 wget http://kaz.dl.sourceforge.net/project/comgt/comgt/0.32/comgt.0.32.tgz
 make
 make install

process to configure gsm modem 

#  insert gsm modem in usb port
# check usb port for gsm modem

# dmesg | grep tty
ls -l /dev | grep '\->'  ( command to check the modem port connected to.)

# note gsm modem are detected as cd - rom in linux because the modem contains memory card slot ....

# eject /dev/sr0 or sr1  ( use this command to eject the cd-rom sr0 & sr1 as per your condition)

# comgt -x -d /dev/ttyUSB2  ( command to connect gsm modem to usb port, USB2 in my case)
# when modem is connected you will get the message with service provider name)

#   ln -s /dev/ttyUSB2 /dev/modem ( create symbolic link to /dev/modem)

# Gammu configuration 

gammu-config

port /dev/ttyUSB2 
connection at  

# gammu --identify ( if your connection is successful you will get the message as below)

Device               : /dev/ttyUSB2
Manufacturer         : PROLiNK CORPORATION
Model                : unknown (PHS101)
Firmware             : BD_P679M1V1.0.1B18
IMEI                 : 353907041******
SIM IMSI             : 42902001*****

# Test your device by sending sms with command line 

echo " Test Gsm Modem by nerazan" | gammu --sendsms TEXT +9779855022***


                                                                                                     Nerazan Adhikary