Langsung ke konten utama

Install Gammu Sms Gateway Pada Ubuntu 10.04

Awesome SMS Gateway on My Ubuntu Lucid Computer Using Gammu-Kalkun



Just explore sms gateway that seems to be complicated but finally I can get it working on my own machine with my old K750i sony ericsson phone.

What sources are behind this sms gateway?
There are 3 main sources that need to run in background and 1 sources as frontend.



Background source are:
  1. Gammu - for communicating with handphone.
  2. Handphone - as receiver and transmitter.
  3. Database (MySQL) - for storing and manipulating sms.
Frontend source is: Kalkun as web based interface.

How to install sms gateway source?
First, go install gammu. Type this on terminal

sudo add-apt-repository ppa:nijel/ppa
sudo apt-get update
sudo apt-get install gammu gammu-smsd 


Second, install MySQL also with apache web server. Go to apachefriend to get latest XAMPP Linux also follow the installation step on that page. Now, you have local PHP, and MySQL server.

Third, setting up Kalkun database. Go to your web browser and go to this link http://localhost/phpmyadmin. Don't forget to start lampp (XAMPP Linux) before go to phpmyadmin page. You should now see Create new database form, fill form with kalkun and click on create button. Just close this page when you succeed.

Fourth, connect your phone. Just connect your phone with supported USB cable. After connected, type this on terminal to create log files.
sudo touch /etc/smsdlog


Test your phone connection by type this on terminal

gammu identify


If your phone supported and your config is correct, you will see phone information like Device, Model, Firmware, IMEI, SIM IMSI, etc. Please note on Device information as it will be used on editing configuration

Edit the content of /etc/gammu-smsdrc with your favourite text editor. Make sure you have permission to make a change on gammu-smsdrc. This is my gammu-smsdrc content:

# Configuration file for Gammu SMS Daemon

# Gammu library configuration, see gammurc(5)
[gammu]
# Please configure this!
port = /dev/ttyACM1
connection = at115200
# Debugging
#logformat = textall

# SMSD configuration, see gammu-smsdrc(5)
[smsd]
PIN = 1234
service = mysql
DeliveryReport = sms
logfile = /etc/smsdlog
# Increase for debugging information
debuglevel = 1

User = root
Password =
PC = localhost:/opt/lampp/var/mysql/mysql.sock
Database = kalkun

# Paths where messages are stored
inboxpath = /var/spool/gammu/inbox/
outboxpath = /var/spool/gammu/outbox/
sentsmspath = /var/spool/gammu/sent/
errorsmspath = /var/spool/gammu/error/


Port should same as Device information. Now run gammu by typing on terminal

sudo gammu-smsd


If running well you should see this on terminal

[sudo] password for ardinoto:
Log filename is "/etc/smsdlog"



Fifth - The Last Step, Install kalkun. Get the latest kalkun here. Extract kalkun contents to /opt/lampp/htdocs/kalkun. Edit kalkun database settings on /opt/lampp/htdocs/kalkun/system/application/config/database.php.
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "root";
$db['default']['password'] = "";
$db['default']['database'] = "kalkun";
$db['default']['dbdriver'] = "mysql";


Finally, open your browser and go to http://localhost/kalkun

©ardinoto

Komentar

Postingan populer dari blog ini

Kode-Kode Tersembunyi Pada Opera Mini

Ternyata opera mini yang kita kenal ini memiliki kode-kode rahasia. Mungkin tidak banyak yang mengetahui ini (mungkin lho). Untuk menggunakannya kita tinggal memasukan kode rahasia opera mini ke dalam url lalu klik Go to. Tanpa basa-basi langsung saja intip kode-kodenya. 1. about :config Disini kita bisa mengatur : * Large placeholder for images * Fit text to screen * Loading timeout * Site patches * Keep styling in RSS feeds * Show feedindex * Fold linklist * Phonenumber detection * Minimum phone number leght * Use bitmap fonts for complex script Setelah mengubah pengaturannya jangan lupa untuk menyimpannya (Save) 2. server:version Untuk melihat info: * Server status * Cookies and state * Serverside preferences * Client info * Request headers 3. opera:about Menampilkan informasi tentang opera mini, seperti pihak ketiga. 4. opera:blank Menampilkan layar kosong. 5. opera:cache Melihat semua cache pada opera mini. 6. server:reset Menghapus cache

Membuat Game Java Snake HQ Dengan Netbeans

Bagi anda yang suka java atau iseng-iseng ingin membuat game ini ada game sederhana yang patut anda coba. Oke, kita mulai. Pertama-tama, kita tentukan sampai mana target rancangan ini diselesaikan. Kebetulan karena ini iseng-iseng, saya cuma berniat sampai animasi sederhana dan deteksi tepi area agar kalau ular tersebut sampai di tepi, bisa tembus di sisi lain. Ini belum sampai deteksi dabrakan dengan dinding, makanan (apel), maupun tabrakan antara kepala dan badan ular tersebut. Karena itu, class utama yang kita butuhkan hanya 2, yaitu untuk panel utama game dan ular yang akan berjalan. Class tambahan lain, akan dibahas kemudian. Kita mulai dari class ular. Sementara ini, attribut yang kita butuhkan hanya koordinat ular, arah ular menghadap, dan panjang maksimal (bisa fleksibel nantinya). Sedangkan behaviour yang bisa dilakukan ular antara lain adalah mengubah arah menghadap, mengupdate koordinat seluruh anggota badan setiap berjalan, termasuk untuk tembus ke sisi lai

Logo Lambang Kementerian Lingkungan Hidup dan Kehutanan

 Logo KLHK Download Logo KLHK Google Drive dan Mega