Pages

Wednesday, August 4, 2010

Sending SMS from Linux Box to My Mobile.

  • Handset == Nokia 6300 with usb cable
  • OS == Ubuntu 9.10 (upgraded from 9.04)
  • Goal == To test whether Linux Box can send sms alerts to any mobile numbers.
  • Software == gammu (opensource gsm software for *nix platform)
To Install -
 #apt-get install gammu

To Configure -
#gammu-config
port = /dev/ttyACM0             #your port may differ from me depending on your ph model and cable.
model = nokia autodetection
It will save a .gammurc config file in your home directory

#gammu --identify                  # it will list your connected mobile devices , In my case Nokia 6300.

To test sms to any phone -
#gammu sendsms text +659457xxxx
Enter message text and press ^D:
I love opensource!!
Sending SMS 1/1....waiting for network answer..OK, message reference=2



People may say "Hey guy. Why do you want to sms from Linux box while you can directly send from mobile phone?"  As A System Admin, sometimes we need a way to know critical events of our servers on the spot. For example, we can configure gammu with Nagios Monitoring Server so that it will sms to my mobile whenever a network service is down. Cool? Or Annoying?

No comments:

Post a Comment