Install gammu di Ubuntu

Posted: 15 November 2007 in Uncategorized

Gammu tu buat sms server.. seperti biasa karena baru dapet kiriman CD Ubuntu dari Belanda.. mo nyoba tapi ga enak karena di server orang.. hmm mungkin ta install ubuntu di leptopku dulu aja kali ya..

tapiii gini scriptnya..

#!/bin/bash
echo “this script installs Gammu and Wammu”;
echo “Installing required packages”;
yes | apt-get install build-essential checkinstall autoconf
yes | apt-get install libbluetooth1-dev python2.4-dev python-wxgtk2.6

echo “downloading Gammu sourcecode”;
wget http://dl.cihar.com/gammu/releases/gammu-1.10.0.tar.bz2
echo “unpacking..”;
tar -xjf gammu-1.10.0.tar.bz2
cd gammu-*
echo “compiling..”;
./configure –prefix=/usr
make shared
echo “installing”;
make installshared
cd ..

echo “downloading python-gammu”;
wget http://dl.cihar.com/python-gammu/latest/python-gammu-0.18.tar.bz2
echo “unpacking..”;
tar -xjf python-gammu-0.18.tar.bz2
cd python-gammu*
echo “building”;
python setup.py build
echo “installing”;
python setup.py install
cd ..

echo “downloading Wammu”;
wget http://dl.cihar.com/wammu/latest/wammu-0.17.tar.bz2
tar -xjf wammu-0.17.tar.bz2
cd wammu-*
echo “building”;
python setup.py build
echo “installing”;
python setup.py install

echo “system clean up”;
yes | apt-get remove python2.4-dev libbluetooth1-dev
cd ..
rm -r gammu-1.10.0
rm -r python-gammu-0.18
rm -r wammu-0.17
rm gammu-1.10.0.tar.bz2
rm python-gammu-0.18.tar.bz2
rm wammu-0.17.tar.bz2
echo “done”;
echo “start Wammu via ‘Applications -> Accessories’ menu entry”;

Simpen script diatas dengan nama install-gammu.sh abis itu jangan lupa di chmod +x install-gammu.sh sebagai root lho!

akhir kata tinggal ./install-gammu.sh  dan kasih tau outputnya.. kekeke karena i belom cobain..

Komentar
  1. Tiara mengatakan:

    waktu saya install gammu,,,koq perintah configure nya ga bisa…kenapa ya????
    trus juga ktanya please install autoconf…
    knp juga tuh????
    tolong jawab ya

  2. arwan mengatakan:

    pro tiara:
    itu karena untuk configure, ubuntu membutuhkan program autoconf. Untuk itu, buka aja synaptic, kemudian cari autoconf, kemudian double klik, kemudian install

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s